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

Energyplus FMU in Pyfmi

asked 2019-02-08 17:06:33 -0600

mfath's avatar

updated 2019-02-11 14:56:50 -0600

Hi,

I have generated the fmu file of my EnergyPlus model. However, when I am trying to execute the FMU in pyfmi, I am getting the following issue. I would appreciate if someone can help me to resolve this issue,

https://drive.google.com/drive/folder...

It provides input error, but I have generated the .fmu file successfully

Thanks,

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2019-02-10 08:43:04 -0600

How are you compiling the EnergyPlus file as an FMU? Are you using the EnergyPlusToFMU tool provided by LBL?

If not, I would recommend using that tool. When you compile EnergyPlus as an FMU you are required to compile it with the weather file. It appears to me that the FMU was compiled without the EPW weather file. During execution it was not aware of the weather data inputs and did not initialize.

If you are using the tool but still having trouble, you may not be specifying the inputs to the FMU correctly. There are parameters that need to be defined at the command. More specifically, look at the line of your error message that says idf-to-fmu-export-prep-win.exe. The message then goes on to show you how the program should be used. Because you received this "Usage" information you may not have specified the correct inputs. This appears to be the right program from EnergyPlusToFMU but you're missing the input variables for weatherFile, simulation starttime, and simulation stoptime.

If you still have errors, please post part of the script that you are trying to use.

edit flag offensive delete link more

Comments

1

@JustinShultz Thanks for your response. Yes, I am using the LBL provided tool to generate the EnergyPlus FMUs. I have checked the generated FMU and it seems to me that everything is normal in the generated FMU file. In the resource folder, it has the .idf, .epw, .idd, .cfg and .exe file. However, it seems that the .exe file (idf-to-fmu-export-prep-win.exe) is getting more (8) command line arguments while it requires only 2 command line arguments. Following is the image of the script that I am using in python 2.7: https://drive.google.com/file/d/1DT0C...

mfath's avatar mfath  ( 2019-02-10 21:15:15 -0600 )edit

@JustinShultz Also, in the output log file, I am getting the following input error:

=== Input error === Program c:\users\mfatho~1\appdata\local\temp\JModelica.org\jm_tmpi62qhm\resources\idf-to-fmu-export-prep-win.exe requires exactly 2 command-line arguments, got 8

Thanks,

mfath's avatar mfath  ( 2019-02-11 12:20:42 -0600 )edit

Could you post your IDF file? Otherwise it is very hard to know what is going on here? Also I am not sure whether your FMU has any inputs/outputs since you are not setting any inputs/retrieving any outputs in your master algorithm?

Thierry Nouidui's avatar Thierry Nouidui  ( 2019-02-15 10:29:25 -0600 )edit

@mfath in addition to the IDF file that Thierry asked for, can you post an image/script of the command line you are using to compile the IDF into an FMU. Due to the error you received, I don't believe that that the FMU was generated correctly. If you post the command line used to generate the FMU I may be able to help.

JustinShultz's avatar JustinShultz  ( 2019-02-15 13:40:46 -0600 )edit

Your Answer

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

Add Answer

Training Workshops

Careers

Question Tools

3 followers

Stats

Asked: 2019-02-08 17:06:33 -0600

Seen: 1,343 times

Last updated: Feb 11 '19