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

Posts

Posts

Brilliant - it works just fine now.

Thanks for your help

Right, I think I'm getting closer, but still have an error:

true
""
"3.2.1"
""
true
""
true
""
true
""
record SimulationResult
    resultFile = "",
    simulationOptions = "startTime = 0.0, stopTime = 1.0, numberOfIntervals = 500, tolerance = 1e-006, method = 'dassl', fileNamePrefix = 'Visualize_DoublePendulum', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = ''",
    messages = "Simulation execution failed for model: Visualize_DoublePendulum
process 1036: arguments to dbus_message_iter_append_basic() were incorrect, assertion \"_dbus_check_is_valid_utf8 (*string_p)\" failed in file dbus-message.c line 2598.
This is normally a bug in some application using the D-Bus library.


This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.

Backtrace:
3    ZwWaitForSingleObject+0x15
3    WaitForSingleObjectEx+0x43
3    WaitForSingleObject+0x12
3    dbus_threads_init+0x2119
3    dbus_malloc+0x182b
3    dbus_pending_call_set_notify+0x844
3    dbus_message_iter_append_basic+0x129
3    omc_OpenModelica_Scripting_Internal_stat+0x4430a
3    omc_OpenModelica_Scripting_Internal_stat+0x443d0
3    omc_ModelicaServices_modbus_addString+0x25
3    omc_ModelicaServices_Modelica3D_setAmbientColor+0xa0
3    omc_OpenModelica_Scripting_Internal_stat+0x24fa7
3    omc_OpenModelica_Scripting_Internal_stat+0x2ed85
3    dbus_server_listen+0x37cda
3    dbus_server_listen+0x39167
3    dbus_server_listen+0x128f3
3    dbus_server_listen+0x12f1f
3    dbus_server_listen+0xacd6
3    dbus_server_listen+0xb28a
3    dbus_server_listen+0xd3e9
2    C:\\Users\\l.barnaby\\Visualize_DoublePendulum.exe+0x13931
2    C:\\Users\\l.barnaby\\Visualize_DoublePendulum.exe+0x10db
2    C:\\Users\\l.barnaby\\Visualize_DoublePendulum.exe+0x1178
3    BaseThreadInitThunk+0x12
3    RtlInitializeExceptionChain+0x63
3    RtlInitializeExceptionChain+0x36
",
    timeFrontend = 1.014565460790223,
    timeBackend = 0.6924996963059945,
    timeSimCode = 0.4708807652891414,
    timeTemplates = 1.010064205357063,
    timeCompile = 3.058960421675423
end SimulationResult;
"Warning: The initial conditions are not fully specified. Use +d=initialization for more information.
"


dbus says its running, and I'm using the new one in the nightly build ...\lib\omlibrary-modelica3d\osg-gtk

Thanks,

I don't seem to have a resources folder there. I'll download the new build

Thanks, but I still have a problem:



true
""
"3.2.1"
true
""
true
""
true
""
record SimulationResult
    resultFile = "",
    simulationOptions = "startTime = 0.0, stopTime = 1.0, numberOfIntervals = 500, tolerance = 1e-006, method = 'dassl', fileNamePrefix = 'Visualize_DoublePendulum', options = '', outputFormat = 'mat', variableFilter = '.*', measureTime = false, cflags = '', simflags = ''",
    messages = "Failed to build model: Visualize_DoublePendulum",
    timeFrontend = 0.0,
    timeBackend = 0.0,
    timeSimCode = 0.0,
    timeTemplates = 0.0,
    timeCompile = 0.0,
    timeSimulation = 0.0,
    timeTotal = 0.0
end SimulationResult;
"Warning: The initial conditions are not fully specified. Use +d=initialization for more information.
Error: Error building simulator. Build log: gcc   -falign-functions -msse2 -mfpmath=sse     -I"D:/users/Lewis/Modelica/001_OpenModelica//include/omc/c" -I.  -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME  -c -o Visualize_DoublePendulum.o Visualize_DoublePendulum.c

gcc   -falign-functions -msse2 -mfpmath=sse     -I"D:/users/Lewis/Modelica/001_OpenModelica//include/omc/c" -I.  -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME  -c -o Visualize_DoublePendulum_functions.o Visualize_DoublePendulum_functions.c

gcc   -falign-functions -msse2 -mfpmath=sse     -I"D:/users/Lewis/Modelica/001_OpenModelica//include/omc/c" -I.  -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME  -c -o Visualize_DoublePendulum_records.o Visualize_DoublePendulum_records.c

gcc   -falign-functions -msse2 -mfpmath=sse     -I"D:/users/Lewis/Modelica/001_OpenModelica//include/omc/c" -I.  -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME  -c -o Visualize_DoublePendulum_01exo.o Visualize_DoublePendulum_01exo.c

Visualize_DoublePendulum_functions.c:10:22: error: modcount.h: No such file or directory

Visualize_DoublePendulum_functions.c:11:20: error: modbus.h: No such file or directory

Visualize_DoublePendulum_functions.c: In function 'omc_ModelicaServices_modbus_Connection_constructor':

Visualize_DoublePendulum_functions.c:693: warning: assignment makes pointer from integer without a cast

Visualize_DoublePendulum_functions.c: In function 'omc_ModelicaServices_modbus_Message_constructor':

Visualize_DoublePendulum_functions.c:1317: warning: assignment makes pointer from integer without a cast

Visualize_DoublePendulum_functions.c: In function 'omc_ModelicaServices_modcount_Context_constructor':

Visualize_DoublePendulum_functions.c:1331: warning: assignment makes pointer from integer without a cast

Visualize_DoublePendulum_functions.c: In function 'omc_ModelicaServices_modcount_getString':

Visualize_DoublePendulum_functions.c:1393: warning: assignment makes pointer from integer without a cast

Visualize_DoublePendulum_functions.c: In function 'omc_ModelicaServices_modcount_HeapString_constructor':

Visualize_DoublePendulum_functions.c:1420: warning: assignment makes pointer from integer without a cast

gcc   -falign-functions -msse2 -mfpmath=sse     -I"D:/users/Lewis/Modelica/001_OpenModelica//include/omc/c" -I.  -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME  -c -o Visualize_DoublePendulum_02nls.o Visualize_DoublePendulum_02nls.c

mingw32-make: *** [Visualize_DoublePendulum_functions.o] Error 1

mingw32-make: *** Waiting for unfinished jobs....


"

I'm trying to visualise a simulation with modelica 3d

I can run my model without the visualisation fine.

when I load the modelica 3D services it will no longer run

I think that the main error is

"[D:\users\Lewis\Modelica\001_OpenModelica\lib\omlibrary\ModelicaServices 3.2.1 modelica3d\package.mo:693:5-694:97:writable] Error: Base class Modelica.Utilities.Internal.PartialModelicaServices.ExternalReferences.PartialLoadResource not found in scope ModelicaServices.ExternalReferences.loadResource.

But I don't understand what I should do about it

Code

 Spoiler Show Spoiler Hide Spoiler
 
loadModel(Modelica); getErrorString();
getVersion();

loadFile("D:/users/Lewis/Modelica/003_OpenModelicaRuns/PID_001.mo"); getErrorString();

simulate(PID_001,outputFormat="csv");


loadModel(ModelicaServices, {"3.2.1 modelica3d"}); getErrorString();

// get the path to modelica3d patches

m3d_path := getInstallationDirectoryPath() + "lib/omlibrary-modelica3d/";

// load the changed Modelica.Utilities.Internal

loadFile(m3d_path + "Internal.mo"); getErrorString();


cd("D:/users/Lewis/Modelica/003_OpenModelicaRuns/WD"); getErrorString();

simulate(PID_001,outputFormat="csv");




loadString("

model Visualise_2

inner ModelicaServices.Modelica3D.Controller m3d_control;

extends PID_001;

end Visualise_2;

");getErrorString();

simulate(Visualise_2); getErrorString();
Error
 Spoiler Show Spoiler Hide Spoiler
 

true
""
"1.9.1 Beta2 (r19512) (RML version)"
true
""
record SimulationResult
    resultFile = "C:/Users/l.barnaby/PID_001_res.csv",
    simulationOptions = "startTime = 0.0, stopTime = 4.0, numberOfIntervals = 500, tolerance = 1e-006, method = 'dassl', fileNamePrefix = 'PID_001', options = '', outputFormat = 'csv', variableFilter = '.*', measureTime = false, cflags = '', simflags = ''",
    messages = "Warning: Variable PID.k out of [min, max] interval: PID.k >= 0.0 has value: -20
",
    timeFrontend = 1.142922184871792,
    timeBackend = 0.3263187973914907,
    timeSimCode = 0.1418492973228509,
    timeTemplates = 0.5762805270086848,
    timeCompile = 2.668712801599422,
    timeSimulation = 0.735466554648296,
    timeTotal = 5.592271785888649
end SimulationResult;
true
"Warning: The initial conditions are not fully specified. Use +d=initialization for more information.
Warning: There are iteration variables with default zero start attribute. Use +d=initialization for more information.
"
"D:/users/Lewis/Modelica/001_OpenModelica/lib/omlibrary-modelica3d/"
true
""
"D:/users/Lewis/Modelica/003_OpenModelicaRuns/WD"
""
record SimulationResult
    resultFile = "",
    simulationOptions = "startTime = 0.0, stopTime = 4.0, numberOfIntervals = 500, tolerance = 1e-006, method = 'dassl', fileNamePrefix = 'PID_001', options = '', outputFormat = 'csv', variableFilter = '.*', measureTime = false, cflags = '', simflags = ''",
    messages = "Failed to build model: PID_001",
    timeFrontend = 0.0,
    timeBackend = 0.0,
    timeSimCode = 0.0,
    timeTemplates = 0.0,
    timeCompile = 0.0,
    timeSimulation = 0.0,
    timeTotal = 0.0
end SimulationResult;
true
"[D:\users\Lewis\Modelica\001_OpenModelica\lib\omlibrary\ModelicaServices 3.2.1 modelica3d\package.mo:693:5-694:97:writable] Error: Base class Modelica.Utilities.Internal.PartialModelicaServices.ExternalReferences.PartialLoadResource not found in scope ModelicaServices.ExternalReferences.loadResource.
Error: Error occurred while flattening model PID_001
"
record SimulationResult
    resultFile = "",
    simulationOptions = "startTime = 0.0, stopTime = 1.0, numberOfIntervals = 500, tolerance = 1e-006, method = 'dassl', fileNamePrefix = 'Visualise_2', options = '', outputFormat = 'mat', variableFilter = '.*', measureTime = false, cflags = '', simflags = ''",
    messages = "Failed to build model: Visualise_2",
    timeFrontend = 0.0,
    timeBackend = 0.0,
    timeSimCode = 0.0,
    timeTemplates = 0.0,
    timeCompile = 0.0,
    timeSimulation = 0.0,
    timeTotal = 0.0
end SimulationResult;
"[D:\users\Lewis\Modelica\001_OpenModelica\lib\omlibrary\ModelicaServices 3.2.1 modelica3d\package.mo:693:5-694:97:writable] Error: Base class Modelica.Utilities.Internal.PartialModelicaServices.ExternalReferences.PartialLoadResource not found in scope ModelicaServices.ExternalReferences.loadResource.
Error: Error occurred while flattening model Visualise_2
"

I have the dbus server running (it says "Running dbus-server...)


Does anybody have any suggestions?


Thanks
Dexter

Is there a way to programmatically create a graph, then save it as a picture file of some sort after simulation?

Ah ok, I've found a thread here and can now run from a command line in windows

https://openmodelica.org/index.php/forum/topic?id=645

I need to run one of my modelica (.mo) models from either:

DosBatch
JavaScript
Python
Power shell

The model should run and produce output files without any further user interaction.

Is this possible, and if so, what is the easiest way of doing this?

I am not too familiar with launching other programs from command line (so please explain in simple terms) but I want to learn how to do this properly

Thanks in advance
Dexter

I want to use csv format so that I can easily export the relevant data into my 3rd party software. I can't import a database of 5600 variables for 10000 time-steps, so I want to filter out the stuff I don't need.

I thought that there might be an easier and more precise way of doing it, like
"Export all variables containing string: 'A_'"


What is an 'alias' and why does it appear when it doesn't appear to follow the rule that I set using regex?

Ok, Thanks.

I feel the need to summarise my understanding for any other fools like me, and anyone who can enlighten me further


If you want to filter variables in OMEdit you need to use Regex, a summary of which can be found here:
http://en.wikipedia.org/wiki/Regular_expression

For example:
If I have only 2 variables that I want to see, then I can enter

A_LengthA.distance|A_LengthB.distance

This will force the output file to only log the 2 distances named above, A_LengthA.distance and A_LengthB.distance

Entering only A_LengthA will not give all the variables associated with A_LengthA
Entering A_LengthA.* will keep all the variables associated with A_LengthA, along with a few other random variables it decides start with "A_LengthA", but which actually dont.
For example: "motor.frame_a.w_a" and "A_FloorDamperBL.frame_a.r_0". Most of the variables that don't contain "A_LengthA" are rejected however.

Right, so if I want to see 2 variables: 'A_LengthBRD.distance' and 'A_LengthBLD.distance' what do I enter.

I can get just one by entering:

A_LengthBRD.distance

but if I try:

A_LengthBRD.distance, A_LengthBLD.distance

I get none

If I try:

"A_LengthBRD.distance", "A_LengthBLD.distance"

It doesn't even run.

and if I try:

A_*

I also get nothing.

Please forgive me for my ignorance of things that are not in the manual. I am new to this.

When I click on simulate in OMEdit, there is an option to add a variable filter.

I assumed that this meant you could insert the names of the variables that you want to output to the output file.
So I added several names separated by commas.

But all I get in the output file is the time variable.

How do I use the filter correctly?

I want to model a box which is undergoing forcing to determine if it leaves a flat surface

At present it is represented as 4 corners and this is all I need to model as a contact

Has anyone done anything like this before? Could you point me in the direction of any libraries that could help?

Thanks,
Dexter

I'm modeling a complex system in modelica.

When I have a simple system it is easy enough to set the start position of a component (as in the mass spring example)

However, when I have a complex body represented by bars, point masses, joints etc, which component will drive the initial position?

I tried setting the initial position of one of my point masses using r_0(start = {a,b,c}) but instead it starts at {0,0,0}.
I have no other start positions defined so I don't see what could be causing this.

In chapter 6 of the OMNotebook, there is a page link called 'time' which opens the page "Built in Time Variable".

Here it says that "This doesn't work in the current version of Modelica."

What is the point in this page if you can't use it? Will it be included in the next release?

Or am I missing something?

I think I've answered my own question,

It seems like it freezes when you forget to clear any plots from the previous simulations.
After 2 or 3 consecutive runs it seems to get stuck trying to update all the plots at the end of the simulation

Have any of you experienced OMEdit freezing after a simulation?

I have a relatively simple model (4 bodies fixed in plane with spring/damper and revolute joints) with multiple signal inputs summed together as a force input

The simulation shows as 100% complete, then freezes for a couple of minutes before resuming normally

Apr-07-14 11:23:42
Using OMEdit or other

Hmm, Its still not working,

Does anyone know if there are any plans to make the animation an integral part of the connections editor so that even idiots like me can use it?

Its very hard to set up models without checking visually

Apr-04-14 18:39:36
Using OMEdit or other

Yes. As far as I can tell, I've done everything that was int the guide.

Apr-04-14 17:10:07
Using OMEdit or other

Ok, thanks,

Now I get a different error:

loadModelica3D();
loadString("model visualizemodel
  extends Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum;
  inner ModelicaServices.Modelica3D.Controller m3d_control;
end visualizemodel;"); getErrorString();
simulate(visualizemodel, startTime=0.0,stopTime=10.0);
Warning: The initial conditions are not fully specified. Use +d=initialization for more information.
Error: Error building simulator. Build log: gcc   -falign-functions -msse2 -mfpmath=sse     -I"[PATH]/001_OpenModelica//include/omc/c" -I.  -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME  -c -o visualizemodel.o visualizemodel.c
gcc   -falign-functions -msse2 -mfpmath=sse     -I"[PATH]/001_OpenModelica//include/omc/c" -I.  -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME  -c -o visualizemodel_functions.o visualizemodel_functions.c
gcc   -falign-functions -msse2 -mfpmath=sse     -I"[PATH]/001_OpenModelica//include/omc/c" -I.  -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME  -c -o visualizemodel_records.o visualizemodel_records.c
gcc   -falign-functions -msse2 -mfpmath=sse     -I"[PATH]/001_OpenModelica//include/omc/c" -I.  -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME  -c -o visualizemodel_01exo.o visualizemodel_01exo.c
visualizemodel_functions.c:10:22: error: modcount.h: No such file or directory
visualizemodel_functions.c:11:20: error: modbus.h: No such file or directory
visualizemodel_functions.c: In function 'omc_ModelicaServices_modbus_Connection_constructor':
visualizemodel_functions.c:693: warning: assignment makes pointer from integer without a cast
visualizemodel_functions.c: In function 'omc_ModelicaServices_modbus_Message_constructor':
visualizemodel_functions.c:1317: warning: assignment makes pointer from integer without a cast
visualizemodel_functions.c: In function 'omc_ModelicaServices_modcount_Context_constructor':
visualizemodel_functions.c:1331: warning: assignment makes pointer from integer without a cast
visualizemodel_functions.c: In function 'omc_ModelicaServices_modcount_getString':
visualizemodel_functions.c:1393: warning: assignment makes pointer from integer without a cast
visualizemodel_functions.c: In function 'omc_ModelicaServices_modcount_HeapString_constructor':
visualizemodel_functions.c:1420: warning: assignment makes pointer from integer without a cast
gcc   -falign-functions -msse2 -mfpmath=sse     -I"[PATH]/001_OpenModelica//include/omc/c" -I.  -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME  -c -o visualizemodel_02nls.o visualizemodel_02nls.c
mingw32-make: *** [visualizemodel_functions.o] Error 1
mingw32-make: *** Waiting for unfinished jobs....

Apr-04-14 15:53:21
Using OMEdit or other

Thanks,

I'm trying to use one of the Modelica examples to get a 3d visualisation.

I can run an example just fine in OMShell if I use say:

simulate(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum)

but if I use :
loadModelica3D()

(which returns "true")

then:
simulate(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum)

I get a huge error message:

record SimulationResult
    resultFile = "",
    messages = "Failed to build model: Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum"
end SimulationResult;
[[PATH]\001_OpenModelica\lib\omlibrary\ModelicaServices 3.2.1 modelica3d\Modelica3D\package.mo:507:5-507:33:writable] Warning: No corresponding 'inner' declaration found for component .ModelicaServices.Modelica3D.Controller world.x_label.cylinders[1].m3d_control declared as 'outer '.
  The existing 'inner' components are:
    There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Modelica.Mechanics.MultiBody.Visualizers.Advanced.Shape.
  Check if you have not misspelled the 'outer' component name.
  Please declare an 'inner' component with the same name in the top scope.
  Continuing flattening by only considering the 'outer' component declaration.
[[PATH]\001_OpenModelica\lib\omlibrary\ModelicaServices 3.2.1 modelica3d\Modelica3D\package.mo:507:5-507:33:writable] Warning: No corresponding 'inner' declaration found for component .ModelicaServices.Modelica3D.Controller world.x_label.cylinders[2].m3d_control declared as 'outer '.
  The existing 'inner' components are:
    There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Modelica.Mechanics.MultiBody.Visualizers.Advanced.Shape.
  Check if you have not misspelled the 'outer' component name.
  Please declare an 'inner' component with the same name in the top scope.
  Continuing flattening by only considering the 'outer' component declaration.
[[PATH]\001_OpenModelica\lib\omlibrary\ModelicaServices 3.2.1 modelica3d\Modelica3D\package.mo:507:5-507:33:writable] Warning: No corresponding 'inner' declaration found for component .ModelicaServices.Modelica3D.Controller world.y_label.cylinders[1].m3d_control declared as 'outer '.
  The existing 'inner' components are:
    There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Modelica.Mechanics.MultiBody.Visualizers.Advanced.Shape.
  Check if you have not misspelled the 'outer' component name.
  Please declare an 'inner' component with the same name in the top scope.
  Continuing flattening by only considering the 'outer' component declaration.
[[PATH]\001_OpenModelica\lib\omlibrary\ModelicaServices 3.2.1 modelica3d\Modelica3D\package.mo:507:5-507:33:writable] Warning: No corresponding 'inner' declaration found for component .ModelicaServices.Modelica3D.Controller world.y_label.cylinders[2].m3d_control declared as 'outer '.
  The existing 'inner' components are:
    There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Modelica.Mechanics.MultiBody.Visualizers.Advanced.Shape.
  Check if you have not misspelled the 'outer' component name.
  Please declare an 'inner' component with the same name in the top scope.
  Continuing flattening by only considering the 'outer' component declaration.
[[PATH]\001_OpenModelica\lib\omlibrary\ModelicaServices 3.2.1 modelica3d\Modelica3D\package.mo:507:5-507:33:writable] Warning: No corresponding 'inner' declaration found for component .ModelicaServices.Modelica3D.Controller world.z_label.cylinders[1].m3d_control declared as 'outer '.
  The existing 'inner' components are:
    There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Modelica.Mechanics.MultiBody.Visualizers.Advanced.Shape.
  Check if you have not misspelled the 'outer' component name.
  Please declare an 'inner' component with the same name in the top scope.
  Continuing flattening by only considering the 'outer' component declaration.
[[PATH]\001_OpenModelica\lib\omlibrary\ModelicaServices 3.2.1 modelica3d\Modelica3D\package.mo:507:5-507:33:writable] Warning: No corresponding 'inner' declaration found for component .ModelicaServices.Modelica3D.Controller world.z_label.cylinders[2].m3d_control declared as 'outer '.
  The existing 'inner' components are:
    There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Modelica.Mechanics.MultiBody.Visualizers.Advanced.Shape.
  Check if you have not misspelled the 'outer' component name.
  Please declare an 'inner' component with the same name in the top scope.
  Continuing flattening by only considering the 'outer' component declaration.
[[PATH]\001_OpenModelica\lib\omlibrary\ModelicaServices 3.2.1 modelica3d\Modelica3D\package.mo:507:5-507:33:writable] Warning: No corresponding 'inner' declaration found for component .ModelicaServices.Modelica3D.Controller world.z_label.cylinders[3].m3d_control declared as 'outer '.
  The existing 'inner' components are:
    There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Modelica.Mechanics.MultiBody.Visualizers.Advanced.Shape.
  Check if you have not misspelled the 'outer' component name.
  Please declare an 'inner' component with the same name in the top scope.
  Continuing flattening by only considering the 'outer' component declaration.
[[PATH]\001_OpenModelica\lib\omlibrary\ModelicaServices 3.2.1 modelica3d\Modelica3D\package.mo:507:5-507:33:writable] Warning: No corresponding 'inner' declaration found for component .ModelicaServices.Modelica3D.Controller world.x_arrowLine.m3d_control declared as 'outer '.
  The existing 'inner' components are:
    There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Modelica.Mechanics.MultiBody.Visualizers.Advanced.Shape.
  Check if you have not misspelled the 'outer' component name.
  Please declare an 'inner' component with the same name in the top scope.
  Continuing flattening by only considering the 'outer' component declaration.
[[PATH]\001_OpenModelica\lib\omlibrary\ModelicaServices 3.2.1 modelica3d\Modelica3D\package.mo:507:5-507:33:writable] Warning: No corresponding 'inner' declaration found for component .ModelicaServices.Modelica3D.Controller world.x_arrowHead.m3d_control declared as 'outer '.
  The existing 'inner' components are:
    There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Modelica.Mechanics.MultiBody.Visualizers.Advanced.Shape.
  Check if you have not misspelled the 'outer' component name.
  Please declare an 'inner' component with the same name in the top scope.
  Continuing flattening by only considering the 'outer' component declaration.
[[PATH]\001_OpenModelica\lib\omlibrary\ModelicaServices 3.2.1 modelica3d\Modelica3D\package.mo:507:5-507:33:writable] Warning: No corresponding 'inner' declaration found for component .ModelicaServices.Modelica3D.Controller world.y_arrowLine.m3d_control declared as 'outer '.
  The existing 'inner' components are:
    There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Modelica.Mechanics.MultiBody.Visualizers.Advanced.Shape.
  Check if you have not misspelled the 'outer' component name.
  Please declare an 'inner' component with the same name in the top scope.
  Continuing flattening by only considering the 'outer' component declaration.
[[PATH]\001_OpenModelica\lib\omlibrary\ModelicaServices 3.2.1 modelica3d\Modelica3D\package.mo:507:5-507:33:writable] Warning: No corresponding 'inner' declaration found for component .ModelicaServices.Modelica3D.Controller world.y_arrowHead.m3d_control declared as 'outer '.
  The existing 'inner' components are:
    There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Modelica.Mechanics.MultiBody.Visualizers.Advanced.Shape.
  Check if you have not misspelled the 'outer' component name.
  Please declare an 'inner' component with the same name in the top scope.
  Continuing flattening by only considering the 'outer' component declaration.
[[PATH]\001_OpenModelica\lib\omlibrary\ModelicaServices 3.2.1 modelica3d\Modelica3D\package.mo:507:5-507:33:writable] Warning: No corresponding 'inner' declaration found for component .ModelicaServices.Modelica3D.Controller world.z_arrowLine.m3d_control declared as 'outer '.
  The existing 'inner' components are:
    There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Modelica.Mechanics.MultiBody.Visualizers.Advanced.Shape.
  Check if you have not misspelled the 'outer' component name.
  Please declare an 'inner' component with the same name in the top scope.
  Continuing flattening by only considering the 'outer' component declaration.
[[PATH]\001_OpenModelica\lib\omlibrary\ModelicaServices 3.2.1 modelica3d\Modelica3D\package.mo:507:5-507:33:writable] Warning: No corresponding 'inner' declaration found for component .ModelicaServices.Modelica3D.Controller world.z_arrowHead.m3d_control declared as 'outer '.
  The existing 'inner' components are:
    There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Modelica.Mechanics.MultiBody.Visualizers.Advanced.Shape.
  Check if you have not misspelled the 'outer' component name.
  Please declare an 'inner' component with the same name in the top scope.
  Continuing flattening by only considering the 'outer' component declaration.
[[PATH]\001_OpenModelica\lib\omlibrary\ModelicaServices 3.2.1 modelica3d\Modelica3D\package.mo:507:5-507:33:writable] Warning: No corresponding 'inner' declaration found for component .ModelicaServices.Modelica3D.Controller world.gravityArrowLine.m3d_control declared as 'outer '.
  The existing 'inner' components are:
    There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Modelica.Mechanics.MultiBody.Visualizers.Advanced.Shape.
  Check if you have not misspelled the 'outer' component name.
  Please declare an 'inner' component with the same name in the top scope.
  Continuing flattening by only considering the 'outer' component declaration.
[[PATH]\001_OpenModelica\lib\omlibrary\ModelicaServices 3.2.1 modelica3d\Modelica3D\package.mo:507:5-507:33:writable] Warning: No corresponding 'inner' declaration found for component .ModelicaServices.Modelica3D.Controller world.gravityArrowHead.m3d_control declared as 'outer '.
  The existing 'inner' components are:
    There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Modelica.Mechanics.MultiBody.Visualizers.Advanced.Shape.
  Check if you have not misspelled the 'outer' component name.
  Please declare an 'inner' component with the same name in the top scope.
  Continuing flattening by only considering the 'outer' component declaration.
[[PATH]\001_OpenModelica\lib\omlibrary\ModelicaServices 3.2.1 modelica3d\Modelica3D\package.mo:507:5-507:33:writable] Warning: No corresponding 'inner' declaration found for component .ModelicaServices.Modelica3D.Controller rev.cylinder.m3d_control declared as 'outer '.
  The existing 'inner' components are:
    .Modelica.Mechanics.MultiBody.World world; defined in scope: Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum. Referenced by 'outer' components: {rev.world}
  Check if you have not misspelled the 'outer' component name.
  Please declare an 'inner' component with the same name in the top scope.
  Continuing flattening by only considering the 'outer' component declaration.
[[PATH]\001_OpenModelica\lib\omlibrary\ModelicaServices 3.2.1 modelica3d\Modelica3D\package.mo:507:5-507:33:writable] Warning: No corresponding 'inner' declaration found for component .ModelicaServices.Modelica3D.Controller body.cylinder.m3d_control declared as 'outer '.
  The existing 'inner' components are:
    .Modelica.Mechanics.MultiBody.World world; defined in scope: Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum. Referenced by 'outer' components: {body.world, rev.world}
  Check if you have not misspelled the 'outer' component name.
  Please declare an 'inner' component with the same name in the top scope.
  Continuing flattening by only considering the 'outer' component declaration.
[[PATH]\001_OpenModelica\lib\omlibrary\ModelicaServices 3.2.1 modelica3d\Modelica3D\package.mo:507:5-507:33:writable] Warning: No corresponding 'inner' declaration found for component .ModelicaServices.Modelica3D.Controller body.sphere.m3d_control declared as 'outer '.
  The existing 'inner' components are:
    .Modelica.Mechanics.MultiBody.World world; defined in scope: Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum. Referenced by 'outer' components: {body.world, rev.world}
  Check if you have not misspelled the 'outer' component name.
  Please declare an 'inner' component with the same name in the top scope.
  Continuing flattening by only considering the 'outer' component declaration.
Warning: The initial conditions are not fully specified. Use +d=initialization for more information.
Error: Error building simulator. Build log: gcc   -falign-functions -msse2 -mfpmath=sse     -I"[PATH]/001_OpenModelica//include/omc/c" -I.  -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME  -c -o Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.o Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.c
gcc   -falign-functions -msse2 -mfpmath=sse     -I"[PATH]/001_OpenModelica//include/omc/c" -I.  -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME  -c -o Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum_functions.o Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum_functions.c
gcc   -falign-functions -msse2 -mfpmath=sse     -I"[Path]/001_OpenModelica//include/omc/c" -I.  -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME  -c -o Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum_records.o Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum_records.c
gcc   -falign-functions -msse2 -mfpmath=sse     -I"[Path]/001_OpenModelica//include/omc/c" -I.  -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME  -c -o Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum_01exo.o Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum_01exo.c
Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum_functions.c:10:22: error: modcount.h: No such file or directory
Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum_functions.c:11:20: error: modbus.h: No such file or directory
Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum_functions.c: In function 'omc_ModelicaServices_modbus_Connection_constructor':
Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum_functions.c:693: warning: assignment makes pointer from integer without a cast
Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum_functions.c: In function 'omc_ModelicaServices_modbus_Message_constructor':
Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum_functions.c:1304: warning: assignment makes pointer from integer without a cast
Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum_functions.c: In function 'omc_ModelicaServices_modcount_Context_constructor':
Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum_functions.c:1344: warning: assignment makes pointer from integer without a cast
Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum_functions.c: In function 'omc_ModelicaServices_modcount_HeapString_constructor':
Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum_functions.c:1404: warning: assignment makes pointer from integer without a cast
Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum_functions.c: In function 'omc_ModelicaServices_modcount_getString':
Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum_functions.c:1420: warning: assignment makes pointer from integer without a cast
gcc   -falign-functions -msse2 -mfpmath=sse     -I"[Path]/001_OpenModelica//include/omc/c" -I.  -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME  -c -o Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum_02nls.o Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum_02nls.c
mingw32-make: *** [Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum_functions.o] Error 1
mingw32-make: *** Waiting for unfinished jobs....

Apr-03-14 18:26:03
Using OMEdit or other

Hi,

I've been looking at using OMEdit particularly for MultiBody analysis.

However I've been unable to find a way to view animations for my simulations.

I've seen examples in Dymola but is there a way to do it in OMEdit?

Thanks
Dexter

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