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
  • » PattiMichelle
  • » Profile

Posts

Posts

I loaded World3 from the default System Dynamics library, but the component names don't display when viewing the Scenarios in Diagram View. 
Is there a way to turn display of the names of the Components in Diagram View?

Thank You Very Much

Jun-26-20 19:52:49
Fonts in OMEdit unreadable b/c too big in World-3

Hi All - I tried running both the 32bit and 64bit install of OpenModelica and after opening the SystemsDynamics library in WIn7, I'm trying to view the overall diagram of the World-3 model (Meadows et al.) as well as the modules - similar to what is shown here:

https://www.openmodelica.org/images/doc … delica.pdf

(...on page 2 of that pdf file)

But what I get has the fonts completely the wrong size, so the viewer is unreadable.  Does anyone know how to fix such a fonts problem?

THANK YOU!
Patricia
http://yavapaiweathertracks.org/OMEdit.png

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

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.

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:

Code:


"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 ###

Thanks, I'll give that a try, but am unsure how to load it as you suggest.

EDIT:  Do you mean that I would load C:\OpenModelica1.9.1Nightly\lib\omlibrary\SystemDynamics 2.1\package.mo in the connection editor, then instantiate it?  There seem to be a few missing icons and lines although it runs w/o error.  If I delete a random line I get a "too few equations" error - so maybe it's working?

(Windows7 x64, 8GB ram, i7)

So if I understand correctly, loading the SystemDynamics as a library lets one *only* instantiate and run the specific scenarios.  If one loads the above package.mo as a model, then one can instantiate the scenarios, but can also modify the various charts (e.g., Arable_Land_Dynamics, Food_Production, etc.) - *then* if one runs the scenarios, one gets different results reflecting modifications.  Is this the general OM workflow?

Thank You,
Patricia

Hello:  I am so happy that World3 was included in the latest OM - I've been trying to get it running for a long time.  OK, so as an OM newbie, I noticed I can't seem to modify the structure of World3 - is it locked? 

Thank You!!!
Patti

Jun-08-12 18:48:30
World3 Model in OM and first steps

Thank you!  I'll take a look.  I am not sure where the problem lies, that's just an error I remember seeing in OMEdit when I tried to load.  With Windows 7 OMEdit simply crashed...
Is it best to use the latest OpenModelica version?  Best to use WinXP x32?

Jun-08-12 05:25:32
World3 Model in OM and first steps

Hi:  I am also interested in this model.  I have tried a few installs of OpenModelica and had bad luck.  The closest I got was an XP x64 install where OMEdit complains about SystemDynamics.mo not being coded in "UTF8" (or something) and throws errors, and apparently stops loading the .mo file.  This is an older thread, so maybe OM 1.8 lost the ability to read this library/file?  I'm hoping someone can help me get going with this - I really need to get some results soon.  If I try a Windows 7 install of OM 1.8, then opening this file, I get a crash.

Thank You!!!!
Patricia

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