Konferensartikel

MoUnit -- A Framework for Automatic Modelica Model Testing

Roland Samlaus
Fraunhofer IWES, Turbine Simulation, Software Development, and Aerodynamics, Germany

Mareike Strach
Fraunhofer IWES, Turbine Simulation, Software Development, and Aerodynamics, Germany

Claudio Hillmann
Fraunhofer IWES, Turbine Simulation, Software Development, and Aerodynamics, Germany

Peter Fritzson
Department of Computer and Information Science, Linköping University, Sweden

Ladda ner artikelhttp://dx.doi.org/10.3384/ecp14096549

Ingår i: Proceedings of the 10th International Modelica Conference; March 10-12; 2014; Lund; Sweden

Linköping Electronic Conference Proceedings 96:58, s. 549-556

Visa mer +

Publicerad: 2014-03-10

ISBN: 978-91-7519-380-9

ISSN: 1650-3686 (tryckt), 1650-3740 (online)

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 developer’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 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.

Nyckelord

MoUnit; OneModelica; Modelica; test framework; automatic testing; verification

Referenser

[1] Höger C. Modelica on the Java Virtual Machine. In: Proceedings of the 5th International Workshop on Equation-Based Object-Oriented Modeling Languages and Tools, April 19 2013, University of Nottingham, Nottingham, UK.

[2] Samlaus R, Hillmann C, Demuth B, Krebs M. Towards a Model Driven Modelica IDE. In: Proceedings of the 8th International Modelica Conference 2011, Dresden, Germany, Modelica Association, 20-22 March 2011.

[3] Köhnlein J., Efftinge S.,Xtext 2.1 Documentation, Itemis GmbH, October 31, 2011.

[4] Budinsky F, Brodsky S. A., Merks E. Eclipse Modeling Framework, Pearson Education, 2003.

[5] Clayberg E, Rubel D. Eclipse Plug-ins, Addison Wesley Professional, 2009.

[6] McAffer J, van der Lei P, Archer S. OSGi and Equinox: Creating Highly Modular Java Systems, Addison-Wesley Professional, 2010.

[7] Faltinsen O M. Sea loads on ships and offshore structures, Cambridge University Press, 1990.

[8] Chakrabarti S K. Ocean Environment. In: Chakrabarti S K (ed.), Handbook of Offshore Engineering, Elsevier, 2005.

[9] Eckel B., Thinking in Java, Prentice Hall, 978-0-13-187248-6, 2006.

Citeringar i Crossref