First time here? Check out the Help page!

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 6 years ago

mfath's avatar

updated 6 years ago

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,

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
2

answered 6 years ago

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.

Preview: (hide)
link

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  ( 6 years ago )

@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  ( 6 years ago )

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  ( 6 years ago )

@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  ( 6 years ago )

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: 6 years ago

Seen: 1,394 times

Last updated: Feb 11 '19