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

Error when simulation example

Error when simulation example

Hello,

I wnat to simulate the AIMC_DOL-example and I got the following messages:

[:0:0-0:0] Error: Duplicate modification of element  {start  = (typed)100 DAE.PROP(Integer, C_CONST), value: 100}  and  = (typed)100.0 DAE.PROP(Real(min = 1e-060, quantity = "ElectricCurrent", unit = "A"), C_CONST), value: 100.0 on component IRef.
[C:\OpenModelica1.9.1Beta2\lib\omlibrary\Modelica 3.2.1\Electrical\Machines.mo:13317:7-13319:41] Error: Variable aimc.strayLoadParameters: Duplicate modification of element  {start  = (typed)100 DAE.PROP(Integer, C_CONST), value: 100}  and  = (typed)100.0 DAE.PROP(Real(min = 1e-060, quantity = "ElectricCurrent", unit = "A"), C_CONST), value: 100.0 on component IRef.
[C:\OpenModelica1.9.1Beta2\lib\omlibrary\Modelica 3.2.1\Electrical\Machines.mo:13311:7-13316:41] Error: Variable aimc.statorCoreParameters: Duplicate modification of element final  = (typed)3 DAE.PROP(Integer, C_CONST), value: 3 and  = (typed)3 DAE.PROP(Integer, C_CONST), value: 3 on component m.
[C:\OpenModelica1.9.1Beta2\lib\omlibrary\Modelica 3.2.1\Electrical\Machines.mo:13311:7-13316:41] Error: Variable aimc.statorCoreParameters: Duplicate modification of element  {start  = (typed)100 DAE.PROP(Integer, C_CONST), value: 100}  and  = (typed)100.0 DAE.PROP(Real(min = 1e-060, quantity = "ElectricPotential", unit = "V"), C_CONST), value: 100.0 on component VRef.
[:0:0-0:0] Error: Duplicate modification of element  {start  = (typed)100 DAE.PROP(Integer, C_CONST), value: 100}  and  = (typed)100.0 DAE.PROP(Real(min = 1e-060, quantity = "ElectricPotential", unit = "V"), C_CONST), value: 100.0 on component VRef.

What can I do?

Beste regards,
Michael

Re: Error when simulation example

You can ignore them current/smile

Re: Error when simulation example

Ok, but how can I see the results.
The variable Browser is empty:-(

Re: Error when simulation example

There are 3 AIMC_DOL examples; which one are you having trouble with?

Re: Error when simulation example

With

Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL

Re: Error when simulation example

Does the text-box with simulation output give you any messages? Like:
/tmp/OpenModelica_marsj/OMEdit/Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL -port=34027 -logFormat=xml -w -lv=LOG_STATS
LOG_STATS        | info     | ### STATISTICS ###
...

Re: Error when simulation example

Yes:
"C:\OMDev\tools\mingw\bin\mingw32-make.exe" -j4 -f Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL.makefile

C:\OMDEv\... doesn't exist. How can I get it?

Re: Error when simulation example

If you don't have OMDev installed and updated, unset the environment variable and reboot windows.

Re: Error when simulation example

Now I get:
"C:\OpenModelica1.9.1Beta2\\MinGW\bin\mingw32-make.exe" -j4 -f Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL.makefile
gcc   -falign-functions -msse2 -mfpmath=sse     -I"C:/OpenModelica1.9.1Beta2//include/omc/c" -I.  -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME  -c -o Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL.o Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL.c
gcc   -falign-functions -msse2 -mfpmath=sse     -I"C:/OpenModelica1.9.1Beta2//include/omc/c" -I.  -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME  -c -o Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL_functions.o Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL_functions.c
gcc   -falign-functions -msse2 -mfpmath=sse     -I"C:/OpenModelica1.9.1Beta2//include/omc/c" -I.  -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME  -c -o Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL_records.o Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL_records.c
Das System kann den angegebenen Pfad nicht finden.
Das System kann den angegebenen Pfad nicht finden.
gcc   -falign-functions -msse2 -mfpmath=sse     -I"C:/OpenModelica1.9.1Beta2//include/omc/c" -I.  -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME  -c -o Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL_01exo.o Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL_01exo.c
Das System kann den angegebenen Pfad nicht finden.
Das System kann den angegebenen Pfad nicht finden.
mingw32-make: *** [Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL_records.o] Error 1
mingw32-make: *** Waiting for unfinished jobs....
mingw32-make: *** [Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL_01exo.o] Error 1
mingw32-make: *** [Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL_functions.o] Error 1
mingw32-make: *** [Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL.o] Error 1
Compilation process exited with code 2

Re: Error when simulation example

I have already fixed this error a while ago.
Download & install a new nightly build https://build.openmodelica.org/omc/buil … ly-builds/

Adeel.

Re: Error when simulation example

It's the same:
"C:\OpenModelica1.9.1Nightly\\MinGW\bin\mingw32-make.exe" -j4 -f Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL.makefile
gcc   -falign-functions -msse2 -mfpmath=sse     -I"C:/OpenModelica1.9.1Nightly//include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME  -c -o Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL.o Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL.c
gcc   -falign-functions -msse2 -mfpmath=sse     -I"C:/OpenModelica1.9.1Nightly//include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME  -c -o Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL_functions.o Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL_functions.c
gcc   -falign-functions -msse2 -mfpmath=sse     -I"C:/OpenModelica1.9.1Nightly//include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME  -c -o Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL_records.o Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL_records.c
gcc   -falign-functions -msse2 -mfpmath=sse     -I"C:/OpenModelica1.9.1Nightly//include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME  -c -o Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL_01exo.o Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL_01exo.c
Das System kann den angegebenen Pfad nicht finden.
Das System kann den angegebenen Pfad nicht finden.
Das System kann den angegebenen Pfad nicht finden.
Das System kann den angegebenen Pfad nicht finden.
mingw32-make: *** [Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL_records.o] Error 1
mingw32-make: *** Waiting for unfinished jobs....
mingw32-make: *** [Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL_01exo.o] Error 1
mingw32-make: *** [Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL_functions.o] Error 1
mingw32-make: *** [Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL.o] Error 1
Compilation process exited with code 2

Re: Error when simulation example

Do you have some other MinGW installation in your PATH?
Before simulating set the "Number of Processors" to 1 in the Simulation setup.

Adeel.

Re: Error when simulation example

n

Re: Error when simulation example

No MinGW is not on my path:
C:\RailsInstaller\Git\cmd;C:\RailsInstaller\Ruby1.9.3\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;
C:\Program Files\TortoiseSVN\bin;C:\Program Files (x86)\Calibre2;D:\Programme\CMake 2.8\bin;D:\Programme\doxygen\bin;
D:\Python27;C:\TwinCAT\Common32;C:\TwinCAT\Common64;D:\TwinCAT\Common32;D:\TwinCAT\Common64;D:\WindRiver\utilities-1.0\x86-win32\bin;
C:\Program Files\TortoiseGit\bin;D:\Programme\LTC\LTspiceIV;D:\Programme\glib-dev_2.20;
D:\Programme\gettext-runtime-dev\bin;D:\Programme\Python27;D:\Programme\GTK2-Runtime\bin;
D:\Programme\glib_2.20\bin;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;
D:\Programme\CMake 2.8\bin;C:\Program Files (x86)\Subversion\bin;
C:\Program Files (x86)\LLVM\bin;D:\Programme\jruby-1.7.0.preview1\bin;
D:\Programme\Java\jdk1.7.0_05\bin;D:\Programme\apache-maven-3.0.4\bin;D:\Programme\Imperas\bin\Windows32

But I have
C:\MinGW\...
and
D:\MinGW64\...

Re: Error when simulation example

I suggest you edit:
C:\OpenModelica1.9.1Nightly\share\omc\scripts\Compile.bat
and remove echo off so you can see the commands while they happen.

Also I suggest you run from command line (cmd.exe):

Code:


// create a file script.mos containing:
loadModel(Modelica); getErrorString();
simulate(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL); getErrorString();
// end script.mos

Then run in cmd.exe

Code:


> cd path/to/script.mos
> C:\OpenModelica1.9.1Nightly\bin\omc script.mos

and let us know what you get.

Re: Error when simulation example

I can't see anything wrong.

C:\OpenModelica1.9.1Nightly>C:\OpenModelica1.9.1Nightly\bin\omc.exe script.mos
true
""
Das System kann den angegebenen Pfad nicht finden.

C:\OpenModelica1.9.1Nightly>REM @echo off

C:\OpenModelica1.9.1Nightly>REM Clear all environment variables that may interfe
re during compile and link phases.

C:\OpenModelica1.9.1Nightly>set GCC_EXEC_PREFIX=

C:\OpenModelica1.9.1Nightly>set CPLUS_INCLUDE_PATH=

C:\OpenModelica1.9.1Nightly>set C_INCLUDE_PATH=

C:\OpenModelica1.9.1Nightly>set LIBRARY_PATH=

C:\OpenModelica1.9.1Nightly>set OLD_PATH=C:/OpenModelica1.9.1Nightly/\bin;C:/Ope
nModelica1.9.1Nightly/\lib;C:/OpenModelica1.9.1Nightly/\mingw\bin;C:/OpenModelic
a1.9.1Nightly/\mingw\libexec\gcc\mingw32\4.4.0\;C:\RailsInstaller\Git\cmd;C:\Rai
lsInstaller\Ruby1.9.3\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbe
m;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\TortoiseSVN\bin;C
:\Program Files (x86)\Calibre2;D:\Programme\CMake 2.8\bin;D:\Programme\doxygen\b
in;D:\Python27;C:\TwinCAT\Common32;C:\TwinCAT\Common64;D:\TwinCAT\Common32;D:\Tw
inCAT\Common64;D:\WindRiver\utilities-1.0\x86-win32\bin;C:\Program Files\Tortois
eGit\bin;D:\Programme\LTC\LTspiceIV;D:\Programme\glib-dev_2.20;D:\Programme\gett
ext-runtime-dev\bin;D:\Programme\Python27;D:\Programme\GTK2-Runtime\bin;D:\Progr
amme\glib_2.20\bin;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;D:\Prog
ramme\CMake 2.8\bin;C:\Program Files (x86)\Subversion\bin;C:\Program Files (x86)
\LLVM\bin;D:\Programme\jruby-1.7.0.preview1\bin;D:\Programme\Java\jdk1.7.0_05\bi
n;D:\Programme\apache-maven-3.0.4\bin;D:\Programme\Imperas\bin\Windows32

C:\OpenModelica1.9.1Nightly>set MINGW="C:\OpenModelica1.9.1Nightly\"\MinGW

C:\OpenModelica1.9.1Nightly>set ADDITIONAL_ARGS=

C:\OpenModelica1.9.1Nightly>REM If OMDEV is set, use MinGW from there instead of
OPENMODELICAHOME

C:\OpenModelica1.9.1Nightly>REM It is not certain that release OMC is installed


C:\OpenModelica1.9.1Nightly>if not a == a set MINGW=\tools\MinGW

C:\OpenModelica1.9.1Nightly>REM echo OPENMODELICAHOME = "C:\OpenModelica1.9.1Nig
htly\" >> Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AI
MC_DOL.log 2>&1

C:\OpenModelica1.9.1Nightly>REM echo MINGW = "C:\OpenModelica1.9.1Nightly\"\MinG
W >>Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL
.log 2>&1

C:\OpenModelica1.9.1Nightly>set CURRENT_DIR="C:\OpenModelica1.9.1Nightly"

C:\OpenModelica1.9.1Nightly>cd /D ""C:\OpenModelica1.9.1Nightly\"\MinGW\bin"  1>
>"C:\OpenModelica1.9.1Nightly"\Modelica.Electrical.Machines.Examples.Asynchronou
sInductionMachines.AIMC_DOL.log 2>&1

C:\OpenModelica1.9.1Nightly\MinGW\bin>set PATH=C:\OpenModelica1.9.1Nightly\MinGW
\bin;C:\OpenModelica1.9.1Nightly\MinGW\bin\..\libexec\gcc\mingw32\4.4.0\;  1>>"C
:\OpenModelica1.9.1Nightly"\Modelica.Electrical.Machines.Examples.AsynchronousIn
ductionMachines.AIMC_DOL.log 2>&1

C:\OpenModelica1.9.1Nightly\MinGW\bin>cd /D ""C:\OpenModelica1.9.1Nightly""  1>>
"C:\OpenModelica1.9.1Nightly"\Modelica.Electrical.Machines.Examples.Asynchronous
InductionMachines.AIMC_DOL.log 2>&1

C:\OpenModelica1.9.1Nightly>REM echo PATH = C:\OpenModelica1.9.1Nightly\MinGW\bi
n;C:\OpenModelica1.9.1Nightly\MinGW\bin\..\libexec\gcc\mingw32\4.4.0\;  >>Modeli
ca.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL.log 2>&1


C:\OpenModelica1.9.1Nightly>REM echo CD = C:\OpenModelica1.9.1Nightly >>Modelica
.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL.log 2>&1

C:\OpenModelica1.9.1Nightly>if /I "gcc" == "msvc" (goto :MSVC )  else (goto :MIN
GW )

C:\OpenModelica1.9.1Nightly>REM echo "MINGW"

C:\OpenModelica1.9.1Nightly>if "parallel" == "parallel" set ADDITIONAL_ARGS=-j4


C:\OpenModelica1.9.1Nightly>"C:\OpenModelica1.9.1Nightly\"\MinGW\bin\mingw32-mak
e -f Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DO
L.makefile -j4  1>>Modelica.Electrical.Machines.Examples.AsynchronousInductionMa
chines.AIMC_DOL.log 2>&1

C:\OpenModelica1.9.1Nightly>goto :Final

C:\OpenModelica1.9.1Nightly>set RESULT=2

C:\OpenModelica1.9.1Nightly>set PATH=C:/OpenModelica1.9.1Nightly/\bin;C:/OpenMod
elica1.9.1Nightly/\lib;C:/OpenModelica1.9.1Nightly/\mingw\bin;C:/OpenModelica1.9
.1Nightly/\mingw\libexec\gcc\mingw32\4.4.0\;C:\RailsInstaller\Git\cmd;C:\RailsIn
staller\Ruby1.9.3\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:
\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\TortoiseSVN\bin;C:\Pr
ogram Files (x86)\Calibre2;D:\Programme\CMake 2.8\bin;D:\Programme\doxygen\bin;D
:\Python27;C:\TwinCAT\Common32;C:\TwinCAT\Common64;D:\TwinCAT\Common32;D:\TwinCA
T\Common64;D:\WindRiver\utilities-1.0\x86-win32\bin;C:\Program Files\TortoiseGit
\bin;D:\Programme\LTC\LTspiceIV;D:\Programme\glib-dev_2.20;D:\Programme\gettext-
runtime-dev\bin;D:\Programme\Python27;D:\Programme\GTK2-Runtime\bin;D:\Programme
\glib_2.20\bin;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;D:\Programm
e\CMake 2.8\bin;C:\Program Files (x86)\Subversion\bin;C:\Program Files (x86)\LLV
M\bin;D:\Programme\jruby-1.7.0.preview1\bin;D:\Programme\Java\jdk1.7.0_05\bin;D:
\Programme\apache-maven-3.0.4\bin;D:\Programme\Imperas\bin\Windows32

C:\OpenModelica1.9.1Nightly>set OLD_PATH=

C:\OpenModelica1.9.1Nightly>exit 2
record SimulationResult
    resultFile = "",
    simulationOptions = "startTime = 0.0, stopTime = 1.5, numberOfIntervals = 15
00, tolerance = 1e-006, method = 'dassl', fileNamePrefix = 'Modelica.Electrical.
Machines.Examples.AsynchronousInductionMachines.AIMC_DOL', options = '', outputF
ormat = 'mat', variableFilter = '.*', cflags = '', simflags = ''",
    messages = "Failed to build model: Modelica.Electrical.Machines.Examples.Asy
nchronousInductionMachines.AIMC_DOL",
    timeFrontend = 0.0,
    timeBackend = 0.0,
    timeSimCode = 0.0,
    timeTemplates = 0.0,
    timeCompile = 0.0,
    timeSimulation = 0.0,
    timeTotal = 0.0
end SimulationResult;
"[C:/OpenModelica1.9.1Nightly/lib/omlibrary/Modelica 3.2.1/Electrical/Machines.m
o:12944:7-12949:42:writable] Error: Variable aimc.statorCoreParameters: Duplicat
e modification of element final  = (typed)3 DAE.PROP(Integer, C_CONST), value: 3
and  = (typed)3 DAE.PROP(Integer, C_CONST), value: 3 on component m.
[C:/OpenModelica1.9.1Nightly/lib/omlibrary/Modelica 3.2.1/Electrical/Machines.mo
:12944:7-12949:42:writable] Error: Variable aimc.statorCoreParameters: Duplicate
modification of element  {start  = (typed)100 DAE.PROP(Integer, C_CONST), value
: 100}  and  = (typed)100.0 DAE.PROP(Real(min = 1e-060, quantity = "ElectricPote
ntial", unit = "V"), C_CONST), value: 100.0 on component VRef.
[C:/OpenModelica1.9.1Nightly/lib/omlibrary/Modelica 3.2.1/Electrical/Machines.mo
:12944:7-12949:42:writable] Error: Variable aimc.statorCoreParameters: Duplicate
modification of element final  = (typed)3 DAE.PROP(Integer, C_CONST), value: 3
and  = (typed)3 DAE.PROP(Integer, C_CONST), value: 3 on component m.
Error: Duplicate modification of element  {start  = (typed)100 DAE.PROP(Integer,
C_CONST), value: 100}  and  = (typed)100.0 DAE.PROP(Real(min = 1e-060, quantity
= "ElectricPotential", unit = "V"), C_CONST), value: 100.0 on component VRef.
[C:/OpenModelica1.9.1Nightly/lib/omlibrary/Modelica 3.2.1/Electrical/Machines.mo
:12950:7-12952:42:writable] Error: Variable aimc.strayLoadParameters: Duplicate
modification of element  {start  = (typed)100 DAE.PROP(Integer, C_CONST), value:
100}  and  = (typed)100.0 DAE.PROP(Real(min = 1e-060, quantity = "ElectricCurre
nt", unit = "A"), C_CONST), value: 100.0 on component IRef.
Error: Duplicate modification of element  {start  = (typed)100 DAE.PROP(Integer,
C_CONST), value: 100}  and  = (typed)100.0 DAE.PROP(Real(min = 1e-060, quantity
= "ElectricCurrent", unit = "A"), C_CONST), value: 100.0 on component IRef.
Error: Fehler beim Bauen des Simulators. Build log: gcc   -falign-functions -mss
e2 -mfpmath=sse     -I"C:/OpenModelica1.9.1Nightly//include/omc/c" -I. -DOPENMOD
ELICA_XML_FROM_FILE_AT_RUNTIME  -c -o Modelica.Electrical.Machines.Examples.Asyn
chronousInductionMachines.AIMC_DOL.o Modelica.Electrical.Machines.Examples.Async
hronousInductionMachines.AIMC_DOL.c
gcc   -falign-functions -msse2 -mfpmath=sse     -I"C:/OpenModelica1.9.1Nightly//
include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME  -c -o Modelica.Elect
rical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL_functions.o Model
ica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL_function
s.c
Das System kann den angegebenen Pfad nicht finden.
gcc   -falign-functions -msse2 -mfpmath=sse     -I"C:/OpenModelica1.9.1Nightly//
include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME  -c -o Modelica.Elect
rical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL_records.o Modelic
a.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL_records.c
Das System kann den angegebenen Pfad nicht finden.
gcc   -falign-functions -msse2 -mfpmath=sse     -I"C:/OpenModelica1.9.1Nightly//
include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME  -c -o Modelica.Elect
rical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL_01exo.o Modelica.
Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL_01exo.c
Das System kann den angegebenen Pfad nicht finden.
Das System kann den angegebenen Pfad nicht finden.
mingw32-make: *** [Modelica.Electrical.Machines.Examples.AsynchronousInductionMa
chines.AIMC_DOL_records.o] Error 1
mingw32-make: *** Waiting for unfinished jobs....
mingw32-make: *** [Modelica.Electrical.Machines.Examples.AsynchronousInductionMa
chines.AIMC_DOL_01exo.o] Error 1
mingw32-make: *** [Modelica.Electrical.Machines.Examples.AsynchronousInductionMa
chines.AIMC_DOL_functions.o] Error 1
mingw32-make: *** [Modelica.Electrical.Machines.Examples.AsynchronousInductionMa
chines.AIMC_DOL.o] Error 1
"

Re: Error when simulation example

Have you tried with  Number of Processors = 1?

Adeel.

Re: Error when simulation example

I don't see anything wrong with it either.
The only thing I can think of is that the installation went wrong and
gcc is not found in the PATH we are setting in Compile.bat.

From what I can see we set this:
C:\OpenModelica1.9.1Nightly>set PATH=C:/OpenModelica1.9.1Nightly/\bin;C:/OpenMod
elica1.9.1Nightly/\lib;C:/OpenModelica1.9.1Nightly/\mingw\bin;C:/OpenModelica1.9
.1Nightly/\mingw\libexec\gcc\mingw32\4.4.0\;
Can you please check that gcc.exe exists in C:/OpenModelica1.9.1Nightly/\mingw\bin?

Re: Error when simulation example

I don't think that its a problem with gcc not found. Because I can see successful compilation of AIMC_DOL.c, AIMC_DOL_functions.c & AIMC_DOL_records.c.
Its a problem with the parallel make since the error is "Waiting for unfinished jobs". Running it with -j1 might solve the problem and OMEdit does have that option available in Simulation setup.

Adeel.

Re: Error when simulation example

I think from command line you can try +n=1 to set the number of processors:

Code:


C:\OpenModelica1.9.1Nightly\bin\omc.exe +n=1 script.mos

Re: Error when simulation example

Now I have set "Number of processors" 1:

It didn't work.

C:\OpenModelica1.9.1Nightly>C:\OpenModelica1.9.1Nightly\bin\omc.exe +n=1 script.
mos
true
""
Das System kann den angegebenen Pfad nicht finden.

C:\OpenModelica1.9.1Nightly>REM @echo off

C:\OpenModelica1.9.1Nightly>REM Clear all environment variables that may interfe
re during compile and link phases.

C:\OpenModelica1.9.1Nightly>set GCC_EXEC_PREFIX=

C:\OpenModelica1.9.1Nightly>set CPLUS_INCLUDE_PATH=

C:\OpenModelica1.9.1Nightly>set C_INCLUDE_PATH=

C:\OpenModelica1.9.1Nightly>set LIBRARY_PATH=

C:\OpenModelica1.9.1Nightly>set OLD_PATH=C:/OpenModelica1.9.1Nightly/\bin;C:/Ope
nModelica1.9.1Nightly/\lib;C:/OpenModelica1.9.1Nightly/\mingw\bin;C:/OpenModelic
a1.9.1Nightly/\mingw\libexec\gcc\mingw32\4.4.0\;C:\RailsInstaller\Git\cmd;C:\Rai
lsInstaller\Ruby1.9.3\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbe
m;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\TortoiseSVN\bin;C
:\Program Files (x86)\Calibre2;D:\Programme\CMake 2.8\bin;D:\Programme\doxygen\b
in;D:\Python27;C:\TwinCAT\Common32;C:\TwinCAT\Common64;D:\TwinCAT\Common32;D:\Tw
inCAT\Common64;D:\WindRiver\utilities-1.0\x86-win32\bin;C:\Program Files\Tortois
eGit\bin;D:\Programme\LTC\LTspiceIV;D:\Programme\glib-dev_2.20;D:\Programme\gett
ext-runtime-dev\bin;D:\Programme\Python27;D:\Programme\GTK2-Runtime\bin;D:\Progr
amme\glib_2.20\bin;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;D:\Prog
ramme\CMake 2.8\bin;C:\Program Files (x86)\Subversion\bin;C:\Program Files (x86)
\LLVM\bin;D:\Programme\jruby-1.7.0.preview1\bin;D:\Programme\Java\jdk1.7.0_05\bi
n;D:\Programme\apache-maven-3.0.4\bin;D:\Programme\Imperas\bin\Windows32

C:\OpenModelica1.9.1Nightly>set MINGW="C:\OpenModelica1.9.1Nightly\"\MinGW

C:\OpenModelica1.9.1Nightly>set ADDITIONAL_ARGS=

C:\OpenModelica1.9.1Nightly>REM If OMDEV is set, use MinGW from there instead of
OPENMODELICAHOME

C:\OpenModelica1.9.1Nightly>REM It is not certain that release OMC is installed


C:\OpenModelica1.9.1Nightly>if not a == a set MINGW=\tools\MinGW

C:\OpenModelica1.9.1Nightly>REM echo OPENMODELICAHOME = "C:\OpenModelica1.9.1Nig
htly\" >> Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AI
MC_DOL.log 2>&1

C:\OpenModelica1.9.1Nightly>REM echo MINGW = "C:\OpenModelica1.9.1Nightly\"\MinG
W >>Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL
.log 2>&1

C:\OpenModelica1.9.1Nightly>set CURRENT_DIR="C:\OpenModelica1.9.1Nightly"

C:\OpenModelica1.9.1Nightly>cd /D ""C:\OpenModelica1.9.1Nightly\"\MinGW\bin"  1>
>"C:\OpenModelica1.9.1Nightly"\Modelica.Electrical.Machines.Examples.Asynchronou
sInductionMachines.AIMC_DOL.log 2>&1

C:\OpenModelica1.9.1Nightly\MinGW\bin>set PATH=C:\OpenModelica1.9.1Nightly\MinGW
\bin;C:\OpenModelica1.9.1Nightly\MinGW\bin\..\libexec\gcc\mingw32\4.4.0\;  1>>"C
:\OpenModelica1.9.1Nightly"\Modelica.Electrical.Machines.Examples.AsynchronousIn
ductionMachines.AIMC_DOL.log 2>&1

C:\OpenModelica1.9.1Nightly\MinGW\bin>cd /D ""C:\OpenModelica1.9.1Nightly""  1>>
"C:\OpenModelica1.9.1Nightly"\Modelica.Electrical.Machines.Examples.Asynchronous
InductionMachines.AIMC_DOL.log 2>&1

C:\OpenModelica1.9.1Nightly>REM echo PATH = C:\OpenModelica1.9.1Nightly\MinGW\bi
n;C:\OpenModelica1.9.1Nightly\MinGW\bin\..\libexec\gcc\mingw32\4.4.0\;  >>Modeli
ca.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL.log 2>&1


C:\OpenModelica1.9.1Nightly>REM echo CD = C:\OpenModelica1.9.1Nightly >>Modelica
.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL.log 2>&1

C:\OpenModelica1.9.1Nightly>if /I "gcc" == "msvc" (goto :MSVC )  else (goto :MIN
GW )

C:\OpenModelica1.9.1Nightly>REM echo "MINGW"

C:\OpenModelica1.9.1Nightly>if "parallel" == "parallel" set ADDITIONAL_ARGS=-j4


C:\OpenModelica1.9.1Nightly>"C:\OpenModelica1.9.1Nightly\"\MinGW\bin\mingw32-mak
e -f Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DO
L.makefile -j4  1>>Modelica.Electrical.Machines.Examples.AsynchronousInductionMa
chines.AIMC_DOL.log 2>&1

C:\OpenModelica1.9.1Nightly>goto :Final

C:\OpenModelica1.9.1Nightly>set RESULT=2

C:\OpenModelica1.9.1Nightly>set PATH=C:/OpenModelica1.9.1Nightly/\bin;C:/OpenMod
elica1.9.1Nightly/\lib;C:/OpenModelica1.9.1Nightly/\mingw\bin;C:/OpenModelica1.9
.1Nightly/\mingw\libexec\gcc\mingw32\4.4.0\;C:\RailsInstaller\Git\cmd;C:\RailsIn
staller\Ruby1.9.3\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:
\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\TortoiseSVN\bin;C:\Pr
ogram Files (x86)\Calibre2;D:\Programme\CMake 2.8\bin;D:\Programme\doxygen\bin;D
:\Python27;C:\TwinCAT\Common32;C:\TwinCAT\Common64;D:\TwinCAT\Common32;D:\TwinCA
T\Common64;D:\WindRiver\utilities-1.0\x86-win32\bin;C:\Program Files\TortoiseGit
\bin;D:\Programme\LTC\LTspiceIV;D:\Programme\glib-dev_2.20;D:\Programme\gettext-
runtime-dev\bin;D:\Programme\Python27;D:\Programme\GTK2-Runtime\bin;D:\Programme
\glib_2.20\bin;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;D:\Programm
e\CMake 2.8\bin;C:\Program Files (x86)\Subversion\bin;C:\Program Files (x86)\LLV
M\bin;D:\Programme\jruby-1.7.0.preview1\bin;D:\Programme\Java\jdk1.7.0_05\bin;D:
\Programme\apache-maven-3.0.4\bin;D:\Programme\Imperas\bin\Windows32

C:\OpenModelica1.9.1Nightly>set OLD_PATH=

C:\OpenModelica1.9.1Nightly>exit 2
record SimulationResult
    resultFile = "",
    simulationOptions = "startTime = 0.0, stopTime = 1.5, numberOfIntervals = 15
00, tolerance = 1e-006, method = 'dassl', fileNamePrefix = 'Modelica.Electrical.
Machines.Examples.AsynchronousInductionMachines.AIMC_DOL', options = '', outputF
ormat = 'mat', variableFilter = '.*', cflags = '', simflags = ''",
    messages = "Failed to build model: Modelica.Electrical.Machines.Examples.Asy
nchronousInductionMachines.AIMC_DOL",
    timeFrontend = 0.0,
    timeBackend = 0.0,
    timeSimCode = 0.0,
    timeTemplates = 0.0,
    timeCompile = 0.0,
    timeSimulation = 0.0,
    timeTotal = 0.0
end SimulationResult;
"[C:/OpenModelica1.9.1Nightly/lib/omlibrary/Modelica 3.2.1/Electrical/Machines.m
o:12944:7-12949:42:writable] Error: Variable aimc.statorCoreParameters: Duplicat
e modification of element final  = (typed)3 DAE.PROP(Integer, C_CONST), value: 3
and  = (typed)3 DAE.PROP(Integer, C_CONST), value: 3 on component m.
[C:/OpenModelica1.9.1Nightly/lib/omlibrary/Modelica 3.2.1/Electrical/Machines.mo
:12944:7-12949:42:writable] Error: Variable aimc.statorCoreParameters: Duplicate
modification of element  {start  = (typed)100 DAE.PROP(Integer, C_CONST), value
: 100}  and  = (typed)100.0 DAE.PROP(Real(min = 1e-060, quantity = "ElectricPote
ntial", unit = "V"), C_CONST), value: 100.0 on component VRef.
[C:/OpenModelica1.9.1Nightly/lib/omlibrary/Modelica 3.2.1/Electrical/Machines.mo
:12944:7-12949:42:writable] Error: Variable aimc.statorCoreParameters: Duplicate
modification of element final  = (typed)3 DAE.PROP(Integer, C_CONST), value: 3
and  = (typed)3 DAE.PROP(Integer, C_CONST), value: 3 on component m.
Error: Duplicate modification of element  {start  = (typed)100 DAE.PROP(Integer,
C_CONST), value: 100}  and  = (typed)100.0 DAE.PROP(Real(min = 1e-060, quantity
= "ElectricPotential", unit = "V"), C_CONST), value: 100.0 on component VRef.
[C:/OpenModelica1.9.1Nightly/lib/omlibrary/Modelica 3.2.1/Electrical/Machines.mo
:12950:7-12952:42:writable] Error: Variable aimc.strayLoadParameters: Duplicate
modification of element  {start  = (typed)100 DAE.PROP(Integer, C_CONST), value:
100}  and  = (typed)100.0 DAE.PROP(Real(min = 1e-060, quantity = "ElectricCurre
nt", unit = "A"), C_CONST), value: 100.0 on component IRef.
Error: Duplicate modification of element  {start  = (typed)100 DAE.PROP(Integer,
C_CONST), value: 100}  and  = (typed)100.0 DAE.PROP(Real(min = 1e-060, quantity
= "ElectricCurrent", unit = "A"), C_CONST), value: 100.0 on component IRef.
Error: Fehler beim Bauen des Simulators. Build log: gcc   -falign-functions -mss
e2 -mfpmath=sse     -I"C:/OpenModelica1.9.1Nightly//include/omc/c" -I. -DOPENMOD
ELICA_XML_FROM_FILE_AT_RUNTIME  -c -o Modelica.Electrical.Machines.Examples.Asyn
chronousInductionMachines.AIMC_DOL.o Modelica.Electrical.Machines.Examples.Async
hronousInductionMachines.AIMC_DOL.c
gcc   -falign-functions -msse2 -mfpmath=sse     -I"C:/OpenModelica1.9.1Nightly//
include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME  -c -o Modelica.Elect
rical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL_functions.o Model
ica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL_function
s.c
Das System kann den angegebenen Pfad nicht finden.
gcc   -falign-functions -msse2 -mfpmath=sse     -I"C:/OpenModelica1.9.1Nightly//
include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME  -c -o Modelica.Elect
rical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL_records.o Modelic
a.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL_records.c
Das System kann den angegebenen Pfad nicht finden.
gcc   -falign-functions -msse2 -mfpmath=sse     -I"C:/OpenModelica1.9.1Nightly//
include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME  -c -o Modelica.Elect
rical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL_01exo.o Modelica.
Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL_01exo.c
Das System kann den angegebenen Pfad nicht finden.
Das System kann den angegebenen Pfad nicht finden.
mingw32-make: *** [Modelica.Electrical.Machines.Examples.AsynchronousInductionMa
chines.AIMC_DOL_records.o] Error 1
mingw32-make: *** Waiting for unfinished jobs....
mingw32-make: *** [Modelica.Electrical.Machines.Examples.AsynchronousInductionMa
chines.AIMC_DOL_functions.o] Error 1
mingw32-make: *** [Modelica.Electrical.Machines.Examples.AsynchronousInductionMa
chines.AIMC_DOL_01exo.o] Error 1
mingw32-make: *** [Modelica.Electrical.Machines.Examples.AsynchronousInductionMa
chines.AIMC_DOL.o] Error 1
"

Re: Error when simulation example

MinGW exists in
C:\OpenModelica1.9.1Nightly\MinGW\bin

Re: Error when simulation example

This files are created:

Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL.c
Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL.libs
Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL.log
Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL.makefile
Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL.o
Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL_01exo.c
Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL_01exo.o
Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL_02nls.c
Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL_03lsy.c
Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL_04set.c
Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL_05evt.c
Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL_06inz.c
Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL_07dly.c
Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL_08bnd.c
Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL_09alg.c
Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL_10asr.c
Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL_11mix.c
Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL_11mix.h
Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL_12jac.c
Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL_12jac.h
Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL_13opt.c
Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL_13opt.h
Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL_14lnz.c
Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL_functions.c
Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL_functions.h
Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL_functions.o
Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL_info.xml
Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL_init.xml
Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL_literals.h
Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL_model.h
Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL_records.c
Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL_records.o

Re: Error when simulation example

Is there anything OpenModelica uses that actually needs the PATH? Maybe try unsetting it in cmd.exe before calling omc.

Re: Error when simulation example

It seems like it is still a parallel make. Can you run it from OMEdit by setting "Number of Processes" to 1 in simulation setup and post the output generated in compilation tab.

Martin - OMEdit compiles the stuff with a clean PATH.

Adeel.

Re: Error when simulation example

Here is the output:

"C:\OpenModelica1.9.1Nightly\\MinGW\bin\mingw32-make.exe" -f Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL.makefile
gcc   -falign-functions -msse2 -mfpmath=sse     -I"C:/OpenModelica1.9.1Nightly//include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME  -c -o Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL.o Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL.c
Das System kann den angegebenen Pfad nicht finden.
mingw32-make: *** [Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL.o] Error 1
Compilation process exited with code 2

Re: Error when simulation example

Can you run the following commands from cmd.exe?

Code:

set PATH=C:\OpenModelica1.9.1Nightly\MinGW\bin;C:\OpenModelica1.9.1Nightly\MinGW\libexec\gcc\mingw32\4.4.0

Change the location according to your setup in the following command,

Code:

cd Users\adeas31\AppData\Local\Temp\OpenModelica\OMEdit

Code:

"C:\OpenModelica1.9.1Nightly\\MinGW\bin\mingw32-make.exe" -f Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL.makefile

Adeel.

Re: Error when simulation example

Here is the command and output

C:\OpenModelica1.9.1Nightly\bin>"C:\OpenModelica1.9.1Nightly\\MinGW\bin\mingw32-
make.exe" -f Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines
.AIMC_DOL.makefile
mingw32-make: Modelica.Electrical.Machines.Examples.AsynchronousInductionMachine
s.AIMC_DOL.makefile: No such file or directory
mingw32-make: *** No rule to make target `Modelica.Electrical.Machines.Examples.
AsynchronousInductionMachines.AIMC_DOL.makefile'.  Stop.

And to check mingw ist running:
C:\OpenModelica1.9.1Nightly\bin>mingw32-make
mingw32-make: *** No targets specified and no makefile found.  Stop.

Re: Error when simulation example

This is wrong. Why are you running it from C:\OpenModelica1.9.1Nightly\bin?
You should run it from OMEdit/OMC working directory which should be %TEMP% if you have not changed it.
Now the error says makefile is not found which is true because you are in a wrong directory.

From the commands I have posted above you forgot to execute,

Code:

cd C:\Users\<user_name>\AppData\Local\Temp\OpenModelica\OMEdit

replace <user_name> with your windows username.

Adeel.

Re: Error when simulation example

Sorry. Here is the output:

C:\Users\esser\AppData\Local\Temp\OpenModelica\OMEdit>"C:\OpenModelica1.9.1Night
ly\\MinGW\bin\mingw32-make.exe" -f Modelica.Electrical.Machines.Examples.Asynchr
onousInductionMachines.AIMC_DOL.makefile
gcc   -falign-functions -msse2 -mfpmath=sse     -I"C:/OpenModelica1.9.1Nightly//
include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME  -c -o Modelica.Elect
rical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL_functions.o Model
ica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL_function
s.c
Das System kann den angegebenen Pfad nicht finden.
mingw32-make: *** [Modelica.Electrical.Machines.Examples.AsynchronousInductionMa
chines.AIMC_DOL_functions.o] Error 1

Re: Error when simulation example

Eeeeehhh. Thats weird. I really  don't know why make is failing here.
Are there any *.o files generated in C:\Users\esser\AppData\Local\Temp\OpenModelica\OMEdit?
Do you have write access to C:\Users\esser\AppData\Local\Temp\OpenModelica\OMEdit?
Is this happening for all modelica models?


  1. Run the cmd.exe with administrator (right click cmd.exe and click on "Run as administrator")

  2. Execute the same commands I mentioned above.


    • set the path

    • Run "echo %PATH%"

    • switch to the working directory

    • run the makefile




Post the output of all four commands.

Adeel.

Re: Error when simulation example

I made a small model of mass spring damper. I am trying to Export the FMU but i am facing this error. Is is due to the directory mismatch or something?

[:0:0-0:0] Error: Error building simulator. Build log: gcc  -I"C:/OpenModelica1.9.1Beta2//include/omc/c" -O  -falign-functions -msse2 -mfpmath=sse    -I"C:/OpenModelica1.9.1Beta2//include/omc/c" -I.   -c -o masspring_FMU.o masspring_FMU.c
gcc  -I"C:/OpenModelica1.9.1Beta2//include/omc/c" -O  -falign-functions -msse2 -mfpmath=sse    -I"C:/OpenModelica1.9.1Beta2//include/omc/c" -I.   -c -o masspring.o masspring.c
gcc  -I"C:/OpenModelica1.9.1Beta2//include/omc/c" -O  -falign-functions -msse2 -mfpmath=sse    -I"C:/OpenModelica1.9.1Beta2//include/omc/c" -I.   -c -o masspring_functions.o masspring_functions.c
gcc  -I"C:/OpenModelica1.9.1Beta2//include/omc/c" -O  -falign-functions -msse2 -mfpmath=sse    -I"C:/OpenModelica1.9.1Beta2//include/omc/c" -I.   -c -o masspring_records.o masspring_records.c
gcc  -I"C:/OpenModelica1.9.1Beta2//include/omc/c" -O  -falign-functions -msse2 -mfpmath=sse    -I"C:/OpenModelica1.9.1Beta2//include/omc/c" -I.   -c -o masspring_01exo.o masspring_01exo.c
In file included from masspring_FMU.c:104:
C:/OpenModelica1.9.1Beta2//include/omc/c/fmu_model_interface.c: In function 'masspring_fmiEventUpdate':
C:/OpenModelica1.9.1Beta2//include/omc/c/fmu_model_interface.c:627: warning: passing argument 2 of 'infoStreamPrint' makes integer from pointer without a cast
C:/OpenModelica1.9.1Beta2//include/omc/c/util/omc_error.h:142: note: expected 'int' but argument is of type 'char *'
C:/OpenModelica1.9.1Beta2//include/omc/c/fmu_model_interface.c:627: warning: passing argument 3 of 'infoStreamPrint' makes pointer from integer without a cast
C:/OpenModelica1.9.1Beta2//include/omc/c/util/omc_error.h:142: note: expected 'const char *' but argument is of type 'long int'
gcc  -I"C:/OpenModelica1.9.1Beta2//include/omc/c" -O  -falign-functions -msse2 -mfpmath=sse    -I"C:/OpenModelica1.9.1Beta2//include/omc/c" -I.   -c -o masspring_02nls.o masspring_02nls.c
gcc  -I"C:/OpenModelica1.9.1Beta2//include/omc/c" -O  -falign-functions -msse2 -mfpmath=sse    -I"C:/OpenModelica1.9.1Beta2//include/omc/c" -I.   -c -o masspring_03lsy.o masspring_03lsy.c
gcc  -I"C:/OpenModelica1.9.1Beta2//include/omc/c" -O  -falign-functions -msse2 -mfpmath=sse    -I"C:/OpenModelica1.9.1Beta2//include/omc/c" -I.   -c -o masspring_04set.o masspring_04set.c
gcc  -I"C:/OpenModelica1.9.1Beta2//include/omc/c" -O  -falign-functions -msse2 -mfpmath=sse    -I"C:/OpenModelica1.9.1Beta2//include/omc/c" -I.   -c -o masspring_05evt.o masspring_05evt.c
gcc  -I"C:/OpenModelica1.9.1Beta2//include/omc/c" -O  -falign-functions -msse2 -mfpmath=sse    -I"C:/OpenModelica1.9.1Beta2//include/omc/c" -I.   -c -o masspring_06inz.o masspring_06inz.c
gcc  -I"C:/OpenModelica1.9.1Beta2//include/omc/c" -O  -falign-functions -msse2 -mfpmath=sse    -I"C:/OpenModelica1.9.1Beta2//include/omc/c" -I.   -c -o masspring_07dly.o masspring_07dly.c
gcc  -I"C:/OpenModelica1.9.1Beta2//include/omc/c" -O  -falign-functions -msse2 -mfpmath=sse    -I"C:/OpenModelica1.9.1Beta2//include/omc/c" -I.   -c -o masspring_08bnd.o masspring_08bnd.c
gcc  -I"C:/OpenModelica1.9.1Beta2//include/omc/c" -O  -falign-functions -msse2 -mfpmath=sse    -I"C:/OpenModelica1.9.1Beta2//include/omc/c" -I.   -c -o masspring_09alg.o masspring_09alg.c
gcc  -I"C:/OpenModelica1.9.1Beta2//include/omc/c" -O  -falign-functions -msse2 -mfpmath=sse    -I"C:/OpenModelica1.9.1Beta2//include/omc/c" -I.   -c -o masspring_10asr.o masspring_10asr.c
gcc  -I"C:/OpenModelica1.9.1Beta2//include/omc/c" -O  -falign-functions -msse2 -mfpmath=sse    -I"C:/OpenModelica1.9.1Beta2//include/omc/c" -I.   -c -o masspring_11mix.o masspring_11mix.c
gcc  -I"C:/OpenModelica1.9.1Beta2//include/omc/c" -O  -falign-functions -msse2 -mfpmath=sse    -I"C:/OpenModelica1.9.1Beta2//include/omc/c" -I.   -c -o masspring_12jac.o masspring_12jac.c
gcc  -I"C:/OpenModelica1.9.1Beta2//include/omc/c" -O  -falign-functions -msse2 -mfpmath=sse    -I"C:/OpenModelica1.9.1Beta2//include/omc/c" -I.   -c -o masspring_13opt.o masspring_13opt.c
gcc  -I"C:/OpenModelica1.9.1Beta2//include/omc/c" -O  -falign-functions -msse2 -mfpmath=sse    -I"C:/OpenModelica1.9.1Beta2//include/omc/c" -I.   -c -o masspring_14lnz.o masspring_14lnz.c
g++ -shared -I. -o masspring.dll masspring_FMU.o masspring.o masspring_functions.o masspring_records.o masspring_01exo.o masspring_02nls.o masspring_03lsy.o masspring_04set.o masspring_05evt.o masspring_06inz.o masspring_07dly.o masspring_08bnd.o masspring_09alg.o masspring_10asr.o
masspring_11mix.o masspring_12jac.o masspring_13opt.o masspring_14lnz.o -I"C:/OpenModelica1.9.1Beta2//include/omc/c" -I.      -
I"C:/OpenModelica1.9.1Beta2//include/omc/c" -O  -falign-functions -msse2 -mfpmath=sse    -L"C:/OpenModelica1.9.1Beta2//lib/omc" -Wl,-rpath,'C:/OpenModelica1.9.1Beta2//lib/omc' -lSimulationRuntimeC -linteractive -lregex -lexpat -lgc -lpthread -fopenmp -loleaut32  -lSimulationRuntimeC -lgc -lexpat -lregex -static-libgcc -luuid -loleaut32 -lole32 -lws2_32 -lsundials_kinsol -lsundials_nvecserial -lipopt -lcoinmumps -lcoinmetis -lpthread -lm -lgfortranbegin -lgfortran -lmingw32 -lgcc_eh -lmoldname -lmingwex -lmsvcrt -luser32 -lkernel32 -ladvapi32 -lshell32 -llapack-mingw -ltmglib-mingw -lblas-mingw -lf2c -linteractive -lwsock32 -llis -lstdc++  -Wl,-Bstatic -lf2c -Wl,-Bdynamic -llis -Wl,--kill-at
g++: masspring_FMU.o: No such file or directory
g++: masspring.o: No such file or directory
g++: masspring_records.o: No such file or directory
mingw32-make: *** [masspring.dll] Error 1

Re: Error when simulation example

Now I cleared my whole PATH and set it to C:\OpenModelica1.9.1Nightly\MinGW\bin;C:\OpenModelica1.9.1Nightly\MinGW\libexec\gcc\mingw32\4.4.0

No result.

I want to "debug" the makefile. Do you have an idea whats the best way to do it?
I don't know which path coudn't resolved. Is there anything to make the output more informativ?
The *.c and *.o files are there, so the next step woud be linking.
Do you know how I can get the path of the called shell and the called mingw?

Beste regards and thanks fpr your support,
Michael

Here the actual output:
C:\Users\esser>echo %PATH%
C:\OpenModelica1.9.1Nightly\MinGW\bin;C:\OpenModelica1.9.1Nightly\MinGW\libexec\
gcc\mingw32\4.4.0;;

C:\Users\esser>mingw32-make
mingw32-make: *** No targets specified and no makefile found.  Stop.

C:\Users\esser>cd C:\Users\esser\AppData\Local\Temp\OpenModelica\OMEdit

C:\Users\esser\AppData\Local\Temp\OpenModelica\OMEdit>mingw32-make -f Modelica.E
lectrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL.makefile
gcc   -falign-functions -msse2 -mfpmath=sse     -I"C:/OpenModelica1.9.1Nightly//
include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME  -c -o Modelica.Elect
rical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL_functions.o Model
ica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL_function
s.c
Das System kann den angegebenen Pfad nicht finden.
mingw32-make: *** [Modelica.Electrical.Machines.Examples.AsynchronousInductionMa
chines.AIMC_DOL_functions.o] Error 1

C:\Users\esser\AppData\Local\Temp\OpenModelica\OMEdit>gc
Der Befehl "gc" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.

C:\Users\esser\AppData\Local\Temp\OpenModelica\OMEdit>gcc
gcc: no input files

Re: Error when simulation example

I really have no idea whats wrong here.
Have you tried running with administrator access? Becasue it seems like it was not able to find Modelica.Electrical.Machines.Examples.AsynchronousInductionMa
chines.AIMC_DOL_functions.o. However, the command should create this file.
Remove all *.o files and try the makefile again.
Is this a valid path in your system C:/OpenModelica1.9.1Nightly//include/omc/c?

Adeel.

Re: Error when simulation example

I have a question :
when I simulate some of my models (not all of them) I have this error:

[:0:0-0:0] Error: Failed to open simulation result /tmp/OpenModelica_maryam/OMEdit/BuildingEnergySystems.CaseStudies.TemperatureControl.Thermal_equivalent.Rooms.RoomsThermalSimplifiedWithAppliances_res.mat: Too few rows in data_2 matrix

and its output is

/tmp/OpenModelica_maryam/OMEdit/BuildingEnergySystems.CaseStudies.TemperatureControl.Thermal_equivalent.Rooms.RoomsThermalSimplifiedWithAppliances -port=45872 -logFormat=xml -w -lv=LOG_STATS
assert     | debug     | division by zero at time 0, (a=0) / (b=0), where divisor b expression is: heatPump_ConstantCOPheat1.W Debug more
Warning: Variable stove.airSource_fixed_pTX.air.Twb out of [min, max] interval: stove.airSource_fixed_pTX.air.Twb >= 0.0 has value: -226.176
Warning: Variable airSource_fixed_wTX1.air.Twb out of [min, max] interval: airSource_fixed_wTX1.air.Twb >= 0.0 has value: -160.919
Warning: Variable airSource_fixed_wTX.air.Twb out of [min, max] interval: airSource_fixed_wTX.air.Twb >= 0.0 has value: -160.919
Simulation process exited with code 255

what should I do

Re: Error when simulation example

Hello,

I have some news for my problem.

I think that that my virus scanner blocks the execution of a bat-file generated by OpenModelica and moves it away.
The name for the file is:
make10676-2.bat.

But I don't know where it is generated so that I can adapt the virus scanner to allow the execution.
Can you  tell where I can find this bat-file?

Best regards,
Michael

There are 0 guests and 0 other users also viewing this topic
You are here: