Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register

Unit testing for Modelica - Models

Unit testing for Modelica - Models

In programming Unit-testing of the code is highly recommended.
In order to early detect errors in the code, certain test cases shall be written, to test every submodule.

I think this approach shall be used in modelling as well.
So I'm searching for recommendations on how to  apply Unit testing to Modelica modells.

Basically I would need a tool to store lot's of test runs with different models and parameters for batch evaluation.
In each test run one or more acceptance criteria shall be defined. This might need evaluation of simulation data at the end of the run (post processing).

Any recommendations for a tool?

Thanks, Bernd

Re: Unit testing for Modelica - Models

https://libraries.openmodelica.org/bran … rview.html

https://github.com/OpenModelica/OpenMod … aryTesting

You need to run this on Linux. You can use reference result files to verify that the simulation generates expected trajectories

There are 0 guests and 0 other users also viewing this topic
You are here: