lbl-srg / EnergyPlusToFMU

EnergyPlus export as a Functional Mockup Unit for co-simulation
39 stars 17 forks source link

Problem occurs when running on Ubuntu system #64

Open JunMA98 opened 7 months ago

JunMA98 commented 7 months ago

Hello everyone, I am using pyfmi on Ubuntu 22.04 system for a co-simulation of EnergyPlus FMU file with Python, and met this error when trying to create the co-simulation.

Reading input and weather file for preprocessor program. The IDF version of the input file ///tmp/JModelica.org/jm_tmpy7vazvvu//resources//in.idf starts with 22 Successfully finish reading weather file. This is the Begin Month: 1 Time (0) set is smaller than minimun allowed (1 day). Day will be set to 1. This is the Day of the Begin Month: 1 This is the End Month: 1 This is the Day of the End Month: 31 This is the New Day of Week: FRIDAY [INFO][Slave] [ok][FMU status:OK] This version uses the energyplus command line interface to call the EnergyPlus executable. RunEPlus.bat and runenergyplus , which were used in earlier versions, were deprecated as of August 2015. Running EPMacro... terminate called after throwing an instance of 'std::filesystem::__cxx11::filesystem_error' what(): filesystem error: cannot create symlink: File exists [in.epmidf] [in.idf]

It says the files exist, but I am sure there was no such files before running it. I used sudo, so it shouldn't be a permissions issue. I have tried it on Ubuntu 20.04 and Ubuntu 22.04 and always the same error. I tried the same code on Windows but another FMU file, it works well.

Thank you if you have any suggestions.

JunMA98 commented 7 months ago
Reading input and weather file for EnergyPlusToFMU program.
/home/cozybench/Downloads/EnergyPlusToFMU-v3.1.0/SourceCode/v10/EnergyPlus/temp-in.c: In function ‘in_fmiFreeSlaveInstance’:
/home/cozybench/Downloads/EnergyPlusToFMU-v3.1.0/SourceCode/v10/EnergyPlus/temp-in.c:1502:17: warning: implicit declaration of function ‘waitpid’ [-Wimplicit-function-declaration]
 1502 |                 waitpid (_c->pid, &status, 0);
      |   

This is a warning I met when creating fmu file

tsnouidui commented 6 months ago

Did you manage to run the FMU on Ubuntu now?

JunMA98 commented 6 months ago

Did you manage to run the FMU on Ubuntu now?

Hello, no it still doesn't work for me, do you have any suggestions?

tsnouidui commented 6 months ago

Could you explain where and how it fails? Any error/log file generated that you can share?