Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem occurs when running on Ubuntu system #64

Open
JunMA98 opened this issue Jan 6, 2024 · 4 comments
Open

Problem occurs when running on Ubuntu system #64

JunMA98 opened this issue Jan 6, 2024 · 4 comments

Comments

@JunMA98
Copy link

JunMA98 commented Jan 6, 2024

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
Copy link
Author

JunMA98 commented Jan 11, 2024

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
Copy link
Member

Did you manage to run the FMU on Ubuntu now?

@JunMA98
Copy link
Author

JunMA98 commented Jan 26, 2024

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
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants