Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002584/0.002584, allocations: 95.86 kB / 20.96 MB, free: 3.465 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002972/0.002972, allocations: 153.1 kB / 24.27 MB, free: 168 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.634/1.634, allocations: 173.3 MB / 200.8 MB, free: 9.34 MB / 186.7 MB " [Timeout remaining time 178] 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(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.333e-06/1.333e-06, allocations: 0 / 267.3 MB, free: 6.742 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.2e-05/2.333e-05, allocations: 2.312 kB / 267.3 MB, free: 6.738 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.01548/0.01551, allocations: 11.07 MB / 278.4 MB, free: 11.62 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00863/0.02414, allocations: 3.987 MB / 282.4 MB, free: 7.621 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008865/0.02502, allocations: 87.62 kB / 282.5 MB, free: 7.535 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006904/0.03193, allocations: 3.438 MB / 285.9 MB, free: 4.086 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00476/0.03669, allocations: 2.084 MB / 288 MB, free: 1.992 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00185/0.03854, allocations: 0.9005 MB / 288.9 MB, free: 1.09 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1134/0.152, allocations: 4.82 MB / 293.7 MB, free: 14.83 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003559/0.1555, allocations: 3.443 MB / 297.2 MB, free: 14.49 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003008/0.1585, allocations: 2.506 MB / 299.7 MB, free: 14.2 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002645/0.1612, allocations: 2.328 MB / 302 MB, free: 13.77 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005843/0.1618, allocations: 359.9 kB / 302.3 MB, free: 13.77 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001749/0.1635, allocations: 1.211 MB / 303.5 MB, free: 13.63 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001308/0.1648, allocations: 2.229 MB / 305.8 MB, free: 12.73 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001267/0.1661, allocations: 1.358 MB / 307.1 MB, free: 12.12 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005624/0.1717, allocations: 7.726 MB / 314.9 MB, free: 7.883 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.1717, allocations: 3.375 kB / 314.9 MB, free: 7.883 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.413e-06/0.1717, allocations: 0 / 314.9 MB, free: 7.883 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001043/0.1718, allocations: 0 / 314.9 MB, free: 7.883 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1599 * Number of variables: 1599 Notification: Performance of Generate backend data structure: time 0.008259/0.1801, allocations: 6.096 MB / 321 MB, free: 1.824 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.504e-05/0.1801, allocations: 16.86 kB / 321 MB, free: 1.809 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009152/0.1893, allocations: 2.678 MB / 323.7 MB, free: 15.16 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006222/0.1955, allocations: 2.551 MB / 326.2 MB, free: 12.74 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002291/0.1957, allocations: 252.2 kB / 326.5 MB, free: 12.53 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006175/0.1964, allocations: 329.4 kB / 326.8 MB, free: 12.25 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01476/0.2111, allocations: 6.97 MB / 333.7 MB, free: 4.547 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001047/0.2112, allocations: 38.33 kB / 333.8 MB, free: 4.527 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004138/0.2116, allocations: 153.3 kB / 333.9 MB, free: 4.414 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004253/0.2159, allocations: 2.162 MB / 336.1 MB, free: 2.285 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01129/0.2272, allocations: 3.939 MB / 340 MB, free: 14.52 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06245/0.2896, allocations: 49.04 MB / 389.1 MB, free: 12.43 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01043/0.3001, allocations: 2.698 MB / 391.8 MB, free: 9.695 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001639/0.3017, allocations: 0.82 MB / 392.6 MB, free: 8.867 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0105/0.3122, allocations: 4.617 MB / 397.2 MB, free: 4.254 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.356e-05/0.3123, allocations: 53.86 kB / 397.3 MB, free: 4.195 MB / 346.7 MB Notification: Performance of pre-optimization done (n=177): time 3.748e-06/0.3123, allocations: 4 kB / 397.3 MB, free: 4.191 MB / 346.7 MB Notification: Performance of matching and sorting (n=198): time 0.04565/0.3579, allocations: 14.04 MB / 411.3 MB, free: 6.133 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001373/0.3581, allocations: 171.5 kB / 411.5 MB, free: 5.926 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00687/0.3649, allocations: 4.492 MB / 416 MB, free: 1.434 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002025/0.3651, allocations: 58.64 kB / 416 MB, free: 1.371 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003475/0.3686, allocations: 3.712 MB / 419.7 MB, free: 13.67 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001074/0.3697, allocations: 0.8746 MB / 420.6 MB, free: 12.81 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002487/0.3722, allocations: 1.64 MB / 422.2 MB, free: 11.16 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000347/0.3725, allocations: 480.5 kB / 422.7 MB, free: 10.69 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002044/0.3746, allocations: 0.8322 MB / 423.5 MB, free: 9.852 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007953/0.3825, allocations: 6.617 MB / 430.2 MB, free: 0.75 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1402/0.5227, allocations: 8.204 MB / 438.4 MB, free: 88.57 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001499/0.5229, allocations: 37.75 kB / 438.4 MB, free: 88.57 MB / 378.7 MB Notification: Performance of matching and sorting (n=830) (initialization): time 0.01416/0.537, allocations: 6.225 MB / 444.6 MB, free: 88.01 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.333e-05/0.5371, allocations: 60.5 kB / 444.7 MB, free: 88.01 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001755/0.5373, allocations: 132.7 kB / 444.8 MB, free: 88.01 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00286/0.5401, allocations: 0.8064 MB / 445.6 MB, free: 87.98 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004359/0.5445, allocations: 1.451 MB / 447.1 MB, free: 87.86 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005668/0.5502, allocations: 4.081 MB / 451.2 MB, free: 85.81 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00474/0.5549, allocations: 383.6 kB / 451.5 MB, free: 85.81 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007173/0.5556, allocations: 386.9 kB / 451.9 MB, free: 85.81 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 600 * Number of states: 0 () * Number of discrete variables: 49 (forceAndTorque.torqueArrow.arrowLine.twoHeadedArrow,forceAndTorque.torqueArrow.headAtOrigin,forceAndTorque.forceArrow.arrowLine.twoHeadedArrow,forceAndTorque.forceArrow.headAtOrigin,fixed2.color[3],fixed2.color[2],fixed2.color[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],forceAndTorque.connectionLineColor[3],forceAndTorque.connectionLineColor[2],forceAndTorque.connectionLineColor[1],forceAndTorque.torqueColor[3],forceAndTorque.torqueColor[2],forceAndTorque.torqueColor[1],forceAndTorque.forceArrow.color[3],forceAndTorque.forceArrow.color[2],forceAndTorque.forceArrow.color[1],forceAndTorque.forceColor[3],forceAndTorque.forceColor[2],forceAndTorque.forceColor[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[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],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (772): * Single equations (assignments): 766 * Array equations: 5 * 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 {(2,23,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001836/0.5575, allocations: 0.7731 MB / 452.7 MB, free: 85.51 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006759/0.5581, allocations: 400.5 kB / 453.1 MB, free: 85.51 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004939/0.5631, allocations: 2.134 MB / 455.2 MB, free: 85.36 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.506e-05/0.5631, allocations: 24.28 kB / 455.2 MB, free: 85.36 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.021e-05/0.5631, allocations: 3.781 kB / 455.2 MB, free: 85.36 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.637e-05/0.5631, allocations: 10.7 kB / 455.2 MB, free: 85.36 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01347/0.5766, allocations: 7.306 MB / 462.6 MB, free: 84.58 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.455e-05/0.5766, allocations: 10.25 kB / 462.6 MB, free: 84.58 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001426/0.578, allocations: 313.3 kB / 462.9 MB, free: 84.56 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002307/0.5803, allocations: 0.6354 MB / 463.5 MB, free: 84.54 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001409/0.5805, allocations: 44.91 kB / 463.5 MB, free: 84.54 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00537/0.5859, allocations: 3.774 MB / 467.3 MB, free: 82.55 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.741e-06/0.5859, allocations: 7.938 kB / 467.3 MB, free: 82.55 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00614/0.592, allocations: 3.563 MB / 470.9 MB, free: 80.6 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007254/0.5927, allocations: 334.2 kB / 471.2 MB, free: 80.33 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003849/0.5931, allocations: 36 kB / 471.3 MB, free: 80.3 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001491/0.5946, allocations: 151.3 kB / 471.4 MB, free: 80.21 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002877/0.5949, allocations: 136.8 kB / 471.5 MB, free: 80.12 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001325/0.595, allocations: 54.02 kB / 471.6 MB, free: 80.07 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002357/0.5974, allocations: 1.846 MB / 473.4 MB, free: 78.52 MB / 378.7 MB Notification: Performance of sort global known variables: time 1e-07/0.5974, allocations: 4 kB / 473.4 MB, free: 78.52 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.004327/0.6017, allocations: 1.176 MB / 474.6 MB, free: 77.35 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 4 (revolute2.phi,revolute2.w,revolute1.phi,revolute1.w) * 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 (157): * Single equations (assignments): 153 * 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.0004012/0.6021, allocations: 201.4 kB / 474.8 MB, free: 77.17 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.005136/0.6072, allocations: 3.692 MB / 478.5 MB, free: 73.87 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.108e-06/0.6072, allocations: 4.125 kB / 478.5 MB, free: 73.86 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002056/0.6093, allocations: 1.231 MB / 479.7 MB, free: 72.79 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002047/0.6114, allocations: 446.7 kB / 480.2 MB, free: 72.43 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01015/0.6215, allocations: 8.393 MB / 488.6 MB, free: 63.95 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002426/0.6239, allocations: 2.655 MB / 491.2 MB, free: 61.26 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.003229/0.6272, allocations: 1.658 MB / 492.9 MB, free: 59.59 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006655/0.6278, allocations: 244.4 kB / 493.1 MB, free: 59.36 MB / 378.7 MB Notification: Performance of SimCode: time 1.322e-06/0.6278, allocations: 0 / 493.1 MB, free: 59.36 MB / 378.7 MB Notification: Performance of Templates: time 0.05651/0.6843, allocations: 35.49 MB / 0.5162 GB, free: 24.4 MB / 378.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/ForceAndTorque/ForceAndTorque.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 6.753683662042022]