Skip to content

OMLibraryTesting 0.7.0: reference results of other libraries (MAP-LIB, .mat, BuildingsPy) - #26

Merged
JKRT merged 2 commits into
OpenModelica:masterfrom
JKRT:dev/library-references
Nov 27, 2026
Merged

JKRT merged 2 commits into
OpenModelica:masterfrom
JKRT:dev/library-references

Conversation

@JKRT

@JKRT JKRT commented Nov 27, 2026 •

Copy link
Copy Markdown
Member

Reference results for library runs, taken from where OpenModelica's library testing takes them (configs/conf.json), and readers for their formats.

Library Source Format Experiment models with a reference
ModelicaTest 4.1.0 MAP-LIB_ReferenceResults, branch v4.1.0 CSV + comparisonSignals.txt 608 of 608
ScalableTestSuite 2.3.0 casella/ScalableTestSuite-ref <model>_res.mat 257 of 263
PowerSystems 2.0.0 rfranke/PowerSystems_ReferenceResults <model>.mat.xz 128 of 128
PowerGrids 1.0.3 PowerGrids/PowerGrids-ref <model>_res.mat 69 of 71
Buildings 13.0.0 the installed library, Resources/ReferenceResults/Dymola BuildingsPy .txt 1800 of 1805
  • src/references.jl: reference_source(library, version). download_reference(model, ref_dir, source) fetches one file; download_references(models, ref_dir, source) fetches a list, 16 at a time; download_references(target) fetches a coverage target's experiment models. .xz files are unpacked with p7zip_jll.
  • src/resultFiles.jl: load_reference reads MAP-LIB CSV, MAT v4 result files (read_matv4, load_reference_mat: binTrans and binNormal, trajectories only) and BuildingsPy files. reference_path finds a model's file in csv/, mat/ or txt/.
  • Without a comparisonSignals.txt every trajectory is compared except Dymola's own variables and der(...). A signal the result lacks that is constant in the reference is not compared (OpenModelica's library testing: constantsInReference).
  • reference_dir(...; library): reference/<Name>_<version>/. Runs of a library in REFERENCE_LIBRARIES go up to validate. run_coverage(...; download = true) fetches the missing results of the models it runs; run_full_coverage.jl sets it for a library. MSL runs are unchanged.
  • Version 0.7.0. New stdlib deps: Downloads, p7zip_jll.

Checked locally (Julia 1.13.4, OMBackend 1.3.1, OMFrontend 4.0.0):

  • Package tests: 216/216. MAT v4 files written in the test (both layouts), a BuildingsPy file, and real small downloads (MAP-LIB CSV, PowerGrids .mat, PowerSystems .mat.xz, a 404).
  • ModelicaTest: 608 of 608 fetched in 31 s (693 MB).
  • Subsets, validate of simulated: ModelicaTest 19 of 20, PowerGrids 12 of 15, PowerSystems 6 of 7, ScalableTestSuite 14 of 21, Buildings 1 of 1. The ScalableTestSuite failures are signals OM.jl leaves out of the result (ground[1,1].p.i, P_diss[1,2]).

🤖 Generated with Claude Code

JKRT added 2 commits November 27, 2026 21:29
download_reference / download_references (src/references.jl) fetch a model's
MAP-LIB result and comparison signals. reference_dir takes a library:
reference/<Name>_<version>/. REFERENCE_LIBRARIES = ("ModelicaTest",): its runs
go up to validate. run_coverage(...; download = true) fetches the missing
results of the models it runs; run_full_coverage passes it for a library.

Assisted-by: Claude Opus 5.5
…ldings

reference_source(library, version): where OpenModelica's library testing
takes each library's references (MAP-LIB, the libraries' reference
repositories, Buildings' own Dymola files). load_reference reads MAP-LIB CSV,
MAT v4 result files (binTrans, binNormal) and BuildingsPy files; result files
go in csv/, mat/ or txt/ of the reference directory (reference_path). Without
a comparisonSignals.txt every trajectory is compared except Dymola's own and
der(...); a signal the result lacks that is constant in the reference is not
compared, as in OpenModelica's library testing.

Assisted-by: Claude Opus 5.5
@JKRT JKRT changed the title OMLibraryTesting 0.7.0: MAP-LIB reference results for ModelicaTest OMLibraryTesting 0.7.0: reference results of other libraries (MAP-LIB, .mat, BuildingsPy) Nov 27, 2026
@JKRT
JKRT merged commit a3b6187 into OpenModelica:master Nov 27, 2026
2 checks passed
@JKRT
JKRT deleted the dev/library-references branch November 27, 2026 21:26
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