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

OMEdit model of motor - don't understand error

OMEdit model of motor - don't understand error

I built the  motor from the OMEdit instructions, drag and dropped the parts, made the connections, but I'm not sure it runs correctly because of the message at the bottom (messages browser) is this error:

[:0:0-0:0] Warning: The initial conditions are not fully specified. Use +d=initialization for more information.

...although it runs (apparently) - so I guess I'm asking (1) did it run OK (i.e., as expected) and/or (2) what does the "Use +d=initialization for more information." part mean?  Does it mean to hold down the plus key (hard on a compact keyboard) while pressing the "d"?

Additional Info:


"C:\OpenModelica1.9.1Nightly\\MinGW\bin\mingw32-make.exe" -j4 -f HelloWorld.makefile
gcc   -falign-functions -msse2 -mfpmath=sse    -I"C:/OpenModelica1.9.1Nightly//include/omc" -I.  -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME  -c -o HelloWorld.o HelloWorld.c
gcc   -falign-functions -msse2 -mfpmath=sse    -I"C:/OpenModelica1.9.1Nightly//include/omc" -I.  -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME  -c -o HelloWorld_functions.o HelloWorld_functions.c
gcc   -falign-functions -msse2 -mfpmath=sse    -I"C:/OpenModelica1.9.1Nightly//include/omc" -I.  -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME  -c -o HelloWorld_records.o HelloWorld_records.c
gcc   -falign-functions -msse2 -mfpmath=sse    -I"C:/OpenModelica1.9.1Nightly//include/omc" -I.  -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME  -c -o HelloWorld_01exo.o HelloWorld_01exo.c
gcc   -falign-functions -msse2 -mfpmath=sse    -I"C:/OpenModelica1.9.1Nightly//include/omc" -I.  -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME  -c -o HelloWorld_02nls.o HelloWorld_02nls.c
gcc   -falign-functions -msse2 -mfpmath=sse    -I"C:/OpenModelica1.9.1Nightly//include/omc" -I.  -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME  -c -o HelloWorld_03lsy.o HelloWorld_03lsy.c
gcc   -falign-functions -msse2 -mfpmath=sse    -I"C:/OpenModelica1.9.1Nightly//include/omc" -I.  -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME  -c -o HelloWorld_04set.o HelloWorld_04set.c
gcc   -falign-functions -msse2 -mfpmath=sse    -I"C:/OpenModelica1.9.1Nightly//include/omc" -I.  -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME  -c -o HelloWorld_05evt.o HelloWorld_05evt.c
gcc   -falign-functions -msse2 -mfpmath=sse    -I"C:/OpenModelica1.9.1Nightly//include/omc" -I.  -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME  -c -o HelloWorld_06inz.o HelloWorld_06inz.c
gcc   -falign-functions -msse2 -mfpmath=sse    -I"C:/OpenModelica1.9.1Nightly//include/omc" -I.  -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME  -c -o HelloWorld_07dly.o HelloWorld_07dly.c
HelloWorld_05evt.c: In function 'HelloWorld_zeroCrossingDescription':
HelloWorld_05evt.c:51: warning: assignment discards qualifiers from pointer target type
gcc   -falign-functions -msse2 -mfpmath=sse    -I"C:/OpenModelica1.9.1Nightly//include/omc" -I.  -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME  -c -o HelloWorld_08bnd.o HelloWorld_08bnd.c
gcc   -falign-functions -msse2 -mfpmath=sse    -I"C:/OpenModelica1.9.1Nightly//include/omc" -I.  -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME  -c -o HelloWorld_09alg.o HelloWorld_09alg.c
gcc   -falign-functions -msse2 -mfpmath=sse    -I"C:/OpenModelica1.9.1Nightly//include/omc" -I.  -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME  -c -o HelloWorld_10asr.o HelloWorld_10asr.c
gcc   -falign-functions -msse2 -mfpmath=sse    -I"C:/OpenModelica1.9.1Nightly//include/omc" -I.  -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME  -c -o HelloWorld_11mix.o HelloWorld_11mix.c
gcc   -falign-functions -msse2 -mfpmath=sse    -I"C:/OpenModelica1.9.1Nightly//include/omc" -I.  -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME  -c -o HelloWorld_12jac.o HelloWorld_12jac.c
gcc   -falign-functions -msse2 -mfpmath=sse    -I"C:/OpenModelica1.9.1Nightly//include/omc" -I.  -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME  -c -o HelloWorld_13opt.o HelloWorld_13opt.c
gcc   -falign-functions -msse2 -mfpmath=sse    -I"C:/OpenModelica1.9.1Nightly//include/omc" -I.  -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME  -c -o HelloWorld_14lnz.o HelloWorld_14lnz.c
gcc -I. -o HelloWorld.exe HelloWorld.o HelloWorld_functions.o HelloWorld_records.o HelloWorld_01exo.o HelloWorld_02nls.o HelloWorld_03lsy.o HelloWorld_04set.o HelloWorld_05evt.o HelloWorld_06inz.o HelloWorld_07dly.o HelloWorld_08bnd.o HelloWorld_09alg.o HelloWorld_10asr.o HelloWorld_11mix.o HelloWorld_12jac.o HelloWorld_13opt.o HelloWorld_14lnz.o -I"C:/OpenModelica1.9.1Nightly//include/omc" -I.  -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME      -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++

C:/Users/Sheaffer/AppData/Local/Temp/OpenModelica/OMEdit/HelloWorld.exe -port=55107 -logFormat=xml -w -lv=LOG_STATS
LOG_STATS        | info     | ### STATISTICS ###
LOG_STATS        | info     | timer
|        | |     | |  0.000515809s [  2.4%] pre-initialization
|        | |     | |  4.8654e-005s [  0.2%] initialization
|        | |     | | 1.14033e-005s [  0.1%] steps
|        | |     | |   0.00336891s [ 15.7%] creating output-file
|        | |     | | 8.81854e-005s [  0.4%] event-handling
|        | |     | |  0.000443968s [  2.1%] overhead
|        | |     | |    0.0169168s [ 79.1%] simulation
|        | |     | |    0.0213937s [100.0%] total
LOG_STATS        | info     | events
|        | |     | |     0 state events
|        | |     | |     0 time events
LOG_STATS        | info     | solver: DASSL
|        | |     | |    57 steps taken
|        | |     | |    80 calls of functionODE
|        | |     | |    24 evaluations of jacobian
|        | |     | |     2 error test failures
|        | |     | |     0 convergence test failures
LOG_STATS        | info     | ### END STATISTICS ###

Edited by: PattiMichelle - Mar-24-14 02:45:11

Re: OMEdit model of motor - don't understand error

Re: OMEdit model of motor - don't understand error

Thank you very much - I knew there was a way to *use* that warning - but I couldn't find it in the docs on OMEdit.  Thanks!!

In that link it mentions entering initializations via text mode, but I thought all initializations could be entered by clicking on the icons in OMEdit.

Re: OMEdit model of motor - don't understand error

No the GUI feature is not available yet.


Re: OMEdit model of motor - don't understand error

Tried putting that flag in place, then setting variables for all the components:

[:0:0-0:0] Error: Internal error Transformation Module PFPlusExt index Reduction Method Pantelides failed!
[:0:0-0:0] Error: Too many equations, over-determined system. The model has 50 equation(s) and 47 variable(s).
[:0:0-0:0] Error: Internal error pre-optimization module removeSimpleEquations failed.
[:0:0-0:0] Error: Internal error Found Equation without time dependent variables emf.flange.tau = -inertia1.J

[:0:0-0:0] Warning: Assuming fixed start value for the following 5 variables:
         inductor1.i:VARIABLE(start = 0.0 )  "Current flowing from pin p to pin n".HelloWorld, .Modelica.Electrical.Analog.Basic.Inductor, .Modelica.SIunits.Current type: Real
         inertia1.phi:VARIABLE()  "Absolute rotation angle of component".HelloWorld, .Modelica.Mechanics.Rotational.Components.Inertia, .Modelica.SIunits.Angle type: Real
         inertia1.J:VARIABLE(min = 0.0 start = 1.0 )  "Moment of inertia".HelloWorld, .Modelica.Mechanics.Rotational.Components.Inertia, .Modelica.SIunits.Inertia type: Real
         inertia1.w:VARIABLE()  "Absolute angular velocity of component (= der(phi))".HelloWorld, .Modelica.Mechanics.Rotational.Components.Inertia, .Modelica.SIunits.AngularVelocity type: Real
         emf.k:VARIABLE(start = 1.0 )  "Transformation coefficient".HelloWorld, .Modelica.Electrical.Analog.Basic.EMF, .Modelica.SIunits.ElectricalTorqueConstant type: Real

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