Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque.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.Sensors.CutTorque,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cutTorque1a.torque.3.|cutTorque2a.torque.3.|cutTorque1b.torque.3.|cutTorque2b.torque.3.|cutTorque1a.torque.2.|cutTorque2a.torque.2.|cutTorque1b.torque.2.|cutTorque2b.torque.2.|cutTorque1a.torque.1.|cutTorque2a.torque.1.|cutTorque1b.torque.1.|cutTorque2b.torque.1.",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque") translateModel(ModelicaTest.MultiBody.Sensors.CutTorque,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cutTorque1a.torque.3.|cutTorque2a.torque.3.|cutTorque1b.torque.3.|cutTorque2b.torque.3.|cutTorque1a.torque.2.|cutTorque2a.torque.2.|cutTorque1b.torque.2.|cutTorque2b.torque.2.|cutTorque1a.torque.1.|cutTorque2a.torque.1.|cutTorque1b.torque.1.|cutTorque2b.torque.1.",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001805/0.001805, allocations: 113.4 kB / 17.86 MB, free: 5.629 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.002165/0.002165, allocations: 201.9 kB / 18.77 MB, free: 4.715 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.326/2.326, allocations: 222.9 MB / 242.5 MB, free: 15.4 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.4012/0.4012, allocations: 44.17 MB / 336.8 MB, free: 2.961 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002597/0.002598, allocations: 68.92 kB / 408.4 MB, free: 27.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1904/0.1931, allocations: 60.83 MB / 469.2 MB, free: 14.82 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutTorque): time 0.5643/0.7574, allocations: 99.35 MB / 0.5552 GB, free: 9.691 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.06839/0.8259, allocations: 18.94 MB / 0.5737 GB, free: 9.547 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.03527/0.8612, allocations: 442.9 kB / 0.5741 GB, free: 9.113 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01607/0.8774, allocations: 6.05 MB / 0.58 GB, free: 3.051 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01221/0.8897, allocations: 2.7 MB / 0.5827 GB, free: 352 kB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005536/0.8953, allocations: 1.498 MB / 0.5841 GB, free: 14.84 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.02521/0.9205, allocations: 11.21 MB / 0.5951 GB, free: 3.617 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01986/0.9405, allocations: 7.463 MB / 0.6024 GB, free: 12.09 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01018/0.9507, allocations: 2.761 MB / 0.6051 GB, free: 9.324 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01194/0.9627, allocations: 4.179 MB / 0.6091 GB, free: 5.133 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003844/0.9666, allocations: 464 kB / 0.6096 GB, free: 4.68 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007901/0.9746, allocations: 1.377 MB / 0.6109 GB, free: 3.301 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.009284/0.9839, allocations: 3.507 MB / 0.6144 GB, free: 15.78 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01235/0.9963, allocations: 3.863 MB / 0.6181 GB, free: 11.89 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01943/1.016, allocations: 9.499 MB / 0.6274 GB, free: 2.375 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.029e-05/1.016, allocations: 4 kB / 0.6274 GB, free: 2.371 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.414e-06/1.016, allocations: 0 / 0.6274 GB, free: 2.371 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0006838/1.017, allocations: 0 / 0.6274 GB, free: 2.371 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2587 * Number of variables: 2587 Notification: Performance of Generate backend data structure: time 0.04144/1.058, allocations: 8.73 MB / 0.6359 GB, free: 9.551 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.517e-05/1.058, allocations: 11.97 kB / 0.6359 GB, free: 9.539 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02255/1.081, allocations: 2.576 MB / 0.6385 GB, free: 6.949 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02109/1.102, allocations: 4.606 MB / 0.643 GB, free: 2.266 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001029/1.103, allocations: 439.2 kB / 0.6434 GB, free: 1.836 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004662/1.108, allocations: 0.5504 MB / 0.6439 GB, free: 1.285 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0657/1.173, allocations: 17.43 MB / 0.6609 GB, free: 14.71 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.00057/1.174, allocations: 75.33 kB / 0.661 GB, free: 14.64 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003429/1.178, allocations: 271.8 kB / 0.6613 GB, free: 14.38 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.01027/1.188, allocations: 3.17 MB / 0.6644 GB, free: 11.2 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05757/1.246, allocations: 13.41 MB / 0.6775 GB, free: 13.77 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.8846/2.13, allocations: 66.13 MB / 0.742 GB, free: 144.2 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03015/2.16, allocations: 5.378 MB / 0.7473 GB, free: 142.6 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005984/2.166, allocations: 2.114 MB / 0.7494 GB, free: 141.8 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03253/2.199, allocations: 10.01 MB / 0.7591 GB, free: 135.3 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.084e-05/2.199, allocations: 53.5 kB / 0.7592 GB, free: 135.2 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=182): time 1.11e-05/2.199, allocations: 0 / 0.7592 GB, free: 135.2 MB / 0.5294 GB Notification: Performance of matching and sorting (n=206): time 0.0749/2.274, allocations: 14.17 MB / 0.773 GB, free: 126.3 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.984e-05/2.274, allocations: 155.8 kB / 0.7732 GB, free: 126.2 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01858/2.293, allocations: 6.382 MB / 0.7794 GB, free: 119.8 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0004979/2.293, allocations: 57.7 kB / 0.7795 GB, free: 119.7 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.005028/2.298, allocations: 5.238 MB / 0.7846 GB, free: 114.5 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001491/2.3, allocations: 0.8162 MB / 0.7854 GB, free: 113.7 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005423/2.305, allocations: 1.7 MB / 0.787 GB, free: 112 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 6.555e-05/2.306, allocations: 310.3 kB / 0.7873 GB, free: 111.7 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007105/2.313, allocations: 2.346 MB / 0.7896 GB, free: 109.3 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01141/2.324, allocations: 7.771 MB / 0.7972 GB, free: 98.96 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01744/2.342, allocations: 10.99 MB / 0.8079 GB, free: 85.41 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002939/2.342, allocations: 55.94 kB / 0.808 GB, free: 85.36 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1119) (initialization): time 0.03135/2.373, allocations: 9.747 MB / 0.8175 GB, free: 75.61 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003661/2.374, allocations: 88.09 kB / 0.8176 GB, free: 75.52 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004315/2.374, allocations: 200 kB / 0.8178 GB, free: 75.33 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000432/2.375, allocations: 252 kB / 0.818 GB, free: 75.08 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01152/2.386, allocations: 1.949 MB / 0.8199 GB, free: 73.13 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005148/2.387, allocations: 374.5 kB / 0.8203 GB, free: 72.76 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01216/2.399, allocations: 415.5 kB / 0.8207 GB, free: 72.36 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002013/2.401, allocations: 0.5232 MB / 0.8212 GB, free: 71.84 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 879 * Number of states: 0 () * Number of discrete variables: 68 (cutTorque2b.torqueArrow.arrowLine.twoHeadedArrow,cutTorque2b.torqueArrow.headAtOrigin,cutTorque1b.torqueArrow.arrowLine.twoHeadedArrow,cutTorque1b.torqueArrow.headAtOrigin,cutTorque2a.torqueArrow.arrowLine.twoHeadedArrow,cutTorque2a.torqueArrow.headAtOrigin,cutTorque1a.torqueArrow.arrowLine.twoHeadedArrow,cutTorque1a.torqueArrow.headAtOrigin,rotate2b.color[3],rotate2b.color[2],rotate2b.color[1],body2b.sphereColor[3],body2b.sphereColor[2],body2b.sphereColor[1],translate2b.color[3],translate2b.color[2],translate2b.color[1],cutTorque2b.torqueColor[3],cutTorque2b.torqueColor[2],cutTorque2b.torqueColor[1],rotate1b.color[3],rotate1b.color[2],rotate1b.color[1],body1b.sphereColor[3],body1b.sphereColor[2],body1b.sphereColor[1],translate1b.color[3],translate1b.color[2],translate1b.color[1],cutTorque1b.torqueColor[3],cutTorque1b.torqueColor[2],cutTorque1b.torqueColor[1],rotate2a.color[3],rotate2a.color[2],rotate2a.color[1],rotate1a.color[3],rotate1a.color[2],rotate1a.color[1],body2a.sphereColor[3],body2a.sphereColor[2],body2a.sphereColor[1],translate2a.color[3],translate2a.color[2],translate2a.color[1],cutTorque2a.torqueColor[3],cutTorque2a.torqueColor[2],cutTorque2a.torqueColor[1],body1a.sphereColor[3],body1a.sphereColor[2],body1a.sphereColor[1],translate1a.color[3],translate1a.color[2],translate1a.color[1],cutTorque1a.torqueColor[3],cutTorque1a.torqueColor[2],cutTorque1a.torqueColor[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 (1055): * Single equations (assignments): 1044 * Array equations: 11 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.009714/2.411, allocations: 3.413 MB / 0.8245 GB, free: 68.41 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001649/2.413, allocations: 0.5321 MB / 0.8251 GB, free: 67.87 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002498/2.415, allocations: 0.6209 MB / 0.8257 GB, free: 67.25 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.455e-05/2.415, allocations: 27.28 kB / 0.8257 GB, free: 67.22 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.63e-05/2.415, allocations: 3.984 kB / 0.8257 GB, free: 67.22 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.367e-05/2.415, allocations: 7.969 kB / 0.8257 GB, free: 67.21 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04026/2.456, allocations: 15.26 MB / 0.8406 GB, free: 51.29 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001764/2.456, allocations: 47.98 kB / 0.8406 GB, free: 51.24 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002726/2.459, allocations: 443.2 kB / 0.8411 GB, free: 50.8 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.216e-05/2.459, allocations: 63.94 kB / 0.8411 GB, free: 50.74 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003735/2.459, allocations: 107.9 kB / 0.8412 GB, free: 50.64 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.906e-05/2.459, allocations: 87.66 kB / 0.8413 GB, free: 50.55 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.028e-05/2.459, allocations: 71.69 kB / 0.8414 GB, free: 50.48 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007407/2.467, allocations: 4.306 MB / 0.8456 GB, free: 45.46 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002634/2.469, allocations: 0.6343 MB / 0.8462 GB, free: 44.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002022/2.471, allocations: 118.2 kB / 0.8463 GB, free: 44.69 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004974/2.476, allocations: 108 kB / 0.8464 GB, free: 44.59 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006289/2.477, allocations: 306.5 kB / 0.8467 GB, free: 44.29 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003532/2.477, allocations: 132 kB / 0.8468 GB, free: 44.16 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.01226/2.49, allocations: 3.988 MB / 0.8507 GB, free: 40.18 MB / 0.5294 GB Notification: Performance of sort global known variables: time 7.51e-07/2.49, allocations: 0 / 0.8507 GB, free: 40.18 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.01453/2.504, allocations: 1.368 MB / 0.8521 GB, free: 38.82 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 211 * Number of states: 0 () * 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 (238): * Single equations (assignments): 235 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001112/2.505, allocations: 275.2 kB / 0.8523 GB, free: 38.54 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01387/2.519, allocations: 5.4 MB / 0.8576 GB, free: 33.19 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 5.511e-05/2.519, allocations: 8 kB / 0.8576 GB, free: 33.18 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.002893/2.522, allocations: 1.202 MB / 0.8588 GB, free: 31.99 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01248/2.535, allocations: 0.8773 MB / 0.8596 GB, free: 31.11 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04795/2.583, allocations: 19.98 MB / 0.8792 GB, free: 10.44 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01148/2.594, allocations: 5.243 MB / 0.8843 GB, free: 5.164 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002067/2.597, allocations: 423.4 kB / 0.8847 GB, free: 4.75 MB / 0.5294 GB Notification: Performance of SimCode: time 1.172e-06/2.597, allocations: 0 / 0.8847 GB, free: 4.75 MB / 0.5294 GB Notification: Performance of Templates: time 0.5511/3.148, allocations: 86.61 MB / 0.9693 GB, free: 173.5 MB / 0.5607 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/CutTorque/CutTorque.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches