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

Energyplus FMU issues

asked 2021-06-09 10:16:38 -0500

jdominguez94's avatar

updated 2021-06-09 12:16:36 -0500

Hi everyone,

I am trying to run a FMU from E+. I got this problem in the log file and I do not have a clue what it is happening. I am running this in a container using Docker (EnergyPlus 9.3, .IDF Version 9.3) and PyFMI.

FMIL: module = FMI2XML, log level = 3: fmi2_xml_get_default_experiment_start: returning default value, since no attribute was defined in modelDescription

The model is correctly initialized

lab = load_fmu("Lab_IRH.fmu",log_level=4)


final_time = days*24*60*60

start_time = 0


But when I try with both of the below setups

Turns out this one give me only zeros at the output of the FMU



while i<final_time:




And this one got stuck infinitely bringing the error above mentioned


u_traj = np.vstack(test).transpose()


input_object = (inputs, u_traj)


opts["ncp"] = 600 

lab.simulate(final_time=final_time, options=opts)

The socket file is correctly generated and there is not information in the .err generated file. It must be probably something in the modeDescription.xml file in the FMU, but I am not sure. Do you know what can be causing the problem?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2021-06-10 00:05:25 -0500

I think it may be because of a missing function call. I don't see your FMU been initialized.

I suggest for the first setup to replace the lab.setup_experiment(stop_time=final_time) with lab.initialize(start_time=start_time, stop_time=final_time).

For the second setup, just get rid of the lab.setup_experiment(stop_time=final_time) and modify your call to the simulate function to be lab.simulate(start_time=start_time, final_time=final_time, options=opts).

I am assuming that have used the latest version of EnergyPlusToFMU to export your FMU and that the IDF step size is 10.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2021-06-09 10:16:38 -0500

Seen: 133 times

Last updated: Jun 10 '21