Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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_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_ModelicaTest.MultiBody.Joints.FreeMotion") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001078/0.001078, allocations: 114.9 kB / 18.46 MB, free: 4.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001251/0.001251, allocations: 206.8 kB / 19.41 MB, free: 3.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.357/1.357, allocations: 227.4 MB / 247.6 MB, free: 10.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2065/0.2065, allocations: 46.1 MB / 345 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001436/0.001436, allocations: 75.88 kB / 482 MB, free: 4.055 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3098/0.3113, allocations: 62.45 MB / 0.5317 GB, free: 13.59 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion): time 0.01194/0.3232, allocations: 11.71 MB / 0.5431 GB, free: 4.402 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00794/0.3312, allocations: 3.939 MB / 0.547 GB, free: 1.371 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001767/0.333, allocations: 60.31 kB / 0.547 GB, free: 1.363 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002389/0.3354, allocations: 1.175 MB / 0.5482 GB, free: 0.5586 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003941/0.3394, allocations: 1.724 MB / 0.5499 GB, free: 15.05 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001219/0.3406, allocations: 499 kB / 0.5503 GB, free: 14.56 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.004848/0.3455, allocations: 4.059 MB / 0.5543 GB, free: 10.49 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002305/0.3478, allocations: 1.795 MB / 0.556 GB, free: 8.676 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001621/0.3494, allocations: 1.16 MB / 0.5572 GB, free: 7.512 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002123/0.3516, allocations: 1.658 MB / 0.5588 GB, free: 5.848 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004768/0.3521, allocations: 216 kB / 0.559 GB, free: 5.637 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002018/0.3541, allocations: 1.069 MB / 0.56 GB, free: 4.566 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001283/0.3554, allocations: 1.589 MB / 0.5616 GB, free: 2.973 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001482/0.3569, allocations: 1.832 MB / 0.5634 GB, free: 1.129 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005377/0.3623, allocations: 6.089 MB / 0.5693 GB, free: 11.02 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.3623, allocations: 0 / 0.5693 GB, free: 11.02 MB / 430.1 MB Notification: Performance of FrontEnd: time 8.31e-07/0.3623, allocations: 0 / 0.5693 GB, free: 11.02 MB / 430.1 MB Notification: Performance of Transformations before backend: time 9.19e-05/0.3624, allocations: 4 kB / 0.5693 GB, free: 11.02 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1483 * Number of variables: 1483 Notification: Performance of Generate backend data structure: time 0.005899/0.3683, allocations: 4.092 MB / 0.5733 GB, free: 6.855 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.725e-05/0.3683, allocations: 8.031 kB / 0.5733 GB, free: 6.848 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01059/0.3789, allocations: 3.189 MB / 0.5765 GB, free: 3.648 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00361/0.3826, allocations: 2.021 MB / 0.5784 GB, free: 1.582 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001178/0.3827, allocations: 180.8 kB / 0.5786 GB, free: 1.402 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008432/0.3835, allocations: 327.5 kB / 0.5789 GB, free: 1.082 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01437/0.3979, allocations: 10.3 MB / 0.589 GB, free: 6.328 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.119e-05/0.398, allocations: 23.81 kB / 0.589 GB, free: 6.305 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003461/0.3984, allocations: 111.8 kB / 0.5891 GB, free: 6.195 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003599/0.402, allocations: 2.444 MB / 0.5915 GB, free: 3.746 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01585/0.4178, allocations: 9.843 MB / 0.6011 GB, free: 9.891 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04236/0.4602, allocations: 34.41 MB / 0.6347 GB, free: 6.617 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008135/0.4684, allocations: 4.301 MB / 0.6389 GB, free: 2.082 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002984/0.4714, allocations: 2.162 MB / 0.641 GB, free: 15.92 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001222/0.4727, allocations: 1.314 MB / 0.6423 GB, free: 14.39 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.608e-05/0.4728, allocations: 48.56 kB / 0.6424 GB, free: 14.33 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=236): time 5.32e-06/0.4728, allocations: 0 / 0.6424 GB, free: 14.33 MB / 0.4981 GB Notification: Performance of matching and sorting (n=246): time 0.03671/0.5095, allocations: 16.22 MB / 0.6582 GB, free: 14 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.418e-05/0.5096, allocations: 73.41 kB / 0.6583 GB, free: 13.91 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003657/0.5132, allocations: 2.668 MB / 0.6609 GB, free: 11.22 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0001905/0.5134, allocations: 65.62 kB / 0.6609 GB, free: 11.15 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.00159/0.515, allocations: 2.608 MB / 0.6635 GB, free: 8.504 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007683/0.5158, allocations: 0.9059 MB / 0.6644 GB, free: 7.586 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001427/0.5172, allocations: 1.084 MB / 0.6654 GB, free: 6.492 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 8.59e-05/0.5173, allocations: 305.1 kB / 0.6657 GB, free: 6.191 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003182/0.5205, allocations: 2.318 MB / 0.668 GB, free: 3.867 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005002/0.5255, allocations: 5.233 MB / 0.6731 GB, free: 13.2 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009269/0.5348, allocations: 8.242 MB / 0.6811 GB, free: 3.531 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.974e-05/0.5349, allocations: 28 kB / 0.6812 GB, free: 3.504 MB / 0.5294 GB Notification: Performance of matching and sorting (n=725) (initialization): time 0.02044/0.5554, allocations: 9.477 MB / 0.6904 GB, free: 10.01 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 8.574e-05/0.5555, allocations: 50.19 kB / 0.6905 GB, free: 9.961 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01495/0.5704, allocations: 4.682 MB / 0.695 GB, free: 5.258 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01822/0.5887, allocations: 2.464 MB / 0.6974 GB, free: 2.777 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006453/0.5952, allocations: 1.236 MB / 0.6987 GB, free: 1.539 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01359/0.6088, allocations: 6.383 MB / 0.7049 GB, free: 10.86 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005843/0.6147, allocations: 331.8 kB / 0.7052 GB, free: 10.54 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001136/0.6158, allocations: 308 kB / 0.7055 GB, free: 10.24 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 462 * Number of states: 0 () * Number of discrete variables: 26 (freeMotion.arrow.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 (667): * Single equations (assignments): 657 * 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.00541/0.6213, allocations: 2.019 MB / 0.7075 GB, free: 8.207 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008658/0.6221, allocations: 268.5 kB / 0.7077 GB, free: 7.941 MB / 0.5606 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 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.005514/0.6277, allocations: 2.35 MB / 0.71 GB, free: 5.578 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