Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.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.CheckConstaintTorqueUniversalJoint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|universal.phi_a|universal.phi_b|universal.w_a|universal.w_b",fileNamePrefix="ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000961/0.0009611, allocations: 98.47 kB / 17 MB, free: 6.402 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.0009535/0.0009534, allocations: 177.7 kB / 17.89 MB, free: 5.945 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.462/1.462, allocations: 223.3 MB / 241.9 MB, free: 344 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2261/0.2261, allocations: 44.26 MB / 337.3 MB, free: 2.785 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003413/0.0003413, allocations: 8 kB / 409.7 MB, free: 27.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1628/0.1631, allocations: 61.94 MB / 471.6 MB, free: 13.7 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint): time 0.03761/0.2008, allocations: 37.17 MB / 0.4969 GB, free: 8.414 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.3623/0.5632, allocations: 8.637 MB / 0.5053 GB, free: 9.969 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01097/0.5742, allocations: 170.4 kB / 0.5055 GB, free: 9.969 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009222/0.5835, allocations: 1.93 MB / 0.5073 GB, free: 9.969 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02177/0.6053, allocations: 5.805 MB / 0.513 GB, free: 9.672 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004221/0.6095, allocations: 0.5717 MB / 0.5136 GB, free: 9.664 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.04442/0.654, allocations: 31.84 MB / 0.5447 GB, free: 13.68 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007296/0.6613, allocations: 3.607 MB / 0.5482 GB, free: 11.09 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003219/0.6646, allocations: 1.045 MB / 0.5492 GB, free: 10.39 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003688/0.6683, allocations: 1.627 MB / 0.5508 GB, free: 9.16 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001043/0.6694, allocations: 121.6 kB / 0.5509 GB, free: 9.043 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002923/0.6723, allocations: 0.9134 MB / 0.5518 GB, free: 8.285 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002459/0.6748, allocations: 1.417 MB / 0.5532 GB, free: 7.113 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00175/0.6766, allocations: 0.7249 MB / 0.5539 GB, free: 6.723 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007136/0.6837, allocations: 4.885 MB / 0.5587 GB, free: 2.473 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.155e-06/0.6838, allocations: 0 / 0.5587 GB, free: 2.473 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.6838, allocations: 4 kB / 0.5587 GB, free: 2.469 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002655/0.6841, allocations: 3.375 kB / 0.5587 GB, free: 2.469 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1305 * Number of variables: 1305 Notification: Performance of Generate backend data structure: time 0.01062/0.6947, allocations: 3.515 MB / 0.5621 GB, free: 15.21 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.391e-05/0.6948, allocations: 12.03 kB / 0.5621 GB, free: 15.2 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0092/0.704, allocations: 2.077 MB / 0.5641 GB, free: 13.19 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007687/0.7117, allocations: 2.3 MB / 0.5664 GB, free: 11.39 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002754/0.712, allocations: 199 kB / 0.5666 GB, free: 11.28 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001603/0.7137, allocations: 261.3 kB / 0.5668 GB, free: 11.11 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02301/0.7367, allocations: 8.756 MB / 0.5754 GB, free: 4.203 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003309/0.7371, allocations: 43.58 kB / 0.5754 GB, free: 4.16 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001713/0.7388, allocations: 137.5 kB / 0.5755 GB, free: 4.113 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004171/0.743, allocations: 1.797 MB / 0.5773 GB, free: 2.617 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01778/0.7608, allocations: 7.694 MB / 0.5848 GB, free: 12.87 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05261/0.8135, allocations: 34.74 MB / 0.6187 GB, free: 9.332 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00719/0.8207, allocations: 3.083 MB / 0.6218 GB, free: 6.102 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002535/0.8233, allocations: 1.905 MB / 0.6236 GB, free: 4.188 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004212/0.8237, allocations: 332.2 kB / 0.6239 GB, free: 3.816 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.361e-05/0.8238, allocations: 47.06 kB / 0.624 GB, free: 3.766 MB / 462.1 MB Notification: Performance of pre-optimization done (n=135): time 3.797e-06/0.8238, allocations: 0 / 0.624 GB, free: 3.766 MB / 462.1 MB Notification: Performance of matching and sorting (n=156): time 0.03764/0.8614, allocations: 15.37 MB / 0.639 GB, free: 4.293 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001093/0.8616, allocations: 175.2 kB / 0.6392 GB, free: 4.082 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005115/0.8667, allocations: 3.531 MB / 0.6426 GB, free: 0.5508 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002994/0.867, allocations: 49.7 kB / 0.6427 GB, free: 0.4961 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00203/0.8691, allocations: 2.68 MB / 0.6453 GB, free: 13.83 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007602/0.8698, allocations: 0.6082 MB / 0.6459 GB, free: 13.23 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002376/0.8701, allocations: 109.5 kB / 0.646 GB, free: 13.12 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.00035/0.8704, allocations: 0.5333 MB / 0.6465 GB, free: 12.59 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003157/0.8736, allocations: 2.115 MB / 0.6486 GB, free: 10.46 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005533/0.8791, allocations: 5.358 MB / 0.6538 GB, free: 3.477 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004951/0.8841, allocations: 3.31 MB / 0.657 GB, free: 176 kB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.981e-05/0.8842, allocations: 32 kB / 0.657 GB, free: 144 kB / 494.1 MB Notification: Performance of matching and sorting (n=703) (initialization): time 0.01454/0.8987, allocations: 8.291 MB / 0.6651 GB, free: 7.836 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 7.76e-05/0.8988, allocations: 52 kB / 0.6652 GB, free: 7.785 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000136/0.899, allocations: 116.9 kB / 0.6653 GB, free: 7.672 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002846/0.9018, allocations: 1.23 MB / 0.6665 GB, free: 6.438 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004012/0.9059, allocations: 1.224 MB / 0.6677 GB, free: 5.211 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009662/0.9155, allocations: 7.211 MB / 0.6747 GB, free: 13.86 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004686/0.9203, allocations: 319.4 kB / 0.675 GB, free: 13.55 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00123/0.9215, allocations: 332 kB / 0.6754 GB, free: 13.23 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 522 * Number of states: 0 () * Number of discrete variables: 26 (torque.arrow.arrowLine.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 (655): * Single equations (assignments): 651 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005524/0.9271, allocations: 1.878 MB / 0.6772 GB, free: 11.34 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001123/0.9282, allocations: 300.1 kB / 0.6775 GB, free: 11.04 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007216/0.9354, allocations: 3.576 MB / 0.681 GB, free: 7.449 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.908e-05/0.9355, allocations: 24 kB / 0.681 GB, free: 7.426 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.465e-05/0.9355, allocations: 4 kB / 0.681 GB, free: 7.422 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.024e-05/0.9355, allocations: 7.984 kB / 0.681 GB, free: 7.414 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01758/0.9531, allocations: 8.323 MB / 0.6891 GB, free: 15.05 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.866e-05/0.9532, allocations: 4 kB / 0.6891 GB, free: 15.05 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001122/0.9543, allocations: 223.6 kB / 0.6894 GB, free: 14.83 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002696/0.957, allocations: 1.058 MB / 0.6904 GB, free: 13.77 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002145/0.9573, allocations: 24.28 kB / 0.6904 GB, free: 13.75 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009616/0.9669, allocations: 6.725 MB / 0.697 GB, free: 6.891 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.9669, allocations: 4 kB / 0.697 GB, free: 6.887 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009805/0.9767, allocations: 6.259 MB / 0.7031 GB, free: 0.6016 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00118/0.9779, allocations: 369 kB / 0.7034 GB, free: 224 kB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008064/0.9788, allocations: 21.75 kB / 0.7035 GB, free: 204 kB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001633/0.9804, allocations: 107.8 kB / 0.7036 GB, free: 96 kB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002608/0.9807, allocations: 80.84 kB / 0.7036 GB, free: 16 kB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.3446/1.325, allocations: 44.98 kB / 0.7037 GB, free: 187.8 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0065/1.332, allocations: 2.199 MB / 0.7058 GB, free: 187.7 MB / 0.5294 GB Notification: Performance of sort global known variables: time 3.296e-06/1.332, allocations: 0 / 0.7058 GB, free: 187.7 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.008978/1.341, allocations: 0.9178 MB / 0.7067 GB, free: 187.7 MB / 0.5294 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,75.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006889/1.342, allocations: 153.4 kB / 0.7069 GB, free: 187.6 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0104/1.352, allocations: 5.066 MB / 0.7118 GB, free: 186.8 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 7.805e-06/1.352, allocations: 3.969 kB / 0.7118 GB, free: 186.8 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.003777/1.356, allocations: 1.859 MB / 0.7136 GB, free: 186.1 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003525/1.359, allocations: 368.6 kB / 0.714 GB, free: 185.9 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02026/1.38, allocations: 9.863 MB / 0.7236 GB, free: 181.1 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00358/1.383, allocations: 2.925 MB / 0.7265 GB, free: 179.8 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.004209/1.388, allocations: 1.72 MB / 0.7282 GB, free: 179.7 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006673/1.388, allocations: 219.5 kB / 0.7284 GB, free: 179.7 MB / 0.5294 GB Notification: Performance of SimCode: time 1.883e-06/1.388, allocations: 0 / 0.7284 GB, free: 179.7 MB / 0.5294 GB Notification: Performance of Templates: time 0.06359/1.452, allocations: 33.79 MB / 0.7614 GB, free: 152.8 MB / 0.5294 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/CheckConstaintTorqueUniversalJoint/CheckConstaintTorqueUniversalJoint.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches