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.0009696/0.0009696, allocations: 67.77 kB / 21.69 MB, free: 2.852 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.001075/0.001075, allocations: 165.5 kB / 24.99 MB, free: 8.742 MB / 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.9312/0.9312, allocations: 177.1 MB / 205.3 MB, free: 5.637 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 1.333e-06/1.333e-06, allocations: 0 / 273.1 MB, free: 1.84 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.212e-05/1.346e-05, allocations: 2.312 kB / 273.1 MB, free: 1.836 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.007878/0.007891, allocations: 10.35 MB / 283.4 MB, free: 7.438 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004909/0.0128, allocations: 3.798 MB / 287.2 MB, free: 3.629 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006322/0.01343, allocations: 71.69 kB / 287.3 MB, free: 3.559 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002496/0.01593, allocations: 2.398 MB / 289.7 MB, free: 1.152 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.1108/0.1267, allocations: 1.909 MB / 291.6 MB, free: 13.99 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001547/0.1282, allocations: 0.7957 MB / 292.4 MB, free: 13.99 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00534/0.1336, allocations: 5.001 MB / 297.4 MB, free: 13.43 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003555/0.1371, allocations: 3.048 MB / 300.4 MB, free: 13.17 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003007/0.1401, allocations: 2.277 MB / 302.7 MB, free: 12.51 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002578/0.1427, allocations: 2.42 MB / 305.1 MB, free: 12.11 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006087/0.1433, allocations: 302.1 kB / 305.4 MB, free: 12.11 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001076/0.1444, allocations: 0.8791 MB / 306.3 MB, free: 11.88 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009406/0.1453, allocations: 1.948 MB / 308.3 MB, free: 10.78 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001055/0.1464, allocations: 1.206 MB / 309.5 MB, free: 10.15 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003035/0.1494, allocations: 4.252 MB / 313.7 MB, free: 7.117 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.046e-06/0.1494, allocations: 0 / 313.7 MB, free: 7.117 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.021e-06/0.1494, allocations: 0 / 313.7 MB, free: 7.117 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.376e-05/0.1495, allocations: 0 / 313.7 MB, free: 7.117 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.004175/0.1536, allocations: 5.058 MB / 318.8 MB, free: 2.098 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.749e-05/0.1537, allocations: 8.031 kB / 318.8 MB, free: 2.09 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004239/0.1579, allocations: 2.451 MB / 321.2 MB, free: 15.67 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002097/0.16, allocations: 2.003 MB / 323.2 MB, free: 13.79 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001128/0.1601, allocations: 220.1 kB / 323.4 MB, free: 13.61 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003192/0.1605, allocations: 303.7 kB / 323.7 MB, free: 13.35 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00634/0.1668, allocations: 6.047 MB / 329.8 MB, free: 6.465 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.945e-05/0.1669, allocations: 44.42 kB / 329.8 MB, free: 6.445 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002684/0.1671, allocations: 146.6 kB / 330 MB, free: 6.34 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001685/0.1688, allocations: 1.917 MB / 331.9 MB, free: 4.449 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005893/0.1747, allocations: 2.999 MB / 334.9 MB, free: 1.652 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02457/0.1993, allocations: 44.08 MB / 379 MB, free: 4.594 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003347/0.2026, allocations: 1.7 MB / 380.7 MB, free: 2.859 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004822/0.2031, allocations: 383.4 kB / 381.1 MB, free: 2.473 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002896/0.206, allocations: 2.687 MB / 383.7 MB, free: 15.78 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.067e-05/0.206, allocations: 46.05 kB / 383.8 MB, free: 15.73 MB / 346.7 MB Notification: Performance of pre-optimization done (n=134): time 2.855e-06/0.2061, allocations: 0 / 383.8 MB, free: 15.73 MB / 346.7 MB Notification: Performance of matching and sorting (n=152): time 0.01161/0.2177, allocations: 7.699 MB / 391.5 MB, free: 7.961 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.864e-05/0.2177, allocations: 143.8 kB / 391.6 MB, free: 7.789 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002872/0.2206, allocations: 3.426 MB / 395.1 MB, free: 4.352 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.376e-05/0.2206, allocations: 47.34 kB / 395.1 MB, free: 4.301 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001447/0.2221, allocations: 3.364 MB / 398.5 MB, free: 0.9492 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003388/0.2224, allocations: 0.6502 MB / 399.1 MB, free: 320 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001005/0.2234, allocations: 1.253 MB / 400.4 MB, free: 15.04 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.93e-05/0.2235, allocations: 480.8 kB / 400.8 MB, free: 14.57 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008386/0.2244, allocations: 0.5541 MB / 401.4 MB, free: 14.01 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003327/0.2277, allocations: 6.132 MB / 407.5 MB, free: 5.289 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004957/0.2326, allocations: 7.393 MB / 414.9 MB, free: 11.34 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.14e-05/0.2327, allocations: 40 kB / 415 MB, free: 11.3 MB / 378.7 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.005414/0.2381, allocations: 4.93 MB / 419.9 MB, free: 6.371 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.348e-05/0.2382, allocations: 64.25 kB / 419.9 MB, free: 6.309 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.075e-05/0.2383, allocations: 139.9 kB / 420.1 MB, free: 6.172 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001087/0.2384, allocations: 176.1 kB / 420.3 MB, free: 6 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002196/0.2406, allocations: 1.388 MB / 421.6 MB, free: 4.609 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001273/0.2407, allocations: 263.8 kB / 421.9 MB, free: 4.352 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001859/0.2426, allocations: 358.7 kB / 422.2 MB, free: 4.004 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002785/0.2428, allocations: 368 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.0008452/0.2437, allocations: 0.6573 MB / 423.3 MB, free: 2.973 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003589/0.2441, allocations: 357.8 kB / 423.6 MB, free: 2.621 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002854/0.2443, allocations: 309.8 kB / 423.9 MB, free: 2.312 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-05/0.2444, allocations: 16 kB / 423.9 MB, free: 2.297 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.267e-06/0.2444, allocations: 4 kB / 423.9 MB, free: 2.293 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.608e-06/0.2444, allocations: 3.984 kB / 423.9 MB, free: 2.289 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004819/0.2492, allocations: 4.897 MB / 428.8 MB, free: 13.05 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.254e-05/0.2492, allocations: 19.98 kB / 428.9 MB, free: 13.03 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005253/0.2497, allocations: 271.6 kB / 429.1 MB, free: 12.77 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.733e-05/0.2497, allocations: 28.56 kB / 429.2 MB, free: 12.74 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.592e-05/0.2498, allocations: 59.98 kB / 429.2 MB, free: 12.68 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.81e-05/0.2498, allocations: 39.8 kB / 429.2 MB, free: 12.64 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.31e-05/0.2498, allocations: 27.88 kB / 429.3 MB, free: 12.62 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001799/0.2516, allocations: 2.474 MB / 431.7 MB, free: 9.789 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002854/0.2519, allocations: 329.7 kB / 432.1 MB, free: 9.465 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000194/0.2521, allocations: 53.47 kB / 432.1 MB, free: 9.414 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006377/0.2527, allocations: 99.83 kB / 432.2 MB, free: 9.316 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001249/0.2529, allocations: 155.3 kB / 432.4 MB, free: 9.164 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.699e-05/0.2529, allocations: 66.5 kB / 432.4 MB, free: 9.102 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001404/0.2543, allocations: 1.466 MB / 433.9 MB, free: 7.645 MB / 394.7 MB Notification: Performance of sort global known variables: time 9e-08/0.2543, allocations: 0 / 433.9 MB, free: 7.645 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002557/0.2569, allocations: 0.9452 MB / 434.8 MB, free: 6.699 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.0003081/0.2572, allocations: 208.6 kB / 435.1 MB, free: 6.488 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002642/0.2598, allocations: 2.532 MB / 437.6 MB, free: 3.973 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.681e-06/0.2598, allocations: 0 / 437.6 MB, free: 3.973 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004153/0.2603, allocations: 464.1 kB / 438 MB, free: 3.52 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001376/0.2616, allocations: 426.8 kB / 438.5 MB, free: 3.109 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.107/0.3686, allocations: 7.478 MB / 445.9 MB, free: 132.9 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001221/0.3698, allocations: 1.159 MB / 447.1 MB, free: 132.7 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.002811/0.3726, allocations: 1.532 MB / 448.6 MB, free: 132.7 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003606/0.373, allocations: 225.5 kB / 448.8 MB, free: 132.7 MB / 394.7 MB Notification: Performance of SimCode: time 1.423e-06/0.373, allocations: 0 / 448.8 MB, free: 132.7 MB / 394.7 MB Notification: Performance of Templates: time 0.0309/0.4039, allocations: 20.55 MB / 469.4 MB, free: 121.1 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.5976492629852146]