• English
  • Deutsch
  • Log In
    Password Login
    Research Outputs
    Fundings & Projects
    Researchers
    Institutes
    Statistics
Repository logo
Fraunhofer-Gesellschaft
  1. Home
  2. Fraunhofer-Gesellschaft
  3. Konferenzschrift
  4. MoUnit - A framework for automatic Modelica model testing
 
  • Details
  • Full
Options
2014
Conference Paper
Title

MoUnit - A framework for automatic Modelica model testing

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.
Author(s)
Samlaus, R.
Strach, M.
Hillmann, C.
Fritzson, P.
Mainwork
10th International Modelica Conference 2014. Proceedings  
Project(s)
ELLIIT
Funder
Bundesministerium für Umwelt, Naturschutz, Bau und Reaktorsicherheit BMUB
Conference
International Modelica Conference 2014  
DOI
10.3384/ECP14096549
Language
English
Fraunhofer-Institut für Windenergiesysteme IWES  
Keyword(s)
  • MoUnit

  • OneModelica

  • Modelica

  • Test Framework

  • automatic testing

  • verification

  • Cookie settings
  • Imprint
  • Privacy policy
  • Api
  • Contact
© 2024