EnergyPlus FMU error
Hi all,
I'm trying to generate an EnergyPlus FMU using the user guide.
On the command window I have:
C:\~\~\FMU\Scripts\EnergyPlusToFMU.py -i C:\~\~\EnergyPlusV8-5-0\Energy+.idd -w C:\~\~\WeatherDATA\Tampa.epw C:\~\~\var.idf But I am getting an error that reads:
ERROR from script file (utilManageCompilelLink.pyc) Failed to create object file for source code file {C:\~\~\SourceCode\fmu-export-prep\app-cmdlin-input.cpp}
I made sure that the FMU source codes and compiler and linkage is in the environmental variable path.
Seems like python failed to parse a C++ file.
Could someone tell me what I did wrong? Does this have to do with python accessing C++ libraries.
Thanks
Jan Huang
Which C/C++ compiler are you using?
Thank you for your response. I have Visual Studio 2017 installed.
Dr. Nouidui, I've uploaded my FMU to simulink(2017b supports FMU import). The variable.cfg file generated after the simulation invokes the PtolemyServer even though I selected FunctionalMockupUnitExport in the original idf file. The exception thrown is:
* Severe * ExternalInterface: Error, xml file "variables.cfg" declares variable "FMUExport:To:Variable:Name", * ~~~ * but variable was not found in idf file.
The FMUExport:From:Variables didn't seem to have this problem. Even correcting the variables.cfg file the right Extenal Interface, the error persists. Thanks.
Jan Huang