fix(msl): add tensor-aware compiler and solver support for MultiBody - #325
Conversation
MSL Quality Gate SummaryGenerated by
Deltas compare numerator/denominator against the resolved MSL quality baseline. CI Gate SnapshotThese are the baseline-relative MSL stats checked by CI; IC progress is contextual unless simulation successes regress, and speed metrics are informational only.
CI gate details
Package Pass Rates
Per-package pass rates
MLS Contract Coverage
Trace Accuracy vs OMC
Speed vs OMCCompilation and simulation are reported separately for the 185 trace-agreeing models with valid timings on both tools. Aggregate speed summary
Speed breakdownWhere rumoca's time goes
Speed by system sizeTable 1 — Total (model → simulated results)Rumoca = front-end compile + Solve-IR/JIT build + integration; OMC =
Per-model speedup: min 0.12, median 4.73, max 9.98. Table 2 — Compilation (build-to-runnable)Rumoca = front-end compile + Solve-IR/JIT build; OMC =
Per-model speedup: min 0.19, median 5.50, max 9.99. Table 3 — Simulation (integration only)Rumoca =
Per-model speedup: min 0.00, median 1.50, max 55.07. Top 10 slowest modelsTop 10 slowest rumoca compilation modelsTrace-agreeing models ranked by rumoca time.
Top 10 slowest rumoca simulation modelsTrace-agreeing models ranked by rumoca time.
Additional Artifacts
|
Preserve record, function, array, and each-modifier semantics through instantiation, flattening, and DAE conversion. Generalize derivative closure, state selection, index reduction, and structured scalar views while retaining compact tensor-native IR. Add explicit initialization and algebraic projections, tensor JVPs, certified causal execution, FMI 3 event handling, and flake-pinned OMC parity gates. The fixed 566-model MSL run reaches 188 acceptable OMC traces, up 38 from the promoted baseline, with MultiBody compilation retained. Signed-off-by: James Goppert <james.goppert@gmail.com>
a499eb8 to
5ad55c8
Compare
Branch Naming
msl-trace-parity-recoveryis descriptive and has noagent/prefix.Summary
eachmodifier origin and record bindings, resolves record/function projections exactly, recovers array dimensions, and removes suffix-based lookup ambiguity through instantiation, flattening, and DAE conversion.stateSelectmetadata, dummy-state demotion, vector/tensor constraint row shapes, index reduction, preferred unknown matching, and regular-subsystem BLT construction.[Y|P]sensitivity domains, prepared assignment shapes/output ownership, and a complete causal certificate. The simultaneous residual solve remains authoritative whenever that certificate is incomplete.flake.nixand CogniPilot Cachix, removes the Debian installation route, and adds an explicit fail-closed OMC baseline-context migration for the completed 566-model run.Spec / MLS Alignment
eachmodifiers; §8.6 initialization and simultaneous equations; §10 array construction, operators, slicing, and subscripts; §12.4.1 named/default function arguments and structured outputs; Appendix B DAE semantics.Risk and Design Notes
StateSelect.alwaysis preserved, and focused vector-constraint/dummy-state regressions cover the new behavior.dev/reviews/. Its final review found no blocker or high-severity issue.Testing
Completed on the squashed tree or its identical pre-squash tree:
nix develop -c cargo fmt --all -- --check: pass.nix develop -c cargo clippy --workspace --all-targets --all-features -- -D warnings: pass.nix develop -c cargo xtask verify workspace: pass.nix develop -c cargo doc --workspace --all-features --no-deps: pass.nix develop -c cargo xtask verify examples: 42/42, including CMM and reusable-booster.modelica_models, all four MSL shards, and the merged quality gate: https://github.com/CogniPilot/rumoca/actions/runs/29831013519Fresh fixed-denominator MSL evidence from CI #1406:
a96aa1a-cmake.Code Size Budget
Positive growth is concentrated in generalized structural/tensor lowering, explicit solve/runtime contracts, FMI 3 behavior, and regression coverage. The diff also deletes 11,126 lines and splits oversized modules without retaining duplicate implementations. Further compression should follow measured MSL cluster work and preserve phase-owned metadata and focused tests.
Reviewer Checklist
main; no AI co-author trailer.