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.0009573/0.0009573, allocations: 88.86 kB / 21.5 MB, free: 2.988 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.001134/0.001134, allocations: 164.4 kB / 24.91 MB, free: 8.715 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.9596/0.9596, allocations: 177 MB / 205.2 MB, free: 5.062 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.035 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.723e-05/2.87e-05, allocations: 5.266 kB / 273.4 MB, free: 1.031 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.0118/0.01183, allocations: 10.13 MB / 283.6 MB, free: 6.852 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.008569/0.0204, allocations: 3.922 MB / 287.5 MB, free: 2.914 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001591/0.02199, allocations: 79.56 kB / 287.6 MB, free: 2.836 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003783/0.02577, allocations: 2.351 MB / 289.9 MB, free: 488 kB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.12/0.1458, allocations: 1.889 MB / 291.8 MB, free: 14.34 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001404/0.1472, allocations: 0.7958 MB / 292.6 MB, free: 14.32 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.005656/0.1528, allocations: 5.003 MB / 297.6 MB, free: 13.73 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003801/0.1567, allocations: 2.896 MB / 300.5 MB, free: 13.43 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003016/0.1597, allocations: 2.295 MB / 302.8 MB, free: 12.77 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002765/0.1624, allocations: 2.233 MB / 305 MB, free: 12.18 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006111/0.163, allocations: 291.8 kB / 305.3 MB, free: 12.18 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001374/0.1644, allocations: 0.8861 MB / 306.2 MB, free: 11.93 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00107/0.1655, allocations: 1.943 MB / 308.1 MB, free: 10.85 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009767/0.1665, allocations: 1.203 MB / 309.3 MB, free: 10.22 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002566/0.169, allocations: 4.203 MB / 313.5 MB, free: 6.766 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.571e-06/0.169, allocations: 0 / 313.5 MB, free: 6.766 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.825e-06/0.169, allocations: 3.984 kB / 313.5 MB, free: 6.762 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.179e-05/0.1691, allocations: 0 / 313.5 MB, free: 6.762 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.003135/0.1722, allocations: 4.236 MB / 317.8 MB, free: 2.852 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.116e-05/0.1722, allocations: 11.98 kB / 317.8 MB, free: 2.84 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002541/0.1748, allocations: 1.1 MB / 318.9 MB, free: 1.793 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001537/0.1763, allocations: 1.698 MB / 320.6 MB, free: 204 kB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.607e-05/0.1764, allocations: 226.1 kB / 320.8 MB, free: 12 kB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003451/0.1768, allocations: 303.4 kB / 321.1 MB, free: 15.76 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004698/0.1815, allocations: 4.855 MB / 326 MB, free: 10.59 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.131e-05/0.1815, allocations: 45.48 kB / 326 MB, free: 10.57 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000231/0.1818, allocations: 145.4 kB / 326.2 MB, free: 10.46 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001429/0.1832, allocations: 1.723 MB / 327.9 MB, free: 8.77 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003919/0.1871, allocations: 2.39 MB / 330.3 MB, free: 6.594 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0206/0.2077, allocations: 30.98 MB / 361.2 MB, free: 7.531 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002751/0.2105, allocations: 1.554 MB / 362.8 MB, free: 5.98 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003127/0.2108, allocations: 267.1 kB / 363.1 MB, free: 5.723 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002875/0.2137, allocations: 2.438 MB / 365.5 MB, free: 3.301 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.903e-05/0.2137, allocations: 51.16 kB / 365.5 MB, free: 3.242 MB / 314.7 MB Notification: Performance of pre-optimization done (n=133): time 3.317e-06/0.2137, allocations: 4 kB / 365.6 MB, free: 3.238 MB / 314.7 MB Notification: Performance of matching and sorting (n=151): time 0.008997/0.2227, allocations: 4.481 MB / 370 MB, free: 14.78 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.28e-05/0.2227, allocations: 145.5 kB / 370.2 MB, free: 14.61 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002173/0.2249, allocations: 3.06 MB / 373.2 MB, free: 11.72 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.484e-05/0.225, allocations: 49.69 kB / 373.3 MB, free: 11.66 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001509/0.2265, allocations: 3.04 MB / 376.3 MB, free: 8.59 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003172/0.2268, allocations: 0.6202 MB / 376.9 MB, free: 7.965 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008036/0.2276, allocations: 1.105 MB / 378 MB, free: 6.848 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.66e-05/0.2277, allocations: 305.1 kB / 378.3 MB, free: 6.547 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009223/0.2286, allocations: 0.6668 MB / 379 MB, free: 5.875 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00267/0.2313, allocations: 4.333 MB / 383.3 MB, free: 15.64 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004098/0.2354, allocations: 5.561 MB / 388.9 MB, free: 8.18 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.711e-05/0.2354, allocations: 40 kB / 388.9 MB, free: 8.141 MB / 346.7 MB Notification: Performance of matching and sorting (n=771) (initialization): time 0.003732/0.2391, allocations: 3.939 MB / 392.9 MB, free: 4.188 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.126e-05/0.2392, allocations: 63.94 kB / 392.9 MB, free: 4.125 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.877e-05/0.2393, allocations: 136 kB / 393.1 MB, free: 3.992 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.775e-05/0.2394, allocations: 176 kB / 393.3 MB, free: 3.82 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002614/0.242, allocations: 1.44 MB / 394.7 MB, free: 2.379 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001408/0.2421, allocations: 263 kB / 394.9 MB, free: 2.121 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002016/0.2441, allocations: 263.7 kB / 395.2 MB, free: 1.863 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002862/0.2444, allocations: 324 kB / 395.5 MB, free: 1.547 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.001077/0.2455, allocations: 0.6145 MB / 396.1 MB, free: 0.918 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000297/0.2458, allocations: 199.8 kB / 396.3 MB, free: 0.7227 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004389/0.2462, allocations: 305.8 kB / 396.6 MB, free: 428 kB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.219e-05/0.2462, allocations: 16 kB / 396.6 MB, free: 412 kB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.718e-05/0.2463, allocations: 4 kB / 396.6 MB, free: 408 kB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.465e-05/0.2463, allocations: 7.969 kB / 396.7 MB, free: 400 kB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004845/0.2511, allocations: 4.034 MB / 400.7 MB, free: 12.08 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.61e-05/0.2511, allocations: 20 kB / 400.7 MB, free: 12.06 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006032/0.2517, allocations: 287.5 kB / 401 MB, free: 11.78 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.845e-05/0.2518, allocations: 28 kB / 401 MB, free: 11.75 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.069e-05/0.2518, allocations: 47.94 kB / 401.1 MB, free: 11.7 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.96e-05/0.2518, allocations: 36.33 kB / 401.1 MB, free: 11.67 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.431e-05/0.2519, allocations: 35.86 kB / 401.1 MB, free: 11.63 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001418/0.2533, allocations: 1.896 MB / 403 MB, free: 9.465 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003187/0.2536, allocations: 329.7 kB / 403.4 MB, free: 9.141 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002063/0.2538, allocations: 51.92 kB / 403.4 MB, free: 9.09 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006342/0.2544, allocations: 40 kB / 403.4 MB, free: 9.051 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001337/0.2546, allocations: 155.3 kB / 403.6 MB, free: 8.898 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.551e-05/0.2546, allocations: 59.92 kB / 403.7 MB, free: 8.84 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001187/0.2558, allocations: 1.274 MB / 404.9 MB, free: 7.57 MB / 362.7 MB Notification: Performance of sort global known variables: time 1e-07/0.2558, allocations: 0 / 404.9 MB, free: 7.57 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.003204/0.259, allocations: 0.9452 MB / 405.9 MB, free: 6.625 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.0003217/0.2593, allocations: 191.8 kB / 406.1 MB, free: 6.43 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002713/0.2621, allocations: 2.248 MB / 408.3 MB, free: 4.195 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001603/0.2622, allocations: 100.2 kB / 408.4 MB, free: 4.09 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003588/0.2626, allocations: 386.1 kB / 408.8 MB, free: 3.715 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001511/0.2641, allocations: 417.6 kB / 409.2 MB, free: 3.309 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008023/0.2721, allocations: 7.384 MB / 416.6 MB, free: 11.6 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001007/0.2731, allocations: 1.148 MB / 417.7 MB, free: 10.43 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001171/0.2743, allocations: 498.7 kB / 418.2 MB, free: 9.938 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006859/0.275, allocations: 0.5285 MB / 418.7 MB, free: 9.41 MB / 378.7 MB Notification: Performance of SimCode: time 1.783e-06/0.275, allocations: 0 / 418.7 MB, free: 9.41 MB / 378.7 MB Notification: Performance of Templates: time 0.04137/0.3163, allocations: 23.38 MB / 442.1 MB, free: 2.32 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 -s gbode -gbm=radauIIA3 -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.5501309288665652]