Repository navigation
OMLibraryTesting 0.7.0: reference results of other libraries (MAP-LIB, .mat, BuildingsPy) - #26
Merged
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Reference results for library runs, taken from where OpenModelica's library testing takes them (configs/conf.json), and readers for their formats.
<model>_res.mat<model>.mat.xz<model>_res.mat.txtreference_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..xzfiles are unpacked with p7zip_jll.load_referencereads MAP-LIB CSV, MAT v4 result files (read_matv4,load_reference_mat: binTrans and binNormal, trajectories only) and BuildingsPy files.reference_pathfinds a model's file in csv/, mat/ or txt/.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 inREFERENCE_LIBRARIESgo 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.Checked locally (Julia 1.13.4, OMBackend 1.3.1, OMFrontend 4.0.0):
ground[1,1].p.i,P_diss[1,2]).🤖 Generated with Claude Code