Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.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.0008968/0.0008968, allocations: 79.91 kB / 21.18 MB, free: 3.391 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.0008345/0.0008345, allocations: 145.5 kB / 24.54 MB, free: 36 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 0.9338/0.9338, allocations: 173.4 MB / 201.1 MB, free: 8.977 MB / 186.7 MB " [Timeout remaining time 179] 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.PendulumWithSpringDamper,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|prismatic.s|prismatic.v|revolute.phi|revolute.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|prismatic.s|prismatic.v|revolute.phi|revolute.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.252e-06/1.252e-06, allocations: 0 / 268 MB, free: 6.273 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.053e-05/2.178e-05, allocations: 2.312 kB / 268 MB, free: 6.27 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.008604/0.008626, allocations: 10.04 MB / 278 MB, free: 12.18 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0062/0.01483, allocations: 3.808 MB / 281.9 MB, free: 8.363 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001197/0.01602, allocations: 63.75 kB / 281.9 MB, free: 8.301 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002389/0.01841, allocations: 2.235 MB / 284.2 MB, free: 6.059 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003301/0.02171, allocations: 1.753 MB / 285.9 MB, free: 4.297 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001373/0.02309, allocations: 0.7483 MB / 286.7 MB, free: 3.547 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1238/0.1469, allocations: 3.701 MB / 290.4 MB, free: 15.43 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003593/0.1505, allocations: 2.548 MB / 292.9 MB, free: 15.3 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003101/0.1536, allocations: 1.992 MB / 294.9 MB, free: 15.3 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002225/0.1558, allocations: 1.859 MB / 296.8 MB, free: 15.3 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004303/0.1563, allocations: 259.8 kB / 297 MB, free: 15.3 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00138/0.1576, allocations: 1.061 MB / 298.1 MB, free: 15.3 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009948/0.1586, allocations: 1.692 MB / 299.8 MB, free: 15.09 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007583/0.1594, allocations: 1.063 MB / 300.8 MB, free: 14.91 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002593/0.162, allocations: 4.027 MB / 304.8 MB, free: 13.58 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.162, allocations: 0 / 304.8 MB, free: 13.58 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.162, allocations: 0 / 304.8 MB, free: 13.58 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.11e-05/0.162, allocations: 0 / 304.8 MB, free: 13.58 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: 1349 * Number of variables: 1349 Notification: Performance of Generate backend data structure: time 0.00407/0.1661, allocations: 4.483 MB / 309.3 MB, free: 11.04 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.675e-05/0.1661, allocations: 10.83 kB / 309.3 MB, free: 11.04 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003509/0.1696, allocations: 2.334 MB / 311.7 MB, free: 10.18 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001509/0.1711, allocations: 1.701 MB / 313.4 MB, free: 9.211 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.673e-05/0.1712, allocations: 205.1 kB / 313.6 MB, free: 9.145 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002783/0.1715, allocations: 280.9 kB / 313.9 MB, free: 9.074 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006669/0.1782, allocations: 6.563 MB / 320.4 MB, free: 2.324 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.952e-05/0.1783, allocations: 38.33 kB / 320.5 MB, free: 2.305 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002429/0.1785, allocations: 134.6 kB / 320.6 MB, free: 2.207 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001286/0.1798, allocations: 1.791 MB / 322.4 MB, free: 452 kB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006566/0.1863, allocations: 3.817 MB / 326.2 MB, free: 12.81 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02412/0.2105, allocations: 40.85 MB / 367 MB, free: 3.09 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00411/0.2146, allocations: 1.984 MB / 369 MB, free: 1.07 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007077/0.2153, allocations: 0.5566 MB / 369.6 MB, free: 0.5 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004566/0.2199, allocations: 3.783 MB / 373.4 MB, free: 12.72 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.347e-05/0.2199, allocations: 57.89 kB / 373.4 MB, free: 12.66 MB / 330.7 MB Notification: Performance of pre-optimization done (n=135): time 3.687e-06/0.2199, allocations: 3.984 kB / 373.4 MB, free: 12.65 MB / 330.7 MB Notification: Performance of matching and sorting (n=145): time 0.01395/0.2338, allocations: 8.175 MB / 381.6 MB, free: 4.43 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.186e-05/0.2339, allocations: 145.4 kB / 381.7 MB, free: 4.262 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002699/0.2366, allocations: 3.117 MB / 384.9 MB, free: 1.113 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.613e-05/0.2367, allocations: 51.52 kB / 384.9 MB, free: 1.059 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001471/0.2381, allocations: 3.076 MB / 388 MB, free: 14 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004194/0.2385, allocations: 0.6104 MB / 388.6 MB, free: 13.39 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001012/0.2396, allocations: 1.211 MB / 389.8 MB, free: 12.16 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.709e-05/0.2397, allocations: 486.5 kB / 390.3 MB, free: 11.69 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008952/0.2406, allocations: 0.5653 MB / 390.8 MB, free: 11.12 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003198/0.2437, allocations: 5.878 MB / 396.7 MB, free: 2.836 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005241/0.249, allocations: 7.123 MB / 403.8 MB, free: 9.391 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.774e-05/0.249, allocations: 36 kB / 403.9 MB, free: 9.355 MB / 362.7 MB Notification: Performance of matching and sorting (n=736) (initialization): time 0.005777/0.2548, allocations: 4.87 MB / 408.8 MB, free: 4.48 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.315e-05/0.2549, allocations: 64.91 kB / 408.8 MB, free: 4.418 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.014e-05/0.255, allocations: 130.3 kB / 408.9 MB, free: 4.293 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005339/0.2555, allocations: 309.8 kB / 409.2 MB, free: 3.988 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002051/0.2576, allocations: 1.31 MB / 410.6 MB, free: 2.676 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001623/0.2592, allocations: 2.531 MB / 413.1 MB, free: 32 kB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001921/0.2611, allocations: 336.7 kB / 413.4 MB, free: 15.7 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002828/0.2614, allocations: 354.6 kB / 413.8 MB, free: 15.36 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 581 * Number of states: 0 () * Number of discrete variables: 36 (prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[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 (706): * Single equations (assignments): 702 * 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 {(2,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001183/0.2626, allocations: 0.6263 MB / 414.4 MB, free: 14.72 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000312/0.2629, allocations: 330 kB / 414.7 MB, free: 14.4 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001225/0.2641, allocations: 0.9421 MB / 415.7 MB, free: 13.44 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.549e-05/0.2641, allocations: 16 kB / 415.7 MB, free: 13.43 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.823e-06/0.2641, allocations: 4 kB / 415.7 MB, free: 13.42 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.005e-05/0.2641, allocations: 7.922 kB / 415.7 MB, free: 13.41 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005186/0.2693, allocations: 4.126 MB / 419.8 MB, free: 9.141 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.897e-06/0.2693, allocations: 8.844 kB / 419.8 MB, free: 9.133 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001021/0.2703, allocations: 231.7 kB / 420 MB, free: 8.906 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005134/0.2709, allocations: 143.5 kB / 420.2 MB, free: 8.762 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001555/0.271, allocations: 43.03 kB / 420.2 MB, free: 8.723 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00161/0.2726, allocations: 2.305 MB / 422.5 MB, free: 6.297 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.823e-06/0.2726, allocations: 8 kB / 422.5 MB, free: 6.289 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002506/0.2751, allocations: 2.162 MB / 424.7 MB, free: 3.984 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004512/0.2756, allocations: 277.8 kB / 425 MB, free: 3.711 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002176/0.2758, allocations: 32 kB / 425 MB, free: 3.68 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006309/0.2764, allocations: 87.88 kB / 425.1 MB, free: 3.594 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001351/0.2766, allocations: 106 kB / 425.2 MB, free: 3.492 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.326e-05/0.2766, allocations: 52.11 kB / 425.2 MB, free: 3.441 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001674/0.2783, allocations: 1.302 MB / 426.5 MB, free: 2.141 MB / 378.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.2783, allocations: 0 / 426.5 MB, free: 2.141 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003312/0.2816, allocations: 0.8854 MB / 427.4 MB, free: 1.258 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 31 * Number of states: 4 (revolute.phi,revolute.w,prismatic.s,prismatic.v) * 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 (121): * Single equations (assignments): 117 * 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 {(2,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004831/0.2821, allocations: 209.4 kB / 427.6 MB, free: 1.043 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.1028/0.3849, allocations: 2.666 MB / 430.3 MB, free: 120.9 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 8.556e-06/0.3849, allocations: 5.344 kB / 430.3 MB, free: 120.9 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008009/0.3857, allocations: 0.6396 MB / 430.9 MB, free: 120.7 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001541/0.3873, allocations: 324.4 kB / 431.3 MB, free: 120.7 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008859/0.3961, allocations: 6.475 MB / 437.7 MB, free: 117.9 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00116/0.3973, allocations: 1.034 MB / 438.8 MB, free: 117.8 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.002328/0.3996, allocations: 1.467 MB / 440.2 MB, free: 117.6 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003361/0.4, allocations: 201.8 kB / 440.4 MB, free: 117.6 MB / 378.7 MB Notification: Performance of SimCode: time 1.864e-06/0.4, allocations: 0 / 440.4 MB, free: 117.6 MB / 378.7 MB Notification: Performance of Templates: time 0.03347/0.4334, allocations: 22.32 MB / 462.8 MB, free: 103.7 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PendulumWithSpringDamper/PendulumWithSpringDamper.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.609488532412797]