Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.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.0014/0.0014, allocations: 83.89 kB / 21.19 MB, free: 3.387 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.0014/0.0014, allocations: 145.1 kB / 24.54 MB, free: 32 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.8912/0.8912, allocations: 173.4 MB / 201.1 MB, free: 9.305 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.SpringMassSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|p1.s|p1.v|p2.s|p2.v",fileNamePrefix="Modelica_4.0.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.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.442e-06/1.442e-06, allocations: 0 / 268 MB, free: 6.387 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.776e-05/1.92e-05, allocations: 2.312 kB / 268 MB, free: 6.383 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.007817/0.007836, allocations: 10.43 MB / 278.4 MB, free: 11.9 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005304/0.01314, allocations: 3.798 MB / 282.2 MB, free: 8.09 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007542/0.01389, allocations: 75.62 kB / 282.3 MB, free: 8.016 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002394/0.01629, allocations: 2.394 MB / 284.7 MB, free: 5.613 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002551/0.01884, allocations: 1.967 MB / 286.7 MB, free: 3.637 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009893/0.01983, allocations: 0.7953 MB / 287.5 MB, free: 2.84 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1119/0.1317, allocations: 4.851 MB / 292.3 MB, free: 14.95 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004428/0.1362, allocations: 3.041 MB / 295.4 MB, free: 14.8 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006288/0.1425, allocations: 2.367 MB / 297.7 MB, free: 14.64 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005066/0.1475, allocations: 2.352 MB / 300.1 MB, free: 14.5 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008212/0.1483, allocations: 292.8 kB / 300.4 MB, free: 14.5 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001487/0.1498, allocations: 0.8919 MB / 301.3 MB, free: 14.48 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001197/0.151, allocations: 1.967 MB / 303.2 MB, free: 14.19 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001349/0.1524, allocations: 1.209 MB / 304.4 MB, free: 13.68 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003867/0.1562, allocations: 4.282 MB / 308.7 MB, free: 12.18 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.638e-06/0.1563, allocations: 0 / 308.7 MB, free: 12.18 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.382e-06/0.1563, allocations: 0 / 308.7 MB, free: 12.18 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.82e-05/0.1564, allocations: 0 / 308.7 MB, free: 12.18 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.005167/0.1615, allocations: 5.028 MB / 313.7 MB, free: 8.891 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.298e-05/0.1616, allocations: 9.25 kB / 313.7 MB, free: 8.891 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004198/0.1658, allocations: 2.458 MB / 316.2 MB, free: 7.125 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002388/0.1681, allocations: 1.998 MB / 318.2 MB, free: 5.234 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.219e-05/0.1682, allocations: 224.5 kB / 318.4 MB, free: 5.051 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003117/0.1686, allocations: 297.9 kB / 318.7 MB, free: 4.797 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006484/0.175, allocations: 6.043 MB / 324.8 MB, free: 13.93 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.192e-05/0.1751, allocations: 40.77 kB / 324.8 MB, free: 13.91 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002687/0.1754, allocations: 148.2 kB / 324.9 MB, free: 13.8 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001655/0.177, allocations: 1.915 MB / 326.9 MB, free: 11.91 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005681/0.1827, allocations: 2.998 MB / 329.9 MB, free: 9.109 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02893/0.2116, allocations: 44.08 MB / 373.9 MB, free: 12.08 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003396/0.215, allocations: 1.687 MB / 375.6 MB, free: 10.36 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005054/0.2156, allocations: 388.8 kB / 376 MB, free: 9.961 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003123/0.2187, allocations: 2.669 MB / 378.7 MB, free: 7.289 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.758e-05/0.2187, allocations: 51.78 kB / 378.7 MB, free: 7.234 MB / 330.7 MB Notification: Performance of pre-optimization done (n=133): time 2.955e-06/0.2187, allocations: 0 / 378.7 MB, free: 7.234 MB / 330.7 MB Notification: Performance of matching and sorting (n=151): time 0.01246/0.2312, allocations: 7.682 MB / 386.4 MB, free: 15.51 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.361e-05/0.2312, allocations: 148.5 kB / 386.5 MB, free: 15.34 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003424/0.2347, allocations: 3.435 MB / 390 MB, free: 11.89 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.701e-05/0.2347, allocations: 49.69 kB / 390 MB, free: 11.84 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001686/0.2364, allocations: 3.37 MB / 393.4 MB, free: 8.48 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004311/0.2368, allocations: 0.6441 MB / 394 MB, free: 7.844 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001036/0.2379, allocations: 1.258 MB / 395.3 MB, free: 6.57 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000109/0.238, allocations: 484.8 kB / 395.8 MB, free: 6.094 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000917/0.2389, allocations: 0.5463 MB / 396.3 MB, free: 5.543 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003135/0.242, allocations: 6.156 MB / 402.5 MB, free: 12.85 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004987/0.247, allocations: 7.413 MB / 409.9 MB, free: 2.898 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.086e-05/0.2471, allocations: 40 kB / 409.9 MB, free: 2.859 MB / 362.7 MB Notification: Performance of matching and sorting (n=771) (initialization): time 0.006063/0.2532, allocations: 4.953 MB / 414.9 MB, free: 13.91 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.83e-05/0.2532, allocations: 60 kB / 414.9 MB, free: 13.86 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001136/0.2533, allocations: 136 kB / 415.1 MB, free: 13.72 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001208/0.2535, allocations: 176 kB / 415.2 MB, free: 13.55 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002354/0.2558, allocations: 1.384 MB / 416.6 MB, free: 12.16 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001374/0.256, allocations: 266.9 kB / 416.9 MB, free: 11.9 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002251/0.2582, allocations: 363.6 kB / 417.2 MB, free: 11.55 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002905/0.2585, allocations: 368 kB / 417.6 MB, free: 11.19 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.001195/0.2597, allocations: 0.6521 MB / 418.3 MB, free: 10.53 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000392/0.2601, allocations: 357.9 kB / 418.6 MB, free: 10.18 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009121/0.261, allocations: 0.7661 MB / 419.4 MB, free: 9.395 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.378e-05/0.261, allocations: 19.98 kB / 419.4 MB, free: 9.375 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.983e-06/0.261, allocations: 4 kB / 419.4 MB, free: 9.371 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.009e-05/0.261, allocations: 7.969 kB / 419.4 MB, free: 9.363 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005757/0.2668, allocations: 4.89 MB / 424.3 MB, free: 4.133 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.613e-05/0.2668, allocations: 20 kB / 424.3 MB, free: 4.113 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008881/0.2677, allocations: 271.6 kB / 424.6 MB, free: 3.848 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.785e-05/0.2677, allocations: 28 kB / 424.6 MB, free: 3.82 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.324e-05/0.2678, allocations: 53.39 kB / 424.7 MB, free: 3.77 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.995e-05/0.2679, allocations: 39.8 kB / 424.7 MB, free: 3.73 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.886e-05/0.2679, allocations: 27.88 kB / 424.7 MB, free: 3.703 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002886/0.2708, allocations: 2.478 MB / 427.2 MB, free: 0.875 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006428/0.2714, allocations: 333.6 kB / 427.5 MB, free: 0.5469 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002422/0.2716, allocations: 55.98 kB / 427.6 MB, free: 0.4922 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006944/0.2723, allocations: 99.83 kB / 427.7 MB, free: 404 kB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000122/0.2725, allocations: 152.5 kB / 427.8 MB, free: 252 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.366e-05/0.2725, allocations: 64.81 kB / 427.9 MB, free: 188 kB / 378.7 MB Notification: Performance of sorting global known variables: time 0.1148/0.3873, allocations: 1.471 MB / 429.4 MB, free: 113.3 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.5e-07/0.3873, allocations: 0 / 429.4 MB, free: 113.3 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.004604/0.3919, allocations: 0.9645 MB / 430.3 MB, free: 113.3 MB / 378.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.0004062/0.3924, allocations: 224.7 kB / 430.5 MB, free: 113.2 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003972/0.3963, allocations: 2.524 MB / 433.1 MB, free: 113.1 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.66e-05/0.3963, allocations: 3.281 kB / 433.1 MB, free: 113.1 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005909/0.3969, allocations: 457 kB / 433.5 MB, free: 113 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002226/0.3992, allocations: 412 kB / 433.9 MB, free: 113 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01028/0.4094, allocations: 7.509 MB / 441.4 MB, free: 109.2 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001261/0.4107, allocations: 1.163 MB / 442.6 MB, free: 109.1 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.002748/0.4134, allocations: 1.534 MB / 444.1 MB, free: 108.9 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000438/0.4139, allocations: 224.2 kB / 444.3 MB, free: 108.9 MB / 378.7 MB Notification: Performance of SimCode: time 4.137e-06/0.4139, allocations: 0 / 444.3 MB, free: 108.9 MB / 378.7 MB Notification: Performance of Templates: time 0.03849/0.4524, allocations: 21.76 MB / 466.1 MB, free: 95.3 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.7087825532071292]