Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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_4.0.0_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.001308/0.001308, allocations: 111.3 kB / 18.46 MB, free: 4.617 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.001308/0.001308, allocations: 187.1 kB / 19.39 MB, free: 3.695 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.371/1.371, allocations: 222.9 MB / 243.1 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2611/0.2611, allocations: 44.19 MB / 337.4 MB, free: 2.684 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001382/0.001382, allocations: 63.91 kB / 471.2 MB, free: 13.19 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3797/0.3811, allocations: 60.82 MB / 0.5196 GB, free: 3.605 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion): time 0.01368/0.3949, allocations: 11.86 MB / 0.5312 GB, free: 11.18 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01019/0.4051, allocations: 3.951 MB / 0.535 GB, free: 8.176 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002684/0.4078, allocations: 61.31 kB / 0.5351 GB, free: 8.168 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003009/0.4109, allocations: 1.186 MB / 0.5362 GB, free: 7.352 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006124/0.4171, allocations: 1.824 MB / 0.538 GB, free: 6.113 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001844/0.4189, allocations: 495.9 kB / 0.5385 GB, free: 5.801 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.007263/0.4262, allocations: 4.016 MB / 0.5424 GB, free: 3.715 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004336/0.4306, allocations: 1.813 MB / 0.5442 GB, free: 2.574 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002959/0.4336, allocations: 1.188 MB / 0.5453 GB, free: 1.613 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003331/0.4369, allocations: 1.69 MB / 0.547 GB, free: 15.91 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001153/0.4381, allocations: 220 kB / 0.5472 GB, free: 15.7 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003308/0.4415, allocations: 1.092 MB / 0.5483 GB, free: 14.61 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002208/0.4437, allocations: 1.644 MB / 0.5499 GB, free: 12.96 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003586/0.4473, allocations: 1.882 MB / 0.5517 GB, free: 11.07 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00822/0.4555, allocations: 6.256 MB / 0.5578 GB, free: 4.789 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.76e-06/0.4556, allocations: 0 / 0.5578 GB, free: 4.789 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.4556, allocations: 0 / 0.5578 GB, free: 4.789 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002593/0.4558, allocations: 0 / 0.5578 GB, free: 4.789 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: 1512 * Number of variables: 1512 Notification: Performance of Generate backend data structure: time 0.01226/0.4681, allocations: 4.201 MB / 0.5619 GB, free: 0.5195 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.724e-05/0.4682, allocations: 12.03 kB / 0.5619 GB, free: 0.5078 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01186/0.4801, allocations: 3.146 MB / 0.565 GB, free: 13.35 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005486/0.4856, allocations: 2.092 MB / 0.567 GB, free: 11.21 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002407/0.4859, allocations: 188.9 kB / 0.5672 GB, free: 11.03 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001579/0.4875, allocations: 335.5 kB / 0.5675 GB, free: 10.7 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02078/0.5083, allocations: 10.48 MB / 0.5778 GB, free: 15.76 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000167/0.5085, allocations: 31.72 kB / 0.5778 GB, free: 15.73 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001275/0.5098, allocations: 107.8 kB / 0.5779 GB, free: 15.62 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004583/0.5144, allocations: 2.502 MB / 0.5804 GB, free: 13.12 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02015/0.5345, allocations: 10 MB / 0.5901 GB, free: 3.105 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05322/0.5878, allocations: 34.84 MB / 0.6241 GB, free: 15.4 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008068/0.5959, allocations: 4.305 MB / 0.6283 GB, free: 10.88 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003089/0.599, allocations: 2.158 MB / 0.6305 GB, free: 8.715 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001272/0.6003, allocations: 1.323 MB / 0.6317 GB, free: 7.168 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.991e-05/0.6004, allocations: 56.5 kB / 0.6318 GB, free: 7.105 MB / 494.1 MB Notification: Performance of pre-optimization done (n=236): time 6.001e-06/0.6004, allocations: 0 / 0.6318 GB, free: 7.105 MB / 494.1 MB Notification: Performance of matching and sorting (n=246): time 0.03969/0.6401, allocations: 16.25 MB / 0.6477 GB, free: 6.742 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.882e-05/0.6403, allocations: 73.39 kB / 0.6477 GB, free: 6.656 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005513/0.6458, allocations: 2.705 MB / 0.6504 GB, free: 3.934 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0005115/0.6463, allocations: 57.7 kB / 0.6504 GB, free: 3.871 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002127/0.6485, allocations: 2.659 MB / 0.653 GB, free: 1.172 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.001248/0.6497, allocations: 0.906 MB / 0.6539 GB, free: 260 kB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002312/0.6521, allocations: 1.096 MB / 0.655 GB, free: 15.14 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001065/0.6522, allocations: 309.1 kB / 0.6553 GB, free: 14.84 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003627/0.6558, allocations: 2.318 MB / 0.6575 GB, free: 12.52 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005803/0.6616, allocations: 5.297 MB / 0.6627 GB, free: 5.77 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01028/0.6719, allocations: 8.287 MB / 0.6708 GB, free: 12.04 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001223/0.6721, allocations: 32 kB / 0.6708 GB, free: 12.01 MB / 0.5294 GB Notification: Performance of matching and sorting (n=731) (initialization): time 0.02378/0.6959, allocations: 9.454 MB / 0.6801 GB, free: 2.535 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001326/0.6961, allocations: 48 kB / 0.6801 GB, free: 2.488 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01406/0.7101, allocations: 4.612 MB / 0.6846 GB, free: 13.86 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01198/0.7222, allocations: 2.378 MB / 0.6869 GB, free: 11.46 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004566/0.7268, allocations: 1.252 MB / 0.6882 GB, free: 10.21 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009221/0.736, allocations: 6.35 MB / 0.6944 GB, free: 3.574 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004194/0.7402, allocations: 335.7 kB / 0.6947 GB, free: 3.246 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001044/0.7413, allocations: 316 kB / 0.695 GB, free: 2.938 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 468 * Number of states: 0 () * Number of discrete variables: 26 (freeMotion.arrow.arrowLine.twoHeadedArrow,freeMotion.arrow.headAtOrigin,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 (673): * Single equations (assignments): 663 * 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.004273/0.7456, allocations: 2.044 MB / 0.697 GB, free: 0.8828 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000891/0.7465, allocations: 268.5 kB / 0.6972 GB, free: 0.6172 MB / 0.545 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 244 equation(s) and 238 variable(s). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Mechanics/MultiBody/Visualizers/Internal/Lines.mo:37:3-37:43: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.004678/0.7512, allocations: 2.355 MB / 0.6995 GB, free: 14.25 MB / 0.5606 GB Error: post-optimization module wrapFunctionCalls (simulation) failed. Error: Internal error SimCode DAEmode: The model ModelicaTest.MultiBody.Joints.FreeMotion could not be translated