Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question

Revision history [back]

How to reduce simulation time with EnergyPlus compiled from source code?

Hi all,

I have a question about the simulation time of EnergyPlus when using the developers code. The reason I want to use the developers code is that I need to adjust some small things in one of the source codes of a module.

First of all I would like to state that I am completely new to the developers side of EnergyPlus, so perhaps it is just an easy fix. I have downloaded the source code from EnergyPlus GitHub page and have followed all the steps which are described in the tutorial on building EnergyPlus (also on the GitHub page). Using CMake and Visual Studio I can build a functional model of the EnergyPlus source code as downloaded (I have made no adjustments to the source code so far).

When I run a simple simulation which calculates the heating load of a single room over a year, my approximate simulation time with the standard EnergyPlus 8.6.0. version is 30 seconds. So it is a simple, not demanding simulation model. However, when I use my self-compiled developers version of EnergyPlus 8.6.0., my simulation time increases to 550 seconds. Using other simulations which are a bit more complex, results in an increase in computation time from 2.5 minutes to approximately an hour.

I have the suspicion that the standard version of EnergyPlus is optimized for speed, but certain compiler settings make the developer version a lot slower. Am I right about this and do other people experience similar results?

Perhaps some of you have some tips for building a fast self-compiled version of EnergyPlus based on the developers code? For these simple simulations the computation time is not that big of a problem, but my goal is to simulate a whole building, which would now result in very long simulation times.

Thank you in advance!

How to reduce simulation time with EnergyPlus compiled from source code?

Hi all,

I have a question about the simulation time of EnergyPlus when using the developers code. The reason I want to use the developers code is that I need to adjust some small things in one of the source codes of a module.

First of all I would like to state that I am completely new to the developers side of EnergyPlus, so perhaps it is just an easy fix. I have downloaded the source code from EnergyPlus GitHub page and have followed all the steps which are described in the tutorial on building EnergyPlus (also on the GitHub page). Using CMake and Visual Studio I can build a functional model of the EnergyPlus source code as downloaded (I have made no adjustments to the source code so far).

When I run a simple simulation which calculates the heating load of a single room over a year, my approximate simulation time with the standard EnergyPlus 8.6.0. version is 30 seconds. So it is a simple, not demanding simulation model. However, when I use my self-compiled developers version of EnergyPlus 8.6.0., my simulation time increases to 550 seconds. Using other simulations which are a bit more complex, results in an increase in computation time from 2.5 minutes to approximately an hour.

I have the suspicion that the standard version of EnergyPlus is optimized for speed, but certain compiler settings make the developer version a lot slower. Am I right about this and do other people experience similar results?

Perhaps some of you have some tips for building a fast self-compiled version of EnergyPlus based on the developers code? For these simple simulations the computation time is not that big of a problem, but my goal is to simulate a whole building, which would now result in very long simulation times.

Thank you in advance!