Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque3.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001529/0.001529, allocations: 178.2 kB / 17.41 MB, free: 4.293 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.438/1.438, allocations: 225.7 MB / 243.9 MB, free: 8.453 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001005/0.001005, allocations: 94.75 kB / 295 MB, free: 9.504 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3285/0.3285, allocations: 44.31 MB / 390.5 MB, free: 38.02 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003537/0.0003538, allocations: 11.94 kB / 463.1 MB, free: 468 kB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3341/0.3345, allocations: 61.9 MB / 0.5127 GB, free: 37.92 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutTorque3): time 0.02591/0.3605, allocations: 34.24 MB / 0.5462 GB, free: 13.7 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01683/0.3774, allocations: 9.427 MB / 0.5554 GB, free: 6.305 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007536/0.385, allocations: 155.1 kB / 0.5555 GB, free: 6.285 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009772/0.386, allocations: 301.5 kB / 0.5558 GB, free: 6.172 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002798/0.3888, allocations: 1.062 MB / 0.5568 GB, free: 5.746 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006866/0.3895, allocations: 271.6 kB / 0.5571 GB, free: 5.633 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.004028/0.3935, allocations: 3.395 MB / 0.5604 GB, free: 4.664 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005002/0.3986, allocations: 4.022 MB / 0.5643 GB, free: 2.371 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001335/0.3999, allocations: 0.6987 MB / 0.565 GB, free: 2.125 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001548/0.4015, allocations: 1.045 MB / 0.5661 GB, free: 1.781 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003151/0.4018, allocations: 86.56 kB / 0.5661 GB, free: 1.781 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001311/0.4031, allocations: 0.6267 MB / 0.5667 GB, free: 1.617 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00107/0.4042, allocations: 1.005 MB / 0.5677 GB, free: 1.301 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001076/0.4053, allocations: 1.221 MB / 0.5689 GB, free: 416 kB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005662/0.411, allocations: 4.126 MB / 0.5729 GB, free: 14.72 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.332e-06/0.411, allocations: 0 / 0.5729 GB, free: 14.72 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.724e-06/0.411, allocations: 0 / 0.5729 GB, free: 14.72 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001192/0.4112, allocations: 4 kB / 0.573 GB, free: 14.72 MB / 394.7 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.005109/0.4163, allocations: 2.418 MB / 0.5753 GB, free: 12.91 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.281e-05/0.4163, allocations: 8.688 kB / 0.5753 GB, free: 12.91 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005133/0.4215, allocations: 1.63 MB / 0.5769 GB, free: 11.35 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003037/0.4245, allocations: 1.344 MB / 0.5782 GB, free: 9.965 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001253/0.4247, allocations: 147.9 kB / 0.5784 GB, free: 9.82 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004386/0.4251, allocations: 191.9 kB / 0.5786 GB, free: 9.633 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01055/0.4357, allocations: 6.428 MB / 0.5848 GB, free: 2.93 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.019e-05/0.4358, allocations: 15.88 kB / 0.5848 GB, free: 2.914 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002441/0.436, allocations: 83.91 kB / 0.5849 GB, free: 2.832 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00208/0.4381, allocations: 1.407 MB / 0.5863 GB, free: 1.422 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009459/0.4476, allocations: 5.464 MB / 0.5916 GB, free: 11.95 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0274/0.475, allocations: 20.6 MB / 0.6117 GB, free: 6.758 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003858/0.4789, allocations: 2.005 MB / 0.6137 GB, free: 4.625 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009459/0.4799, allocations: 0.6913 MB / 0.6144 GB, free: 3.93 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006619/0.4865, allocations: 3.641 MB / 0.6179 GB, free: 152 kB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.048e-05/0.4866, allocations: 43 kB / 0.618 GB, free: 100 kB / 426.7 MB Notification: Performance of pre-optimization done (n=78): time 4.689e-06/0.4866, allocations: 0 / 0.618 GB, free: 100 kB / 426.7 MB Notification: Performance of matching and sorting (n=78): time 0.005048/0.4916, allocations: 1.974 MB / 0.6199 GB, free: 14.11 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.806e-05/0.4917, allocations: 55.84 kB / 0.62 GB, free: 14.04 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002935/0.4946, allocations: 1.942 MB / 0.6219 GB, free: 12.1 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 5.315e-05/0.4947, allocations: 41.7 kB / 0.6219 GB, free: 12.05 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001353/0.4961, allocations: 1.887 MB / 0.6237 GB, free: 10.14 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000312/0.4964, allocations: 312.1 kB / 0.624 GB, free: 9.828 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001116/0.4965, allocations: 60 kB / 0.6241 GB, free: 9.77 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0003023/0.4968, allocations: 493.3 kB / 0.6246 GB, free: 9.277 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001286/0.4981, allocations: 0.8803 MB / 0.6254 GB, free: 8.395 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002698/0.5008, allocations: 2.766 MB / 0.6281 GB, free: 4.688 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00447/0.5053, allocations: 3.976 MB / 0.632 GB, free: 15.77 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.715e-05/0.5054, allocations: 20 kB / 0.632 GB, free: 15.75 MB / 458.7 MB Notification: Performance of matching and sorting (n=399) (initialization): time 0.005733/0.5111, allocations: 3.531 MB / 0.6355 GB, free: 12.21 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.807e-05/0.5112, allocations: 36.97 kB / 0.6355 GB, free: 12.18 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.846e-05/0.5112, allocations: 67.94 kB / 0.6356 GB, free: 12.11 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.759e-05/0.5113, allocations: 92 kB / 0.6357 GB, free: 12.02 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001784/0.5131, allocations: 0.6628 MB / 0.6363 GB, free: 11.36 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000121/0.5132, allocations: 123.5 kB / 0.6364 GB, free: 11.24 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002039/0.5153, allocations: 419.5 kB / 0.6368 GB, free: 10.82 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000235/0.5155, allocations: 196 kB / 0.637 GB, free: 10.63 MB / 458.7 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.002563/0.5181, allocations: 1.374 MB / 0.6384 GB, free: 9.246 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002608/0.5184, allocations: 157.9 kB / 0.6385 GB, free: 9.09 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003412/0.5187, allocations: 197.2 kB / 0.6387 GB, free: 8.891 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-05/0.5187, allocations: 11.98 kB / 0.6387 GB, free: 8.879 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.248e-05/0.5188, allocations: 3.938 kB / 0.6387 GB, free: 8.875 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.117e-06/0.5188, allocations: 0 / 0.6387 GB, free: 8.875 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006488/0.5253, allocations: 4.093 MB / 0.6427 GB, free: 4.637 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-05/0.5253, allocations: 8 kB / 0.6427 GB, free: 4.629 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004047/0.5257, allocations: 99.81 kB / 0.6428 GB, free: 4.531 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.196e-05/0.5258, allocations: 8 kB / 0.6428 GB, free: 4.523 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.592e-05/0.5258, allocations: 20 kB / 0.6428 GB, free: 4.504 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.472e-05/0.5258, allocations: 19.92 kB / 0.6429 GB, free: 4.484 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.093e-06/0.5259, allocations: 7.938 kB / 0.6429 GB, free: 4.477 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001466/0.5273, allocations: 1.274 MB / 0.6441 GB, free: 3.102 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004708/0.5278, allocations: 254.7 kB / 0.6444 GB, free: 2.832 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001602/0.528, allocations: 23.98 kB / 0.6444 GB, free: 2.809 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004732/0.5285, allocations: 27.89 kB / 0.6444 GB, free: 2.781 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001206/0.5286, allocations: 55.77 kB / 0.6445 GB, free: 2.727 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.97e-05/0.5287, allocations: 35.92 kB / 0.6445 GB, free: 2.691 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002017/0.5307, allocations: 1.272 MB / 0.6457 GB, free: 1.43 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5307, allocations: 0 / 0.6457 GB, free: 1.43 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002947/0.5336, allocations: 0.6999 MB / 0.6464 GB, free: 0.7266 MB / 458.7 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.0003485/0.534, allocations: 151 kB / 0.6466 GB, free: 0.5703 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.003256/0.5373, allocations: 2.02 MB / 0.6485 GB, free: 14.55 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 5.02e-06/0.5373, allocations: 3.828 kB / 0.6485 GB, free: 14.55 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005264/0.5378, allocations: 469.5 kB / 0.649 GB, free: 14.1 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002638/0.5405, allocations: 230.4 kB / 0.6492 GB, free: 13.88 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0105/0.551, allocations: 6.567 MB / 0.6556 GB, free: 7.199 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002448/0.5535, allocations: 2.32 MB / 0.6579 GB, free: 4.848 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.002502/0.556, allocations: 0.9678 MB / 0.6588 GB, free: 3.875 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002998/0.5563, allocations: 115.4 kB / 0.6589 GB, free: 3.762 MB / 474.7 MB Notification: Performance of SimCode: time 1.843e-06/0.5563, allocations: 0 / 0.6589 GB, free: 3.762 MB / 474.7 MB Notification: Performance of Templates: time 0.032/0.5883, allocations: 13.86 MB / 0.6725 GB, free: 5.984 MB / 490.7 MB 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/CutTorque3/CutTorque3.csv","../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches