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.0009832/0.0009832, allocations: 79.69 kB / 21.7 MB, free: 2.852 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.001162/0.001162, allocations: 162.2 kB / 24.99 MB, free: 8.801 MB / 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.9229/0.9229, allocations: 177 MB / 205.2 MB, free: 5.59 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.913e-06/1.913e-06, allocations: 0 / 273 MB, free: 1.746 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.248e-05/2.44e-05, allocations: 6.312 kB / 273 MB, free: 1.738 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.01275/0.01277, allocations: 10.36 MB / 283.4 MB, free: 7.332 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.007776/0.02055, allocations: 3.801 MB / 287.2 MB, free: 3.52 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001226/0.02177, allocations: 75.62 kB / 287.2 MB, free: 3.445 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003921/0.0257, allocations: 2.386 MB / 289.6 MB, free: 1.051 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.1251/0.1508, allocations: 1.914 MB / 291.5 MB, free: 14.56 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001509/0.1523, allocations: 0.7939 MB / 292.3 MB, free: 14.56 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.005535/0.1579, allocations: 4.997 MB / 297.3 MB, free: 14.02 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00354/0.1614, allocations: 3.034 MB / 300.4 MB, free: 13.48 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003047/0.1645, allocations: 2.287 MB / 302.6 MB, free: 12.69 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002348/0.1668, allocations: 2.422 MB / 305.1 MB, free: 12.21 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004377/0.1673, allocations: 302.6 kB / 305.4 MB, free: 12.21 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001052/0.1683, allocations: 0.8744 MB / 306.2 MB, free: 11.96 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009864/0.1693, allocations: 1.945 MB / 308.2 MB, free: 10.87 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001146/0.1704, allocations: 1.211 MB / 309.4 MB, free: 10.23 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002976/0.1734, allocations: 4.247 MB / 313.6 MB, free: 7.141 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.1734, allocations: 4 kB / 313.6 MB, free: 7.137 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.903e-06/0.1734, allocations: 0 / 313.6 MB, free: 7.137 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.057e-05/0.1735, allocations: 4 kB / 313.6 MB, free: 7.133 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.004057/0.1775, allocations: 5.041 MB / 318.7 MB, free: 2.129 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.935e-05/0.1776, allocations: 15.97 kB / 318.7 MB, free: 2.113 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004212/0.1818, allocations: 2.453 MB / 321.2 MB, free: 15.7 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002507/0.1843, allocations: 2.011 MB / 323.2 MB, free: 13.8 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001189/0.1844, allocations: 222.7 kB / 323.4 MB, free: 13.62 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003305/0.1847, allocations: 298.2 kB / 323.7 MB, free: 13.37 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00716/0.1919, allocations: 6.048 MB / 329.7 MB, free: 6.488 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.228e-05/0.192, allocations: 45.52 kB / 329.8 MB, free: 6.465 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002589/0.1922, allocations: 152.1 kB / 329.9 MB, free: 6.355 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001707/0.1939, allocations: 1.915 MB / 331.8 MB, free: 4.465 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005994/0.1999, allocations: 3.003 MB / 334.8 MB, free: 1.668 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02654/0.2265, allocations: 44.08 MB / 378.9 MB, free: 4.613 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003405/0.2299, allocations: 1.702 MB / 380.6 MB, free: 2.875 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006169/0.2305, allocations: 385 kB / 381 MB, free: 2.484 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002901/0.2334, allocations: 2.68 MB / 383.7 MB, free: 15.8 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.425e-05/0.2334, allocations: 49.98 kB / 383.7 MB, free: 15.74 MB / 346.7 MB Notification: Performance of pre-optimization done (n=134): time 4.319e-06/0.2334, allocations: 4 kB / 383.7 MB, free: 15.74 MB / 346.7 MB Notification: Performance of matching and sorting (n=152): time 0.01376/0.2472, allocations: 7.689 MB / 391.4 MB, free: 7.984 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.871e-05/0.2473, allocations: 157.4 kB / 391.6 MB, free: 7.797 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003818/0.2511, allocations: 3.426 MB / 395 MB, free: 4.359 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.535e-05/0.2512, allocations: 49.7 kB / 395 MB, free: 4.305 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002066/0.2532, allocations: 3.361 MB / 398.4 MB, free: 0.957 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000449/0.2537, allocations: 0.6441 MB / 399.1 MB, free: 328 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001313/0.255, allocations: 1.256 MB / 400.3 MB, free: 15.05 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001069/0.2551, allocations: 476.8 kB / 400.8 MB, free: 14.58 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001103/0.2562, allocations: 0.5502 MB / 401.3 MB, free: 14.02 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00428/0.2605, allocations: 6.141 MB / 407.5 MB, free: 5.297 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006241/0.2667, allocations: 7.388 MB / 414.9 MB, free: 11.34 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.015e-05/0.2668, allocations: 40 kB / 414.9 MB, free: 11.3 MB / 378.7 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.007549/0.2743, allocations: 4.939 MB / 419.8 MB, free: 6.363 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.816e-05/0.2744, allocations: 60 kB / 419.9 MB, free: 6.305 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001263/0.2745, allocations: 136 kB / 420 MB, free: 6.172 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001485/0.2747, allocations: 176 kB / 420.2 MB, free: 6 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00323/0.2779, allocations: 1.381 MB / 421.6 MB, free: 4.617 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001886/0.2781, allocations: 270.9 kB / 421.8 MB, free: 4.352 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002979/0.2811, allocations: 365.6 kB / 422.2 MB, free: 4 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000387/0.2815, allocations: 364 kB / 422.6 MB, free: 3.645 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 612 * 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 (746): * Single equations (assignments): 743 * 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.001128/0.2826, allocations: 0.6458 MB / 423.2 MB, free: 2.988 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004318/0.283, allocations: 357.8 kB / 423.5 MB, free: 2.637 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000392/0.2834, allocations: 313.8 kB / 423.9 MB, free: 2.324 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.341e-05/0.2834, allocations: 19.91 kB / 423.9 MB, free: 2.309 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.076e-05/0.2835, allocations: 0 / 423.9 MB, free: 2.309 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.225e-05/0.2835, allocations: 4.125 kB / 423.9 MB, free: 2.305 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006739/0.2902, allocations: 4.901 MB / 428.8 MB, free: 13.06 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.782e-05/0.2902, allocations: 23.97 kB / 428.8 MB, free: 13.04 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007566/0.291, allocations: 275.5 kB / 429.1 MB, free: 12.77 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.282e-05/0.291, allocations: 24 kB / 429.1 MB, free: 12.74 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.202e-05/0.2911, allocations: 59.03 kB / 429.2 MB, free: 12.69 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.516e-05/0.2911, allocations: 35.86 kB / 429.2 MB, free: 12.65 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.081e-05/0.2911, allocations: 31.81 kB / 429.2 MB, free: 12.62 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002299/0.2934, allocations: 2.474 MB / 431.7 MB, free: 9.797 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004279/0.2938, allocations: 333.7 kB / 432 MB, free: 9.469 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002771/0.2941, allocations: 51.98 kB / 432.1 MB, free: 9.418 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009848/0.2951, allocations: 95.89 kB / 432.2 MB, free: 9.324 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001692/0.2953, allocations: 155.3 kB / 432.3 MB, free: 9.172 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.453e-05/0.2954, allocations: 66.91 kB / 432.4 MB, free: 9.109 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002088/0.2974, allocations: 1.47 MB / 433.8 MB, free: 7.648 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2974, allocations: 3.938 kB / 433.9 MB, free: 7.645 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003958/0.3014, allocations: 0.9335 MB / 434.8 MB, free: 6.711 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 (142): * Single equations (assignments): 139 * 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.0003913/0.3018, allocations: 220.2 kB / 435 MB, free: 6.492 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.004111/0.3059, allocations: 2.53 MB / 437.5 MB, free: 3.98 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 7.164e-06/0.3059, allocations: 256 / 437.5 MB, free: 3.98 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000458/0.3064, allocations: 457.5 kB / 438 MB, free: 3.531 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001495/0.3079, allocations: 411.2 kB / 438.4 MB, free: 3.137 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1117/0.4195, allocations: 7.489 MB / 445.9 MB, free: 132.7 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001344/0.4209, allocations: 1.16 MB / 447 MB, free: 132.5 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.002931/0.4238, allocations: 1.526 MB / 448.6 MB, free: 132.5 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004191/0.4242, allocations: 231.4 kB / 448.8 MB, free: 132.5 MB / 394.7 MB Notification: Performance of SimCode: time 1.673e-06/0.4242, allocations: 0 / 448.8 MB, free: 132.5 MB / 394.7 MB Notification: Performance of Templates: time 0.03337/0.4576, allocations: 20.54 MB / 469.3 MB, free: 121 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.7085610560607165]