Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001655/0.001655, allocations: 120.4 kB / 17.79 MB, free: 5.285 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001951/0.001951, allocations: 199.3 kB / 20.74 MB, free: 2.344 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.556/1.556, allocations: 230.6 MB / 254.1 MB, free: 15.1 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001606/0.001606, allocations: 48.02 kB / 373.5 MB, free: 9.715 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1041/0.1057, allocations: 53.33 MB / 426.8 MB, free: 4.293 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.2135/0.3192, allocations: 11.23 MB / 438 MB, free: 5.293 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008473/0.3277, allocations: 4.068 MB / 442.1 MB, free: 3.156 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002454/0.3301, allocations: 82.19 kB / 442.2 MB, free: 3.133 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006168/0.3363, allocations: 3.216 MB / 445.4 MB, free: 1.684 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006619/0.3429, allocations: 1.92 MB / 447.3 MB, free: 0.8086 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002362/0.3453, allocations: 0.8348 MB / 448.2 MB, free: 456 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.008768/0.354, allocations: 4.399 MB / 452.6 MB, free: 14.79 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005085/0.3591, allocations: 3.341 MB / 455.9 MB, free: 13.18 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003387/0.3625, allocations: 1.634 MB / 457.5 MB, free: 12.26 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003685/0.3662, allocations: 2.291 MB / 459.8 MB, free: 10.84 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008465/0.367, allocations: 346.1 kB / 460.2 MB, free: 10.84 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002869/0.3699, allocations: 1.269 MB / 461.4 MB, free: 10.34 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002515/0.3724, allocations: 2.055 MB / 463.5 MB, free: 9.137 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003255/0.3757, allocations: 2.276 MB / 465.8 MB, free: 7.402 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01057/0.3862, allocations: 7.396 MB / 473.2 MB, free: 2.078 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.98e-06/0.3862, allocations: 0 / 473.2 MB, free: 2.078 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.3862, allocations: 0 / 473.2 MB, free: 2.078 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002902/0.3865, allocations: 0 / 473.2 MB, free: 2.078 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1541 * Number of variables: 1541 Notification: Performance of Generate backend data structure: time 0.01335/0.3999, allocations: 5.196 MB / 478.4 MB, free: 12.8 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.128e-05/0.3999, allocations: 12.03 kB / 478.4 MB, free: 12.79 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009932/0.4099, allocations: 2.151 MB / 480.5 MB, free: 10.63 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007508/0.4174, allocations: 2.78 MB / 483.3 MB, free: 7.793 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002359/0.4176, allocations: 246.2 kB / 483.5 MB, free: 7.551 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001081/0.4187, allocations: 319.8 kB / 483.8 MB, free: 7.238 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02209/0.4408, allocations: 10.45 MB / 494.3 MB, free: 12.09 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001206/0.4409, allocations: 43.64 kB / 494.3 MB, free: 12.05 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004544/0.4414, allocations: 160.7 kB / 494.5 MB, free: 11.89 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00392/0.4453, allocations: 2.033 MB / 496.5 MB, free: 9.859 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01903/0.4643, allocations: 8.906 MB / 0.4936 GB, free: 0.9414 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05728/0.5216, allocations: 40.88 MB / 0.5335 GB, free: 7.012 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0131/0.5347, allocations: 4.308 MB / 0.5377 GB, free: 2.559 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003562/0.5382, allocations: 2.286 MB / 0.5399 GB, free: 268 kB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01297/0.5512, allocations: 7.366 MB / 0.5471 GB, free: 8.688 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.765e-05/0.5513, allocations: 60.55 kB / 0.5472 GB, free: 8.621 MB / 462.1 MB Notification: Performance of pre-optimization done (n=177): time 4.568e-06/0.5513, allocations: 0 / 0.5472 GB, free: 8.621 MB / 462.1 MB Notification: Performance of matching and sorting (n=198): time 0.05413/0.6054, allocations: 18.86 MB / 0.5656 GB, free: 5.664 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001201/0.6055, allocations: 175.5 kB / 0.5658 GB, free: 5.457 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007212/0.6127, allocations: 4.565 MB / 0.5702 GB, free: 0.8711 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004674/0.6132, allocations: 57.69 kB / 0.5703 GB, free: 0.8086 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002792/0.616, allocations: 3.244 MB / 0.5735 GB, free: 13.53 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001161/0.6172, allocations: 0.8024 MB / 0.5742 GB, free: 12.72 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001906/0.6191, allocations: 1.286 MB / 0.5755 GB, free: 11.43 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001361/0.6192, allocations: 305.1 kB / 0.5758 GB, free: 11.12 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003957/0.6232, allocations: 2.382 MB / 0.5781 GB, free: 8.738 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007217/0.6304, allocations: 6.079 MB / 0.5841 GB, free: 0.8242 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01396/0.6443, allocations: 9.138 MB / 0.593 GB, free: 5.871 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001346/0.6445, allocations: 40 kB / 0.593 GB, free: 5.832 MB / 0.4981 GB Notification: Performance of matching and sorting (n=821) (initialization): time 0.0209/0.6654, allocations: 9.293 MB / 0.6021 GB, free: 12.53 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 9.277e-05/0.6655, allocations: 60.47 kB / 0.6022 GB, free: 12.47 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001513/0.6656, allocations: 132 kB / 0.6023 GB, free: 12.34 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003308/0.6689, allocations: 1.187 MB / 0.6034 GB, free: 11.15 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005254/0.6742, allocations: 1.435 MB / 0.6048 GB, free: 9.715 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01353/0.6877, allocations: 7.286 MB / 0.612 GB, free: 2.273 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005179/0.6929, allocations: 351.5 kB / 0.6123 GB, free: 1.93 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001051/0.6939, allocations: 387.9 kB / 0.6127 GB, free: 1.551 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 591 * Number of states: 0 () * Number of discrete variables: 46 (forceAndTorque.torqueArrow.twoHeadedArrow,forceAndTorque.torqueArrow.headAtOrigin,forceAndTorque.forceArrow.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.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 (763): * Single equations (assignments): 757 * 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.2285/0.9224, allocations: 2.161 MB / 0.6148 GB, free: 159.8 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009349/0.9234, allocations: 409.2 kB / 0.6152 GB, free: 159.8 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007752/0.9311, allocations: 4.041 MB / 0.6191 GB, free: 159.6 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.444e-05/0.9311, allocations: 25.06 kB / 0.6191 GB, free: 159.6 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.64e-05/0.9312, allocations: 9.062 kB / 0.6191 GB, free: 159.6 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.391e-05/0.9312, allocations: 13.06 kB / 0.6191 GB, free: 159.6 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01858/0.9498, allocations: 9.404 MB / 0.6283 GB, free: 156.5 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.43e-05/0.9498, allocations: 9.25 kB / 0.6283 GB, free: 156.5 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00178/0.9516, allocations: 320.5 kB / 0.6286 GB, free: 156.5 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003211/0.9548, allocations: 1.026 MB / 0.6296 GB, free: 156.3 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002045/0.955, allocations: 35.69 kB / 0.6297 GB, free: 156.3 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009063/0.964, allocations: 6.873 MB / 0.6364 GB, free: 152.8 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.137e-06/0.9641, allocations: 13.64 kB / 0.6364 GB, free: 152.8 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01017/0.9742, allocations: 7.061 MB / 0.6433 GB, free: 150.1 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00123/0.9755, allocations: 487.4 kB / 0.6438 GB, free: 149.9 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005304/0.976, allocations: 38.28 kB / 0.6438 GB, free: 149.9 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001591/0.9776, allocations: 120.8 kB / 0.6439 GB, free: 149.9 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003544/0.9779, allocations: 128.8 kB / 0.644 GB, free: 149.8 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001395/0.9781, allocations: 53.62 kB / 0.6441 GB, free: 149.8 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.004136/0.9822, allocations: 2.927 MB / 0.647 GB, free: 148.8 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1e-07/0.9822, allocations: 0 / 0.647 GB, free: 148.8 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.004807/0.987, allocations: 1.056 MB / 0.648 GB, free: 148.7 MB / 0.5137 GB 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.000412/0.9874, allocations: 177.6 kB / 0.6482 GB, free: 148.6 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.006926/0.9944, allocations: 5.488 MB / 0.6535 GB, free: 146.7 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 7.665e-06/0.9944, allocations: 0 / 0.6535 GB, free: 146.7 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.002818/0.9972, allocations: 1.932 MB / 0.6554 GB, free: 146 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00271/0.9999, allocations: 484.7 kB / 0.6559 GB, free: 145.8 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01248/1.012, allocations: 10.2 MB / 0.6658 GB, free: 136.6 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002625/1.015, allocations: 3.359 MB / 0.6691 GB, free: 133.2 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.003542/1.019, allocations: 2.029 MB / 0.6711 GB, free: 131.2 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007167/1.019, allocations: 267.4 kB / 0.6713 GB, free: 130.9 MB / 0.5137 GB Notification: Performance of SimCode: time 1.143e-06/1.019, allocations: 4.766 kB / 0.6713 GB, free: 130.9 MB / 0.5137 GB Notification: Performance of Templates: time 0.06102/1.08, allocations: 39.52 MB / 0.7099 GB, free: 91.64 MB / 0.5137 GB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/ForceAndTorque/ForceAndTorque.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.766315925866365]