- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » Problem to get a successful simulation
Problem to get a successful simulation
Problem to get a successful simulation
Hi
I am really pleasure if someone could help me in the OpenModelica installation.
After a successful OM setup, I just started with the tutorials, but unfortunatly I wasn't be able to continue due to the following problem.
I couldn't simulate the dcmotor model in OM1.8.0. because the system rejects with the following message:
>> simulate(dcmotor, startTime=0, stopTime=1, numberOfIntervals=500, tolerance=1e-4, method="dassl", outputFormat="mat")
record SimulationResult
resultFile = "",
simulationOptions = "startTime = 0.0, stopTime = 1.0, numberOfIntervals = 500, tolerance = 0.0001, method = 'dassl', fileNamePrefix = 'dcmotor', storeInTemp = false, noClean = false, options = '', outputFormat = 'mat', variableFilter = '.*', measureTime = false, cflags = ''",
messages = "Simulation failed for model: dcmotor
Error: Error building simulator. Buildlog: El sistema no puede hallar la ruta especificada.
gcc -O3 -falign-functions -msse2 -mfpmath=sse -I\"C:/OpenModelica1.8.0/include/omc\" -I. -L\"C:/OpenModelica1.8.0/share/doc/omc/testmodels\" -c -o dcmotor.o dcmotor.c
\"gcc\" no se reconoce como un comando interno o externo,
programa o archivo por lotes ejecutable.
OpenModelica1.8.0\\MinGW\\bin\\mingw32-make: *** [dcmotor.o] Error 1
",
timeFrontend = 0.0,
timeBackend = 0.0,
timeSimCode = 0.0,
timeTemplates = 0.0,
timeCompile = 0.0,
timeSimulation = 0.0,
timeTotal = 0.0
end SimulationResult;
The host system is an WXP-SP3 with OM1.8.0.
Before to the simulation command, the model "dcmotor.mo" available at "C:/OpenModelica1.8.0/share/doc/omc/testmodels/dcmotor.mo" was successfully flattened.
I tried modifying the System Variables and also has been carried out command compilation from console terminal. In that case, the message was,
>mingw32-make dcmotor
cc dcmotor.c -o dcmotor
process_begin: CreateProcess(NULL, cc dcmotor.c -o dcmotor, ...) failed.
make (e=2): El sistema no puede hallar el archivo especificado.
mingw32-make: *** [dcmotor] Error 2
Could anyone help me with some clue?
Thanks.
Gus
Re: Problem to get a successful simulation
You could try the latest nightly build:
http://build.openmodelica.org/omc/build … ly-builds/
You can also have a look into:
C:\OpenModelica1.8.0\share\omc\scripts\Compile.bat
as we use this script to compile models.
You could remove the echo off and see what is happening and why the PATH is not set correctly to:
C:\OpenModelica1.8.0\MinGW\bin
where gcc is.
Cheers,
Adrian Pop/
- adrpo
- 885 Posts
- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » Problem to get a successful simulation