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.001104/0.001105, allocations: 108.4 kB / 17.09 MB, free: 6 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.00104/0.00104, allocations: 191.3 kB / 18.02 MB, free: 5.086 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.375/1.375, allocations: 205.1 MB / 223.9 MB, free: 12.25 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.2007/0.2007, allocations: 43.52 MB / 314.8 MB, free: 476 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.001776/0.001776, allocations: 72.39 kB / 442.5 MB, free: 5.68 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1152/0.117, allocations: 57.8 MB / 0.4886 GB, free: 11.8 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion): time 0.01269/0.1297, allocations: 12.2 MB / 0.5005 GB, free: 15.54 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.008228/0.138, allocations: 4.008 MB / 0.5044 GB, free: 11.52 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001668/0.1397, allocations: 63.88 kB / 0.5045 GB, free: 11.45 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002745/0.1425, allocations: 1.206 MB / 0.5056 GB, free: 10.24 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004862/0.1474, allocations: 1.864 MB / 0.5075 GB, free: 8.371 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001418/0.1488, allocations: 495 kB / 0.5079 GB, free: 7.887 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.006086/0.1549, allocations: 4.13 MB / 0.512 GB, free: 3.746 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003145/0.1581, allocations: 1.854 MB / 0.5138 GB, free: 1.863 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002414/0.1605, allocations: 1.226 MB / 0.515 GB, free: 0.6328 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002855/0.1634, allocations: 1.76 MB / 0.5167 GB, free: 14.87 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001028/0.1644, allocations: 236 kB / 0.5169 GB, free: 14.64 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002961/0.1674, allocations: 1.108 MB / 0.518 GB, free: 13.53 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002224/0.1696, allocations: 1.683 MB / 0.5196 GB, free: 11.84 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003916/0.1736, allocations: 1.956 MB / 0.5216 GB, free: 9.871 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008889/0.1825, allocations: 6.523 MB / 0.5279 GB, free: 3.32 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.53e-06/0.1825, allocations: 0 / 0.5279 GB, free: 3.32 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.1825, allocations: 0 / 0.5279 GB, free: 3.32 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002565/0.1828, allocations: 0 / 0.5279 GB, free: 3.32 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.2742/0.4569, allocations: 4.433 MB / 0.5323 GB, free: 37.24 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.682e-05/0.457, allocations: 15.25 kB / 0.5323 GB, free: 37.24 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01173/0.4687, allocations: 3.194 MB / 0.5354 GB, free: 36.94 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004771/0.4735, allocations: 2.182 MB / 0.5375 GB, free: 36.54 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001566/0.4737, allocations: 195.1 kB / 0.5377 GB, free: 36.53 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000786/0.4745, allocations: 343.4 kB / 0.538 GB, free: 36.52 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01798/0.4925, allocations: 10.78 MB / 0.5486 GB, free: 32.43 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.934e-05/0.4926, allocations: 28.16 kB / 0.5486 GB, free: 32.42 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003893/0.493, allocations: 117.9 kB / 0.5487 GB, free: 32.34 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003917/0.497, allocations: 2.568 MB / 0.5512 GB, free: 31.63 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01997/0.5169, allocations: 10.29 MB / 0.5613 GB, free: 24.18 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06752/0.5845, allocations: 35.74 MB / 0.5962 GB, free: 3.848 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00931/0.5939, allocations: 4.426 MB / 0.6005 GB, free: 15.2 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004781/0.5987, allocations: 2.209 MB / 0.6026 GB, free: 12.99 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001887/0.6006, allocations: 1.323 MB / 0.6039 GB, free: 11.45 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.87e-05/0.6007, allocations: 58.31 kB / 0.604 GB, free: 11.38 MB / 446.1 MB Notification: Performance of pre-optimization done (n=245): time 1.052e-05/0.6007, allocations: 0 / 0.604 GB, free: 11.38 MB / 446.1 MB Notification: Performance of matching and sorting (n=255): time 0.04289/0.6436, allocations: 16.62 MB / 0.6202 GB, free: 10.68 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.194e-05/0.6437, allocations: 73.41 kB / 0.6203 GB, free: 10.6 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005399/0.6491, allocations: 2.791 MB / 0.623 GB, free: 7.797 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005082/0.6497, allocations: 61.7 kB / 0.6231 GB, free: 7.73 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002894/0.6526, allocations: 2.85 MB / 0.6259 GB, free: 4.852 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001908/0.6545, allocations: 0.9805 MB / 0.6268 GB, free: 3.863 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003185/0.6577, allocations: 1.136 MB / 0.6279 GB, free: 2.715 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001182/0.6579, allocations: 305.1 kB / 0.6282 GB, free: 2.414 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004198/0.6621, allocations: 2.389 MB / 0.6305 GB, free: 20 kB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006586/0.6687, allocations: 5.419 MB / 0.6358 GB, free: 9.113 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01108/0.6798, allocations: 8.513 MB / 0.6441 GB, free: 15.12 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001336/0.68, allocations: 28 kB / 0.6442 GB, free: 15.09 MB / 494.1 MB Notification: Performance of matching and sorting (n=753) (initialization): time 0.02454/0.7045, allocations: 9.67 MB / 0.6536 GB, free: 5.402 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001284/0.7047, allocations: 52 kB / 0.6537 GB, free: 5.352 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01447/0.7192, allocations: 4.698 MB / 0.6583 GB, free: 0.6367 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01173/0.7309, allocations: 2.378 MB / 0.6606 GB, free: 14.24 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004656/0.7356, allocations: 1.298 MB / 0.6618 GB, free: 12.94 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009508/0.7451, allocations: 6.375 MB / 0.6681 GB, free: 6.277 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003933/0.7491, allocations: 339.7 kB / 0.6684 GB, free: 5.945 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008863/0.75, allocations: 320 kB / 0.6687 GB, free: 5.633 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.004101/0.7541, allocations: 2.11 MB / 0.6708 GB, free: 3.508 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007183/0.7549, allocations: 290.1 kB / 0.671 GB, free: 3.223 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.004315/0.7592, allocations: 2.434 MB / 0.6734 GB, free: 0.7656 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