Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotion.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Joints.FreeMotion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|freeMotion.Q.1.|freeMotion.Q.2.|freeMotion.Q.3.|freeMotion.Q.4.|freeMotion.r_rel_a.1.|freeMotion.r_rel_a.2.|freeMotion.r_rel_a.3.|freeMotion.v_rel_a.1.|freeMotion.v_rel_a.2.|freeMotion.v_rel_a.3.|freeMotion.w_rel_b.1.|freeMotion.w_rel_b.2.|freeMotion.w_rel_b.3.",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotion") translateModel(ModelicaTest.MultiBody.Joints.FreeMotion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|freeMotion.Q.1.|freeMotion.Q.2.|freeMotion.Q.3.|freeMotion.Q.4.|freeMotion.r_rel_a.1.|freeMotion.r_rel_a.2.|freeMotion.r_rel_a.3.|freeMotion.v_rel_a.1.|freeMotion.v_rel_a.2.|freeMotion.v_rel_a.3.|freeMotion.w_rel_b.1.|freeMotion.w_rel_b.2.|freeMotion.w_rel_b.3.",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotion") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001075/0.001075, allocations: 114.7 kB / 17.09 MB, free: 5.957 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001007/0.001007, allocations: 194.1 kB / 18.02 MB, free: 5.047 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.306/1.306, allocations: 205.1 MB / 223.9 MB, free: 12.22 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2177/0.2177, allocations: 43.53 MB / 314.8 MB, free: 456 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001373/0.001373, allocations: 73.45 kB / 442.5 MB, free: 5.641 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1178/0.1192, allocations: 57.79 MB / 0.4886 GB, free: 11.78 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion): time 0.01297/0.1322, allocations: 12.2 MB / 0.5005 GB, free: 15.51 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.008649/0.1409, allocations: 4.019 MB / 0.5044 GB, free: 11.48 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001773/0.1427, allocations: 63.88 kB / 0.5045 GB, free: 11.42 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002547/0.1453, allocations: 1.191 MB / 0.5056 GB, free: 10.22 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004558/0.1499, allocations: 1.837 MB / 0.5074 GB, free: 8.379 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001313/0.1512, allocations: 0.4912 MB / 0.5079 GB, free: 7.887 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.006022/0.1573, allocations: 4.122 MB / 0.5119 GB, free: 3.758 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003081/0.1604, allocations: 1.858 MB / 0.5137 GB, free: 1.871 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002846/0.1632, allocations: 1.238 MB / 0.5149 GB, free: 0.6289 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003397/0.1666, allocations: 1.756 MB / 0.5167 GB, free: 14.87 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009827/0.1676, allocations: 232 kB / 0.5169 GB, free: 14.64 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0035/0.1712, allocations: 1.1 MB / 0.518 GB, free: 13.54 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002536/0.1737, allocations: 1.687 MB / 0.5196 GB, free: 11.85 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003787/0.1775, allocations: 1.96 MB / 0.5215 GB, free: 9.875 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009288/0.1868, allocations: 6.484 MB / 0.5279 GB, free: 3.367 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.1868, allocations: 0 / 0.5279 GB, free: 3.367 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.1869, allocations: 0 / 0.5279 GB, free: 3.367 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002905/0.1872, allocations: 0 / 0.5279 GB, free: 3.367 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1560 * Number of variables: 1560 Notification: Performance of Generate backend data structure: time 0.2836/0.4707, allocations: 4.317 MB / 0.5321 GB, free: 37.32 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.41e-05/0.4708, allocations: 13.8 kB / 0.5321 GB, free: 37.32 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01148/0.4823, allocations: 3.169 MB / 0.5352 GB, free: 37.04 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005339/0.4877, allocations: 2.189 MB / 0.5373 GB, free: 36.42 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001659/0.4879, allocations: 187.9 kB / 0.5375 GB, free: 36.41 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001326/0.4892, allocations: 343.1 kB / 0.5378 GB, free: 36.4 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0202/0.5094, allocations: 10.79 MB / 0.5484 GB, free: 32.36 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000104/0.5096, allocations: 28.34 kB / 0.5484 GB, free: 32.34 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004363/0.51, allocations: 115.9 kB / 0.5485 GB, free: 32.26 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004038/0.5141, allocations: 2.566 MB / 0.551 GB, free: 31.58 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0186/0.5327, allocations: 10.28 MB / 0.561 GB, free: 24.18 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04895/0.5817, allocations: 35.67 MB / 0.5959 GB, free: 3.73 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008936/0.5906, allocations: 4.426 MB / 0.6002 GB, free: 15.08 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003305/0.594, allocations: 2.205 MB / 0.6023 GB, free: 12.88 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001294/0.5953, allocations: 1.323 MB / 0.6036 GB, free: 11.33 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.501e-05/0.5954, allocations: 52.56 kB / 0.6037 GB, free: 11.27 MB / 446.1 MB Notification: Performance of pre-optimization done (n=245): time 6.833e-06/0.5954, allocations: 4 kB / 0.6037 GB, free: 11.27 MB / 446.1 MB Notification: Performance of matching and sorting (n=255): time 0.04305/0.6385, allocations: 16.55 MB / 0.6199 GB, free: 10.58 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.807e-05/0.6386, allocations: 85.41 kB / 0.6199 GB, free: 10.48 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00476/0.6433, allocations: 2.771 MB / 0.6226 GB, free: 7.699 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004065/0.6438, allocations: 57.7 kB / 0.6227 GB, free: 7.637 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002544/0.6463, allocations: 2.732 MB / 0.6254 GB, free: 4.863 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001704/0.648, allocations: 0.9412 MB / 0.6263 GB, free: 3.91 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002527/0.6506, allocations: 1.123 MB / 0.6274 GB, free: 2.773 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001022/0.6507, allocations: 305.1 kB / 0.6277 GB, free: 2.473 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003821/0.6545, allocations: 2.384 MB / 0.63 GB, free: 88 kB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00602/0.6606, allocations: 5.427 MB / 0.6353 GB, free: 9.176 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01072/0.6713, allocations: 8.509 MB / 0.6436 GB, free: 15.18 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001001/0.6714, allocations: 28 kB / 0.6436 GB, free: 15.16 MB / 494.1 MB Notification: Performance of matching and sorting (n=753) (initialization): time 0.02555/0.697, allocations: 9.662 MB / 0.6531 GB, free: 5.477 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001766/0.6972, allocations: 52 kB / 0.6531 GB, free: 5.426 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01431/0.7116, allocations: 4.694 MB / 0.6577 GB, free: 0.7109 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01103/0.7226, allocations: 2.374 MB / 0.66 GB, free: 14.32 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004764/0.7274, allocations: 1.298 MB / 0.6613 GB, free: 13.02 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009138/0.7366, allocations: 6.371 MB / 0.6675 GB, free: 6.359 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003973/0.7406, allocations: 347.8 kB / 0.6679 GB, free: 6.02 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001022/0.7416, allocations: 323.9 kB / 0.6682 GB, free: 5.703 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 481 * Number of states: 0 () * Number of discrete variables: 24 (frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],freeMotion.arrowColor[3],freeMotion.arrowColor[2],freeMotion.arrowColor[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (695): * Single equations (assignments): 685 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(4,100.0%), (3,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004736/0.7464, allocations: 2.109 MB / 0.6702 GB, free: 3.578 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008728/0.7473, allocations: 276.4 kB / 0.6705 GB, free: 3.305 MB / 0.4981 GB Warning: After manipulating the system with postOptModule wrapFunctionCalls the system is unbalanced. This indicates that the original system is singular. You can use -d=dumpCSE and -d=dumpCSE_verbose for more information. Error: Too many equations, over-determined system. The model has 254 equation(s) and 248 variable(s). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Mechanics/MultiBody/Visualizers.mo:2749:7-2749:47:writable] Error: {{frame_a.y_label.R_lines[1,1], frame_a.y_label.R_lines[1,2], frame_a.y_label.R_lines[1,3]}, {frame_a.y_label.R_lines[2,1], frame_a.y_label.R_lines[2,2], frame_a.y_label.R_lines[2,3]}, {frame_a.y_label.R_lines[3,1], frame_a.y_label.R_lines[3,2], frame_a.y_label.R_lines[3,3]}} = Modelica.Mechanics.MultiBody.Frames.TransformationMatrices.from_nxy({0.0, 1.0, 0.0}, {-1.0, 0.0, 0.0}) has size 9 but 3 variables (frame_a.x_label.R_lines[1,2], frame_a.x_label.R_lines[2,2], frame_a.x_label.cylinders[2].lengthDirection[2]) Error: Internal error Transformation Module PFPlusExt index Reduction Method Pantelides failed! Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004869/0.7521, allocations: 2.43 MB / 0.6729 GB, free: 0.8516 MB / 0.4981 GB Error: post-optimization module wrapFunctionCalls (simulation) failed. Error: Internal error SimCode DAEmode: The model ModelicaTest.MultiBody.Joints.FreeMotion could not be translated