Conference article

Simulation Speed Analysis and Improvements of Modelica Models for Building Energy Simulation

Filip Jorissen
Mechanical Engineering, KU Leuven, Leuven, Belgium / EnergyVille, Waterschei, Belgium

Michael Wetter
Energy Technologies Area, Lawrence Berkeley National Laboratory, Berkeley, CA, USA

Lieve Helsen
Mechanical Engineering, KU Leuven, Leuven, Belgium / EnergyVille, Waterschei, Belgium

Download articlehttp://dx.doi.org/10.3384/ecp1511859

Published in: Proceedings of the 11th International Modelica Conference, Versailles, France, September 21-23, 2015

Linköping Electronic Conference Proceedings 118:6, p. 59-69

Show more +

Published: 2015-09-18

ISBN: 978-91-7685-955-1

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

Abstract

This paper presents an approach for speeding up Modelica models. Insight is provided into how Modelica models are solved and what determines the tool’s computational speed. Aspects such as algebraic loops, code efficiency and integrator choice are discussed. This is illustrated using simple building simulation examples and Dymola. Using this approach a medium sized office building including building envelope, heating ventilation and air conditioning (HVAC) and control strategy can be simulated at a speed five hundred times faster than real time.

Keywords

Modelica; speed; performance; buildings; solver; integrator

References

Ruben Baetens, Roel De Coninck, Filip Jorissen, Damien Picard, Lieve Helsen, and Dirk Saelens. Openideas - an open framework for integrated district energy simulations. In Building simulation 2015, submitted, Hyderabad, 2015.

François E. Cellier and Ernesto Kofman. Continuous System Simulation. Springer US, 2006.

Earl A. Coddington and Norman Levinson. Theory of ordinary differential equations. McGraw-Hill Book Company, Inc., New York-Toronto-London, 1955.

Dassault Systèmes. Dymola user manual, vol. 1, 2014. Ernst Hairer and Gerhard Wanner. Solving Ordinary Differential Equations II: Stiff and Differential-Algebraic Problems. Springer-Verlag Berlin Heidelberg, 2002.

Alan C. Hindmarsh. Odepack, a systematized collection of ode solvers. IMACS transactions on scientific computation, 1:55–64, 1983.

Linda R. Petzold. Description of dassl: a differential/algebraic system solver. Technical report, Sandia National Labs., Livermore, CA (USA), 1982.

Linda R. Petzold. Automatic selection of methods for solving stiff and nonstiff systems of ordinary differential equations. SIAM journal on scientific and statistical computing, 4(1): 136–148, 1983.

Damien Picard and Lieve Helsen. Advanced Hybrid Model for Borefield Heat Exchanger Performance Evaluation, an Implementation in Modelica. In 10th International Modelica Conference 2014, pages 857–866, Lund, 2014.

Elijah Polak. Optimization, Algorithms and Consistent Approximations, volume 124 of Applied Mathematical Sciences. Springer Verlag, 1997.

Michael Tiller. Introduction to Physical Modeling with Modelica. Springer US, 2001.

Michael Wetter. Fan and pump model that has a unique solution for any pressure boundary condition and control signal. In Jean Jacques Roux and Monika Woloszyn, editors, Proc. of the 13-th IBPSA Conference, pages 3505–3512, 2013. URL http://simulationresearch.lbl.gov/wetter/download/2013-IBPSA-Wetter.pdf.

MichaelWetter,Wangda Zuo, Thierry S. Nouidui, and Xiufeng Pang. Modelica buildings library. Journal of Building Performance Simulation, (4):253–270, 2014.

Michael Wetter, Marcus Fuchs, Pavel Grozman, Lieve Helsen, Filip Jorissen, Moritz Lauster, Dirk Müller, Christoph Nytsch-Geusen, Damien Picard, Per Sahlin, and Matthis Thorade. IEA EBC annex 60 modelica library - an international collaboration to develop a free open-source model library for buildings and community energy systems. In Building simulation 2015, submitted, Hyderabad, 2015.

Dirk Zimmer. Using Artificial States in Modeling Dynamic Systems : Turning Malpractice into Good Practice. In Proceedings of the 5th International Workshop on Equation-Based Object-Oriented Modeling Languages and Tools, pages 77–85, 2013.

Citations in Crossref