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.001369/0.001374, allocations: 116.8 kB / 17.78 MB, free: 5.254 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.001342/0.001342, allocations: 183.8 kB / 18.72 MB, free: 4.332 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.383/1.383, allocations: 222.9 MB / 242.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2101/0.2101, allocations: 44.18 MB / 336.7 MB, free: 2.656 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001247/0.001247, allocations: 63.89 kB / 470.5 MB, free: 13.16 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4112/0.4125, allocations: 60.82 MB / 0.5189 GB, free: 3.609 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint): time 0.0101/0.4226, allocations: 9.582 MB / 0.5283 GB, free: 12.83 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.009337/0.432, allocations: 3.8 MB / 0.532 GB, free: 10.05 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003118/0.4351, allocations: 56.22 kB / 0.532 GB, free: 10.04 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006399/0.4417, allocations: 2.302 MB / 0.5343 GB, free: 8.488 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00725/0.449, allocations: 1.653 MB / 0.5359 GB, free: 7.332 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002489/0.4515, allocations: 0.6953 MB / 0.5366 GB, free: 6.867 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.006879/0.4584, allocations: 3.817 MB / 0.5403 GB, free: 4.766 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005255/0.4637, allocations: 2.91 MB / 0.5431 GB, free: 3.055 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003166/0.4668, allocations: 1.303 MB / 0.5444 GB, free: 1.859 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003362/0.4702, allocations: 1.752 MB / 0.5461 GB, free: 104 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001583/0.4718, allocations: 284 kB / 0.5464 GB, free: 15.82 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003775/0.4756, allocations: 1.174 MB / 0.5475 GB, free: 14.65 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002525/0.4782, allocations: 1.621 MB / 0.5491 GB, free: 13.02 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004892/0.4831, allocations: 1.907 MB / 0.551 GB, free: 11.11 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0105/0.4936, allocations: 6.385 MB / 0.5572 GB, free: 4.695 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.4937, allocations: 0 / 0.5572 GB, free: 4.695 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.525e-06/0.4937, allocations: 0 / 0.5572 GB, free: 4.695 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002467/0.4939, allocations: 0 / 0.5572 GB, free: 4.695 MB / 414.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.01132/0.5053, allocations: 4.328 MB / 0.5614 GB, free: 300 kB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.822e-05/0.5053, allocations: 12.03 kB / 0.5615 GB, free: 288 kB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008485/0.5138, allocations: 2.042 MB / 0.5634 GB, free: 14.23 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005468/0.5193, allocations: 2.39 MB / 0.5658 GB, free: 11.8 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001708/0.5195, allocations: 201.4 kB / 0.566 GB, free: 11.6 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008875/0.5204, allocations: 271.9 kB / 0.5662 GB, free: 11.33 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.015/0.5354, allocations: 8.766 MB / 0.5748 GB, free: 1.953 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001429/0.5356, allocations: 43.62 kB / 0.5748 GB, free: 1.91 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007048/0.5363, allocations: 131.9 kB / 0.575 GB, free: 1.781 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002971/0.5393, allocations: 1.79 MB / 0.5767 GB, free: 15.99 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0143/0.5536, allocations: 7.732 MB / 0.5843 GB, free: 8.258 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0491/0.6028, allocations: 34.64 MB / 0.6181 GB, free: 4.617 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007012/0.6098, allocations: 3.089 MB / 0.6211 GB, free: 1.375 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002648/0.6125, allocations: 1.911 MB / 0.623 GB, free: 15.45 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004938/0.613, allocations: 331.8 kB / 0.6233 GB, free: 15.07 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.936e-05/0.6131, allocations: 55.2 kB / 0.6233 GB, free: 15.01 MB / 494.1 MB Notification: Performance of pre-optimization done (n=135): time 4.478e-06/0.6131, allocations: 0 / 0.6233 GB, free: 15.01 MB / 494.1 MB Notification: Performance of matching and sorting (n=156): time 0.0415/0.6546, allocations: 15.58 MB / 0.6386 GB, free: 15.31 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001175/0.6548, allocations: 175.2 kB / 0.6387 GB, free: 15.1 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006855/0.6616, allocations: 3.561 MB / 0.6422 GB, free: 11.54 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0003819/0.6621, allocations: 45.7 kB / 0.6422 GB, free: 11.49 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002494/0.6646, allocations: 2.796 MB / 0.645 GB, free: 8.672 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.001192/0.6658, allocations: 0.6397 MB / 0.6456 GB, free: 8.027 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00273/0.6685, allocations: 1.111 MB / 0.6467 GB, free: 6.906 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.000166/0.6687, allocations: 309.1 kB / 0.647 GB, free: 6.602 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003854/0.6726, allocations: 2.13 MB / 0.6491 GB, free: 4.465 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005972/0.6786, allocations: 5.386 MB / 0.6543 GB, free: 13.45 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01046/0.689, allocations: 8.094 MB / 0.6622 GB, free: 3.738 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000143/0.6892, allocations: 36 kB / 0.6623 GB, free: 3.703 MB / 0.5137 GB Notification: Performance of matching and sorting (n=703) (initialization): time 0.01566/0.7049, allocations: 8.344 MB / 0.6704 GB, free: 11.34 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001039/0.705, allocations: 59.94 kB / 0.6705 GB, free: 11.29 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001627/0.7052, allocations: 116 kB / 0.6706 GB, free: 11.17 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003088/0.7083, allocations: 1.227 MB / 0.6718 GB, free: 9.941 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003956/0.7123, allocations: 1.224 MB / 0.673 GB, free: 8.715 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009466/0.7217, allocations: 7.611 MB / 0.6804 GB, free: 0.9609 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004154/0.7259, allocations: 307.6 kB / 0.6807 GB, free: 0.6602 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001031/0.727, allocations: 328 kB / 0.681 GB, free: 348 kB / 0.5294 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 (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.003607/0.7306, allocations: 1.888 MB / 0.6829 GB, free: 14.44 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007225/0.7313, allocations: 321.8 kB / 0.6832 GB, free: 14.12 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00667/0.738, allocations: 3.569 MB / 0.6866 GB, free: 10.54 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.384e-05/0.7381, allocations: 19.94 kB / 0.6867 GB, free: 10.52 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.642e-05/0.7381, allocations: 8 kB / 0.6867 GB, free: 10.52 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.886e-05/0.7381, allocations: 11.97 kB / 0.6867 GB, free: 10.5 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01792/0.756, allocations: 8.233 MB / 0.6947 GB, free: 2.191 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.731e-05/0.7561, allocations: 0 / 0.6947 GB, free: 2.191 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001172/0.7573, allocations: 231.6 kB / 0.6949 GB, free: 1.965 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002855/0.7601, allocations: 1.054 MB / 0.696 GB, free: 0.9062 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002177/0.7604, allocations: 31.94 kB / 0.696 GB, free: 0.875 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009904/0.7703, allocations: 7.263 MB / 0.7031 GB, free: 9.477 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.367e-06/0.7703, allocations: 0 / 0.7031 GB, free: 9.477 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00969/0.78, allocations: 6.296 MB / 0.7092 GB, free: 3.145 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009249/0.781, allocations: 386.8 kB / 0.7096 GB, free: 2.746 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007095/0.7817, allocations: 27.98 kB / 0.7096 GB, free: 2.719 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001624/0.7833, allocations: 99.84 kB / 0.7097 GB, free: 2.621 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000275/0.7836, allocations: 88.77 kB / 0.7098 GB, free: 2.535 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001249/0.7838, allocations: 47.92 kB / 0.7099 GB, free: 2.488 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.004295/0.7881, allocations: 2.224 MB / 0.712 GB, free: 280 kB / 0.5606 GB Notification: Performance of sort global known variables: time 2.41e-07/0.7881, allocations: 0 / 0.712 GB, free: 280 kB / 0.5606 GB Notification: Performance of remove unused functions: time 0.005408/0.7935, allocations: 0.914 MB / 0.7129 GB, free: 15.36 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.0006624/0.7942, allocations: 146.9 kB / 0.7131 GB, free: 15.21 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.009107/0.8033, allocations: 5.172 MB / 0.7181 GB, free: 10.05 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.709e-06/0.8033, allocations: 0 / 0.7181 GB, free: 10.05 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.003251/0.8066, allocations: 1.865 MB / 0.7199 GB, free: 8.176 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003647/0.8102, allocations: 399.9 kB / 0.7203 GB, free: 7.793 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3092/1.119, allocations: 8.507 MB / 0.7286 GB, free: 183.7 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003611/1.123, allocations: 2.925 MB / 0.7315 GB, free: 183 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.003479/1.127, allocations: 1.72 MB / 0.7332 GB, free: 182.9 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000668/1.127, allocations: 219.5 kB / 0.7334 GB, free: 182.9 MB / 0.5762 GB Notification: Performance of SimCode: time 1.543e-06/1.127, allocations: 0 / 0.7334 GB, free: 182.9 MB / 0.5762 GB Notification: Performance of Templates: time 0.05445/1.182, allocations: 33.82 MB / 0.7664 GB, free: 163.8 MB / 0.5762 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