Skip to content

Experimental julia based library test for OpenModelica Base Modelica export and BaseModelica.jl + MTK.jl import.

License

Notifications You must be signed in to change notification settings

OpenModelica/BaseModelicaLibraryTesting.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BaseModelicaLibraryTesting.jl

Build Status MSL Test Reports

Experimental Base Modelica library testing based on Julia.

Library Testing

For a given Modelica library test

  1. Base Modelica export (OpenModelica, OMJulia.jl)
  2. Base Modelica parsing (BaseModelica.jl)
  3. ODE simulation (ModelingToolkit.jl, DifferentialEquations.jl)
  4. Validating simulation results

Usage

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.

Example - Testing the Modelica Standard Library v4.1.0

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_ReferenceResults

Run 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/

License

This package is available under the OSMC-PL License and the AGPL-3.0 License. See the OSMC-License.txt file for details.

About

Experimental julia based library test for OpenModelica Base Modelica export and BaseModelica.jl + MTK.jl import.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Contributors