Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001004/0.001004, allocations: 79.59 kB / 21.18 MB, free: 3.387 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001054/0.001054, allocations: 165.4 kB / 24.56 MB, free: 16 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9676/0.9676, allocations: 177.2 MB / 205 MB, free: 5.297 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_4.1.0_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_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.354e-06/2.354e-06, allocations: 0 / 273 MB, free: 1.379 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.356e-05/3.592e-05, allocations: 5.125 kB / 273 MB, free: 1.375 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.008947/0.008983, allocations: 10.38 MB / 283.4 MB, free: 6.945 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006198/0.01518, allocations: 3.822 MB / 287.2 MB, free: 3.113 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001052/0.01623, allocations: 75.62 kB / 287.3 MB, free: 3.039 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002505/0.01874, allocations: 2.386 MB / 289.7 MB, free: 0.6445 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.1103/0.129, allocations: 1.919 MB / 291.6 MB, free: 14.72 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001292/0.1303, allocations: 0.7955 MB / 292.4 MB, free: 14.7 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004919/0.1352, allocations: 5.001 MB / 297.4 MB, free: 14.11 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00282/0.138, allocations: 3.051 MB / 300.4 MB, free: 13.57 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002402/0.1404, allocations: 2.346 MB / 302.8 MB, free: 12.79 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001919/0.1423, allocations: 2.34 MB / 305.1 MB, free: 12.16 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003609/0.1427, allocations: 292.3 kB / 305.4 MB, free: 12.16 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009566/0.1437, allocations: 0.8769 MB / 306.3 MB, free: 11.91 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007896/0.1445, allocations: 1.94 MB / 308.2 MB, free: 10.82 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007974/0.1453, allocations: 1.189 MB / 309.4 MB, free: 10.21 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002303/0.1476, allocations: 4.207 MB / 313.6 MB, free: 7.062 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.496e-06/0.1476, allocations: 0 / 313.6 MB, free: 7.062 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.112e-06/0.1476, allocations: 0 / 313.6 MB, free: 7.062 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.356e-05/0.1476, allocations: 3.938 kB / 313.6 MB, free: 7.059 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.003642/0.1512, allocations: 4.995 MB / 318.6 MB, free: 2.109 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.575e-05/0.1513, allocations: 8.031 kB / 318.6 MB, free: 2.102 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003918/0.1552, allocations: 2.455 MB / 321.1 MB, free: 15.68 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001937/0.1571, allocations: 1.99 MB / 323.1 MB, free: 13.8 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001205/0.1572, allocations: 219.3 kB / 323.3 MB, free: 13.62 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003238/0.1576, allocations: 302.2 kB / 323.6 MB, free: 13.36 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006221/0.1638, allocations: 6.044 MB / 329.6 MB, free: 6.484 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.812e-05/0.1639, allocations: 50.72 kB / 329.7 MB, free: 6.457 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002556/0.1641, allocations: 150 kB / 329.8 MB, free: 6.348 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001631/0.1658, allocations: 1.918 MB / 331.7 MB, free: 4.457 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00554/0.1713, allocations: 3.002 MB / 334.7 MB, free: 1.656 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02264/0.1939, allocations: 44.09 MB / 378.8 MB, free: 4.547 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003328/0.1973, allocations: 1.689 MB / 380.5 MB, free: 2.812 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004748/0.1977, allocations: 387.3 kB / 380.9 MB, free: 2.422 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003169/0.2009, allocations: 2.668 MB / 383.5 MB, free: 15.75 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.681e-05/0.201, allocations: 50.05 kB / 383.6 MB, free: 15.69 MB / 346.7 MB Notification: Performance of pre-optimization done (n=133): time 3.437e-06/0.201, allocations: 0 / 383.6 MB, free: 15.69 MB / 346.7 MB Notification: Performance of matching and sorting (n=151): time 0.01159/0.2125, allocations: 7.691 MB / 391.3 MB, free: 7.934 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.287e-05/0.2126, allocations: 145.5 kB / 391.4 MB, free: 7.762 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003148/0.2157, allocations: 3.434 MB / 394.9 MB, free: 4.316 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.103e-05/0.2158, allocations: 45.7 kB / 394.9 MB, free: 4.266 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001504/0.2173, allocations: 3.376 MB / 398.3 MB, free: 0.9062 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003557/0.2177, allocations: 0.6337 MB / 398.9 MB, free: 284 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001236/0.2189, allocations: 1.261 MB / 400.2 MB, free: 15.01 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.903e-05/0.219, allocations: 476.8 kB / 400.6 MB, free: 14.54 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008443/0.2198, allocations: 0.5513 MB / 401.2 MB, free: 13.99 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003448/0.2233, allocations: 6.16 MB / 407.4 MB, free: 5.23 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005397/0.2287, allocations: 7.405 MB / 414.8 MB, free: 11.25 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.167e-05/0.2287, allocations: 47.62 kB / 414.8 MB, free: 11.21 MB / 378.7 MB Notification: Performance of matching and sorting (n=771) (initialization): time 0.006237/0.235, allocations: 4.941 MB / 419.7 MB, free: 6.277 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.43e-05/0.235, allocations: 64 kB / 419.8 MB, free: 6.215 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001082/0.2351, allocations: 136 kB / 419.9 MB, free: 6.082 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001136/0.2353, allocations: 176.8 kB / 420.1 MB, free: 5.91 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002279/0.2375, allocations: 1.396 MB / 421.5 MB, free: 4.512 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001294/0.2377, allocations: 259 kB / 421.8 MB, free: 4.258 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002185/0.2398, allocations: 363.5 kB / 422.1 MB, free: 3.902 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003281/0.2402, allocations: 371.7 kB / 422.5 MB, free: 3.543 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.001116/0.2413, allocations: 0.6614 MB / 423.1 MB, free: 2.867 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006642/0.242, allocations: 353.9 kB / 423.5 MB, free: 2.52 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002748/0.2422, allocations: 305.8 kB / 423.8 MB, free: 2.215 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.527e-05/0.2422, allocations: 16 kB / 423.8 MB, free: 2.199 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.618e-06/0.2423, allocations: 4 kB / 423.8 MB, free: 2.195 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.298e-06/0.2423, allocations: 3.984 kB / 423.8 MB, free: 2.191 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004987/0.2473, allocations: 4.89 MB / 428.7 MB, free: 12.96 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.24e-05/0.2473, allocations: 16 kB / 428.7 MB, free: 12.95 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005366/0.2478, allocations: 283.4 kB / 429 MB, free: 12.67 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.728e-05/0.2478, allocations: 24 kB / 429 MB, free: 12.65 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.331e-05/0.2479, allocations: 51.98 kB / 429.1 MB, free: 12.6 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.917e-05/0.2479, allocations: 39.8 kB / 429.1 MB, free: 12.56 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.394e-05/0.2479, allocations: 27.88 kB / 429.1 MB, free: 12.53 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002097/0.25, allocations: 2.474 MB / 431.6 MB, free: 9.707 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003063/0.2503, allocations: 329.7 kB / 431.9 MB, free: 9.383 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000191/0.2505, allocations: 47.98 kB / 432 MB, free: 9.336 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000622/0.2511, allocations: 103.8 kB / 432.1 MB, free: 9.234 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001201/0.2512, allocations: 154 kB / 432.2 MB, free: 9.086 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.999e-05/0.2513, allocations: 64 kB / 432.3 MB, free: 9.023 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001437/0.2527, allocations: 1.47 MB / 433.8 MB, free: 7.562 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.2527, allocations: 4 kB / 433.8 MB, free: 7.559 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002599/0.2553, allocations: 0.9374 MB / 434.7 MB, free: 6.621 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.0003178/0.2557, allocations: 213.5 kB / 434.9 MB, free: 6.402 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002937/0.2586, allocations: 2.541 MB / 437.5 MB, free: 3.891 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 8.256e-06/0.2586, allocations: 4 kB / 437.5 MB, free: 3.887 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004055/0.259, allocations: 450.7 kB / 437.9 MB, free: 3.441 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00135/0.2604, allocations: 421.2 kB / 438.3 MB, free: 3.035 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1177/0.3781, allocations: 7.482 MB / 445.8 MB, free: 127.5 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001242/0.3793, allocations: 1.16 MB / 447 MB, free: 127.4 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.002549/0.3819, allocations: 1.534 MB / 448.5 MB, free: 127.3 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003388/0.3822, allocations: 222.2 kB / 448.7 MB, free: 127.3 MB / 394.7 MB Notification: Performance of SimCode: time 1.774e-06/0.3822, allocations: 0 / 448.7 MB, free: 127.3 MB / 394.7 MB Notification: Performance of Templates: time 0.03085/0.4131, allocations: 21.59 MB / 470.3 MB, free: 116.2 MB / 394.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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.6309347711503506]