Skip to content

OMBackend 0.11.3: variable structure systems on the arrays-kept route; CI depot cache - #108

Merged
JKRT merged 3 commits into
OpenModelica:masterfrom
JKRT:vss-scalarization
Nov 17, 2026
Merged

JKRT merged 3 commits into
OpenModelica:masterfrom
JKRT:vss-scalarization

Conversation

@JKRT

@JKRT JKRT commented Nov 17, 2026 •

Copy link
Copy Markdown
Member

Since 0.11.0 OM's translate takes the arrays-kept route only (no second flatten). VSS models with arrays failed there
(OM.jl vssTests + backendExtensions: 18 errors).

  • scalarizeModel: the backend scalarizes every partition and each structural mode with its own variables;
    scalarizeArrays refused models with modes.
  • Structural models build at simulate (generateIMTKCode skips the build at translate): recorded in
    IMTKGen.BUILT_AT_SIMULATE, so _translateKept no longer declines them for a missing BUILT entry.
  • A for-equation over a structural parameter (for i in 1:N, N a recompilation target): Elements.structural
    holds the structural Integer parameters' values (structuralValues); loop ranges fold them (iterationRange).
  • Recompilation: the solve kwargs (reltol, abstol) went to reinit! too, which takes none: a MethodError for
    any recompiled model simulated with solver options.
  • Transition into a DAE mode: ODEProblem(sys, u0Dict, tspan, p) was the pre-MTK-10 call; MTK 11 took sys as the
    model function and threw, so every such transition fell back to the vector u0 (vssTransferDAEInit). Now
    ODEProblem(sys, op, tspan) with the carried values and the mode's parameter values (_parameterValues).
  • Test: test/vssScalarizationTests.jl (two modes with an array; an array grown by recompilation), analytic values;
    no vssTransferDAEInit fallback.

CI:

  • Pull requests restore master's depot cache and save none (actions/cache/restore, same paths and key prefix as
    julia-actions/cache). PR caches (0.8-2.6 GB per OS and run) took the repository to 12.5 GB of 10 GB, and GitHub
    evicted master's.
  • "Precompile cache report" step: which of our packages the restored depot has precompiled, and why a cache is
    rejected (JULIA_DEBUG=loading). In OMBackend 0.11.2: suite time — no deprecated calls, one build per comparison, platform group on mac/Windows #107's run mac and Windows precompiled ImmutableList to OMFrontend again (mac
    438 s, Windows 245 s) at unchanged commits; Ubuntu took them from the cache. The cause is not known yet.

OM.jl vssTests + backendExtensions: 54 passed, 0 errors, 2 broken (@test_broken since 11-09).
OMBackend suite (fresh process, 1 thread, --depwarn=yes, macOS arm64): 2658/2658 (15 new), 836 s, peak RSS 11.39 GiB.

JKRT added 3 commits November 17, 2026 13:23
- scalarizeModel: every partition and each structural mode scalarized by the backend
- IMTKGen.BUILT_AT_SIMULATE: structural models build at simulate, translate takes them
- Elements.structural: loop ranges over structural parameters (1:N) folded
- recompilation: solver kwargs to init only, not reinit!
- test/vssScalarizationTests.jl: two modes with an array, an array grown by recompilation

Assisted-by: Claude Opus 5.5
ODEProblem(sys, u0Dict, tspan, p) took sys as the model function under MTK 11 and threw: every transition fell back to
the vector u0 (vssTransferDAEInit). Now ODEProblem(sys, op, tspan), op = carried values + the mode's parameters.

Assisted-by: Claude Opus 5.5
… report

PR caches (0.8-2.6 GB per OS and run) took the repository over 10 GB and evicted master's. The report step prints
which of our packages the restored depot has precompiled and why a cache is rejected (JULIA_DEBUG=loading).

Assisted-by: Claude Opus 5.5
@JKRT JKRT changed the title OMBackend 0.11.3: variable structure systems on the arrays-kept route OMBackend 0.11.3: variable structure systems on the arrays-kept route; CI depot cache Nov 17, 2026
@codecov

codecov Bot commented Nov 17, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.14%. Comparing base (48757b0) to head (b4a7948).
⚠️ Report is 66 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff             @@
##           master     #108       +/-   ##
===========================================
+ Coverage   24.78%   83.14%   +58.36%     
===========================================
  Files          28      114       +86     
  Lines        3430    34233    +30803     
===========================================
+ Hits          850    28464    +27614     
- Misses       2580     5769     +3189     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@JKRT
JKRT merged commit aa5b286 into OpenModelica:master Nov 17, 2026
9 checks passed
@JKRT
JKRT deleted the vss-scalarization branch November 17, 2026 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant