- Index
- » Users
- » eaberg
- » Profile
Posts
Posts
Thanks! True. So I guess you need to update the Bitmap tool in OMEdit to make sure bitmaps are stored with correct orientation in future versions.
Here's a model that shows the issue:
model iconTest
equation
annotation(
Icon(graphics = {Bitmap(extent = {{-100, 100}, {100, -100}}, imageSource = "/9j/4AAQSkZJRgABAQIAJQAlAAD/4QhoRXhpZgAASUkqAAgAAAAGABoBBQABAAAAVgAAABsBBQABAAAAXgAAACgBAwABAAAAAwAAADEBAgANAAAAZgAAADIBAgAUAAAAdAAAAGmHBAABAAAAiAAAAJoAAADOAgAAEwAAAM4CAAATAAAAR0lNUCAyLjEwLjIwAAAyMDIxOjEwOjE0IDE1OjE4OjEwAAEAAaADAAEAAAABAAAAAAAAAAgAAAEEAAEAAAAAAQAAAQEEAAEAAAAAAQAAAgEDAAMAAAAAAQAAAwEDAAEAAAAGAAAABgEDAAEAAAAGAAAAFQEDAAEAAAADAAAAAQIEAAEAAAAGAQAAAgIEAAEAAABZBwAAAAAAAAgACAAIAP/Y/+AAEEpGSUYAAQEAAAEAAQAA/9sAQwAIBgYHBgUIBwcHCQkICgwUDQwLCwwZEhMPFB0aHx4dGhwcICQuJyAiLCMcHCg3KSwwMTQ0NB8nOT04MjwuMzQy/9sAQwEJCQkMCwwYDQ0YMiEcITIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIy/8AAEQgBAAEAAwEiAAIRAQMRAf/EAB8AAAEFAQEBAQEBAAAAAAAAAAABAgMEBQYHCAkKC//EALUQAAIBAwMCBAMFBQQEAAABfQECAwAEEQUSITFBBhNRYQcicRQygZGhCCNCscEVUtHwJDNicoIJChYXGBkaJSYnKCkqNDU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6g4SFhoeIiYqSk5SVlpeYmZqio6Slpqeoqaqys7S1tre4ubrCw8TFxsfIycrS09TV1tfY2drh4uPk5ebn6Onq8fLz9PX29/j5+v/EAB8BAAMBAQEBAQEBAQEAAAAAAAABAgMEBQYHCAkKC//EALURAAIBAgQEAwQHBQQEAAECdwABAgMRBAUhMQYSQVEHYXETIjKBCBRCkaGxwQkjM1LwFWJy0QoWJDThJfEXGBkaJicoKSo1Njc4OTpDREVGR0hJSlNUVVZXWFlaY2RlZmdoaWpzdHV2d3h5eoKDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uLj5OXm5+jp6vLz9PX29/j5+v/aAAwDAQACEQMRAD8A9/ooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiqVAF2isekoA2aKyK0aAJqKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAoornqANmuKrlq9GoA84rWr1GigDhKsV2dFAHndZNetUUAeP13ddBXKUAddTq8cr1ugCxRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFU6AMmuLqjXsFABUlFFABRRRQAUUUUAFFFFABRRRQBn15XXslZtAFqrFeQ169QAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFeWV6bXldAHo9adFFABRRTaAHUVylcrQB6rRXn9dxQBYooooAKKKKACiiigDgq3a1680oA9UooooAKKKKACiiigAooooAKKKKACiiigAooooA56supq0KAN+iiigArymu5rm6ANGpK6yuIoA5yqNfNFfUlAHqNWq8wr0+gAooooAKKya82oA9frxmvTa4ygD0ulplPoAKKKKACiiigAooooAKKKKACiiigAooooA5CtOqNMoA62iiigDiazq62vM6AL1RV4pXq1AHTVtV2VY9AHl1e015tXpNABRRRQB5lW7W/XBUAQ1drs6fQAVo15TXq1ABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFAGdXD16RXj1AHsVFNp1ABXm9ekUlAHkdaVdTXK0AdLXn1dlXY0AR1ZoooAKKKKACiiigAooooA87rqK1K8ioA9lopKWgAooooAKKKKACiiigAooooAKKKKACufroKKAPKa9NqhXDUAeo0V4lSUAe3UV4jRQB7dRXiNPoA9rorzmvQqAJKKKKACiiigAoorhqAO5rgK5SpqAPTa16gqegAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKzKhoA2aKxqKANmisaloAqVhV6BXmFAHp9FFFABRRRQAV5tXpNebUAdzWhWdWjQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFAHPVVrq6KAOUorq6KAOUpa6qigArymvVq8hoA9eorma6WgBaKKKACvNq9JrzCgDvq0aq1aoAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigDh6y69MooA8zor0yigDzOn16TRQAlNp9FAHE1ydexUlAHnldfUdcxQBu1wtdTXX0AS0UUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQBkVBRVagCzRVaigCzS1VpaAOmooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooA//2QD/4gKwSUNDX1BST0ZJTEUAAQEAAAKgbGNtcwQwAABtbnRyUkdCIFhZWiAH5QAKAA4ADQARAARhY3NwTVNGVAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA9tYAAQAAAADTLWxjbXMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA1kZXNjAAABIAAAAEBjcHJ0AAABYAAAADZ3dHB0AAABmAAAABRjaGFkAAABrAAAACxyWFlaAAAB2AAAABRiWFlaAAAB7AAAABRnWFlaAAACAAAAABRyVFJDAAACFAAAACBnVFJDAAACFAAAACBiVFJDAAACFAAAACBjaHJtAAACNAAAACRkbW5kAAACWAAAACRkbWRkAAACfAAAACRtbHVjAAAAAAAAAAEAAAAMZW5VUwAAACQAAAAcAEcASQBNAFAAIABiAHUAaQBsAHQALQBpAG4AIABzAFIARwBCbWx1YwAAAAAAAAABAAAADGVuVVMAAAAaAAAAHABQAHUAYgBsAGkAYwAgAEQAbwBtAGEAaQBuAABYWVogAAAAAAAA9tYAAQAAAADTLXNmMzIAAAAAAAEMQgAABd7///MlAAAHkwAA/ZD///uh///9ogAAA9wAAMBuWFlaIAAAAAAAAG+gAAA49QAAA5BYWVogAAAAAAAAJJ8AAA+EAAC2xFhZWiAAAAAAAABilwAAt4cAABjZcGFyYQAAAAAAAwAAAAJmZgAA8qcAAA1ZAAAT0AAACltjaHJtAAAAAAADAAAAAKPXAABUfAAATM0AAJmaAAAmZwAAD1xtbHVjAAAAAAAAAAEAAAAMZW5VUwAAAAgAAAAcAEcASQBNAFBtbHVjAAAAAAAAAAEAAAAMZW5VUwAAAAgAAAAcAHMAUgBHAEL/2wBDAAMCAgMCAgMDAwMEAwMEBQgFBQQEBQoHBwYIDAoMDAsKCwsNDhIQDQ4RDgsLEBYQERMUFRUVDA8XGBYUGBIUFRT/2wBDAQMEBAUEBQkFBQkUDQsNFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBT/wgARCAAgACADAREAAhEBAxEB/8QAGQAAAgMBAAAAAAAAAAAAAAAABAUCAwYI/8QAFAEBAAAAAAAAAAAAAAAAAAAAAP/aAAwDAQACEAMQAAAB6pAyQUCGcGA8IGfGhaGC4uCz/8QAGxAAAwEBAAMAAAAAAAAAAAAAAgMEAQAFFBX/2gAIAQEAAQUC4q1ia6QaXVHoT2+U+a2ykSlEsMWLxq6ZmMZlO+nIrUo50YuYyVLS7//EABQRAQAAAAAAAAAAAAAAAAAAAED/2gAIAQMBAT8BB//EABQRAQAAAAAAAAAAAAAAAAAAAED/2gAIAQIBAT8BB//EACQQAAEDAwMEAwAAAAAAAAAAAAECERIAAyEEEDEiQVGBMlLC/9oACAEBAAY/AqKRJahzBJLVEOFfVQY7LKSymwfFW9Lp7Qu3cNafqUO59ck1aWlCpqE7eOC1BQLg5BpSFfFQY0JwuRwFHTk/qrlzEkSfw4oJJkecBhtIhHu2DUlWwT3Pnb//xAAgEAEAAQQCAgMAAAAAAAAAAAABEQAhMVFBYRBxgZHB/9oACAEBAAE/IaxBAPQlLHzTRIcy4tw5O/GL1NhsNZhAyk2p4HIc2WmGbZvuifeHpeJoAQoGEq9siDTUpHEik0oB9RHVWDjkHJT8oJcjgEswEsBO/Chldz9tKFUiDDTs6fH/2gAMAwEAAgADAAAAEIJIIIBIJP/EABQRAQAAAAAAAAAAAAAAAAAAAED/2gAIAQMBAT8QB//EABQRAQAAAAAAAAAAAAAAAAAAAED/2gAIAQIBAT8QB//EAB4QAQEAAwADAAMAAAAAAAAAAAERACExEEFRYYGh/9oACAEBAAE/EMoU0OuDEViMQx5h56r/ABBAiChFK98FM2uCKpHsUf1gSIHe1cgooUsaCfTysmjnYBkVdGEHaWjUFEfYmGyhpRhGJx33Gm/hPNjq1sNnDqV62lWugtzoJv3m1/E4XDE0AVA1CBhCIC6iT6OCx9qEvj/YPx4//9k=")}));
end iconTest;
Hi,
There seems to be some issue with using Bitmaps in Icons in version 1.18.0 of OpenModelica. The image is loaded correctly and stored in the model, but it is flipped both horizontally and vertically. This used to work in earlier versions.
Is there some way around this issue?
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!
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.
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?
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.
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?
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.
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.
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.
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.
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
- Index
- » Users
- » eaberg
- » Profile