Experimental Base Modelica library testing based on Julia.
For a given Modelica library test
- Base Modelica export (OpenModelica, OMJulia.jl)
- Base Modelica parsing (BaseModelica.jl)
- ODE simulation (ModelingToolkit.jl, DifferentialEquations.jl)
- Validating simulation results
main(
library = "<Modelica library name>",
version = "<Modelica library version>",
filter = "<Modelica class filter>",
omc_exe = "path/to/omc",
results_root = "results",
ref_root = "path/to/ReferenceResults"
)If reference results are available provide the path via ref_root.
For example, for the Modelica Standard Library v4.1.0 reference results can be obtained by cloning the MAP-LIB_ReferenceResults repository:`
git clone --depth 1 -b v4.1.0 https://github.com/modelica/MAP-LIB_ReferenceResultsRun the library testing for the ChuaCircuit example of the Modelica Standard Library v4.1.0 with:
using BaseModelicaLibraryTesting
main(
library = "Modelica",
version = "4.1.0",
filter = "Modelica.Electrical.Analog.Examples.ChuaCircuit",
omc_exe = "omc",
results_root = "results/main/Modelica/4.1.0/",
ref_root = "MAP-LIB_ReferenceResults"
)Preview the generated HTML report at main/Modelica/4.1.0/report.html.
python -m http.server -d results/main/Modelica/4.1.0/This package is available under the OSMC-PL License and the AGPL-3.0 License. See the OSMC-License.txt file for details.