Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotion.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotion") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001125/0.001125, allocations: 199.9 kB / 16.76 MB, free: 5.02 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.422/1.422, allocations: 226.5 MB / 244 MB, free: 6.383 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00078/0.0007802, allocations: 95.77 kB / 296.1 MB, free: 6.676 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3419/0.3419, allocations: 44.81 MB / 392.9 MB, free: 35.61 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003922/0.0003923, allocations: 8 kB / 465.9 MB, free: 12.68 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4161/0.4165, allocations: 62.96 MB / 0.5165 GB, free: 37.18 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion): time 0.01892/0.4355, allocations: 26.42 MB / 0.5423 GB, free: 18.33 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01268/0.4482, allocations: 6.451 MB / 0.5486 GB, free: 14 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005206/0.4535, allocations: 120.5 kB / 0.5487 GB, free: 13.98 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003785/0.4573, allocations: 1.275 MB / 0.55 GB, free: 13.54 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01014/0.4674, allocations: 4.032 MB / 0.5539 GB, free: 11.9 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002005/0.4695, allocations: 450.3 kB / 0.5543 GB, free: 11.75 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.006551/0.476, allocations: 4.438 MB / 0.5587 GB, free: 10.32 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003899/0.48, allocations: 2.237 MB / 0.5609 GB, free: 9.211 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002122/0.4821, allocations: 1.03 MB / 0.5619 GB, free: 8.695 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002566/0.4847, allocations: 1.677 MB / 0.5635 GB, free: 7.867 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008074/0.4855, allocations: 125.4 kB / 0.5636 GB, free: 7.867 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002537/0.488, allocations: 1.036 MB / 0.5646 GB, free: 7.391 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002046/0.4901, allocations: 1.517 MB / 0.5661 GB, free: 6.543 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001861/0.492, allocations: 1.698 MB / 0.5678 GB, free: 4.828 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003611/0.4956, allocations: 4.725 MB / 0.5724 GB, free: 96 kB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.379e-06/0.4956, allocations: 0 / 0.5724 GB, free: 96 kB / 378.7 MB Notification: Performance of FrontEnd: time 1.984e-06/0.4956, allocations: 4 kB / 0.5724 GB, free: 92 kB / 378.7 MB Notification: Performance of Transformations before backend: time 7.249e-05/0.4957, allocations: 0 / 0.5724 GB, free: 92 kB / 378.7 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.005423/0.5011, allocations: 3.461 MB / 0.5758 GB, free: 12.56 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.512e-05/0.5012, allocations: 8.031 kB / 0.5758 GB, free: 12.55 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01072/0.5119, allocations: 3.294 MB / 0.579 GB, free: 9.25 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004091/0.516, allocations: 2.025 MB / 0.581 GB, free: 7.18 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001437/0.5162, allocations: 184.9 kB / 0.5811 GB, free: 6.996 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008921/0.5171, allocations: 331.6 kB / 0.5815 GB, free: 6.672 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0149/0.532, allocations: 10.47 MB / 0.5917 GB, free: 11.75 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.202e-05/0.5321, allocations: 31.73 kB / 0.5917 GB, free: 11.72 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003655/0.5325, allocations: 119.8 kB / 0.5918 GB, free: 11.6 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003922/0.5364, allocations: 2.487 MB / 0.5943 GB, free: 9.113 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01877/0.5552, allocations: 9.983 MB / 0.604 GB, free: 15.12 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05049/0.6057, allocations: 35.03 MB / 0.6382 GB, free: 11.22 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008022/0.6138, allocations: 4.3 MB / 0.6424 GB, free: 6.691 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003128/0.617, allocations: 2.155 MB / 0.6445 GB, free: 4.539 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001208/0.6182, allocations: 1.307 MB / 0.6458 GB, free: 3.008 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.352e-05/0.6183, allocations: 60.5 kB / 0.6459 GB, free: 2.941 MB / 458.7 MB Notification: Performance of pre-optimization done (n=236): time 6.162e-06/0.6183, allocations: 3.938 kB / 0.6459 GB, free: 2.938 MB / 458.7 MB Notification: Performance of matching and sorting (n=246): time 0.03813/0.6564, allocations: 16.21 MB / 0.6617 GB, free: 2.617 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.691e-05/0.6565, allocations: 73.41 kB / 0.6618 GB, free: 2.531 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003892/0.6604, allocations: 2.697 MB / 0.6644 GB, free: 15.82 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000177/0.6606, allocations: 61.69 kB / 0.6645 GB, free: 15.75 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0017/0.6623, allocations: 2.655 MB / 0.667 GB, free: 13.05 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007987/0.6631, allocations: 0.9059 MB / 0.6679 GB, free: 12.14 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002977/0.6634, allocations: 108 kB / 0.668 GB, free: 12.03 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0003479/0.6638, allocations: 0.5416 MB / 0.6686 GB, free: 11.48 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003363/0.6671, allocations: 2.302 MB / 0.6708 GB, free: 9.172 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005171/0.6723, allocations: 5.266 MB / 0.676 GB, free: 2.461 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2622/0.9345, allocations: 8.278 MB / 0.684 GB, free: 121.9 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001124/0.9347, allocations: 31.19 kB / 0.6841 GB, free: 121.9 MB / 490.7 MB Notification: Performance of matching and sorting (n=731) (initialization): time 0.0203/0.955, allocations: 9.474 MB / 0.6933 GB, free: 119.1 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001448/0.9552, allocations: 49.31 kB / 0.6934 GB, free: 119.1 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01308/0.9683, allocations: 4.671 MB / 0.6979 GB, free: 118 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01218/0.9805, allocations: 2.467 MB / 0.7003 GB, free: 117.8 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004577/0.9851, allocations: 1.247 MB / 0.7016 GB, free: 117.7 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008468/0.9936, allocations: 5.854 MB / 0.7073 GB, free: 114.4 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003909/0.9976, allocations: 339.5 kB / 0.7076 GB, free: 114.3 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001128/0.9987, allocations: 308 kB / 0.7079 GB, free: 114.2 MB / 490.7 MB 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 (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.004598/1.003, allocations: 2.054 MB / 0.7099 GB, free: 113.4 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000677/1.004, allocations: 267.5 kB / 0.7101 GB, free: 113.4 MB / 490.7 MB 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 trunk/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.004081/1.008, allocations: 2.358 MB / 0.7125 GB, free: 112.4 MB / 490.7 MB Error: post-optimization module wrapFunctionCalls (simulation) failed.