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.001012/0.001012, allocations: 91.67 kB / 21.2 MB, free: 3.367 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.001103/0.001103, allocations: 160.5 kB / 24.56 MB, free: 12 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.9826/0.9826, allocations: 177 MB / 204.8 MB, free: 5.578 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.874e-06/1.874e-06, allocations: 0 / 272.9 MB, free: 1.441 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.072e-05/2.259e-05, allocations: 5.266 kB / 272.9 MB, free: 1.438 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.008288/0.00831, allocations: 10.38 MB / 283.3 MB, free: 7.004 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005267/0.01358, allocations: 3.818 MB / 287.1 MB, free: 3.172 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007211/0.0143, allocations: 75.62 kB / 287.2 MB, free: 3.098 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002378/0.01668, allocations: 2.386 MB / 289.6 MB, free: 0.7031 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.1384/0.1551, allocations: 1.921 MB / 291.5 MB, free: 14.2 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00156/0.1567, allocations: 0.7971 MB / 292.3 MB, free: 14.18 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.005915/0.1626, allocations: 5.005 MB / 297.3 MB, free: 13.6 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003802/0.1664, allocations: 3.034 MB / 300.3 MB, free: 13.34 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003136/0.1695, allocations: 2.282 MB / 302.6 MB, free: 12.56 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002858/0.1724, allocations: 2.418 MB / 305 MB, free: 11.96 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007256/0.1731, allocations: 302.7 kB / 305.3 MB, free: 11.96 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001309/0.1744, allocations: 0.8764 MB / 306.2 MB, free: 11.71 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001005/0.1754, allocations: 1.949 MB / 308.2 MB, free: 10.61 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009493/0.1764, allocations: 1.21 MB / 309.4 MB, free: 9.98 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002885/0.1793, allocations: 4.243 MB / 313.6 MB, free: 6.797 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.1793, allocations: 0 / 313.6 MB, free: 6.797 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.735e-06/0.1793, allocations: 0 / 313.6 MB, free: 6.797 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.727e-05/0.1793, allocations: 4 kB / 313.6 MB, free: 6.793 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.00423/0.1835, allocations: 5.052 MB / 318.7 MB, free: 1.777 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.381e-05/0.1836, allocations: 11.98 kB / 318.7 MB, free: 1.766 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004218/0.1878, allocations: 2.455 MB / 321.1 MB, free: 15.34 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002401/0.1902, allocations: 2.007 MB / 323.2 MB, free: 13.46 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001215/0.1903, allocations: 219.1 kB / 323.4 MB, free: 13.28 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003329/0.1907, allocations: 295.6 kB / 323.7 MB, free: 13.02 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006497/0.1972, allocations: 6.057 MB / 329.7 MB, free: 6.141 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.974e-05/0.1972, allocations: 43.39 kB / 329.8 MB, free: 6.121 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002494/0.1975, allocations: 142.9 kB / 329.9 MB, free: 6.02 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001622/0.1991, allocations: 1.927 MB / 331.8 MB, free: 4.117 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005525/0.2046, allocations: 2.989 MB / 334.8 MB, free: 1.328 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02409/0.2287, allocations: 44.09 MB / 378.9 MB, free: 4.223 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003463/0.2322, allocations: 1.715 MB / 380.6 MB, free: 2.469 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00047/0.2326, allocations: 380.2 kB / 381 MB, free: 2.082 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002954/0.2356, allocations: 2.673 MB / 383.7 MB, free: 15.4 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.091e-05/0.2356, allocations: 53.98 kB / 383.7 MB, free: 15.34 MB / 346.7 MB Notification: Performance of pre-optimization done (n=134): time 2.384e-06/0.2356, allocations: 0 / 383.7 MB, free: 15.34 MB / 346.7 MB Notification: Performance of matching and sorting (n=152): time 0.01096/0.2466, allocations: 7.697 MB / 391.4 MB, free: 7.578 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.498e-05/0.2466, allocations: 141.5 kB / 391.5 MB, free: 7.406 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003088/0.2497, allocations: 3.43 MB / 395 MB, free: 3.965 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.18e-05/0.2498, allocations: 49.7 kB / 395 MB, free: 3.91 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001531/0.2513, allocations: 3.364 MB / 398.4 MB, free: 0.5586 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003635/0.2517, allocations: 0.6504 MB / 399 MB, free: 15.92 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009942/0.2527, allocations: 1.251 MB / 400.3 MB, free: 14.65 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001228/0.2528, allocations: 480.8 kB / 400.8 MB, free: 14.18 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001066/0.2539, allocations: 0.5502 MB / 401.3 MB, free: 13.62 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003551/0.2574, allocations: 6.129 MB / 407.4 MB, free: 4.91 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00525/0.2627, allocations: 7.396 MB / 414.8 MB, free: 10.95 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.348e-05/0.2627, allocations: 36 kB / 414.9 MB, free: 10.91 MB / 378.7 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.00631/0.269, allocations: 4.939 MB / 419.8 MB, free: 5.973 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.91e-05/0.2691, allocations: 60 kB / 419.9 MB, free: 5.914 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001386/0.2692, allocations: 136 kB / 420 MB, free: 5.781 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001348/0.2694, allocations: 176 kB / 420.2 MB, free: 5.609 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002339/0.2717, allocations: 1.388 MB / 421.6 MB, free: 4.219 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000216/0.2719, allocations: 263 kB / 421.8 MB, free: 3.961 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002139/0.2741, allocations: 363.2 kB / 422.2 MB, free: 3.609 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003172/0.2744, allocations: 368 kB / 422.5 MB, free: 3.25 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.001221/0.2756, allocations: 0.6496 MB / 423.2 MB, free: 2.59 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003106/0.2759, allocations: 357.8 kB / 423.5 MB, free: 2.238 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002844/0.2762, allocations: 305.8 kB / 423.8 MB, free: 1.934 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.83e-05/0.2762, allocations: 24 kB / 423.8 MB, free: 1.91 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.216e-05/0.2762, allocations: 0 / 423.8 MB, free: 1.91 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.388e-06/0.2762, allocations: 3.984 kB / 423.9 MB, free: 1.906 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005715/0.2819, allocations: 4.905 MB / 428.8 MB, free: 12.66 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.328e-05/0.282, allocations: 19.98 kB / 428.8 MB, free: 12.64 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005361/0.2825, allocations: 283.5 kB / 429.1 MB, free: 12.37 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.023e-05/0.2825, allocations: 24 kB / 429.1 MB, free: 12.34 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.811e-05/0.2826, allocations: 51.98 kB / 429.1 MB, free: 12.29 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.141e-05/0.2826, allocations: 35.86 kB / 429.2 MB, free: 12.26 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.749e-05/0.2826, allocations: 31.81 kB / 429.2 MB, free: 12.23 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002088/0.2847, allocations: 2.474 MB / 431.7 MB, free: 9.398 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005087/0.2852, allocations: 333.7 kB / 432 MB, free: 9.07 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001676/0.2854, allocations: 51.98 kB / 432 MB, free: 9.02 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006162/0.286, allocations: 102 kB / 432.1 MB, free: 8.922 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001278/0.2861, allocations: 147.3 kB / 432.3 MB, free: 8.777 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.153e-05/0.2862, allocations: 71.98 kB / 432.4 MB, free: 8.707 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001459/0.2877, allocations: 1.466 MB / 433.8 MB, free: 7.25 MB / 394.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2877, allocations: 0 / 433.8 MB, free: 7.25 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002942/0.2906, allocations: 0.9442 MB / 434.8 MB, free: 6.309 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.0003278/0.2909, allocations: 218.2 kB / 435 MB, free: 6.09 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002854/0.2938, allocations: 2.515 MB / 437.5 MB, free: 3.59 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.028e-06/0.2938, allocations: 4 kB / 437.5 MB, free: 3.586 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004269/0.2942, allocations: 467 kB / 438 MB, free: 3.129 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001374/0.2956, allocations: 415.8 kB / 438.4 MB, free: 2.727 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1338/0.4294, allocations: 7.481 MB / 445.8 MB, free: 127.7 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001239/0.4306, allocations: 1.158 MB / 447 MB, free: 127.5 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.002942/0.4336, allocations: 1.525 MB / 448.5 MB, free: 127.5 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004091/0.434, allocations: 222.6 kB / 448.7 MB, free: 127.5 MB / 394.7 MB Notification: Performance of SimCode: time 2.224e-06/0.434, allocations: 0 / 448.7 MB, free: 127.5 MB / 394.7 MB Notification: Performance of Templates: time 0.03149/0.4655, allocations: 20.55 MB / 469.3 MB, free: 117.2 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.932931605260819]