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
  • Index
  • » Users
  • » guoxl
  • » Profile

Posts

Posts

Mar-07-14 18:02:33
Problems when running fluid exampls in OMEditor

Thx.
Does this means that any models using the classes in "Modelica.Fluids" will not work?
Or does this means that only some model using the classes in "Modelica Fluids" may not work?

Mar-07-14 12:13:25
Problems when running fluid exampls in OMEditor

Hi,
I am a beginner using OpenModelica. My OpenModelica is the newest nightly builds. OpenModelica 1.9.1+dev (r19492). My operation system is Win7
When I try to run the example in fluid on OMEditor, Modelica.Fluid.Examples.PumpingSystem, it cannot work. The message is followed.
Is there any one may be able to tell me which part goes wrong and how to fix it?
Thanks!
guoxl

The message browser:
[:0:0-0:0] Warning: There are iteration variables with default zero start attribute. Use +d=initialization for more information.
[:0:0-0:0] Error: Failed to open simulation result C:/Users/gxl/AppData/Local/Temp/OpenModelica/OMEdit/Modelica.Fluid.Examples.PumpingSystem_res.mat: Too few rows in data_2 matrix
[:0:0-0:0] Warning: The initial conditions are not fully specified. Use +d=initialization for more information.

The output:
C:/Users/gxl/AppData/Local/Temp/OpenModelica/OMEdit/Modelica.Fluid.Examples.PumpingSystem.exe -port=49421 -logFormat=xml -w -lv=LOG_STATS
stdout | warning | While solving non-linear system an assertion failed.
| | | | | The non-linear solver tries to solve the problem that could take some time.
| | | | | It could help to provide better start-values for the iteration variables.
| | | | | For more information simulate with -lv LOG_NLS
LOG_NLS | warning | nonlinear system fails: Nonlinear function (residualFunc106, size 1) at t=0 Debug more
| | | | | proper start-values for some of the following iteration variables might help
| | | | | | [1] Real PumpRPMGenerator.T(start=0, nominal=1)
stdout | warning | While solving non-linear system an assertion failed.
| | | | | The non-linear solver tries to solve the problem that could take some time.
| | | | | It could help to provide better start-values for the iteration variables.
| | | | | For more information simulate with -lv LOG_NLS
LOG_NLS | warning | Error solving nonlinear system Nonlinear function (residualFunc317, size 2) at time 0 Debug more
stdout | warning | Error in initialization. Storing results and exiting.
Use -lv=LOG_INIT -w for more information.
Process crashed
Simulation process exited with code -1


The compilation results:
"C:\OpenModelica1.9.1Nightly\\MinGW\bin\mingw32-make.exe" -j8 -f Modelica.Fluid.Examples.PumpingSystem.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.Fluid.Examples.PumpingSystem.o Modelica.Fluid.Examples.PumpingSystem.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.Fluid.Examples.PumpingSystem_functions.o Modelica.Fluid.Examples.PumpingSystem_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.Fluid.Examples.PumpingSystem_records.o Modelica.Fluid.Examples.PumpingSystem_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.Fluid.Examples.PumpingSystem_01exo.o Modelica.Fluid.Examples.PumpingSystem_01exo.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.Fluid.Examples.PumpingSystem_02nls.o Modelica.Fluid.Examples.PumpingSystem_02nls.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.Fluid.Examples.PumpingSystem_03lsy.o Modelica.Fluid.Examples.PumpingSystem_03lsy.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.Fluid.Examples.PumpingSystem_04set.o Modelica.Fluid.Examples.PumpingSystem_04set.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.Fluid.Examples.PumpingSystem_05evt.o Modelica.Fluid.Examples.PumpingSystem_05evt.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.Fluid.Examples.PumpingSystem_06inz.o Modelica.Fluid.Examples.PumpingSystem_06inz.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.Fluid.Examples.PumpingSystem_07dly.o Modelica.Fluid.Examples.PumpingSystem_07dly.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.Fluid.Examples.PumpingSystem_08bnd.o Modelica.Fluid.Examples.PumpingSystem_08bnd.c
Modelica.Fluid.Examples.PumpingSystem_05evt.c: In function 'Modelica_Fluid_Examples_PumpingSystem_zeroCrossingDescription':
Modelica.Fluid.Examples.PumpingSystem_05evt.c:69: warning: assignment discards qualifiers from pointer target type

gcc -falign-functions -msse2 -mfpmath=sse -I"C:/OpenModelica1.9.1Nightly//include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -c -o Modelica.Fluid.Examples.PumpingSystem_09alg.o Modelica.Fluid.Examples.PumpingSystem_09alg.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.Fluid.Examples.PumpingSystem_10asr.o Modelica.Fluid.Examples.PumpingSystem_10asr.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.Fluid.Examples.PumpingSystem_11mix.o Modelica.Fluid.Examples.PumpingSystem_11mix.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.Fluid.Examples.PumpingSystem_12jac.o Modelica.Fluid.Examples.PumpingSystem_12jac.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.Fluid.Examples.PumpingSystem_13opt.o Modelica.Fluid.Examples.PumpingSystem_13opt.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.Fluid.Examples.PumpingSystem_14lnz.o Modelica.Fluid.Examples.PumpingSystem_14lnz.c
gcc -I. -o Modelica.Fluid.Examples.PumpingSystem.exe Modelica.Fluid.Examples.PumpingSystem.o Modelica.Fluid.Examples.PumpingSystem_functions.o Modelica.Fluid.Examples.PumpingSystem_records.o Modelica.Fluid.Examples.PumpingSystem_01exo.o Modelica.Fluid.Examples.PumpingSystem_02nls.o Modelica.Fluid.Examples.PumpingSystem_03lsy.o Modelica.Fluid.Examples.PumpingSystem_04set.o Modelica.Fluid.Examples.PumpingSystem_05evt.o Modelica.Fluid.Examples.PumpingSystem_06inz.o Modelica.Fluid.Examples.PumpingSystem_07dly.o Modelica.Fluid.Examples.PumpingSystem_08bnd.o Modelica.Fluid.Examples.PumpingSystem_09alg.o Modelica.Fluid.Examples.PumpingSystem_10asr.o Modelica.Fluid.Examples.PumpingSystem_11mix.o Modelica.Fluid.Examples.PumpingSystem_12jac.o Modelica.Fluid.Examples.PumpingSystem_13opt.o Modelica.Fluid.Examples.PumpingSystem_14lnz.o -I"C:/OpenModelica1.9.1Nightly//include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -lModelicaExternalC -falign-functions -msse2 -mfpmath=sse -L"C:/OpenModelica1.9.1Nightly//lib/omc" -L"C:/OpenModelica1.9.1Nightly//lib" -Wl,--stack,0x2000000,-rpath,"C:/OpenModelica1.9.1Nightly//lib/omc" -Wl,-rpath,"C:/OpenModelica1.9.1Nightly//lib" -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++

  • Index
  • » Users
  • » guoxl
  • » Profile
You are here: