Fraunhofer-Gesellschaft

Publica

Hier finden Sie wissenschaftliche Publikationen aus den Fraunhofer-Instituten.

MoUnit - A framework for automatic Modelica model testing

 
: Samlaus, R.; Strach, M.; Hillmann, C.; Fritzson, P.

:

Tummescheit, H. ; Modelica Association, Linköping:
10th International Modelica Conference 2014. Proceedings : March 10 - 12, 2014, Lund, Sweden
Linköping: Modelica Association, 2014 (Linköping Electronic Conference Proceedings 96)
ISBN: 978-91-7519-380-9
DOI: 10.3384/ecp14096
pp.549-556
International Modelica Conference <10, 2014, Lund>
Bundesministerium für Umwelt, Naturschutz, Bau und Reaktorsicherheit BMUB
ELLIIT
English
Conference Paper
Fraunhofer IWES ()
MoUnit; OneModelica; Modelica; Test Framework; automatic testing; verification

Abstract
A vital part in development of physical models, i.e., mathematical models of physical system behavior, is testing whether the simulation results match the developers expectations and physical laws. Creation and automatic execution of tests need to be easy to be accepted by the user. Currently, testing is mostly performed manually by regression testing and investigation of result plots. Furthermore, comparisons between different tools can be cumbersome due to different output formats. In this paper, the test framework MoUnit is introduced for automatic testing of Modelica models through unit testing. MoUnit allows comparison of Modelica simulation results with reference data, where both reference data and simulation results can originate from different simulation tools and/or Modelica compilers. The presented test framework MoUnit brings the widespread approach of unit testing from software development into practice also for physical modeling. The testing strategy that is used within the Modelica IDE OneModelica from which the requirements for MoUnit arose, is introduced using an example of linear water wave models. The implementation and features of MoUnit are described and its flexibility is exhibited through two test cases. It is outlined, how MoUnit is integrated into OneModelica and how the tests can be automated within continuous build environments.

: http://publica.fraunhofer.de/documents/N-319524.html