Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register

Tank system simulation

Tank system simulation

Hi,

I'm trying to simulate a simple tank system in OpenModelica. As long as I'm just using tanks and pipes everything works fine, but if I add some other source, like a FixedBoundary or MassFlowSource, I end up with a compilation error. You can recreate the issue by simulating the Modelica.Fluid.Examples.Tanks.TanksWithOverflow example. I'm using OpenModelica v1.17.0 and MSL 4.0.0.

Error:

mingw32-make: *** [Modelica.Fluid.Examples.Tanks.TanksWithOverflow.makefile:37: omc_main_target] Error 127
mingw32-make: Leaving directory 'C:/Users/ERIKBE~1/AppData/Local/Temp/OPENMO~1/OMEdit/MODELI~1.TAN'
Compilation process failed. Exited with code 2.

It seems I can't upload the entire error log here due to some issue (page cannot be found).

Is this due to some known issue/limitation or is something wrong with my setup?

/Erik

Re: Tank system simulation

Just tried this with an earlier version of OpenModelica (1.16.5). Since everything works fine in that version I assume this is a known issue in v.1.17.0. Hope this is fixed in the coming version.

Re: Tank system simulation

We won't be able to tell if it's going to work or not without an example model. OM 1.16.5 allowed a lot of invalid code that has now been resolved in the newer OM versions. In newer versions you can still change to the old frontend for old behaviour, but this will probably disappear in the future.

Re: Tank system simulation

As suggested in the original post, you can reproduce the issue with Modelica.Fluid.Examples.Tanks.TanksWithOverflow. As far as I can see, you get the same issue with most of the examples from Modelica.Fluid in v.1.17.0 that uses any of the Fluid sources (at least on my installation).

The Tank example that I'm working on will be featured in my Modelica Series eventually (https://www.eradity.com/blog/29-modelic … modelica). Once it's published, you can follow the tutorial to reproduce the issue. 

Re: Tank system simulation

So with no changes to Modelica.Fluid.Examples.Tanks.TanksWithOverflow ?

Re: Tank system simulation

Exactly, without any changes. At first I figured something was wrong with my installation, but the problem remains even after reinstalling OM v.1.17.0.

Re: Tank system simulation

Error 127 seems to mean "file not found". Since it only happens for certain models I guess it might be some external function using some resource that OM can't find? The complete compilation log would be very helpful to see.

In our regression testing the model compiles fine, but that's on Linux. Though I see that it doesn't simulate using the new frontend while it works with the old, so that's something we need to look into.

Edited by: sjoelund.se - Jun-21-21 12:09:12

Re: Tank system simulation

Here's the error:

/usr/bin/sh: clang -I. -o Modelica.Fluid.Examples.Tanks.TanksWithOverflow.exe Modelica.Fluid.Examples.Tanks.TanksWithOverflow.o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_functions.o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_records.o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_01exo.o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_02nls.o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_03lsy.o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_04set.o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_05evt.o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_06inz.o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_07dly.o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_08bnd.o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_09alg.o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_10asr.o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_11mix.o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_12jac.o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_13opt.o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_14lnz.o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_15syn.o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_16dae.o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_17inl.o "-IC:/Program Files/OpenModelica1.17.0-64bit/lib/omlibrary/Modelica 4.0.0/Resources/C-Sources" -I"C:/Program Files/OpenModelica1.17.0-64bit/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=Modelica_Fluid_Examples_Tanks_TanksWithOverflow -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=6 -DOMC_NUM_NONLINEAR_SYSTEMS=9 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -L"C:/Program Files/OpenModelica1.17.0-64bit/lib/omlibrary/Modelica 4.0.0/Fluid/Examples"  "-LC:/Program Files/OpenModelica1.17.0-64bit/lib//omc" "-LC:/Program Files/OpenModelica1.17.0-64bit/lib/" "-LC:/Users/ErikÅberg/AppData/Roaming/.openmodelica/binaries/Modelica" "-LC:/Program Files/OpenModelica1.17.0-64bit/lib/omlibrary/Modelica 4.0.0/Resources/Library/mingw64" "-LC:/Program Files/OpenModelica1.17.0-64bit/lib/omlibrary/Modelica 4.0.0/Resources/Library/win64" "-LC:/Program Files/OpenModelica1.17.0-64bit/lib/omlibrary/Modelica 4.0.0/Resources/Library" -lModelicaExternalC  -Os -falign-functions -mstackrealign -msse2 -mfpmath=sse     "-IC:/Program Files/OpenModelica1.17.0-64bit/lib/omlibrary/Modelica 4.0.0/Resources/C-Sources" -I"C:/Program Files/OpenModelica1.17.0-64bit/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=Modelica_Fluid_Examples_Tanks_TanksWithOverflow -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=6 -DOMC_NUM_NONLINEAR_SYSTEMS=9 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -L"C:/Program Files/OpenModelica1.17.0-64bit/lib//omc" -L"C:/Program Files/OpenModelica1.17.0-64bit/lib" -Wl,--stack,16777216,-rpath,"C:/Program Files/OpenModelica1.17.0-64bit/lib//omc" -Wl,-rpath,"C:/Program Files/OpenModelica1.17.0-64bit/lib"  -fopenmp -Wl,-Bstatic -lregex -ltre -lintl -liconv -lexpat -lomcgc -lpthread -loleaut32 -limagehlp -lhdf5 -lz -lszip -Wl,-Bdynamic -Wl,-Bdynamic -lSimulationRuntimeC -Wl,-Bdynamic -Wl,-Bdynamic -lomcgc -lregex -ltre -lintl -liconv -lexpat -static-libgcc -luuid -loleaut32 -lole32 -limagehlp -lws2_32 -llis -lsundials_nvecserial -lsundials_sunmatrixdense -lsundials_sunmatrixsparse -lsundials_sunlinsoldense -lsundials_sunlinsolklu -lsundials_sunlinsollapackdense -lsundials_sunlinsolspbcgs -lsundials_sunlinsolspfgmr -lsundials_sunlinsolspgmr -lsundials_sunlinsolsptfqmr -lsundials_sunnonlinsolnewton -lsundials_cvode -lsundials_cvodes -lsundials_idas -lsundials_kinsol -lumfpack -lklu -lcolamd -lbtf -lamd -lsuitesparseconfig -lipopt -lcoinmumps -lpthread -lm  -lgfortran -lquadmath -lmingw32 -lgcc_eh -lmoldname -lmingwex  -luser32 -lkernel32 -ladvapi32 -lshell32 -lopenblas -lcminpack -Wl,-Bdynamic -lwsock32 -lstdc++ : No such file or directory
mingw32-make: *** [Modelica.Fluid.Examples.Tanks.TanksWithOverflow.makefile:37: omc_main_target] Error 127
mingw32-make: Leaving directory 'C:/OPENMO~1/tmp/MODELI~1.TAN'
Compilation process failed. Exited with code 2.

Re: Tank system simulation

You have a special character in your user name and that's on the path to %TEMP% where we generate the code and compile the executable.
It should work but somehow it doesn't. We know about this bug and we'll try to fix it.
For now, in OMEdit just go to Tools->Options->General and change Working Directory to c:\temp or something like that.

Did it work with 1.16.5 in the same setting with a user with special character?

Edited by: adrpo - Jun-22-21 08:55:03

Re: Tank system simulation

Ah, that alone will not fix it. The problem is with this path given to the C compiler:
"-LC:/Users/ErikÅberg/AppData/Roaming/.openmodelica/binaries/Modelica"
and that comes from the place were we will install libraries when the package manager will be used and we will have a GUI for it.

In previous version including 1.16 we had OPENMODELICALIBRARY environment variable to point to the place where we had the Modelica libraries, basically:
C:\Program Files\OpenModelica1.17.0-64bit\lib\omlibrary\
From 1.17 we don't have OPENMODELICALIBRARY anymore, but is set internally to:
%APPDATA%\.openmodelica;C:\Program Files\OpenModelica1.17.0-64bit\lib\omlibrary\ which is in your case:
C:\Users\ErikÅberg\AppData\Roaming\.openmodelica\;C:\Program Files\OpenModelica1.17.0-64bit\lib\omlibrary\
and that's where this path comes from.

This is a bug, we will need to handle these paths in a better way using short names as if we have special chars in these paths make, gcc and clang will not like it.

To fix even this just define an environment variable OPENMODELICALIBRARY=C:\Program Files\OpenModelica1.17.0-64bit\lib\omlibrary\
and restart OMEdit.

Re: Tank system simulation

I opened a bug report about this: https://github.com/OpenModelica/OpenMod … ssues/7598

Re: Tank system simulation

Unfortunately, it didn't help. I've set the environment variable, and confirmed that it is set correctly from cmd:

C:\OpenModelica\tmp>echo %OPENMODELICALIBRARY%
C:/Program Files/OpenModelica1.17.0-64bit/lib/omlibrary/

Note that I use C:\OpenModelica\tmp as my working directory in OpenModelica (see the error log), so I don't think the issue is related to the working directory. As stated earlier, this examples simulates in OM 1.16.5. I have used OM 1.17.0 for some time now and can confirm that most other examples simulate, so the issue seems to be limited to the Fluid library.

Any other ideas?

Re: Tank system simulation

Here's part of the log when compiling in 1.16.5. As far as I can see, it uses the same path (with special character) as in OM 1.17.0

gcc -I. -o Modelica.Fluid.Examples.Tanks.TanksWithOverflow.exe Modelica.Fluid.Examples.Tanks.TanksWithOverflow.o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_functions.o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_records.o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_01exo.o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_02nls.o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_03lsy.o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_04set.o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_05evt.o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_06inz.o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_07dly.o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_08bnd.o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_09alg.o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_10asr.o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_11mix.o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_12jac.o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_13opt.o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_14lnz.o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_15syn.o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_16dae.o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_17inl.o "-IC:/Program Files/OpenModelica1.16.5-64bit/lib/omlibrary/Modelica 4.0.0/Resources/C-Sources" -I"C:/Program Files/OpenModelica1.16.5-64bit/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=Modelica_Fluid_Examples_Tanks_TanksWithOverflow -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=6 -DOMC_NUM_NONLINEAR_SYSTEMS=9 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -L"C:/Program Files/OpenModelica1.16.5-64bit/lib/omlibrary/Modelica 4.0.0/Fluid/Examples"  "-LC:/Program Files/OpenModelica1.16.5-64bit/lib//omc" "-LC:/Program Files/OpenModelica1.16.5-64bit/lib/" "-LC:/Users/Erik�berg/AppData/Roaming/.openmodelica/binaries/Modelica" "-LC:/Program Files/OpenModelica1.16.5-64bit/lib/omlibrary/Modelica 4.0.0/Resources/Library/mingw64" "-LC:/Program Files/OpenModelica1.16.5-64bit/lib/omlibrary/Modelica 4.0.0/Resources/Library/win64" "-LC:/Program Files/OpenModelica1.16.5-64bit/lib/omlibrary/Modelica 4.0.0/Resources/Library" -lModelicaExternalC  -Os -falign-functions -fno-ipa-pure-const -mstackrealign -msse2 -mfpmath=sse     "-IC:/Program Files/OpenModelica1.16.5-64bit/lib/omlibrary/Modelica 4.0.0/Resources/C-Sources" -I"C:/Program Files/OpenModelica1.16.5-64bit/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=Modelica_Fluid_Examples_Tanks_TanksWithOverflow -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=6 -DOMC_NUM_NONLINEAR_SYSTEMS=9 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -L"C:/Program Files/OpenModelica1.16.5-64bit/lib//omc" -L"C:/Program Files/OpenModelica1.16.5-64bit/lib" -Wl,--stack,16777216,-rpath,"C:/Program Files/OpenModelica1.16.5-64bit/lib//omc" -Wl,-rpath,"C:/Program Files/OpenModelica1.16.5-64bit/lib"   -fopenmp -Wl,-Bstatic -lregex -ltre -lintl -liconv -lexpat -lomcgc -lpthread -loleaut32 -limagehlp -lhdf5 -lz -lszip -Wl,-Bdynamic  -Wl,-Bstatic -lSimulationRuntimeC -Wl,-Bdynamic -Wl,-Bstatic -lomcgc -lregex -ltre -lintl -liconv -lexpat -static-libgcc -luuid -loleaut32 -lole32 -limagehlp -lws2_32 -llis -lumfpack -lklu -lcolamd -lbtf -lamd  -lsundials_idas -lsundials_cvodes -lsundials_kinsol -lsundials_nvecserial -lipopt -lcoinmumps -lpthread -lm -lgfortranbegin -lgfortran -lquadmath -lmingw32 -lgcc_eh -lmoldname -lmingwex -lmsvcrt -luser32 -lkernel32 -ladvapi32 -lshell32 -lopenblas -lcminpack -Wl,-Bdynamic -lwsock32 -Wl,-Bstatic -lstdc++ -Wl,-Bdynamic
mingw32-make: Leaving directory 'C:/OPENMO~1/tmp/MODELI~1.TAN'
Compilation process finished successfully.

Re: Tank system simulation

However, note that the special character looks different in the two logs. Did you by any chance change the character encoding between the two versions?

Re: Tank system simulation

We didn't but we updated msys2 and we use clang as compiler instead of gcc. You could try to change to gcc/g++ in OMEdit, via Tools->Options->Simulation but I have a feeling it won't help.

I will play a bit with it myself on my computer, something strange is going on.


Re: Tank system simulation

Strangely, I cannot reproduce this bug. Can you post the entire compilation log, not just the linking part, from the beginning?

Re: Tank system simulation

I've tried some different compiler settings already (clang/gcc/clang++/g++), but without success.

Here's the entire log:

C:/Program Files/OpenModelica1.17.0-64bit/share/omc/scripts/Compile.bat Modelica.Fluid.Examples.Tanks.TanksWithOverflow gcc mingw64 parallel 4 0
PATH = "C:\PROGRA~1\OPENMO~1.0-6\tools\msys\mingw64\bin;C:\PROGRA~1\OPENMO~1.0-6\tools\msys\mingw64\bin\..\..\usr\bin;"
mingw32-make: Entering directory 'C:/OPENMO~1/tmp/MODELI~1.TAN'
clang  -Os -falign-functions -mstackrealign -msse2 -mfpmath=sse     "-IC:/Program Files/OpenModelica1.17.0-64bit/lib/omlibrary/Modelica 4.0.0/Resources/C-Sources" -I"C:/Program Files/OpenModelica1.17.0-64bit/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=Modelica_Fluid_Examples_Tanks_TanksWithOverflow -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=6 -DOMC_NUM_NONLINEAR_SYSTEMS=9 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0  -c -o Modelica.Fluid.Examples.Tanks.TanksWithOverflow.o Modelica.Fluid.Examples.Tanks.TanksWithOverflow.c
clang  -Os -falign-functions -mstackrealign -msse2 -mfpmath=sse     "-IC:/Program Files/OpenModelica1.17.0-64bit/lib/omlibrary/Modelica 4.0.0/Resources/C-Sources" -I"C:/Program Files/OpenModelica1.17.0-64bit/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=Modelica_Fluid_Examples_Tanks_TanksWithOverflow -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=6 -DOMC_NUM_NONLINEAR_SYSTEMS=9 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0  -c -o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_functions.o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_functions.c
clang  -Os -falign-functions -mstackrealign -msse2 -mfpmath=sse     "-IC:/Program Files/OpenModelica1.17.0-64bit/lib/omlibrary/Modelica 4.0.0/Resources/C-Sources" -I"C:/Program Files/OpenModelica1.17.0-64bit/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=Modelica_Fluid_Examples_Tanks_TanksWithOverflow -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=6 -DOMC_NUM_NONLINEAR_SYSTEMS=9 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0  -c -o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_records.o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_records.c
clang  -Os -falign-functions -mstackrealign -msse2 -mfpmath=sse     "-IC:/Program Files/OpenModelica1.17.0-64bit/lib/omlibrary/Modelica 4.0.0/Resources/C-Sources" -I"C:/Program Files/OpenModelica1.17.0-64bit/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=Modelica_Fluid_Examples_Tanks_TanksWithOverflow -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=6 -DOMC_NUM_NONLINEAR_SYSTEMS=9 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0  -c -o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_01exo.o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_01exo.c
clang  -Os -falign-functions -mstackrealign -msse2 -mfpmath=sse     "-IC:/Program Files/OpenModelica1.17.0-64bit/lib/omlibrary/Modelica 4.0.0/Resources/C-Sources" -I"C:/Program Files/OpenModelica1.17.0-64bit/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=Modelica_Fluid_Examples_Tanks_TanksWithOverflow -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=6 -DOMC_NUM_NONLINEAR_SYSTEMS=9 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0  -c -o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_02nls.o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_02nls.c
clang  -Os -falign-functions -mstackrealign -msse2 -mfpmath=sse     "-IC:/Program Files/OpenModelica1.17.0-64bit/lib/omlibrary/Modelica 4.0.0/Resources/C-Sources" -I"C:/Program Files/OpenModelica1.17.0-64bit/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=Modelica_Fluid_Examples_Tanks_TanksWithOverflow -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=6 -DOMC_NUM_NONLINEAR_SYSTEMS=9 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0  -c -o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_03lsy.o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_03lsy.c
clang  -Os -falign-functions -mstackrealign -msse2 -mfpmath=sse     "-IC:/Program Files/OpenModelica1.17.0-64bit/lib/omlibrary/Modelica 4.0.0/Resources/C-Sources" -I"C:/Program Files/OpenModelica1.17.0-64bit/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=Modelica_Fluid_Examples_Tanks_TanksWithOverflow -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=6 -DOMC_NUM_NONLINEAR_SYSTEMS=9 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0  -c -o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_04set.o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_04set.c
clang  -Os -falign-functions -mstackrealign -msse2 -mfpmath=sse     "-IC:/Program Files/OpenModelica1.17.0-64bit/lib/omlibrary/Modelica 4.0.0/Resources/C-Sources" -I"C:/Program Files/OpenModelica1.17.0-64bit/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=Modelica_Fluid_Examples_Tanks_TanksWithOverflow -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=6 -DOMC_NUM_NONLINEAR_SYSTEMS=9 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0  -c -o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_05evt.o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_05evt.c
clang  -Os -falign-functions -mstackrealign -msse2 -mfpmath=sse     "-IC:/Program Files/OpenModelica1.17.0-64bit/lib/omlibrary/Modelica 4.0.0/Resources/C-Sources" -I"C:/Program Files/OpenModelica1.17.0-64bit/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=Modelica_Fluid_Examples_Tanks_TanksWithOverflow -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=6 -DOMC_NUM_NONLINEAR_SYSTEMS=9 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0  -c -o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_06inz.o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_06inz.c
clang  -Os -falign-functions -mstackrealign -msse2 -mfpmath=sse     "-IC:/Program Files/OpenModelica1.17.0-64bit/lib/omlibrary/Modelica 4.0.0/Resources/C-Sources" -I"C:/Program Files/OpenModelica1.17.0-64bit/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=Modelica_Fluid_Examples_Tanks_TanksWithOverflow -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=6 -DOMC_NUM_NONLINEAR_SYSTEMS=9 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0  -c -o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_07dly.o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_07dly.c
clang  -Os -falign-functions -mstackrealign -msse2 -mfpmath=sse     "-IC:/Program Files/OpenModelica1.17.0-64bit/lib/omlibrary/Modelica 4.0.0/Resources/C-Sources" -I"C:/Program Files/OpenModelica1.17.0-64bit/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=Modelica_Fluid_Examples_Tanks_TanksWithOverflow -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=6 -DOMC_NUM_NONLINEAR_SYSTEMS=9 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0  -c -o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_08bnd.o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_08bnd.c
clang  -Os -falign-functions -mstackrealign -msse2 -mfpmath=sse     "-IC:/Program Files/OpenModelica1.17.0-64bit/lib/omlibrary/Modelica 4.0.0/Resources/C-Sources" -I"C:/Program Files/OpenModelica1.17.0-64bit/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=Modelica_Fluid_Examples_Tanks_TanksWithOverflow -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=6 -DOMC_NUM_NONLINEAR_SYSTEMS=9 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0  -c -o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_09alg.o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_09alg.c
clang  -Os -falign-functions -mstackrealign -msse2 -mfpmath=sse     "-IC:/Program Files/OpenModelica1.17.0-64bit/lib/omlibrary/Modelica 4.0.0/Resources/C-Sources" -I"C:/Program Files/OpenModelica1.17.0-64bit/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=Modelica_Fluid_Examples_Tanks_TanksWithOverflow -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=6 -DOMC_NUM_NONLINEAR_SYSTEMS=9 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0  -c -o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_10asr.o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_10asr.c
clang  -Os -falign-functions -mstackrealign -msse2 -mfpmath=sse     "-IC:/Program Files/OpenModelica1.17.0-64bit/lib/omlibrary/Modelica 4.0.0/Resources/C-Sources" -I"C:/Program Files/OpenModelica1.17.0-64bit/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=Modelica_Fluid_Examples_Tanks_TanksWithOverflow -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=6 -DOMC_NUM_NONLINEAR_SYSTEMS=9 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0  -c -o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_11mix.o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_11mix.c
clang  -Os -falign-functions -mstackrealign -msse2 -mfpmath=sse     "-IC:/Program Files/OpenModelica1.17.0-64bit/lib/omlibrary/Modelica 4.0.0/Resources/C-Sources" -I"C:/Program Files/OpenModelica1.17.0-64bit/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=Modelica_Fluid_Examples_Tanks_TanksWithOverflow -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=6 -DOMC_NUM_NONLINEAR_SYSTEMS=9 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0  -c -o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_12jac.o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_12jac.c
clang  -Os -falign-functions -mstackrealign -msse2 -mfpmath=sse     "-IC:/Program Files/OpenModelica1.17.0-64bit/lib/omlibrary/Modelica 4.0.0/Resources/C-Sources" -I"C:/Program Files/OpenModelica1.17.0-64bit/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=Modelica_Fluid_Examples_Tanks_TanksWithOverflow -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=6 -DOMC_NUM_NONLINEAR_SYSTEMS=9 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0  -c -o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_13opt.o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_13opt.c
clang  -Os -falign-functions -mstackrealign -msse2 -mfpmath=sse     "-IC:/Program Files/OpenModelica1.17.0-64bit/lib/omlibrary/Modelica 4.0.0/Resources/C-Sources" -I"C:/Program Files/OpenModelica1.17.0-64bit/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=Modelica_Fluid_Examples_Tanks_TanksWithOverflow -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=6 -DOMC_NUM_NONLINEAR_SYSTEMS=9 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0  -c -o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_14lnz.o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_14lnz.c
clang  -Os -falign-functions -mstackrealign -msse2 -mfpmath=sse     "-IC:/Program Files/OpenModelica1.17.0-64bit/lib/omlibrary/Modelica 4.0.0/Resources/C-Sources" -I"C:/Program Files/OpenModelica1.17.0-64bit/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=Modelica_Fluid_Examples_Tanks_TanksWithOverflow -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=6 -DOMC_NUM_NONLINEAR_SYSTEMS=9 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0  -c -o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_15syn.o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_15syn.c
clang  -Os -falign-functions -mstackrealign -msse2 -mfpmath=sse     "-IC:/Program Files/OpenModelica1.17.0-64bit/lib/omlibrary/Modelica 4.0.0/Resources/C-Sources" -I"C:/Program Files/OpenModelica1.17.0-64bit/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=Modelica_Fluid_Examples_Tanks_TanksWithOverflow -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=6 -DOMC_NUM_NONLINEAR_SYSTEMS=9 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0  -c -o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_16dae.o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_16dae.c
clang  -Os -falign-functions -mstackrealign -msse2 -mfpmath=sse     "-IC:/Program Files/OpenModelica1.17.0-64bit/lib/omlibrary/Modelica 4.0.0/Resources/C-Sources" -I"C:/Program Files/OpenModelica1.17.0-64bit/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=Modelica_Fluid_Examples_Tanks_TanksWithOverflow -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=6 -DOMC_NUM_NONLINEAR_SYSTEMS=9 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0  -c -o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_17inl.o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_17inl.c
clang -I. -o Modelica.Fluid.Examples.Tanks.TanksWithOverflow.exe Modelica.Fluid.Examples.Tanks.TanksWithOverflow.o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_functions.o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_records.o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_01exo.o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_02nls.o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_03lsy.o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_04set.o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_05evt.o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_06inz.o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_07dly.o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_08bnd.o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_09alg.o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_10asr.o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_11mix.o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_12jac.o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_13opt.o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_14lnz.o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_15syn.o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_16dae.o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_17inl.o "-IC:/Program Files/OpenModelica1.17.0-64bit/lib/omlibrary/Modelica 4.0.0/Resources/C-Sources" -I"C:/Program Files/OpenModelica1.17.0-64bit/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=Modelica_Fluid_Examples_Tanks_TanksWithOverflow -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=6 -DOMC_NUM_NONLINEAR_SYSTEMS=9 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -L"C:/Program Files/OpenModelica1.17.0-64bit/lib/omlibrary/Modelica 4.0.0/Fluid/Examples"  "-LC:/Program Files/OpenModelica1.17.0-64bit/lib//omc" "-LC:/Program Files/OpenModelica1.17.0-64bit/lib/" "-LC:/Users/Erik�berg/AppData/Roaming/.openmodelica/binaries/Modelica" "-LC:/Program Files/OpenModelica1.17.0-64bit/lib/omlibrary/Modelica 4.0.0/Resources/Library/mingw64" "-LC:/Program Files/OpenModelica1.17.0-64bit/lib/omlibrary/Modelica 4.0.0/Resources/Library/win64" "-LC:/Program Files/OpenModelica1.17.0-64bit/lib/omlibrary/Modelica 4.0.0/Resources/Library" -lModelicaExternalC  -Os -falign-functions -mstackrealign -msse2 -mfpmath=sse     "-IC:/Program Files/OpenModelica1.17.0-64bit/lib/omlibrary/Modelica 4.0.0/Resources/C-Sources" -I"C:/Program Files/OpenModelica1.17.0-64bit/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=Modelica_Fluid_Examples_Tanks_TanksWithOverflow -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=6 -DOMC_NUM_NONLINEAR_SYSTEMS=9 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -L"C:/Program Files/OpenModelica1.17.0-64bit/lib//omc" -L"C:/Program Files/OpenModelica1.17.0-64bit/lib" -Wl,--stack,16777216,-rpath,"C:/Program Files/OpenModelica1.17.0-64bit/lib//omc" -Wl,-rpath,"C:/Program Files/OpenModelica1.17.0-64bit/lib"  -fopenmp -Wl,-Bstatic -lregex -ltre -lintl -liconv -lexpat -lomcgc -lpthread -loleaut32 -limagehlp -lhdf5 -lz -lszip -Wl,-Bdynamic -Wl,-Bdynamic -lSimulationRuntimeC -Wl,-Bdynamic -Wl,-Bdynamic -lomcgc -lregex -ltre -lintl -liconv -lexpat -static-libgcc -luuid -loleaut32 -lole32 -limagehlp -lws2_32 -llis -lsundials_nvecserial -lsundials_sunmatrixdense -lsundials_sunmatrixsparse -lsundials_sunlinsoldense -lsundials_sunlinsolklu -lsundials_sunlinsollapackdense -lsundials_sunlinsolspbcgs -lsundials_sunlinsolspfgmr -lsundials_sunlinsolspgmr -lsundials_sunlinsolsptfqmr -lsundials_sunnonlinsolnewton -lsundials_cvode -lsundials_cvodes -lsundials_idas -lsundials_kinsol -lumfpack -lklu -lcolamd -lbtf -lamd -lsuitesparseconfig -lipopt -lcoinmumps -lpthread -lm  -lgfortran -lquadmath -lmingw32 -lgcc_eh -lmoldname -lmingwex  -luser32 -lkernel32 -ladvapi32 -lshell32 -lopenblas -lcminpack -Wl,-Bdynamic -lwsock32 -lstdc++
/usr/bin/sh: clang -I. -o Modelica.Fluid.Examples.Tanks.TanksWithOverflow.exe Modelica.Fluid.Examples.Tanks.TanksWithOverflow.o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_functions.o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_records.o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_01exo.o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_02nls.o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_03lsy.o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_04set.o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_05evt.o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_06inz.o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_07dly.o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_08bnd.o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_09alg.o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_10asr.o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_11mix.o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_12jac.o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_13opt.o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_14lnz.o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_15syn.o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_16dae.o Modelica.Fluid.Examples.Tanks.TanksWithOverflow_17inl.o "-IC:/Program Files/OpenModelica1.17.0-64bit/lib/omlibrary/Modelica 4.0.0/Resources/C-Sources" -I"C:/Program Files/OpenModelica1.17.0-64bit/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=Modelica_Fluid_Examples_Tanks_TanksWithOverflow -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=6 -DOMC_NUM_NONLINEAR_SYSTEMS=9 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -L"C:/Program Files/OpenModelica1.17.0-64bit/lib/omlibrary/Modelica 4.0.0/Fluid/Examples"  "-LC:/Program Files/OpenModelica1.17.0-64bit/lib//omc" "-LC:/Program Files/OpenModelica1.17.0-64bit/lib/" "-LC:/Users/ErikÅberg/AppData/Roaming/.openmodelica/binaries/Modelica" "-LC:/Program Files/OpenModelica1.17.0-64bit/lib/omlibrary/Modelica 4.0.0/Resources/Library/mingw64" "-LC:/Program Files/OpenModelica1.17.0-64bit/lib/omlibrary/Modelica 4.0.0/Resources/Library/win64" "-LC:/Program Files/OpenModelica1.17.0-64bit/lib/omlibrary/Modelica 4.0.0/Resources/Library" -lModelicaExternalC  -Os -falign-functions -mstackrealign -msse2 -mfpmath=sse     "-IC:/Program Files/OpenModelica1.17.0-64bit/lib/omlibrary/Modelica 4.0.0/Resources/C-Sources" -I"C:/Program Files/OpenModelica1.17.0-64bit/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=Modelica_Fluid_Examples_Tanks_TanksWithOverflow -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=6 -DOMC_NUM_NONLINEAR_SYSTEMS=9 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -L"C:/Program Files/OpenModelica1.17.0-64bit/lib//omc" -L"C:/Program Files/OpenModelica1.17.0-64bit/lib" -Wl,--stack,16777216,-rpath,"C:/Program Files/OpenModelica1.17.0-64bit/lib//omc" -Wl,-rpath,"C:/Program Files/OpenModelica1.17.0-64bit/lib"  -fopenmp -Wl,-Bstatic -lregex -ltre -lintl -liconv -lexpat -lomcgc -lpthread -loleaut32 -limagehlp -lhdf5 -lz -lszip -Wl,-Bdynamic -Wl,-Bdynamic -lSimulationRuntimeC -Wl,-Bdynamic -Wl,-Bdynamic -lomcgc -lregex -ltre -lintl -liconv -lexpat -static-libgcc -luuid -loleaut32 -lole32 -limagehlp -lws2_32 -llis -lsundials_nvecserial -lsundials_sunmatrixdense -lsundials_sunmatrixsparse -lsundials_sunlinsoldense -lsundials_sunlinsolklu -lsundials_sunlinsollapackdense -lsundials_sunlinsolspbcgs -lsundials_sunlinsolspfgmr -lsundials_sunlinsolspgmr -lsundials_sunlinsolsptfqmr -lsundials_sunnonlinsolnewton -lsundials_cvode -lsundials_cvodes -lsundials_idas -lsundials_kinsol -lumfpack -lklu -lcolamd -lbtf -lamd -lsuitesparseconfig -lipopt -lcoinmumps -lpthread -lm  -lgfortran -lquadmath -lmingw32 -lgcc_eh -lmoldname -lmingwex  -luser32 -lkernel32 -ladvapi32 -lshell32 -lopenblas -lcminpack -Wl,-Bdynamic -lwsock32 -lstdc++ : No such file or directory
mingw32-make: *** [Modelica.Fluid.Examples.Tanks.TanksWithOverflow.makefile:37: omc_main_target] Error 127
mingw32-make: Leaving directory 'C:/OPENMO~1/tmp/MODELI~1.TAN'
Compilation process failed. Exited with code 2.

Edited by: eaberg - Jun-22-21 19:37:10

Re: Tank system simulation

Ok. I can reproduce this. Now I need to debug why it happens.

One thing you can try is to edit file:
C:/Program Files/OpenModelica1.17.0-64bit/share/omc/scripts/Compile.bat
and change all occurrences of "mingw32-make" to "make".

Re: Tank system simulation

OK. I changed the following line:

if %LOGGING%==1 ("%MinGW%\bin\mingw32-make" -w -f %1.makefile %ADDITIONAL_ARGS%  >> %1.log 2>&1) else ("%MinGW%\bin\mingw32-make" -w -f %1.makefile %ADDITIONAL_ARGS%)

to

if %LOGGING%==1 ("C:\Program Files\OpenModelica1.17.0-64bit\tools\msys\usr\bin\make" -w -f %1.makefile %ADDITIONAL_ARGS%  >> %1.log 2>&1) else ("C:\Program Files\OpenModelica1.17.0-64bit\tools\msys\usr\bin\make" -w -f %1.makefile %ADDITIONAL_ARGS%)

Now it simulates!

Re: Tank system simulation

Nice! Victory current/smile

I'll find out why it doesn't work with mingw32-make.

There are 0 guests and 0 other users also viewing this topic