Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.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.001461/0.001461, allocations: 78.66 kB / 21.42 MB, free: 3.074 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.001627/0.001627, allocations: 165.8 kB / 24.82 MB, free: 9.266 MB / 18.57 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.011/1.011, allocations: 177.1 MB / 205.3 MB, free: 5.473 MB / 186.7 MB " [Timeout remaining time 179] 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.SpringMassSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|p1.s|p1.v|p2.s|p2.v",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|p1.s|p1.v|p2.s|p2.v",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.986e-06/2.986e-06, allocations: 4 kB / 273.4 MB, free: 1.25 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.093e-05/2.392e-05, allocations: 2.312 kB / 273.4 MB, free: 1.246 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.007757/0.007781, allocations: 10.06 MB / 283.5 MB, free: 7.145 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006333/0.01411, allocations: 3.775 MB / 287.3 MB, free: 3.359 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001558/0.01567, allocations: 79.62 kB / 287.3 MB, free: 3.281 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002912/0.01858, allocations: 2.359 MB / 289.7 MB, free: 0.9141 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.1308/0.1493, allocations: 1.915 MB / 291.6 MB, free: 14.92 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001646/0.151, allocations: 0.7917 MB / 292.4 MB, free: 14.92 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.005998/0.157, allocations: 5.003 MB / 297.4 MB, free: 14.36 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004312/0.1613, allocations: 3.037 MB / 300.4 MB, free: 13.81 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004191/0.1655, allocations: 2.352 MB / 302.8 MB, free: 13.02 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002882/0.1684, allocations: 2.343 MB / 305.1 MB, free: 12.5 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006159/0.169, allocations: 296.4 kB / 305.4 MB, free: 12.5 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001356/0.1703, allocations: 0.8623 MB / 306.3 MB, free: 12.25 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001064/0.1714, allocations: 1.933 MB / 308.2 MB, free: 11.17 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001321/0.1727, allocations: 1.205 MB / 309.4 MB, free: 10.55 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003982/0.1767, allocations: 4.203 MB / 313.6 MB, free: 7.094 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.1767, allocations: 4 kB / 313.6 MB, free: 7.09 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.212e-06/0.1767, allocations: 0 / 313.6 MB, free: 7.09 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001469/0.1769, allocations: 0 / 313.6 MB, free: 7.09 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: 1469 * Number of variables: 1469 Notification: Performance of Generate backend data structure: time 0.004339/0.1812, allocations: 4.781 MB / 318.4 MB, free: 2.621 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.034e-05/0.1812, allocations: 12.03 kB / 318.4 MB, free: 2.609 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003186/0.1844, allocations: 1.515 MB / 319.9 MB, free: 1.129 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002198/0.1866, allocations: 1.82 MB / 321.8 MB, free: 15.42 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000125/0.1868, allocations: 219 kB / 322 MB, free: 15.24 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003738/0.1871, allocations: 299 kB / 322.3 MB, free: 14.99 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006935/0.1941, allocations: 5.494 MB / 327.8 MB, free: 8.902 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.929e-05/0.1942, allocations: 52.58 kB / 327.8 MB, free: 8.875 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002743/0.1944, allocations: 144.8 kB / 327.9 MB, free: 8.77 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001481/0.1959, allocations: 1.718 MB / 329.7 MB, free: 7.078 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005198/0.2011, allocations: 2.35 MB / 332 MB, free: 4.914 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03008/0.2312, allocations: 43.71 MB / 375.7 MB, free: 8.996 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003213/0.2344, allocations: 1.623 MB / 377.4 MB, free: 7.367 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004268/0.2348, allocations: 320.5 kB / 377.7 MB, free: 7.051 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003666/0.2385, allocations: 2.587 MB / 380.3 MB, free: 4.48 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.763e-05/0.2385, allocations: 49.98 kB / 380.3 MB, free: 4.422 MB / 330.7 MB Notification: Performance of pre-optimization done (n=133): time 3.977e-06/0.2386, allocations: 0 / 380.3 MB, free: 4.422 MB / 330.7 MB Notification: Performance of matching and sorting (n=151): time 0.01042/0.249, allocations: 4.868 MB / 385.2 MB, free: 15.53 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.308e-05/0.249, allocations: 141.5 kB / 385.3 MB, free: 15.36 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003511/0.2525, allocations: 3.419 MB / 388.7 MB, free: 12.06 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001418/0.2527, allocations: 49.64 kB / 388.8 MB, free: 12.01 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00176/0.2544, allocations: 3.4 MB / 392.2 MB, free: 8.574 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006047/0.255, allocations: 0.6476 MB / 392.8 MB, free: 7.922 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001072/0.2561, allocations: 1.28 MB / 394.1 MB, free: 6.625 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0003688/0.2565, allocations: 480.7 kB / 394.6 MB, free: 6.152 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008161/0.2573, allocations: 0.4917 MB / 395.1 MB, free: 5.656 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003437/0.2607, allocations: 6.123 MB / 401.2 MB, free: 12.93 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005076/0.2658, allocations: 7.292 MB / 408.5 MB, free: 3.074 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.934e-05/0.2659, allocations: 43.75 kB / 408.5 MB, free: 3.035 MB / 362.7 MB Notification: Performance of matching and sorting (n=771) (initialization): time 0.005671/0.2716, allocations: 4.629 MB / 413.2 MB, free: 14.41 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.831e-05/0.2716, allocations: 64 kB / 413.2 MB, free: 14.34 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000127/0.2718, allocations: 136 kB / 413.3 MB, free: 14.21 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001141/0.2719, allocations: 176 kB / 413.5 MB, free: 14.04 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002264/0.2741, allocations: 1.369 MB / 414.9 MB, free: 12.67 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001506/0.2743, allocations: 266.9 kB / 415.1 MB, free: 12.41 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002256/0.2765, allocations: 259.8 kB / 415.4 MB, free: 12.15 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002719/0.2768, allocations: 324 kB / 415.7 MB, free: 11.84 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 614 * Number of states: 0 () * Number of discrete variables: 36 (spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],p2.boxColor[3],p2.boxColor[2],p2.boxColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],bar2.color[3],bar2.color[2],bar2.color[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],p1.boxColor[3],p1.boxColor[2],p1.boxColor[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 (747): * Single equations (assignments): 744 * 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 prepare postOptimizeDAE: time 0.001045/0.2779, allocations: 0.6457 MB / 416.4 MB, free: 11.18 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004073/0.2783, allocations: 373.7 kB / 416.7 MB, free: 10.81 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003183/0.2786, allocations: 301.8 kB / 417 MB, free: 10.51 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.56e-05/0.2786, allocations: 16 kB / 417 MB, free: 10.49 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.555e-06/0.2786, allocations: 0 / 417 MB, free: 10.49 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.224e-05/0.2786, allocations: 11.97 kB / 417.1 MB, free: 10.48 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005289/0.2839, allocations: 4.839 MB / 421.9 MB, free: 5.27 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.206e-05/0.2839, allocations: 24.03 kB / 421.9 MB, free: 5.246 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004828/0.2844, allocations: 259.6 kB / 422.2 MB, free: 4.992 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.533e-05/0.2844, allocations: 24 kB / 422.2 MB, free: 4.969 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.72e-05/0.2845, allocations: 51.98 kB / 422.2 MB, free: 4.918 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.748e-05/0.2845, allocations: 35.86 kB / 422.3 MB, free: 4.883 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.286e-05/0.2845, allocations: 31.81 kB / 422.3 MB, free: 4.852 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001636/0.2861, allocations: 2.384 MB / 424.7 MB, free: 2.117 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006535/0.2868, allocations: 325.6 kB / 425 MB, free: 1.797 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001709/0.287, allocations: 47.98 kB / 425.1 MB, free: 1.75 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005581/0.2875, allocations: 44 kB / 425.1 MB, free: 1.707 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001075/0.2876, allocations: 151.3 kB / 425.2 MB, free: 1.559 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.608e-05/0.2877, allocations: 67.91 kB / 425.3 MB, free: 1.492 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001148/0.2888, allocations: 1.368 MB / 426.7 MB, free: 136 kB / 378.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2888, allocations: 0 / 426.7 MB, free: 136 kB / 378.7 MB Notification: Performance of remove unused functions: time 0.003334/0.2922, allocations: 0.9336 MB / 427.6 MB, free: 15.2 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 82 * Number of states: 4 (p1.s,p1.v,p2.s,p2.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 (141): * Single equations (assignments): 138 * 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.0003362/0.2925, allocations: 223.2 kB / 427.8 MB, free: 14.97 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002856/0.2954, allocations: 2.385 MB / 430.2 MB, free: 12.61 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 9.027e-06/0.2954, allocations: 8.125 kB / 430.2 MB, free: 12.6 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004094/0.2958, allocations: 432.9 kB / 430.6 MB, free: 12.17 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001503/0.2973, allocations: 424.8 kB / 431.1 MB, free: 11.77 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008911/0.3062, allocations: 7.47 MB / 438.5 MB, free: 3.883 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001269/0.3075, allocations: 1.164 MB / 439.7 MB, free: 2.684 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001176/0.3086, allocations: 494.7 kB / 440.2 MB, free: 2.199 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000633/0.3093, allocations: 0.5722 MB / 440.8 MB, free: 1.625 MB / 394.7 MB Notification: Performance of SimCode: time 1.553e-06/0.3093, allocations: 3.938 kB / 440.8 MB, free: 1.621 MB / 394.7 MB Notification: Performance of Templates: time 0.1506/0.4599, allocations: 23.35 MB / 464.1 MB, free: 120.7 MB / 394.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringMassSystem/SpringMassSystem.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.676000030711293]