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.001159/0.00116, allocations: 114.4 kB / 17.78 MB, free: 5.266 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.001145/0.001145, allocations: 187.8 kB / 18.71 MB, free: 4.344 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.301/1.301, allocations: 222.9 MB / 242.4 MB, free: 15.18 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.1954/0.1954, allocations: 44.19 MB / 336.7 MB, free: 2.672 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001258/0.001258, allocations: 67.91 kB / 470.5 MB, free: 13.16 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3752/0.3764, allocations: 60.83 MB / 0.5189 GB, free: 3.602 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint): time 0.01328/0.3898, allocations: 9.567 MB / 0.5283 GB, free: 12.84 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01008/0.3999, allocations: 3.809 MB / 0.532 GB, free: 10.03 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002438/0.4024, allocations: 56.22 kB / 0.532 GB, free: 10.02 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005094/0.4076, allocations: 2.298 MB / 0.5343 GB, free: 8.477 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005705/0.4133, allocations: 1.649 MB / 0.5359 GB, free: 7.324 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002001/0.4153, allocations: 0.7031 MB / 0.5366 GB, free: 6.852 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.006304/0.4216, allocations: 3.811 MB / 0.5403 GB, free: 4.762 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004953/0.4266, allocations: 2.922 MB / 0.5431 GB, free: 3.035 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002936/0.4296, allocations: 1.303 MB / 0.5444 GB, free: 1.824 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002968/0.4326, allocations: 1.748 MB / 0.5461 GB, free: 72 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009021/0.4335, allocations: 288 kB / 0.5464 GB, free: 15.79 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002549/0.4361, allocations: 1.178 MB / 0.5476 GB, free: 14.61 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001935/0.438, allocations: 1.633 MB / 0.5491 GB, free: 12.97 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002975/0.441, allocations: 1.903 MB / 0.551 GB, free: 11.06 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007741/0.4488, allocations: 6.371 MB / 0.5572 GB, free: 4.668 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.242e-06/0.4488, allocations: 0 / 0.5572 GB, free: 4.668 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.4488, allocations: 4 kB / 0.5572 GB, free: 4.664 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.000178/0.449, allocations: 0 / 0.5572 GB, free: 4.664 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.008987/0.458, allocations: 4.218 MB / 0.5613 GB, free: 388 kB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.847e-05/0.458, allocations: 12.03 kB / 0.5614 GB, free: 376 kB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007978/0.466, allocations: 2.024 MB / 0.5633 GB, free: 14.33 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005375/0.4714, allocations: 2.37 MB / 0.5657 GB, free: 11.92 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000137/0.4716, allocations: 197.4 kB / 0.5658 GB, free: 11.72 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005847/0.4722, allocations: 275.8 kB / 0.5661 GB, free: 11.45 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01256/0.4847, allocations: 8.766 MB / 0.5747 GB, free: 2.074 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.576e-05/0.4849, allocations: 43.59 kB / 0.5747 GB, free: 2.031 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003267/0.4852, allocations: 135.9 kB / 0.5748 GB, free: 1.898 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002939/0.4882, allocations: 1.79 MB / 0.5766 GB, free: 112 kB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01369/0.5019, allocations: 7.733 MB / 0.5841 GB, free: 8.371 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04539/0.5473, allocations: 34.57 MB / 0.6179 GB, free: 4.797 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006831/0.5542, allocations: 3.089 MB / 0.6209 GB, free: 1.555 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002393/0.5566, allocations: 1.911 MB / 0.6228 GB, free: 15.63 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004643/0.5571, allocations: 335.8 kB / 0.6231 GB, free: 15.25 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.475e-05/0.5572, allocations: 47.22 kB / 0.6231 GB, free: 15.19 MB / 494.1 MB Notification: Performance of pre-optimization done (n=135): time 5.42e-06/0.5572, allocations: 0 / 0.6231 GB, free: 15.19 MB / 494.1 MB Notification: Performance of matching and sorting (n=156): time 0.03925/0.5964, allocations: 15.38 MB / 0.6382 GB, free: 15.67 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001051/0.5966, allocations: 179.2 kB / 0.6383 GB, free: 15.46 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005971/0.6025, allocations: 3.552 MB / 0.6418 GB, free: 11.91 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0003376/0.6029, allocations: 45.7 kB / 0.6418 GB, free: 11.86 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002107/0.605, allocations: 2.686 MB / 0.6445 GB, free: 9.133 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007877/0.6058, allocations: 0.6095 MB / 0.6451 GB, free: 8.516 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001941/0.6078, allocations: 1.103 MB / 0.6461 GB, free: 7.402 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001382/0.6079, allocations: 313 kB / 0.6464 GB, free: 7.094 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003129/0.6111, allocations: 2.127 MB / 0.6485 GB, free: 4.961 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005459/0.6165, allocations: 5.393 MB / 0.6538 GB, free: 13.93 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009211/0.6258, allocations: 8.091 MB / 0.6617 GB, free: 4.242 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.331e-05/0.6259, allocations: 32 kB / 0.6617 GB, free: 4.211 MB / 0.5137 GB Notification: Performance of matching and sorting (n=703) (initialization): time 0.01645/0.6423, allocations: 8.331 MB / 0.6699 GB, free: 11.87 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001085/0.6425, allocations: 56.94 kB / 0.6699 GB, free: 11.81 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001539/0.6427, allocations: 116 kB / 0.67 GB, free: 11.7 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00301/0.6457, allocations: 1.23 MB / 0.6712 GB, free: 10.46 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003885/0.6496, allocations: 1.22 MB / 0.6724 GB, free: 9.242 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01045/0.6601, allocations: 7.621 MB / 0.6799 GB, free: 1.477 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004507/0.6646, allocations: 307.4 kB / 0.6801 GB, free: 1.176 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001102/0.6657, allocations: 328.2 kB / 0.6805 GB, free: 0.8555 MB / 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.00415/0.6699, allocations: 1.884 MB / 0.6823 GB, free: 14.96 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009827/0.6709, allocations: 304.1 kB / 0.6826 GB, free: 14.66 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006849/0.6777, allocations: 3.569 MB / 0.6861 GB, free: 11.08 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.829e-05/0.6778, allocations: 19.94 kB / 0.6861 GB, free: 11.06 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.867e-05/0.6778, allocations: 8 kB / 0.6861 GB, free: 11.05 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.987e-05/0.6779, allocations: 7.969 kB / 0.6861 GB, free: 11.04 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01683/0.6947, allocations: 8.237 MB / 0.6942 GB, free: 2.727 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.486e-05/0.6948, allocations: 0 / 0.6942 GB, free: 2.727 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001131/0.6959, allocations: 227.6 kB / 0.6944 GB, free: 2.504 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002753/0.6987, allocations: 1.058 MB / 0.6954 GB, free: 1.441 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001892/0.6989, allocations: 31.94 kB / 0.6954 GB, free: 1.41 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009811/0.7087, allocations: 7.264 MB / 0.7025 GB, free: 10.01 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.946e-06/0.7087, allocations: 0 / 0.7025 GB, free: 10.01 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009832/0.7186, allocations: 6.283 MB / 0.7087 GB, free: 3.688 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001046/0.7196, allocations: 361 kB / 0.709 GB, free: 3.312 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006866/0.7204, allocations: 24 kB / 0.709 GB, free: 3.289 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001649/0.722, allocations: 95.86 kB / 0.7091 GB, free: 3.195 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003376/0.7224, allocations: 100.7 kB / 0.7092 GB, free: 3.098 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001365/0.7225, allocations: 40 kB / 0.7093 GB, free: 3.059 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.004303/0.7268, allocations: 2.221 MB / 0.7114 GB, free: 0.8477 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.61e-07/0.7268, allocations: 0 / 0.7114 GB, free: 0.8477 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.004879/0.7317, allocations: 0.9063 MB / 0.7123 GB, free: 15.94 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.0005155/0.7323, allocations: 162.9 kB / 0.7125 GB, free: 15.77 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.00881/0.7411, allocations: 5.169 MB / 0.7175 GB, free: 10.62 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 6.642e-06/0.7411, allocations: 0 / 0.7175 GB, free: 10.62 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.003135/0.7443, allocations: 1.854 MB / 0.7193 GB, free: 8.754 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003512/0.7478, allocations: 396.3 kB / 0.7197 GB, free: 8.371 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3075/1.055, allocations: 8.387 MB / 0.7279 GB, free: 183.4 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007418/1.063, allocations: 2.93 MB / 0.7308 GB, free: 182.6 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.005454/1.068, allocations: 1.716 MB / 0.7324 GB, free: 182.6 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00114/1.069, allocations: 217.8 kB / 0.7326 GB, free: 182.6 MB / 0.5762 GB Notification: Performance of SimCode: time 8.91e-07/1.069, allocations: 0 / 0.7326 GB, free: 182.6 MB / 0.5762 GB Notification: Performance of Templates: time 0.06261/1.132, allocations: 33.71 MB / 0.7656 GB, free: 164.3 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