Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotion.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_ModelicaTest.MultiBody.Joints.FreeMotion") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001032/0.001032, allocations: 178.2 kB / 17.39 MB, free: 4.395 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.507/1.507, allocations: 205.4 MB / 223.5 MB, free: 9.008 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007783/0.0007784, allocations: 86.31 kB / 271.9 MB, free: 8.25 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3632/0.3632, allocations: 43.56 MB / 363.7 MB, free: 52.12 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003697/0.0003699, allocations: 16 kB / 432.6 MB, free: 5.809 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1106/0.111, allocations: 58.85 MB / 491.5 MB, free: 10.88 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion): time 0.2352/0.3462, allocations: 26.73 MB / 0.5061 GB, free: 31.52 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01416/0.3604, allocations: 6.488 MB / 0.5124 GB, free: 27.19 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006019/0.3664, allocations: 120.7 kB / 0.5125 GB, free: 27.17 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004191/0.3707, allocations: 1.281 MB / 0.5138 GB, free: 26.72 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01187/0.3826, allocations: 4.087 MB / 0.5178 GB, free: 25.06 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001917/0.3845, allocations: 461.3 kB / 0.5182 GB, free: 24.9 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.005162/0.3897, allocations: 4.445 MB / 0.5225 GB, free: 23.45 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003352/0.3931, allocations: 2.261 MB / 0.5248 GB, free: 22.5 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001893/0.395, allocations: 1.066 MB / 0.5258 GB, free: 22.16 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00248/0.3975, allocations: 1.747 MB / 0.5275 GB, free: 21.65 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008046/0.3983, allocations: 136.2 kB / 0.5276 GB, free: 21.65 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002385/0.4007, allocations: 1.059 MB / 0.5287 GB, free: 21.4 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001914/0.4026, allocations: 1.573 MB / 0.5302 GB, free: 20.94 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002644/0.4053, allocations: 1.757 MB / 0.5319 GB, free: 19.71 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006234/0.4115, allocations: 4.899 MB / 0.5367 GB, free: 18.71 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.4115, allocations: 3.938 kB / 0.5367 GB, free: 18.71 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.4115, allocations: 0 / 0.5367 GB, free: 18.71 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002692/0.4118, allocations: 0 / 0.5367 GB, free: 18.71 MB / 378.7 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.008326/0.4201, allocations: 3.556 MB / 0.5402 GB, free: 16.38 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.653e-05/0.4202, allocations: 9.469 kB / 0.5402 GB, free: 16.38 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0113/0.4315, allocations: 3.261 MB / 0.5434 GB, free: 14.72 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005203/0.4367, allocations: 2.166 MB / 0.5455 GB, free: 13.35 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00025/0.437, allocations: 194 kB / 0.5457 GB, free: 13.25 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001576/0.4386, allocations: 341.3 kB / 0.546 GB, free: 13.12 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01851/0.4571, allocations: 10.77 MB / 0.5565 GB, free: 7.121 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001483/0.4573, allocations: 32.88 kB / 0.5566 GB, free: 7.102 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000787/0.4581, allocations: 116.6 kB / 0.5567 GB, free: 7.02 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003542/0.4617, allocations: 2.569 MB / 0.5592 GB, free: 4.488 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01837/0.4801, allocations: 10.25 MB / 0.5692 GB, free: 10.23 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05387/0.534, allocations: 35.87 MB / 0.6042 GB, free: 5.5 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007716/0.5417, allocations: 4.418 MB / 0.6085 GB, free: 0.8555 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003037/0.5448, allocations: 2.189 MB / 0.6107 GB, free: 14.66 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001101/0.5459, allocations: 1.327 MB / 0.612 GB, free: 13.11 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.757e-05/0.546, allocations: 48.56 kB / 0.612 GB, free: 13.06 MB / 442.7 MB Notification: Performance of pre-optimization done (n=245): time 7.434e-06/0.546, allocations: 3.984 kB / 0.612 GB, free: 13.05 MB / 442.7 MB Notification: Performance of matching and sorting (n=255): time 0.03806/0.584, allocations: 16.52 MB / 0.6281 GB, free: 12.4 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.839e-05/0.5841, allocations: 77.34 kB / 0.6282 GB, free: 12.32 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004546/0.5887, allocations: 2.759 MB / 0.6309 GB, free: 9.543 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002137/0.5889, allocations: 65.69 kB / 0.631 GB, free: 9.473 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001987/0.5909, allocations: 2.74 MB / 0.6337 GB, free: 6.691 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001001/0.5919, allocations: 0.929 MB / 0.6346 GB, free: 5.75 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003397/0.5923, allocations: 115.9 kB / 0.6347 GB, free: 5.637 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003821/0.5927, allocations: 0.5498 MB / 0.6352 GB, free: 5.078 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003756/0.5964, allocations: 2.361 MB / 0.6375 GB, free: 2.711 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005851/0.6023, allocations: 5.4 MB / 0.6428 GB, free: 11.83 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009761/0.6121, allocations: 8.494 MB / 0.6511 GB, free: 1.852 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.364e-05/0.6121, allocations: 32 kB / 0.6511 GB, free: 1.82 MB / 474.7 MB Notification: Performance of matching and sorting (n=753) (initialization): time 0.02047/0.6326, allocations: 9.617 MB / 0.6605 GB, free: 8.176 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.601e-05/0.6327, allocations: 52 kB / 0.6606 GB, free: 8.125 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01287/0.6456, allocations: 4.676 MB / 0.6651 GB, free: 3.438 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01091/0.6565, allocations: 2.378 MB / 0.6674 GB, free: 1.043 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004148/0.6607, allocations: 1.298 MB / 0.6687 GB, free: 15.74 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008114/0.6688, allocations: 5.848 MB / 0.6744 GB, free: 9.621 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003758/0.6726, allocations: 347.6 kB / 0.6748 GB, free: 9.281 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007381/0.6734, allocations: 320 kB / 0.6751 GB, free: 8.969 MB / 0.4948 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 (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004078/0.6775, allocations: 2.099 MB / 0.6771 GB, free: 6.855 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005999/0.6781, allocations: 280.4 kB / 0.6774 GB, free: 6.578 MB / 0.4948 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.003983/0.6821, allocations: 2.425 MB / 0.6797 GB, free: 4.133 MB / 0.4948 GB Error: post-optimization module wrapFunctionCalls (simulation) failed.