MoUnit -- A Framework for Automatic Modelica Model Testing

  • Samlaus R
  • Strach M
  • Hillmann C
  • et al.
N/ACitations
Citations of this article
6Readers
Mendeley users who have this article in their library.

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 de-veloper's 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 Model-ica 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.

Cite

CITATION STYLE

APA

Samlaus, R., Strach, M., Hillmann, C., & Fritzson, P. (2014). MoUnit -- A Framework for Automatic Modelica Model Testing. In Proceedings of the 10th International Modelica Conference, March 10-12, 2014, Lund, Sweden (Vol. 96, pp. 549–556). Linköping University Electronic Press. https://doi.org/10.3384/ecp14096549

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free