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

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. The generality of the work is in some cases verified using OpenModelica. Using this approach, a medium sized office building including building envelope, heating ventilation and air conditioning (HVAC) systems and control strategy can be simulated at a speed five hundred times faster than real time.

[1]  Thierry S. Nouidui,et al.  Modelica Buildings library , 2014 .

[2]  Kristian Kirsch,et al.  Theory Of Ordinary Differential Equations , 2016 .

[3]  Michael Tiller,et al.  Introduction to Physical Modeling with Modelica , 2001 .

[4]  Damien Picard,et al.  Advanced Hybrid Model for Borefield Heat Exchanger Performance Evaluation, an Implementation in Modelica , 2014 .

[5]  François E. Cellier,et al.  Continuous System Simulation , 2006 .

[6]  Dirk Zimmer Using Artificial States in Modeling Dynamic Systems: Turning Malpractice into Good Practice , 2013, EOOLT.

[7]  L. Petzold Automatic Selection of Methods for Solving Stiff and Nonstiff Systems of Ordinary Differential Equations , 1983 .

[8]  Michael Wetter,et al.  Fan And Pump Model That Has A Unique Solution For Any Pressure Boundary Condition And Control Signal , 2013, Building Simulation Conference Proceedings.

[9]  Dirk Saelens,et al.  OpenIDEAS – An Open Framework for integrated District Energy Simulations , 2015, Building Simulation Conference Proceedings.

[10]  L. Petzold A description of dassl: a differential/algebraic system solver , 1982 .

[11]  E. Hairer,et al.  Solving Ordinary Differential Equations II: Stiff and Differential-Algebraic Problems , 2010 .

[12]  Dirk Müller,et al.  Iea Ebc Annex 60 Modelica Library – An International Collaboration to Develop A Free Open-Source Model Library for Buildings And Community Energy Systems , 2015, Building Simulation Conference Proceedings.