Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009846/0.0009846, allocations: 91.5 kB / 21.19 MB, free: 3.375 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001042/0.001042, allocations: 156.5 kB / 24.55 MB, free: 20 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9596/0.9596, allocations: 177 MB / 204.8 MB, free: 5.582 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.563e-06/1.563e-06, allocations: 0 / 272.9 MB, free: 1.438 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.459e-05/2.615e-05, allocations: 5.266 kB / 272.9 MB, free: 1.434 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.01096/0.01099, allocations: 10.38 MB / 283.3 MB, free: 7 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006127/0.01711, allocations: 3.81 MB / 287.1 MB, free: 3.176 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009033/0.01802, allocations: 75.62 kB / 287.2 MB, free: 3.102 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002389/0.02041, allocations: 2.398 MB / 289.6 MB, free: 0.6953 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.1102/0.1306, allocations: 1.916 MB / 291.5 MB, free: 14.78 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0014/0.132, allocations: 0.8022 MB / 292.3 MB, free: 14.76 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.005762/0.1377, allocations: 5.003 MB / 297.3 MB, free: 14.17 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003682/0.1414, allocations: 3.037 MB / 300.3 MB, free: 13.57 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002931/0.1443, allocations: 2.35 MB / 302.7 MB, free: 12.78 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002591/0.1469, allocations: 2.342 MB / 305 MB, free: 12.16 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006032/0.1475, allocations: 295.1 kB / 305.3 MB, free: 12.16 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001293/0.1488, allocations: 0.8699 MB / 306.2 MB, free: 11.91 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001085/0.1499, allocations: 1.935 MB / 308.1 MB, free: 10.82 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001135/0.151, allocations: 1.197 MB / 309.3 MB, free: 10.2 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003315/0.1544, allocations: 4.211 MB / 313.5 MB, free: 7.047 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.976e-06/0.1544, allocations: 0 / 313.5 MB, free: 7.047 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.262e-06/0.1544, allocations: 0 / 313.5 MB, free: 7.047 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.000104/0.1545, allocations: 0 / 313.5 MB, free: 7.047 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.005308/0.1598, allocations: 4.991 MB / 318.5 MB, free: 2.098 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.466e-05/0.1598, allocations: 11.98 kB / 318.5 MB, free: 2.086 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005359/0.1652, allocations: 2.455 MB / 321 MB, free: 15.66 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002541/0.1677, allocations: 1.992 MB / 323 MB, free: 13.79 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001465/0.1679, allocations: 227.6 kB / 323.2 MB, free: 13.6 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004082/0.1683, allocations: 298.4 kB / 323.5 MB, free: 13.34 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007805/0.1761, allocations: 6.055 MB / 329.6 MB, free: 6.465 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.634e-05/0.1762, allocations: 47.2 kB / 329.6 MB, free: 6.441 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003022/0.1765, allocations: 141.3 kB / 329.7 MB, free: 6.34 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002198/0.1787, allocations: 1.923 MB / 331.7 MB, free: 4.441 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01117/0.1898, allocations: 2.995 MB / 334.7 MB, free: 1.648 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03522/0.225, allocations: 44.09 MB / 378.7 MB, free: 4.527 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003276/0.2283, allocations: 1.694 MB / 380.4 MB, free: 2.793 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004594/0.2288, allocations: 381.3 kB / 380.8 MB, free: 2.406 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003032/0.2318, allocations: 2.681 MB / 383.5 MB, free: 15.72 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.96e-05/0.2318, allocations: 50.05 kB / 383.5 MB, free: 15.66 MB / 346.7 MB Notification: Performance of pre-optimization done (n=133): time 3.627e-06/0.2318, allocations: 0 / 383.5 MB, free: 15.66 MB / 346.7 MB Notification: Performance of matching and sorting (n=151): time 0.01138/0.2432, allocations: 7.682 MB / 391.2 MB, free: 7.914 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.046e-05/0.2433, allocations: 145.5 kB / 391.4 MB, free: 7.742 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002827/0.2461, allocations: 3.422 MB / 394.8 MB, free: 4.309 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.052e-05/0.2462, allocations: 45.7 kB / 394.8 MB, free: 4.258 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001759/0.2479, allocations: 3.376 MB / 398.2 MB, free: 0.8984 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003381/0.2483, allocations: 0.6415 MB / 398.9 MB, free: 268 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009541/0.2492, allocations: 1.263 MB / 400.1 MB, free: 15 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.048e-05/0.2493, allocations: 480.7 kB / 400.6 MB, free: 14.52 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008238/0.2501, allocations: 0.5542 MB / 401.1 MB, free: 13.96 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003294/0.2534, allocations: 6.152 MB / 407.3 MB, free: 5.215 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00532/0.2587, allocations: 7.403 MB / 414.7 MB, free: 11.24 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.921e-05/0.2588, allocations: 40 kB / 414.7 MB, free: 11.2 MB / 378.7 MB Notification: Performance of matching and sorting (n=771) (initialization): time 0.005154/0.2639, allocations: 4.947 MB / 419.7 MB, free: 6.254 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.468e-05/0.264, allocations: 63.98 kB / 419.7 MB, free: 6.191 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001029/0.2641, allocations: 136 kB / 419.9 MB, free: 6.059 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001063/0.2642, allocations: 176 kB / 420 MB, free: 5.887 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00246/0.2667, allocations: 1.384 MB / 421.4 MB, free: 4.5 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001261/0.2668, allocations: 266.9 kB / 421.7 MB, free: 4.238 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001813/0.2686, allocations: 373.7 kB / 422.1 MB, free: 3.879 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002704/0.2689, allocations: 364 kB / 422.4 MB, free: 3.523 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.0008232/0.2697, allocations: 0.6536 MB / 423.1 MB, free: 2.859 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002856/0.27, allocations: 359.5 kB / 423.4 MB, free: 2.508 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002642/0.2702, allocations: 309.7 kB / 423.7 MB, free: 2.199 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.797e-05/0.2703, allocations: 20 kB / 423.7 MB, free: 2.18 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.698e-06/0.2703, allocations: 0 / 423.7 MB, free: 2.18 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.225e-06/0.2703, allocations: 7.984 kB / 423.7 MB, free: 2.172 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005052/0.2753, allocations: 4.885 MB / 428.6 MB, free: 12.95 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.244e-05/0.2753, allocations: 20 kB / 428.7 MB, free: 12.93 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005292/0.2759, allocations: 276.4 kB / 428.9 MB, free: 12.66 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.536e-05/0.2759, allocations: 28 kB / 428.9 MB, free: 12.64 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.13e-05/0.2759, allocations: 52 kB / 429 MB, free: 12.59 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.668e-05/0.276, allocations: 35.86 kB / 429 MB, free: 12.55 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.346e-05/0.276, allocations: 31.81 kB / 429.1 MB, free: 12.52 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001718/0.2777, allocations: 2.468 MB / 431.5 MB, free: 9.703 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002915/0.278, allocations: 337.6 kB / 431.9 MB, free: 9.371 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001869/0.2782, allocations: 47.98 kB / 431.9 MB, free: 9.324 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006164/0.2788, allocations: 103.9 kB / 432 MB, free: 9.223 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001192/0.2789, allocations: 155.3 kB / 432.2 MB, free: 9.07 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.913e-05/0.279, allocations: 70.36 kB / 432.2 MB, free: 9.004 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001422/0.2804, allocations: 1.47 MB / 433.7 MB, free: 7.543 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.2804, allocations: 0 / 433.7 MB, free: 7.543 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002594/0.283, allocations: 0.9374 MB / 434.6 MB, free: 6.605 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.0003391/0.2833, allocations: 218.8 kB / 434.9 MB, free: 6.383 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002921/0.2862, allocations: 2.527 MB / 437.4 MB, free: 3.879 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.691e-06/0.2862, allocations: 4 kB / 437.4 MB, free: 3.875 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004114/0.2867, allocations: 454.7 kB / 437.8 MB, free: 3.426 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001355/0.288, allocations: 419.6 kB / 438.2 MB, free: 3.027 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1102/0.3982, allocations: 7.481 MB / 445.7 MB, free: 127.6 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001252/0.3995, allocations: 1.163 MB / 446.9 MB, free: 127.4 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.002678/0.4021, allocations: 1.533 MB / 448.4 MB, free: 127.4 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003561/0.4025, allocations: 227 kB / 448.6 MB, free: 127.3 MB / 394.7 MB Notification: Performance of SimCode: time 1.743e-06/0.4025, allocations: 0 / 448.6 MB, free: 127.3 MB / 394.7 MB Notification: Performance of Templates: time 0.03262/0.4351, allocations: 21.58 MB / 470.2 MB, free: 116 MB / 394.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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.5526683791540563]