Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.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.CheckConstaintTorqueUniversalJoint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|universal.phi_a|universal.phi_b|universal.w_a|universal.w_b",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint") translateModel(ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|universal.phi_a|universal.phi_b|universal.w_a|universal.w_b",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001274/0.001274, allocations: 113 kB / 18.46 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001379/0.001379, allocations: 208.9 kB / 19.41 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.254/1.254, allocations: 227.4 MB / 247.6 MB, free: 10.5 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1936/0.1936, allocations: 46.1 MB / 344.9 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001275/0.001275, allocations: 75.88 kB / 482 MB, free: 4.047 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2797/0.281, allocations: 62.43 MB / 0.5317 GB, free: 13.6 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint): time 0.00924/0.2903, allocations: 9.47 MB / 0.5409 GB, free: 6.176 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.006661/0.297, allocations: 3.796 MB / 0.5446 GB, free: 3.223 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001149/0.2982, allocations: 51.62 kB / 0.5447 GB, free: 3.215 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003796/0.302, allocations: 2.29 MB / 0.5469 GB, free: 1.68 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003671/0.3057, allocations: 1.643 MB / 0.5485 GB, free: 444 kB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001422/0.3071, allocations: 0.6941 MB / 0.5492 GB, free: 15.73 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.004559/0.3117, allocations: 3.803 MB / 0.5529 GB, free: 11.93 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00273/0.3145, allocations: 2.895 MB / 0.5557 GB, free: 8.984 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001508/0.316, allocations: 1.293 MB / 0.557 GB, free: 7.688 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001714/0.3177, allocations: 1.725 MB / 0.5587 GB, free: 5.957 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000378/0.3181, allocations: 284 kB / 0.5589 GB, free: 5.68 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001622/0.3197, allocations: 1.151 MB / 0.5601 GB, free: 4.527 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001174/0.3209, allocations: 1.594 MB / 0.5616 GB, free: 2.93 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001542/0.3225, allocations: 1.849 MB / 0.5634 GB, free: 1.07 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005631/0.3281, allocations: 6.219 MB / 0.5695 GB, free: 10.83 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.244e-06/0.3281, allocations: 4 kB / 0.5695 GB, free: 10.83 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.3281, allocations: 3.938 kB / 0.5695 GB, free: 10.82 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.000111/0.3283, allocations: 0 / 0.5695 GB, free: 10.82 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: 1276 * Number of variables: 1276 Notification: Performance of Generate backend data structure: time 0.00703/0.3353, allocations: 4.147 MB / 0.5736 GB, free: 6.609 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.878e-05/0.3353, allocations: 12.03 kB / 0.5736 GB, free: 6.598 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006873/0.3422, allocations: 1.996 MB / 0.5755 GB, free: 4.594 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004223/0.3465, allocations: 2.327 MB / 0.5778 GB, free: 2.219 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000121/0.3466, allocations: 189.3 kB / 0.578 GB, free: 2.031 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005189/0.3471, allocations: 263.9 kB / 0.5782 GB, free: 1.773 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01199/0.3591, allocations: 8.588 MB / 0.5866 GB, free: 8.566 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001103/0.3593, allocations: 39.59 kB / 0.5866 GB, free: 8.527 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004571/0.3597, allocations: 127.9 kB / 0.5868 GB, free: 8.402 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002575/0.3623, allocations: 1.743 MB / 0.5885 GB, free: 6.66 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01207/0.3744, allocations: 7.561 MB / 0.5959 GB, free: 15.08 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03567/0.4101, allocations: 34.16 MB / 0.6292 GB, free: 11.95 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006183/0.4163, allocations: 3.092 MB / 0.6322 GB, free: 8.703 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002053/0.4184, allocations: 1.907 MB / 0.6341 GB, free: 6.781 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003517/0.4188, allocations: 331.7 kB / 0.6344 GB, free: 6.398 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.039e-05/0.4188, allocations: 47.22 kB / 0.6345 GB, free: 6.344 MB / 494.1 MB Notification: Performance of pre-optimization done (n=135): time 4.208e-06/0.4188, allocations: 0 / 0.6345 GB, free: 6.344 MB / 494.1 MB Notification: Performance of matching and sorting (n=156): time 0.03475/0.4536, allocations: 15.33 MB / 0.6494 GB, free: 6.883 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.628e-05/0.4537, allocations: 175.1 kB / 0.6496 GB, free: 6.676 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004496/0.4582, allocations: 3.515 MB / 0.653 GB, free: 3.156 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001892/0.4584, allocations: 45.7 kB / 0.6531 GB, free: 3.105 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.001629/0.4601, allocations: 2.632 MB / 0.6556 GB, free: 448 kB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006336/0.4607, allocations: 0.6134 MB / 0.6562 GB, free: 15.82 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001427/0.4621, allocations: 1.095 MB / 0.6573 GB, free: 14.71 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 7.877e-05/0.4622, allocations: 305.1 kB / 0.6576 GB, free: 14.41 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002765/0.465, allocations: 2.123 MB / 0.6597 GB, free: 12.28 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004613/0.4696, allocations: 5.337 MB / 0.6649 GB, free: 5.328 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008058/0.4777, allocations: 8.034 MB / 0.6727 GB, free: 11.7 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.631e-05/0.4778, allocations: 32 kB / 0.6728 GB, free: 11.67 MB / 0.5294 GB Notification: Performance of matching and sorting (n=697) (initialization): time 0.01329/0.4911, allocations: 8.282 MB / 0.6809 GB, free: 3.375 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001104/0.4912, allocations: 59.98 kB / 0.6809 GB, free: 3.316 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001493/0.4914, allocations: 116.1 kB / 0.681 GB, free: 3.203 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002784/0.4942, allocations: 1.222 MB / 0.6822 GB, free: 1.977 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003617/0.4978, allocations: 1.221 MB / 0.6834 GB, free: 0.7539 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009243/0.5071, allocations: 7.605 MB / 0.6908 GB, free: 9.008 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00347/0.5106, allocations: 311.5 kB / 0.6911 GB, free: 8.703 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007332/0.5113, allocations: 332 kB / 0.6914 GB, free: 8.379 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 516 * Number of states: 0 () * Number of discrete variables: 26 (torque.arrow.twoHeadedArrow,torque.arrow.headAtOrigin,universal.cylinderColor[3],universal.cylinderColor[2],universal.cylinderColor[1],torque.color[3],torque.color[2],torque.color[1],bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (649): * Single equations (assignments): 645 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,22,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002641/0.514, allocations: 1.841 MB / 0.6932 GB, free: 6.523 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000566/0.5146, allocations: 304 kB / 0.6935 GB, free: 6.223 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005922/0.5205, allocations: 3.576 MB / 0.697 GB, free: 2.633 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.941e-05/0.5205, allocations: 16 kB / 0.697 GB, free: 2.617 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.109e-05/0.5206, allocations: 4 kB / 0.697 GB, free: 2.613 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.798e-05/0.5206, allocations: 16.05 kB / 0.6971 GB, free: 2.598 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01325/0.5338, allocations: 8.173 MB / 0.705 GB, free: 10.35 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.085e-05/0.5339, allocations: 0 / 0.705 GB, free: 10.35 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001068/0.535, allocations: 227.6 kB / 0.7053 GB, free: 10.13 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002554/0.5375, allocations: 1.062 MB / 0.7063 GB, free: 9.062 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001604/0.5377, allocations: 28 kB / 0.7063 GB, free: 9.035 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00874/0.5464, allocations: 7.264 MB / 0.7134 GB, free: 1.641 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.5465, allocations: 0 / 0.7134 GB, free: 1.641 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008655/0.5551, allocations: 6.271 MB / 0.7195 GB, free: 11.34 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007644/0.5559, allocations: 361.1 kB / 0.7199 GB, free: 10.96 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004738/0.5564, allocations: 24 kB / 0.7199 GB, free: 10.94 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00127/0.5577, allocations: 103.8 kB / 0.72 GB, free: 10.84 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002462/0.5579, allocations: 88.88 kB / 0.7201 GB, free: 10.75 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001209/0.5581, allocations: 39.98 kB / 0.7201 GB, free: 10.71 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.003221/0.5613, allocations: 2.196 MB / 0.7223 GB, free: 8.527 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.31e-07/0.5613, allocations: 0 / 0.7223 GB, free: 8.527 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.003579/0.5649, allocations: 0.8906 MB / 0.7231 GB, free: 7.637 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (universal.phi_a,universal.phi_b,universal.w_a,universal.w_b) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (115): * Single equations (assignments): 111 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(4,18,75.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003655/0.5653, allocations: 147 kB / 0.7233 GB, free: 7.484 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.00703/0.5723, allocations: 5.16 MB / 0.7283 GB, free: 2.332 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.898e-06/0.5723, allocations: 4 kB / 0.7283 GB, free: 2.328 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.002693/0.575, allocations: 1.858 MB / 0.7301 GB, free: 472 kB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001931/0.577, allocations: 377.2 kB / 0.7305 GB, free: 96 kB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2378/0.8148, allocations: 8.66 MB / 0.739 GB, free: 179.2 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003338/0.8182, allocations: 2.883 MB / 0.7418 GB, free: 178 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000889/0.8191, allocations: 250 kB / 0.742 GB, free: 178 MB / 0.5762 GB Notification: Performance of SimCode: time 1.323e-06/0.8191, allocations: 0 / 0.742 GB, free: 178 MB / 0.5762 GB Notification: Performance of Templates: time 0.06868/0.8878, allocations: 67.83 MB / 0.8082 GB, free: 116.5 MB / 0.5762 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/CheckConstaintTorqueUniversalJoint/CheckConstaintTorqueUniversalJoint.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches