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.001183/0.001183, allocations: 88.73 kB / 21.5 MB, free: 2.984 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.001275/0.001275, allocations: 164.2 kB / 24.91 MB, free: 8.762 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.8809/0.8809, allocations: 177 MB / 205.2 MB, free: 5.043 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.473e-06/1.473e-06, allocations: 0 / 273.4 MB, free: 1.055 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.453e-05/1.6e-05, allocations: 2.312 kB / 273.4 MB, free: 1.051 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.01056/0.01058, allocations: 10.09 MB / 283.5 MB, free: 6.918 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006714/0.01729, allocations: 3.922 MB / 287.4 MB, free: 2.98 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006426/0.01793, allocations: 79.62 kB / 287.5 MB, free: 2.902 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003375/0.02131, allocations: 2.378 MB / 289.9 MB, free: 0.5156 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.09793/0.1192, allocations: 1.926 MB / 291.8 MB, free: 14.38 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001151/0.1204, allocations: 0.7959 MB / 292.6 MB, free: 14.36 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004327/0.1247, allocations: 5.006 MB / 297.6 MB, free: 13.77 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002845/0.1276, allocations: 3.11 MB / 300.7 MB, free: 13.46 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00256/0.1301, allocations: 2.345 MB / 303 MB, free: 12.7 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001679/0.1318, allocations: 2.23 MB / 305.3 MB, free: 12.07 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002671/0.1321, allocations: 292 kB / 305.6 MB, free: 12.07 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008584/0.1329, allocations: 0.8647 MB / 306.4 MB, free: 11.82 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007671/0.1337, allocations: 1.936 MB / 308.4 MB, free: 10.74 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006742/0.1344, allocations: 1.199 MB / 309.6 MB, free: 10.11 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002023/0.1364, allocations: 4.208 MB / 313.8 MB, free: 6.566 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.1364, allocations: 0 / 313.8 MB, free: 6.566 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.132e-06/0.1364, allocations: 0 / 313.8 MB, free: 6.566 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.615e-05/0.1364, allocations: 0 / 313.8 MB, free: 6.566 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.002785/0.1392, allocations: 4.239 MB / 318 MB, free: 2.656 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.658e-05/0.1392, allocations: 11.98 kB / 318 MB, free: 2.645 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002328/0.1416, allocations: 1.101 MB / 319.1 MB, free: 1.598 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001342/0.1429, allocations: 1.7 MB / 320.8 MB, free: 0 / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000115/0.143, allocations: 221.8 kB / 321 MB, free: 15.82 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002985/0.1433, allocations: 297.5 kB / 321.3 MB, free: 15.56 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00408/0.1474, allocations: 4.86 MB / 326.2 MB, free: 10.4 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.341e-05/0.1475, allocations: 48.31 kB / 326.2 MB, free: 10.38 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000216/0.1477, allocations: 150.1 kB / 326.4 MB, free: 10.27 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001338/0.149, allocations: 1.719 MB / 328.1 MB, free: 8.574 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003086/0.1521, allocations: 2.393 MB / 330.5 MB, free: 6.398 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01613/0.1682, allocations: 30.98 MB / 361.5 MB, free: 7.332 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002504/0.1707, allocations: 1.549 MB / 363 MB, free: 5.785 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002865/0.171, allocations: 266.6 kB / 363.3 MB, free: 5.527 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002435/0.1735, allocations: 2.437 MB / 365.7 MB, free: 3.105 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.646e-05/0.1735, allocations: 47.16 kB / 365.8 MB, free: 3.051 MB / 314.7 MB Notification: Performance of pre-optimization done (n=133): time 2.344e-06/0.1735, allocations: 0 / 365.8 MB, free: 3.051 MB / 314.7 MB Notification: Performance of matching and sorting (n=151): time 0.007867/0.1814, allocations: 4.489 MB / 370.3 MB, free: 14.58 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.702e-05/0.1814, allocations: 141.5 kB / 370.4 MB, free: 14.41 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00195/0.1833, allocations: 3.062 MB / 373.5 MB, free: 11.5 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.012e-05/0.1834, allocations: 49.69 kB / 373.5 MB, free: 11.44 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001101/0.1845, allocations: 3.036 MB / 376.5 MB, free: 8.371 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000285/0.1848, allocations: 0.628 MB / 377.2 MB, free: 7.738 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007662/0.1856, allocations: 1.105 MB / 378.3 MB, free: 6.621 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.781e-05/0.1856, allocations: 305.1 kB / 378.6 MB, free: 6.32 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008946/0.1865, allocations: 0.668 MB / 379.2 MB, free: 5.645 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002245/0.1887, allocations: 4.321 MB / 383.6 MB, free: 15.42 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003182/0.1919, allocations: 5.575 MB / 389.1 MB, free: 7.949 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.775e-05/0.192, allocations: 40 kB / 389.2 MB, free: 7.91 MB / 346.7 MB Notification: Performance of matching and sorting (n=771) (initialization): time 0.003402/0.1954, allocations: 3.942 MB / 393.1 MB, free: 3.953 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.631e-05/0.1954, allocations: 60 kB / 393.2 MB, free: 3.895 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.668e-05/0.1955, allocations: 136 kB / 393.3 MB, free: 3.762 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.19e-05/0.1956, allocations: 179.9 kB / 393.5 MB, free: 3.586 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002025/0.1976, allocations: 1.369 MB / 394.8 MB, free: 2.215 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001188/0.1977, allocations: 263 kB / 395.1 MB, free: 1.957 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001569/0.1993, allocations: 263.7 kB / 395.4 MB, free: 1.699 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002331/0.1995, allocations: 320 kB / 395.7 MB, free: 1.387 MB / 346.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.0007164/0.2002, allocations: 0.6107 MB / 396.3 MB, free: 0.7617 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002194/0.2005, allocations: 207.7 kB / 396.5 MB, free: 0.5586 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002526/0.2007, allocations: 305.8 kB / 396.8 MB, free: 260 kB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.305e-05/0.2007, allocations: 20 kB / 396.8 MB, free: 240 kB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/0.2007, allocations: 0 / 396.8 MB, free: 240 kB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.905e-06/0.2007, allocations: 7.969 kB / 396.8 MB, free: 232 kB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003569/0.2043, allocations: 4.023 MB / 400.8 MB, free: 11.93 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.19e-05/0.2043, allocations: 20 kB / 400.9 MB, free: 11.91 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004855/0.2048, allocations: 275.6 kB / 401.1 MB, free: 11.64 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.385e-05/0.2048, allocations: 24 kB / 401.2 MB, free: 11.61 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.663e-05/0.2049, allocations: 44 kB / 401.2 MB, free: 11.57 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.036e-05/0.2049, allocations: 39.86 kB / 401.2 MB, free: 11.53 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-05/0.2049, allocations: 31.81 kB / 401.3 MB, free: 11.5 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001236/0.2061, allocations: 1.912 MB / 403.2 MB, free: 9.316 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002705/0.2064, allocations: 321.7 kB / 403.5 MB, free: 9 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001866/0.2066, allocations: 47.98 kB / 403.5 MB, free: 8.953 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005638/0.2072, allocations: 43.98 kB / 403.6 MB, free: 8.91 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000103/0.2073, allocations: 155.3 kB / 403.7 MB, free: 8.758 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.119e-05/0.2073, allocations: 59.88 kB / 403.8 MB, free: 8.699 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0009713/0.2083, allocations: 1.274 MB / 405.1 MB, free: 7.43 MB / 362.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2083, allocations: 0 / 405.1 MB, free: 7.43 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002339/0.2106, allocations: 0.9413 MB / 406 MB, free: 6.488 MB / 362.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.000261/0.2109, allocations: 197.1 kB / 406.2 MB, free: 6.289 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001782/0.2127, allocations: 2.243 MB / 408.4 MB, free: 4.062 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001444/0.2128, allocations: 108.2 kB / 408.5 MB, free: 3.949 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000304/0.2131, allocations: 378.2 kB / 408.9 MB, free: 3.578 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00128/0.2144, allocations: 425 kB / 409.3 MB, free: 3.168 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00666/0.2211, allocations: 7.382 MB / 416.7 MB, free: 11.46 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008875/0.2219, allocations: 1.152 MB / 417.9 MB, free: 10.28 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001/0.2229, allocations: 498.1 kB / 418.4 MB, free: 9.797 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005978/0.2235, allocations: 0.5246 MB / 418.9 MB, free: 9.273 MB / 378.7 MB Notification: Performance of SimCode: time 1.032e-06/0.2235, allocations: 0 / 418.9 MB, free: 9.273 MB / 378.7 MB Notification: Performance of Templates: time 0.03433/0.2579, allocations: 23.3 MB / 442.2 MB, free: 2.262 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.2295480486936867]