Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque3.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.CutTorque3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cutTorque.torque.3.|cutTorque.torque.2.|cutTorque.torque.1.",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque3") translateModel(ModelicaTest.MultiBody.Sensors.CutTorque3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cutTorque.torque.3.|cutTorque.torque.2.|cutTorque.torque.1.",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001073/0.001073, allocations: 111.3 kB / 18.45 MB, free: 4.645 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.001179/0.001179, allocations: 186.2 kB / 19.38 MB, free: 3.723 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.308/1.308, allocations: 222.9 MB / 243.1 MB, free: 15.08 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.2021/0.2021, allocations: 44.19 MB / 337.4 MB, free: 2.691 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001253/0.001254, allocations: 67.91 kB / 471.2 MB, free: 13.21 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3327/0.334, allocations: 60.82 MB / 0.5196 GB, free: 3.613 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutTorque3): time 0.01044/0.3445, allocations: 9.737 MB / 0.5291 GB, free: 12.73 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.007048/0.3516, allocations: 2.927 MB / 0.5319 GB, free: 10.64 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002221/0.3539, allocations: 50 kB / 0.532 GB, free: 10.64 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004058/0.3579, allocations: 1.983 MB / 0.5339 GB, free: 9.324 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003381/0.3614, allocations: 1.137 MB / 0.535 GB, free: 8.543 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008818/0.3623, allocations: 294.5 kB / 0.5353 GB, free: 8.348 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.003702/0.366, allocations: 2.325 MB / 0.5376 GB, free: 7.133 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00293/0.3689, allocations: 2.332 MB / 0.5398 GB, free: 5.812 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001582/0.3705, allocations: 0.8988 MB / 0.5407 GB, free: 5.305 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001585/0.3721, allocations: 1.18 MB / 0.5419 GB, free: 4.586 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004102/0.3726, allocations: 197.5 kB / 0.5421 GB, free: 4.586 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001346/0.3739, allocations: 0.7027 MB / 0.5427 GB, free: 4.273 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000981/0.3749, allocations: 1.153 MB / 0.5439 GB, free: 3.117 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001113/0.376, allocations: 1.355 MB / 0.5452 GB, free: 1.754 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003912/0.38, allocations: 4.451 MB / 0.5495 GB, free: 13.29 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.711e-06/0.38, allocations: 0 / 0.5495 GB, free: 13.29 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.38, allocations: 4 kB / 0.5495 GB, free: 13.28 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.402e-05/0.3801, allocations: 0 / 0.5495 GB, free: 13.28 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: 1004 * Number of variables: 1004 Notification: Performance of Generate backend data structure: time 0.004715/0.3848, allocations: 2.935 MB / 0.5524 GB, free: 10.29 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.048e-05/0.3848, allocations: 12.03 kB / 0.5524 GB, free: 10.28 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005496/0.3904, allocations: 1.588 MB / 0.554 GB, free: 8.684 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002513/0.3929, allocations: 1.355 MB / 0.5553 GB, free: 7.285 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001065/0.393, allocations: 156 kB / 0.5554 GB, free: 7.133 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000417/0.3934, allocations: 195.8 kB / 0.5556 GB, free: 6.941 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009573/0.403, allocations: 6.428 MB / 0.5619 GB, free: 248 kB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.387e-05/0.4031, allocations: 11.88 kB / 0.5619 GB, free: 236 kB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002391/0.4034, allocations: 91.91 kB / 0.562 GB, free: 144 kB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002104/0.4055, allocations: 1.407 MB / 0.5634 GB, free: 14.73 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009757/0.4152, allocations: 5.488 MB / 0.5687 GB, free: 9.227 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02678/0.4421, allocations: 20.45 MB / 0.5887 GB, free: 4.191 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004082/0.4462, allocations: 2.009 MB / 0.5907 GB, free: 2.059 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009057/0.4471, allocations: 0.6914 MB / 0.5914 GB, free: 1.359 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005973/0.4531, allocations: 3.639 MB / 0.5949 GB, free: 13.57 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.533e-05/0.4532, allocations: 43 kB / 0.5949 GB, free: 13.52 MB / 462.1 MB Notification: Performance of pre-optimization done (n=78): time 3.968e-06/0.4532, allocations: 0 / 0.5949 GB, free: 13.52 MB / 462.1 MB Notification: Performance of matching and sorting (n=78): time 0.005291/0.4585, allocations: 1.974 MB / 0.5969 GB, free: 11.54 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.129e-05/0.4585, allocations: 59.84 kB / 0.5969 GB, free: 11.47 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002955/0.4615, allocations: 1.97 MB / 0.5989 GB, free: 9.5 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 6.887e-05/0.4616, allocations: 33.69 kB / 0.5989 GB, free: 9.461 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001357/0.4629, allocations: 1.879 MB / 0.6007 GB, free: 7.551 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003472/0.4633, allocations: 316.1 kB / 0.601 GB, free: 7.238 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009637/0.4643, allocations: 0.6191 MB / 0.6016 GB, free: 6.609 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001998/0.4645, allocations: 353.9 kB / 0.602 GB, free: 6.258 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001368/0.4659, allocations: 0.8959 MB / 0.6028 GB, free: 5.359 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002825/0.4687, allocations: 2.778 MB / 0.6056 GB, free: 1.641 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004985/0.4737, allocations: 3.992 MB / 0.6095 GB, free: 12.71 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.169e-05/0.4738, allocations: 24 kB / 0.6095 GB, free: 12.68 MB / 478.1 MB Notification: Performance of matching and sorting (n=399) (initialization): time 0.006347/0.4802, allocations: 3.55 MB / 0.6129 GB, free: 9.129 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.988e-05/0.4803, allocations: 36 kB / 0.613 GB, free: 9.094 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.045e-05/0.4804, allocations: 68.12 kB / 0.613 GB, free: 9.027 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.957e-05/0.4805, allocations: 88 kB / 0.6131 GB, free: 8.941 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002093/0.4826, allocations: 0.6628 MB / 0.6138 GB, free: 8.277 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001675/0.4828, allocations: 131.5 kB / 0.6139 GB, free: 8.148 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002073/0.4848, allocations: 419.5 kB / 0.6143 GB, free: 7.734 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003753/0.4852, allocations: 188 kB / 0.6145 GB, free: 7.551 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 304 * Number of states: 0 () * Number of discrete variables: 26 (cutTorque.torqueArrow.arrowLine.twoHeadedArrow,cutTorque.torqueArrow.headAtOrigin,worldTorque.color[3],worldTorque.color[2],worldTorque.color[1],frame_b.color_x[3],frame_b.color_x[2],frame_b.color_x[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],cutTorque.torqueColor[3],cutTorque.torqueColor[2],cutTorque.torqueColor[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (365): * Single equations (assignments): 360 * Array equations: 5 * 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.002183/0.4874, allocations: 1.361 MB / 0.6158 GB, free: 6.18 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002622/0.4877, allocations: 169.8 kB / 0.616 GB, free: 6.012 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004179/0.4881, allocations: 193.2 kB / 0.6162 GB, free: 5.82 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.289e-05/0.4881, allocations: 15.98 kB / 0.6162 GB, free: 5.805 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.714e-06/0.4882, allocations: 3.938 kB / 0.6162 GB, free: 5.801 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.797e-06/0.4882, allocations: 7.969 kB / 0.6162 GB, free: 5.793 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007038/0.4952, allocations: 4.1 MB / 0.6202 GB, free: 1.547 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.354e-05/0.4953, allocations: 11.94 kB / 0.6202 GB, free: 1.535 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004289/0.4957, allocations: 103.8 kB / 0.6203 GB, free: 1.434 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.368e-05/0.4957, allocations: 8 kB / 0.6203 GB, free: 1.426 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.545e-05/0.4958, allocations: 20 kB / 0.6203 GB, free: 1.406 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.384e-05/0.4958, allocations: 12 kB / 0.6203 GB, free: 1.395 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.073e-06/0.4958, allocations: 8.438 kB / 0.6203 GB, free: 1.387 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001562/0.4974, allocations: 1.267 MB / 0.6216 GB, free: 16 kB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004787/0.4979, allocations: 254.7 kB / 0.6218 GB, free: 15.75 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002657/0.4982, allocations: 16 kB / 0.6218 GB, free: 15.73 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005718/0.4987, allocations: 31.89 kB / 0.6219 GB, free: 15.7 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001049/0.4989, allocations: 63.75 kB / 0.6219 GB, free: 15.64 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.657e-05/0.4989, allocations: 28 kB / 0.622 GB, free: 15.61 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.002016/0.5009, allocations: 1.283 MB / 0.6232 GB, free: 14.34 MB / 494.1 MB Notification: Performance of sort global known variables: time 2e-07/0.5009, allocations: 0 / 0.6232 GB, free: 14.34 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002875/0.5038, allocations: 0.7038 MB / 0.6239 GB, free: 13.63 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * 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 (57): * Single equations (assignments): 54 * 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.0004422/0.5043, allocations: 143 kB / 0.624 GB, free: 13.48 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.003672/0.508, allocations: 2.06 MB / 0.626 GB, free: 11.43 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.065e-05/0.508, allocations: 0 / 0.626 GB, free: 11.43 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006088/0.5086, allocations: 462.6 kB / 0.6265 GB, free: 10.98 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001618/0.5103, allocations: 260 kB / 0.6267 GB, free: 10.73 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01051/0.5208, allocations: 5.478 MB / 0.6321 GB, free: 5.129 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002738/0.5236, allocations: 2.323 MB / 0.6343 GB, free: 2.777 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00044/0.524, allocations: 147.4 kB / 0.6345 GB, free: 2.633 MB / 494.1 MB Notification: Performance of SimCode: time 7.82e-07/0.524, allocations: 0 / 0.6345 GB, free: 2.633 MB / 494.1 MB Notification: Performance of Templates: time 0.04657/0.5706, allocations: 30.84 MB / 0.6646 GB, free: 3.855 MB / 0.5137 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque3.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque3.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque3.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque3.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque3.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque3.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/CutTorque3/CutTorque3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches