Optimica Testing Toolkit: a Tool-Agnostic Testing Framework for Modelica Models

Anders Tilly
Lund University, Sweden

Victor Johnsson
Lund University, Sweden

Jon Sten
Modelon AB, Sweden

Alexander Perlman
Modelon AB, Sweden

Johan Åkesson
Modelon AB, Sweden

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

Ingår i: Proceedings of the 11th International Modelica Conference, Versailles, France, September 21-23, 2015

Linköping Electronic Conference Proceedings 118:74, s. 687-693

Visa mer +

Publicerad: 2015-09-18

ISBN: 978-91-7685-955-1

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


The need for regression testing increases as the size and complexity of software projects grow. This is no different from a Modelica library or tool. Large Modelica projects often involves several Modelica tools and libraries which are under development. In those situations, with several orthogonal code bases, the need for systematic regression testing is needed. In this paper we investigate a new way to create and run tests by developing a tool-agnostic testing framework. Additionally a graphical user interface for test authoring and management was created.


Cross Testing; Testing Framework; Test Authoring; Regression Testing; User Interface; Modelica; FMI


Daniel Arbuckle. Python Testing: Beginner’s Guide. Packt Publishing Ltd, 2010.

Modelica Association. Modelica - a unified object-oriented language for systems modeling, language specification version 3.3 revision 1. page 31, 2014.

Ilene Burnstein. Practical Software Testing : A Process-Oriented Approach. Springer, 2004.

Jung-Wei Chen and Jiajie Zhang. Comparing text-based and graphic user interfaces for novice and expert users. In AMIA Annual Symposium Proceedings, volume 2007, pages 125–129. American Medical Informatics Association, 2007.

Open Source Modelica Consortium. Modelica Compliance Library Guide. 2013.

Erich Gamma and Kent Beck. Junit: A cook’s tour. Java Report, 4(5):27–38, 1999.

ITI GmbH. Csv result compare tool. https://github.com/modelica-tools/csv-compare. Accessed: 2015-05-19.

Soren Lauesen. User Interface Design - A Software Engineering Perspective. Addison-Wesley, 2005.

Kristina Olsson and Lennart Moraeus. Eclipse-based graphical rendering and editing of modelica code. Bachelor’s Thesis, Lund University, 2011.

Roland Samlaus, Mareike Strach, Claudio Hillmann, and Peter Fritzson. MoUnit - A Framework for Automatic Modelica Model Testing. Proceedings of the 10th International Modelica Conference, 2014. doi: 10.3384/ecp14096549.

Jon Sten. Graphical editing in jmodelica.org. Master’s thesis, Lund University, 2012.

MichaelMTiller and Burit Kittirungsi. UnitTesting: A Library for Modelica Unit Testing. 2006.

Anders Tilly and Victor Johnsson. Developing a test authoring tool for a modeling language. Master’s thesis, Lund University, 2015.

Citeringar i Crossref