Conference article

Simulating a Variable-structure Model of an Electric Vehicle for Battery Life Estimation Using Modelica/Dymola and Python

Moritz Stüber
University of Applied Sciences Vorarlberg, Austria

Download article

Published in: Proceedings of the 12th International Modelica Conference, Prague, Czech Republic, May 15-17, 2017

Linköping Electronic Conference Proceedings 132:31, p. 291-298

Show more +

Published: 2017-07-04

ISBN: 978-91-7685-575-1

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


A variable-structure model (VSM) of a battery electric vehicle used for simulating the ageing of the battery pack is presented. The operating principle of the software used to simulate the models is described and a brief summary of the state of science and technology regarding the simulation of VSMs is given. By comparing the performance of the VSM to a conventional model, it is found that the simulation time does not necessarily decrease when replacing a model with a variable-structure version. However, the VSM has advantages regarding the handling of the result files and the possibility to analyse the results.


Variable-structure Model, VSM, Modelica, Dymola, Simulation


Breitenecker, Felix (2008). “Development of Simulation Software – from Simple ODE Modelling to Structural Dynamic Systems”. In: Proceedings of the 22nd European Conference on Modelling and Simulation (ECMS 2008). DOI:

Elmqvist, Hilding, Sven Erik Mattsson, and Martin Otter (2014). “Modelica extensions for Multi-Mode DAE systems”. In: Proceedings of the 10th International Modelica Conference. DOI:

Esperon, Daniel Gomez, Alexandra Mehlhase, and Thomas Karbe (2015). “Appending Variable-structure to Modelica Models (WIP)”. In: Proceedings of the Conference on Summer Computer Simulation. SummerSim ’15. Chicago, Illinois: Society for Computer Simulation International.

Krüger, Imke, Alexandra Mehlhase, and Gerhard Schmitz (2012). “Variable Structure Modeling for Vehicle Refrigeration Applications”. In: Proceedings of the 9th International Modelica Conference. DOI:

Mattsson, Sven Erik, Martin Otter, and Hilding Elmqvist (2015). “Multi-Mode DAE Systems with Varying Index”. In: Proceedings of the 11th International Modelica Conference. DOI:

Mehlhase, Alexandra (2015). “Konzepte für die Modellierung und Simulation strukturvariabler Modelle”. PhD thesis. Technische Universität Berlin, Fakultät IV – Elektrotechnik und Informatik. DOI:

Mehlhase, Alexandra, Daniel Gomez Esperon, Julien Bergmann, et al. (2014). “An example of beneficial use of variable-structure modeling to enhance an existing rocket model”. In: Proceedings of the 10th International Modelica Conference. DOI:

Mehlhase, Alexandra, Daniel Gomez Esperon, and Thomas Karbe (2015). “Challenges when Creating Variable-structure Models”. In: Proceedings of the 5th International Conference on Simulation and Modeling Methodologies, Technologies and Applications, pp. 101–110. DOI:

Möckel, Jens, Alexandra Mehlhase, and Christoph Nytsch-Geusen (2015). “Exploiting Variable-structure Models in the Context of Building Simulations within Modelica”. In: Proceedings of BS2015. International Building Performance Simulation Association. URL:

Stüber, Moritz (2016). “Simulating a Variable-structure Model of an Electric Vehicle for Battery Life Estimation Using Modelica/Dymola and Python”. Master’s Thesis. University of Applied Sciences Vorarlberg.

Zimmer, Dirk (2010). “Equation-Based Modeling of Variable-Structure Systems”. PhD thesis. Swiss Federal Institute of Technology, Zürich. DOI: 10.3929/ethz-a-006053740.

Zimmer, Dirk (2013). “A new framework for the simulation of equation-based models with variable structure”. In: SIMULATION 89.8, pp. 935–963. DOI:

Citations in Crossref