How to check your library using the Model Management option

September 27th, 2012 by Hannah Hammond

Have you ever wanted to perform a regression test on a library you have created?  Model Management, an optional library available in Dymola, could provide the solution. This article will highlight the key features of the Model Management library for checking your library.

When you open the Model Management library, you will see that it contains three packages; Check, Compare and Structure. It is the Check package which is of interest, as it contains the checkLibrary function which allows you to:

The function interface, shown below, allows you to configure the check performed by enabling or disabling the checking features. This interface also allows you to specify the library to be checked, as well as any additional test cases which exist outside of the library. Check Function Interface For a model to be identified as a test case and included in the regression test, it must contain the simulation setup in the model annotation. An example of the necessary code is:

annotation (experiment(StopTime=10))

Once the check is complete, the results will be reported in html files stored in your current working directory. If you perform a style check, these results are stored in a second html file. Examples of the reports are given below, based on the example included in the Model Management library.

Library Check html Example

Style Check html Example

For a step-by-step guide on using the features of the Model Management library see the library documentation.

Archives

2017

2016

2015

2013

2012

2011

2010