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

Tool to View Animations

Tool to View Animations

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

Re: Tool to View Animations

Use Modelica3D. There is a chapter about it in OpenModelica Users Guide.
OMEdit doesn't support animations.

Adeel.

Re: Tool to View Animations

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....

Re: Tool to View Animations

Use the following script for running the simulations. The issue with yours was the missing m3d_control statement

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);


Just change the path in the extends line to whichever example you want to run

Re: Tool to View Animations

I had the same issue a few months back. Refer this link for more information

https://www.openmodelica.org/index.php/ … 95&p=3

Re: Tool to View Animations

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....

Re: Tool to View Animations

I'm afraid i haven't encountered this error. Did you have the dbus-server running in your system before you entered the script in OMShell??

Also you do have python and pyGTK installed in your system?

Re: Tool to View Animations

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

Re: Tool to View Animations

You might have done all this. But this is what i did to enable visualisation in my system(Windows 7 64bit).


1.Install OpenModelica.

Make sure the version has the omlibrary-modelica3d folder present in the lib folder in the installation directory

2.Install python 2.7.3(32-bit).

Make sure that the python27 directory is added to the Path System Variable in Environment Variables.

3.Install pygtk-all-in-one-2.24.2.win32-py2.7(32-bit)

For some reason visualisation didnt work for me with the 64 bit version of python and pygtk

Open Command Prompt. Change the working directory to the place where the file  dbus-server.py exists in the OpenModelica installation directory.
(By default the location is C:\OpenModelica1.9.1Nightly\lib\omlibrary-modelica3d\osg-gtk)

Run the dbus-server.py using python in the command prompt.                    

Code:

python dbus-server.py

The command prompt will show the following message -

Running dbus-server...

Then use the script i gave you earlier to simulate the examples in the OpenModelica library

Re: Tool to View Animations

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

Re: Tool to View Animations

By the way I'm using this version of OpenModelica

OpenModelica 1.9.1+dev (r18667) (RML version)

Try this version and check if it helps..

Re: Tool to View Animations

I am getting an error similar to the one dexter22 had too(the difference is due to a different model being visualized).

Re: Tool to View Animations

Hi!

I also have problems when trying to obtain animations using modelica3D and OMShell.

I have followed the instructions given by the User Guide and clearly explained by Sanjay_Kamath in this post. Although everything seems to be ok, some errors appear when typing the commands in OMShell.

First of all, I would like to highlight that the following warning appears when typing loadModelica3D():
Warning: Requested package ModelicaServices of version 3.2.1, but this package was already loaded with version 3.2.1 modelica3d. You might experience problems if these versions are incompatible.

I don't know if this is the responsible of the error I get when trying to compile the model and obtain the animation:
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);
[C:/OpenModelica1.9.1/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Modelica3D/package.mo:15:3-18:12:writable] Warning: Ignoring record component:
  ExternalObject ModelicaServices.modbus.Connection conn;
when building record the constructor. Records are allowed to contain only components of basic types, arrays of basic types or other records.
[C:/OpenModelica1.9.1/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Modelica3D/package.mo:15:3-18:12:writable] Warning: Ignoring record component:
  ExternalObject ModelicaServices.modcount.Context context;
when building record the constructor. Records are allowed to contain only components of basic types, arrays of basic types or other records.
Notification: It was not possible to analyze the given system symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet.
Error: Internal error ./Compiler/BackEnd/BackendDAETransform.mo: function analyseStrongComponentBlock failed
Sorry - Support for Discrete Equation Systems is not yet implemented
$PRE.world.x_label.cylinders[2].moved
world.x_label.cylinders[2].moved
world.x_label.cylinders[2].moved = $PRE.world.x_label.cylinders[2].moved
world.x_label.cylinders[2].moved = $PRE.world.x_label.cylinders[2].moved
Error: Internal error ./Compiler/BackEnd/BackendDAETransform.mo: function analyseStrongComponentBlock failed
Error: Internal error ./Compiler/BackEnd/BackendDAETransform.mo: function strongComponentsScalar failed
- sorting equations (strongComponents) failed
Error: Internal error Transformation Module sort components failed!
Warning: No system for the symbolic initialization was generated. A method using numerical algorithms will be used instead.
Error: Error building simulator. Build log: gcc    -falign-functions -msse2 -mfpmath=sse     "-IC:/OpenModelica1.9.1/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Include" -I"C:/OpenModelica1.9.1//include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME  -c -o visualizemodel.o visualizemodel.c
gcc    -falign-functions -msse2 -mfpmath=sse     "-IC:/OpenModelica1.9.1/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Include" -I"C:/OpenModelica1.9.1//include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME  -c -o visualizemodel_functions.o visualizemodel_functions.c
gcc    -falign-functions -msse2 -mfpmath=sse     "-IC:/OpenModelica1.9.1/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Include" -I"C:/OpenModelica1.9.1//include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME  -c -o visualizemodel_records.o visualizemodel_records.c
gcc    -falign-functions -msse2 -mfpmath=sse     "-IC:/OpenModelica1.9.1/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Include" -I"C:/OpenModelica1.9.1//include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME  -c -o visualizemodel_01exo.o visualizemodel_01exo.c
gcc    -falign-functions -msse2 -mfpmath=sse     "-IC:/OpenModelica1.9.1/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Include" -I"C:/OpenModelica1.9.1//include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME  -c -o visualizemodel_02nls.o visualizemodel_02nls.c
visualizemodel.c: In function 'visualizemodel_eqFunction_21':
visualizemodel.c:195: error: too many arguments to function 'omc_ModelicaServices_Modelica3D_State$m3d__control$state'
visualizemodel.c:195: error: incompatible type for argument 2 of 'omc_ModelicaServices_Modelica3D_rotate'
visualizemodel_functions.h:252: note: expected 'ModelicaServices_Modelica3D_State' but argument is of type 'ModelicaServices_Modelica3D_State$m3d__control$state'
visualizemodel.c:222: error: too many arguments to function 'omc_ModelicaServices_Modelica3D_State$m3d__control$state'
visualizemodel.c:222: error: incompatible type for argument 2 of 'omc_ModelicaServices_Modelica3D_moveTo'
visualizemodel_functions.h:259: note: expected 'ModelicaServices_Modelica3D_State' but argument is of type 'ModelicaServices_Modelica3D_State$m3d__control$state'
visualizemodel.c: In function 'visualizemodel_eqFunction_22':
visualizemodel.c:345: error: too many arguments to function 'omc_ModelicaServices_Modelica3D_State$m3d__control$state'
visualizemodel.c:345: error: incompatible type for argument 2 of 'omc_ModelicaServices_Modelica3D_rotate'
visualizemodel_functions.h:252: note: expected 'ModelicaServices_Modelica3D_State' but argument is of type 'ModelicaServices_Modelica3D_State$m3d__control$state'
visualizemodel.c:372: error: too many arguments to function 'omc_ModelicaServices_Modelica3D_State$m3d__control$state'
visualizemodel.c:372: error: incompatible type for argument 2 of 'omc_ModelicaServices_Modelica3D_moveTo'
visualizemodel_functions.h:259: note: expected 'ModelicaServices_Modelica3D_State' but argument is of type 'ModelicaServices_Modelica3D_State$m3d__control$state'
visualizemodel.c: In function 'visualizemodel_eqFunction_23':
visualizemodel.c:495: error: too many arguments to function 'omc_ModelicaServices_Modelica3D_State$m3d__control$state'
visualizemodel.c:495: error: incompatible type for argument 2 of 'omc_ModelicaServices_Modelica3D_rotate'
visualizemodel_functions.h:252: note: expected 'ModelicaServices_Modelica3D_State' but argument is of type 'ModelicaServices_Modelica3D_State$m3d__control$state'
visualizemodel.c:522: error: too many arguments to function 'omc_ModelicaServices_Modelica3D_State$m3d__control$state'
visualizemodel.c:522: error: incompatible type for argument 2 of 'omc_ModelicaServices_Modelica3D_moveTo'
visualizemodel_functions.h:259: note: expected 'ModelicaServices_Modelica3D_State' but argument is of type 'ModelicaServices_Modelica3D_State$m3d__control$state'
visualizemodel.c: In function 'visualizemodel_eqFunction_24':
visualizemodel.c:645: error: too many arguments to function 'omc_ModelicaServices_Modelica3D_State$m3d__control$state'
visualizemodel.c:645: error: incompatible type for argument 2 of 'omc_ModelicaServices_Modelica3D_rotate'
visualizemodel_functions.h:252: note: expected 'ModelicaServices_Modelica3D_State' but argument is of type 'ModelicaServices_Modelica3D_State$m3d__control$state'
visualizemodel.c:672: error: too many arguments to function 'omc_ModelicaServices_Modelica3D_State$m3d__control$state'
visualizemodel.c:672: error: incompatible type for argument 2 of 'omc_ModelicaServices_Modelica3D_moveTo'
visualizemodel_functions.h:259: note: expected 'ModelicaServices_Modelica3D_State' but argument is of type 'ModelicaServices_Modelica3D_State$m3d__control$state'
visualizemodel.c: In function 'visualizemodel_eqFunction_25':
visualizemodel.c:795: error: too many arguments to function 'omc_ModelicaServices_Modelica3D_State$m3d__control$state'
visualizemodel.c:795: error: incompatible type for argument 2 of 'omc_ModelicaServices_Modelica3D_rotate'
visualizemodel_functions.h:252: note: expected 'ModelicaServices_Modelica3D_State' but argument is of type 'ModelicaServices_Modelica3D_State$m3d__control$state'
visualizemodel.c:822: error: too many arguments to function 'omc_ModelicaServices_Modelica3D_State$m3d__control$state'
visualizemodel.c:822: error: incompatible type for argument 2 of 'omc_ModelicaServices_Modelica3D_moveTo'
visualizemodel_functions.h:259: note: expected 'ModelicaServices_Modelica3D_State' but argument is of type 'ModelicaServices_Modelica3D_State$m3d__control$state'
visualizemodel.c: In function 'visualizemodel_eqFunction_26':
visualizemodel.c:945: error: too many arguments to function 'omc_ModelicaServices_Modelica3D_State$m3d__control$state'
visualizemodel.c:945: error: incompatible type for argument 2 of 'omc_ModelicaServices_Modelica3D_rotate'
visualizemodel_functions.h:252: note: expected 'ModelicaServices_Modelica3D_State' but argument is of type 'ModelicaServices_Modelica3D_State$m3d__control$state'
visualizemodel.c:972: error: too many arguments to function 'omc_ModelicaServices_Modelica3D_State$m3d__control$state'
visualizemodel.c:972: error: incompatible type for argument 2 of 'omc_ModelicaServices_Modelica3D_moveTo'
visualizemodel_functions.h:259: note: expected 'ModelicaServices_Modelica3D_State' but argument is of type 'ModelicaServices_Modelica3D_State$m3d__control$state'
visualizemodel.c: In function 'visualizemodel_eqFunction_27':
visualizemodel.c:1095: error: too many arguments to function 'omc_ModelicaServices_Modelica3D_State$m3d__control$state'
visualizemodel.c:1095: error: incompatible type for argument 2 of 'omc_ModelicaServices_Modelica3D_rotate'
visualizemodel_functions.h:252: note: expected 'ModelicaServices_Modelica3D_State' but argument is of type 'ModelicaServices_Modelica3D_State$m3d__control$state'
visualizemodel.c:1122: error: too many arguments to function 'omc_ModelicaServices_Modelica3D_State$m3d__control$state'
visualizemodel.c:1122: error: incompatible type for argument 2 of 'omc_ModelicaServices_Modelica3D_moveTo'
visualizemodel_functions.h:259: note: expected 'ModelicaServices_Modelica3D_State' but argument is of type 'ModelicaServices_Modelica3D_State$m3d__control$state'
visualizemodel.c: In function 'visualizemodel_eqFunction_28':
visualizemodel.c:1245: error: too many arguments to function 'omc_ModelicaServices_Modelica3D_State$m3d__control$state'
visualizemodel.c:1245: error: incompatible type for argument 2 of 'omc_ModelicaServices_Modelica3D_rotate'
visualizemodel_functions.h:252: note: expected 'ModelicaServices_Modelica3D_State' but argument is of type 'ModelicaServices_Modelica3D_State$m3d__control$state'
visualizemodel.c:1272: error: too many arguments to function 'omc_ModelicaServices_Modelica3D_State$m3d__control$state'
visualizemodel.c:1272: error: incompatible type for argument 2 of 'omc_ModelicaServices_Modelica3D_moveTo'
visualizemodel_functions.h:259: note: expected 'ModelicaServices_Modelica3D_State' but argument is of type 'ModelicaServices_Modelica3D_State$m3d__control$state'
visualizemodel.c: In function 'visualizemodel_eqFunction_29':
visualizemodel.c:1395: error: too many arguments to function 'omc_ModelicaServices_Modelica3D_State$m3d__control$state'
visualizemodel.c:1395: error: incompatible type for argument 2 of 'omc_ModelicaServices_Modelica3D_rotate'
visualizemodel_functions.h:252: note: expected 'ModelicaServices_Modelica3D_State' but argument is of type 'ModelicaServices_Modelica3D_State$m3d__control$state'
visualizemodel.c:1422: error: too many arguments to function 'omc_ModelicaServices_Modelica3D_State$m3d__control$state'
visualizemodel.c:1422: error: incompatible type for argument 2 of 'omc_ModelicaServices_Modelica3D_moveTo'
visualizemodel_functions.h:259: note: expected 'ModelicaServices_Modelica3D_State' but argument is of type 'ModelicaServices_Modelica3D_State$m3d__control$state'
visualizemodel.c: In function 'visualizemodel_eqFunction_30':
visualizemodel.c:1545: error: too many arguments to function 'omc_ModelicaServices_Modelica3D_State$m3d__control$state'
visualizemodel.c:1545: error: incompatible type for argument 2 of 'omc_ModelicaServices_Modelica3D_rotate'
visualizemodel_functions.h:252: note: expected 'ModelicaServices_Modelica3D_State' but argument is of type 'ModelicaServices_Modelica3D_State$m3d__control$state'
visualizemodel.c:1572: error: too many arguments to function 'omc_ModelicaServices_Modelica3D_State$m3d__control$state'
visualizemodel.c:1572: error: incompatible type for argument 2 of 'omc_ModelicaServices_Modelica3D_moveTo'
visualizemodel_functions.h:259: note: expected 'ModelicaServices_Modelica3D_State' but argument is of type 'ModelicaServices_Modelica3D_State$m3d__control$state'
visualizemodel.c: In function 'visualizemodel_eqFunction_31':
visualizemodel.c:1695: error: too many arguments to function 'omc_ModelicaServices_Modelica3D_State$m3d__control$state'
visualizemodel.c:1695: error: incompatible type for argument 2 of 'omc_ModelicaServices_Modelica3D_rotate'
visualizemodel_functions.h:252: note: expected 'ModelicaServices_Modelica3D_State' but argument is of type 'ModelicaServices_Modelica3D_State$m3d__control$state'
visualizemodel.c:1722: error: too many arguments to function 'omc_ModelicaServices_Modelica3D_State$m3d__control$state'
visualizemodel.c:1722: error: incompatible type for argument 2 of 'omc_ModelicaServices_Modelica3D_moveTo'
visualizemodel_functions.h:259: note: expected 'ModelicaServices_Modelica3D_State' but argument is of type 'ModelicaServices_Modelica3D_State$m3d__control$state'
visualizemodel.c: In function 'visualizemodel_eqFunction_32':
visualizemodel.c:1845: error: too many arguments to function 'omc_ModelicaServices_Modelica3D_State$m3d__control$state'
visualizemodel.c:1845: error: incompatible type for argument 2 of 'omc_ModelicaServices_Modelica3D_rotate'
visualizemodel_functions.h:252: note: expected 'ModelicaServices_Modelica3D_State' but argument is of type 'ModelicaServices_Modelica3D_State$m3d__control$state'
visualizemodel.c:1872: error: too many arguments to function 'omc_ModelicaServices_Modelica3D_State$m3d__control$state'
visualizemodel.c:1872: error: incompatible type for argument 2 of 'omc_ModelicaServices_Modelica3D_moveTo'
visualizemodel_functions.h:259: note: expected 'ModelicaServices_Modelica3D_State' but argument is of type 'ModelicaServices_Modelica3D_State$m3d__control$state'
visualizemodel.c: In function 'visualizemodel_eqFunction_33':
visualizemodel.c:1995: error: too many arguments to function 'omc_ModelicaServices_Modelica3D_State$m3d__control$state'
visualizemodel.c:1995: error: incompatible type for argument 2 of 'omc_ModelicaServices_Modelica3D_rotate'
visualizemodel_functions.h:252: note: expected 'ModelicaServices_Modelica3D_State' but argument is of type 'ModelicaServices_Modelica3D_State$m3d__control$state'
visualizemodel.c:2022: error: too many arguments to function 'omc_ModelicaServices_Modelica3D_State$m3d__control$state'
visualizemodel.c:2022: error: incompatible type for argument 2 of 'omc_ModelicaServices_Modelica3D_moveTo'
visualizemodel_functions.h:259: note: expected 'ModelicaServices_Modelica3D_State' but argument is of type 'ModelicaServices_Modelica3D_State$m3d__control$state'
visualizemodel.c: In function 'visualizemodel_eqFunction_34':
visualizemodel.c:2145: error: too many arguments to function 'omc_ModelicaServices_Modelica3D_State$m3d__control$state'
visualizemodel.c:2145: error: incompatible type for argument 2 of 'omc_ModelicaServices_Modelica3D_rotate'
visualizemodel_functions.h:252: note: expected 'ModelicaServices_Modelica3D_State' but argument is of type 'ModelicaServices_Modelica3D_State$m3d__control$state'
visualizemodel.c:2172: error: too many arguments to function 'omc_ModelicaServices_Modelica3D_State$m3d__control$state'
visualizemodel.c:2172: error: incompatible type for argument 2 of 'omc_ModelicaServices_Modelica3D_moveTo'
visualizemodel_functions.h:259: note: expected 'ModelicaServices_Modelica3D_State' but argument is of type 'ModelicaServices_Modelica3D_State$m3d__control$state'
visualizemodel.c: In function 'visualizemodel_eqFunction_35':
visualizemodel.c:2295: error: too many arguments to function 'omc_ModelicaServices_Modelica3D_State$m3d__control$state'
visualizemodel.c:2295: error: incompatible type for argument 2 of 'omc_ModelicaServices_Modelica3D_rotate'
visualizemodel_functions.h:252: note: expected 'ModelicaServices_Modelica3D_State' but argument is of type 'ModelicaServices_Modelica3D_State$m3d__control$state'
visualizemodel.c:2322: error: too many arguments to function 'omc_ModelicaServices_Modelica3D_State$m3d__control$state'
visualizemodel.c:2322: error: incompatible type for argument 2 of 'omc_ModelicaServices_Modelica3D_moveTo'
visualizemodel_functions.h:259: note: expected 'ModelicaServices_Modelica3D_State' but argument is of type 'ModelicaServices_Modelica3D_State$m3d__control$state'
visualizemodel.c: In function 'visualizemodel_eqFunction_36':
visualizemodel.c:2445: error: too many arguments to function 'omc_ModelicaServices_Modelica3D_State$m3d__control$state'
visualizemodel.c:2445: error: incompatible type for argument 2 of 'omc_ModelicaServices_Modelica3D_rotate'
visualizemodel_functions.h:252: note: expected 'ModelicaServices_Modelica3D_State' but argument is of type 'ModelicaServices_Modelica3D_State$m3d__control$state'
visualizemodel.c:2472: error: too many arguments to function 'omc_ModelicaServices_Modelica3D_State$m3d__control$state'
visualizemodel.c:2472: error: incompatible type for argument 2 of 'omc_ModelicaServices_Modelica3D_moveTo'
visualizemodel_functions.h:259: note: expected 'ModelicaServices_Modelica3D_State' but argument is of type 'ModelicaServices_Modelica3D_State$m3d__control$state'
visualizemodel.c: In function 'visualizemodel_eqFunction_75':
visualizemodel.c:3057: error: too many arguments to function 'omc_ModelicaServices_Modelica3D_State$m3d__control$state'
visualizemodel.c:3057: error: incompatible type for argument 2 of 'omc_ModelicaServices_Modelica3D_rotate'
visualizemodel_functions.h:252: note: expected 'ModelicaServices_Modelica3D_State' but argument is of type 'ModelicaServices_Modelica3D_State$m3d__control$state'
visualizemodel.c:3084: error: too many arguments to function 'omc_ModelicaServices_Modelica3D_State$m3d__control$state'
visualizemodel.c:3084: error: incompatible type for argument 2 of 'omc_ModelicaServices_Modelica3D_moveTo'
visualizemodel_functions.h:259: note: expected 'ModelicaServices_Modelica3D_State' but argument is of type 'ModelicaServices_Modelica3D_State$m3d__control$state'
visualizemodel.c: In function 'visualizemodel_eqFunction_117':
visualizemodel.c:3465: error: too many arguments to function 'omc_ModelicaServices_Modelica3D_State$m3d__control$state'
visualizemodel.c:3465: error: incompatible type for argument 2 of 'omc_ModelicaServices_Modelica3D_rotate'
visualizemodel_functions.h:252: note: expected 'ModelicaServices_Modelica3D_State' but argument is of type 'ModelicaServices_Modelica3D_State$m3d__control$state'
visualizemodel.c:3492: error: too many arguments to function 'omc_ModelicaServices_Modelica3D_State$m3d__control$state'
visualizemodel.c:3492: error: incompatible type for argument 2 of 'omc_ModelicaServices_Modelica3D_moveTo'
visualizemodel_functions.h:259: note: expected 'ModelicaServices_Modelica3D_State' but argument is of type 'ModelicaServices_Modelica3D_State$m3d__control$state'
visualizemodel.c: In function 'visualizemodel_eqFunction_118':
visualizemodel.c:3615: error: too many arguments to function 'omc_ModelicaServices_Modelica3D_State$m3d__control$state'
visualizemodel.c:3615: error: incompatible type for argument 2 of 'omc_ModelicaServices_Modelica3D_rotate'
visualizemodel_functions.h:252: note: expected 'ModelicaServices_Modelica3D_State' but argument is of type 'ModelicaServices_Modelica3D_State$m3d__control$state'
visualizemodel.c:3642: error: too many arguments to function 'omc_ModelicaServices_Modelica3D_State$m3d__control$state'
visualizemodel.c:3642: error: incompatible type for argument 2 of 'omc_ModelicaServices_Modelica3D_moveTo'
visualizemodel_functions.h:259: note: expected 'ModelicaServices_Modelica3D_State' but argument is of type 'ModelicaServices_Modelica3D_State$m3d__control$state'
visualizemodel_functions.c: In function 'boxptr_ModelicaServices_Modelica3D_rotate':
visualizemodel_functions.c:2149: warning: return discards qualifiers from pointer target type
visualizemodel_functions.c: In function 'boxptr_ModelicaServices_Modelica3D_moveTo':
visualizemodel_functions.c:2187: warning: return discards qualifiers from pointer target type
visualizemodel.c: In function 'visualizemodel_eqFunction_154':
visualizemodel.c:4168: error: too many arguments to function 'omc_ModelicaServices_Modelica3D_State$m3d__control$state'
visualizemodel.c:4168: error: incompatible type for argument 2 of 'omc_ModelicaServices_Modelica3D_stop'
visualizemodel_functions.h:337: note: expected 'ModelicaServices_Modelica3D_State' but argument is of type 'ModelicaServices_Modelica3D_State$m3d__control$state'
visualizemodel_functions.c: In function 'boxptr_ModelicaServices_Modelica3D_applyMaterial':
visualizemodel_functions.c:2410: warning: return discards qualifiers from pointer target type
visualizemodel_functions.c: In function 'boxptr_ModelicaServices_Modelica3D_setSpecularColor':
visualizemodel_functions.c:2551: warning: return discards qualifiers from pointer target type
visualizemodel_functions.c: In function 'boxptr_ModelicaServices_Modelica3D_setAmbientColor':
visualizemodel_functions.c:2599: warning: return discards qualifiers from pointer target type
visualizemodel_functions.c: In function 'boxptr_ModelicaServices_Modelica3D_stop':
visualizemodel_functions.c:2626: warning: return discards qualifiers from pointer target type
visualizemodel_functions.c: In function 'boxptr_ModelicaServices_modbus_sendMessage':
visualizemodel_functions.c:2660: warning: return discards qualifiers from pointer target type
visualizemodel_functions.c: In function 'boxptr_ModelicaServices_modcount_getString':
visualizemodel_functions.c:2719: warning: return discards qualifiers from pointer target type
mingw32-make: *** [visualizemodel.o] Error 1
mingw32-make: *** Waiting for unfinished jobs....


Can you help me with that, please? I'm using OpenModelica 1.9.1 and I installed the recommended versions of Python and pyGTK.

Thank you,

Urko

Edited by: uleturiondo - May-27-15 14:09:02
There are 0 guests and 0 other users also viewing this topic