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

Posts

Posts

May-27-15 14:07:18
Using OMEdit or other

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

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