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

compilation fail in OpenModelica of PhotovoltaicCoolingSystem example #151

Closed
GlennCeusters opened this issue Jan 17, 2020 · 4 comments
Closed

Comments

@GlennCeusters
Copy link

Hi Guys,

I've been trying to run the PhotovoltaicCoolingSystems example in the latest stable OpenModelica (1.14.1) but the compilation fails (using gcc). With the other, more simple, examples I experience no issues. Any idea what can be the problem? Many thanks for your help!

<builtin>: recipe for target 'BuildingSystems.Applications.AirConditioningSystems.PhotovoltaicCoolingSystem_06inz.o' failed mingw32-make: *** [BuildingSystems.Applications.AirConditioningSystems.PhotovoltaicCoolingSystem_06inz.o] Error 1 mingw32-make: *** Waiting for unfinished jobs.... mingw32-make: Leaving directory 'C:/Users/BEGLCEU/AppData/Local/Temp/OPENMO~1/OMEdit/BUILDI~2.PHO' Compilation process failed. Exited with code 2.

the error message is to long, so I've attached it as a file.
compulation log.txt

@thorade
Copy link
Contributor

thorade commented Jan 17, 2020

Hi,
not an answer to your question, but you might be interested to also look at the other tickets with OpenModelica label:
OpenModelica

As mentioned in #81 OpenModelica runs continuous tests on the BuildingSystems library,
so you can also see the compilation/simulation/error log online, search for the model name here:
https://libraries.openmodelica.org/branches/master/BuildingSystems/BuildingSystems.html
https://libraries.openmodelica.org/branches/newInst/BuildingSystems/BuildingSystems.html

As you mention gcc: Does it work with Visual Studio?

@GlennCeusters
Copy link
Author

GlennCeusters commented Jan 17, 2020

Hi and thanks for your reply,

First of, sorry for the closed and reopening - an honest miss click :)

As far as I can tell it should work (or at least compile).

I'm using MinGW.

@adrpo
Copy link

adrpo commented Jan 17, 2020

OpenModelica 1.14.1 has the new front-end on by default in OMEdit. It seems that is the issue.
You can select the old frontend via: Tools->Options->Simulation->Enable old frontend for code generation. This is the log when running with the new front-end: https://libraries.openmodelica.org/branches/newInst/BuildingSystems/files/BuildingSystems_BuildingSystems.Applications.AirConditioningSystems.PhotovoltaicCoolingSystem.err

@GlennCeusters
Copy link
Author

This solved the problem indeed (strange because usually we get a pop-up warning if this might be the issue, which I was not getting now).

Many thanks for your fast reply!

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

No branches or pull requests

3 participants