Open NielsenTLK opened 8 months ago
Maybe the lines are too long. This did solve the second issue, see https://github.com/OpenModelica/OpenModelica/issues/12098.
How to reproduce these issues with OpenModelica v1.23.0-dev-371-g513f0747be-cmake:
test_1.mos
loadFile("D:\\path\\to\\ClaRa-official\\SMArtIInt\\SMArtIInt\\package.mo"); getErrorString(); // @ b06a37677de30cd23e7218466a146c7361d59c6c
loadFile("D:\\path\\to\\ClaRa-official\\TILMediaClaRa\\TILMedia\\package.mo"); getErrorString(); // @ 010603eb27287ce477b3902926296ee9b305af50
loadFile("D:\\path\\to\\ClaRa-official\\ClaRa\\package.mo"); getErrorString(); // @ ad29a131efda43f804c2716fc6da43e45b747ada
cd("test_1"); getErrorString();
buildModel(ClaRa.Examples.SteamPowerPlant_01_OM); getErrorString();
Start a OpenModelica Command Prompt from OMEdit (Tools->OpenModelica Command Prompt)
> cd path\to\test\dir
> mkdir test_1
> omc test_1.mos
Same for the second issue you posted, You might want to open a separate issue (one problem = one issue).
test_2.mos
loadFile("D:\\path\\to\\ClaRa-official\\SMArtIInt\\SMArtIInt\\package.mo"); getErrorString(); // @ b06a37677de30cd23e7218466a146c7361d59c6c
loadFile("D:\\path\\to\\ClaRa-official\\TILMediaClaRa\\TILMedia\\package.mo"); getErrorString(); // @ 010603eb27287ce477b3902926296ee9b305af50
loadFile("D:\\path\\to\\ClaRa-official\\ClaRa\\package.mo"); getErrorString(); // @ ad29a131efda43f804c2716fc6da43e45b747ada
cd("test_2"); getErrorString();
buildModel(ClaRa.Examples.SteamPowerPlant_01_OM_furnace); getErrorString();
> cd path\to\test\dir
> mkdir test_2
> omc test_2.mos
@NielsenTLK for now you can set compiler flag --equationsPerFile=2000
to get around the
sh: -c: line 1: unexpected EOF while looking for matching `"'
error. Solving this in OpenModelica will need some time and maybe switching to CMake for generated C code generation, see https://github.com/OpenModelica/OpenModelica/issues/12098.
The model does not work in the related branch: SteamPowerPlant_01_bugfix
The model splitted into furnace and steam side is working:
But combined:
It throws different error msgs:
C:/PROGRA~1/OPENMO~1.0-D/tools/msys/ucrt64/bin/ld: cannot find -lol: No such file or directory clang: error: linker command failed with exit code 1 (use -v to see invocation) mingw32-make: *** [SteamPowerPlant_01_OM.makefile:168: omc_main_target] Error 1 mingw32-make: Leaving directory 'C:/Users/Nielsen/AppData/Local/Temp/OPENMO~1/OMEdit/CLARAE~2.STE' Compilation process failed. Exited with code 0x00000002.
/c/PROGRA~1/OPENMO~1.0-D/tools/msys/usr/bin/sh: -c: line 1: unexpected EOF while looking for matching `"' mingw32-make: *** [SteamPowerPlant_01_OM_furnaceSteam.makefile:173: omc_main_target] Error 2 mingw32-make: Leaving directory 'C:/Users/Nielsen/AppData/Local/Temp/OPENMO~1/OMEdit/CL14FA~1.STE' Compilation process failed. Exited with code 0x00000002.