Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.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.001005/0.001005, allocations: 75.75 kB / 21.97 MB, free: 2.602 MB / 18.57 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.001265/0.001265, allocations: 169.9 kB / 25.33 MB, free: 9.109 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9445/0.9445, allocations: 158.6 MB / 187.2 MB, free: 2.938 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.PendulumWithSpringDamper,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|prismatic.s|prismatic.v|revolute.phi|revolute.w",fileNamePrefix="Modelica_3.2.3_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_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.034e-06/2.034e-06, allocations: 0 / 251 MB, free: 7.508 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.128e-05/3.331e-05, allocations: 2.312 kB / 251 MB, free: 7.504 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.009418/0.009452, allocations: 10.07 MB / 261.1 MB, free: 13.38 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.007203/0.01665, allocations: 3.805 MB / 264.9 MB, free: 9.562 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001491/0.01815, allocations: 63.69 kB / 265 MB, free: 9.5 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00264/0.02079, allocations: 2.231 MB / 267.2 MB, free: 7.262 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003468/0.02425, allocations: 1.757 MB / 269 MB, free: 5.496 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001232/0.02549, allocations: 0.7599 MB / 269.7 MB, free: 4.734 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.004394/0.02988, allocations: 3.731 MB / 273.5 MB, free: 0.9961 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002689/0.03257, allocations: 2.56 MB / 276 MB, free: 14.38 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003063/0.03563, allocations: 1.945 MB / 278 MB, free: 12.43 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002963/0.03859, allocations: 1.921 MB / 279.9 MB, free: 10.51 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006784/0.03927, allocations: 268 kB / 280.2 MB, free: 10.25 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001788/0.04106, allocations: 1.057 MB / 281.2 MB, free: 9.188 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001583/0.04264, allocations: 1.706 MB / 282.9 MB, free: 7.477 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001862/0.04451, allocations: 1.075 MB / 284 MB, free: 6.398 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005791/0.0503, allocations: 4.059 MB / 288.1 MB, free: 2.324 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.582e-06/0.0503, allocations: 0 / 288.1 MB, free: 2.324 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.0503, allocations: 0 / 288.1 MB, free: 2.324 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.497e-05/0.0504, allocations: 0 / 288.1 MB, free: 2.324 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.01322/0.06362, allocations: 4.517 MB / 292.6 MB, free: 13.75 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.563e-05/0.06367, allocations: 11.98 kB / 292.6 MB, free: 13.73 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01227/0.07594, allocations: 2.327 MB / 294.9 MB, free: 11.4 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006723/0.08266, allocations: 1.739 MB / 296.6 MB, free: 9.625 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001653/0.08283, allocations: 209.1 kB / 296.9 MB, free: 9.418 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007943/0.08362, allocations: 271.8 kB / 297.1 MB, free: 9.152 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01133/0.09495, allocations: 6.573 MB / 303.7 MB, free: 1.652 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.083e-05/0.09503, allocations: 31.69 kB / 303.7 MB, free: 1.621 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003042/0.09533, allocations: 135.9 kB / 303.9 MB, free: 1.488 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001829/0.09716, allocations: 1.848 MB / 305.7 MB, free: 15.64 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009381/0.1065, allocations: 3.93 MB / 309.6 MB, free: 11.7 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03872/0.1453, allocations: 40.81 MB / 350.4 MB, free: 1.602 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1366/0.2818, allocations: 2.159 MB / 352.6 MB, free: 95.55 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001301/0.2831, allocations: 0.6392 MB / 353.2 MB, free: 95.5 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006688/0.2898, allocations: 4.597 MB / 357.8 MB, free: 94.38 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.783e-05/0.2899, allocations: 50.17 kB / 357.9 MB, free: 94.34 MB / 330.7 MB Notification: Performance of pre-optimization done (n=150): time 5.36e-06/0.2899, allocations: 3.719 kB / 357.9 MB, free: 94.34 MB / 330.7 MB Notification: Performance of matching and sorting (n=166): time 0.02646/0.3163, allocations: 13.41 MB / 371.3 MB, free: 89.12 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.329e-05/0.3164, allocations: 153.2 kB / 371.4 MB, free: 88.95 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002467/0.3189, allocations: 3.025 MB / 374.5 MB, free: 86.56 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001032/0.319, allocations: 52.11 kB / 374.5 MB, free: 86.5 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000914/0.3199, allocations: 2.993 MB / 377.5 MB, free: 83.68 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004132/0.3203, allocations: 0.6874 MB / 378.2 MB, free: 83 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000849/0.3211, allocations: 1.203 MB / 379.4 MB, free: 81.79 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.103e-05/0.3212, allocations: 476.8 kB / 379.9 MB, free: 81.32 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009796/0.3222, allocations: 0.6628 MB / 380.5 MB, free: 80.66 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002303/0.3245, allocations: 5.727 MB / 386.3 MB, free: 72.64 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004146/0.3286, allocations: 7.078 MB / 393.3 MB, free: 63.52 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.733e-05/0.3287, allocations: 36 kB / 393.4 MB, free: 63.49 MB / 330.7 MB Notification: Performance of matching and sorting (n=728) (initialization): time 0.007487/0.3362, allocations: 5.609 MB / 399 MB, free: 57.87 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.683e-05/0.3362, allocations: 56 kB / 399 MB, free: 57.81 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.352e-05/0.3363, allocations: 120 kB / 399.2 MB, free: 57.7 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002099/0.3384, allocations: 0.9322 MB / 400.1 MB, free: 56.76 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001974/0.3404, allocations: 1.255 MB / 401.3 MB, free: 55.5 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003204/0.3436, allocations: 3.592 MB / 404.9 MB, free: 51.8 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002306/0.3459, allocations: 347.1 kB / 405.3 MB, free: 51.47 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002811/0.3461, allocations: 344 kB / 405.6 MB, free: 51.13 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 552 * 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 (685): * Single equations (assignments): 681 * 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 {(3,17,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001004/0.3472, allocations: 0.6184 MB / 406.2 MB, free: 50.5 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003719/0.3475, allocations: 326.1 kB / 406.5 MB, free: 50.18 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002777/0.3503, allocations: 1.973 MB / 408.5 MB, free: 48.2 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.899e-05/0.3503, allocations: 22.86 kB / 408.5 MB, free: 48.18 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.686e-06/0.3503, allocations: 4 kB / 408.5 MB, free: 48.17 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.648e-06/0.3503, allocations: 11.92 kB / 408.6 MB, free: 48.16 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00683/0.3572, allocations: 5.167 MB / 413.7 MB, free: 42.95 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.742e-06/0.3572, allocations: 0 / 413.7 MB, free: 42.95 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005785/0.3578, allocations: 239.7 kB / 414 MB, free: 42.72 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001746/0.3595, allocations: 0.7561 MB / 414.7 MB, free: 41.96 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.562e-05/0.3596, allocations: 27.94 kB / 414.7 MB, free: 41.93 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003033/0.3626, allocations: 3.285 MB / 418 MB, free: 38.53 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/0.3626, allocations: 7.938 kB / 418 MB, free: 38.52 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003842/0.3665, allocations: 3.019 MB / 421.1 MB, free: 35.48 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009369/0.3674, allocations: 477.8 kB / 421.5 MB, free: 35.01 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002712/0.3677, allocations: 26.94 kB / 421.5 MB, free: 34.98 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007401/0.3684, allocations: 127.8 kB / 421.7 MB, free: 34.86 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000173/0.3686, allocations: 93.92 kB / 421.8 MB, free: 34.77 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.952e-05/0.3687, allocations: 53.7 kB / 421.8 MB, free: 34.72 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001403/0.3701, allocations: 1.284 MB / 423.1 MB, free: 33.43 MB / 330.7 MB Notification: Performance of sort global known variables: time 8e-08/0.3701, allocations: 0 / 423.1 MB, free: 33.43 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.003217/0.3733, allocations: 0.9843 MB / 424.1 MB, free: 32.45 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (129): * Single equations (assignments): 125 * 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,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004394/0.3737, allocations: 188.2 kB / 424.3 MB, free: 32.26 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.004094/0.3778, allocations: 3.005 MB / 427.3 MB, free: 29.26 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5e-06/0.3778, allocations: 4 kB / 427.3 MB, free: 29.26 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001008/0.3788, allocations: 0.8825 MB / 428.2 MB, free: 28.36 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001368/0.3802, allocations: 311.2 kB / 428.5 MB, free: 28.07 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008407/0.3886, allocations: 6.565 MB / 435 MB, free: 21.44 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008393/0.3894, allocations: 1.053 MB / 436.1 MB, free: 20.36 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.002089/0.3915, allocations: 1.446 MB / 437.5 MB, free: 18.91 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004559/0.392, allocations: 200.5 kB / 437.7 MB, free: 18.71 MB / 330.7 MB Notification: Performance of SimCode: time 2.405e-06/0.392, allocations: 0 / 437.7 MB, free: 18.71 MB / 330.7 MB Notification: Performance of Templates: time 0.03932/0.4313, allocations: 29.63 MB / 467.4 MB, free: 5.102 MB / 346.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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: 4.188880868256092]