Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001279/0.001279, allocations: 107.5 kB / 20.44 MB, free: 1.066 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001368/0.001368, allocations: 186 kB / 23.7 MB, free: 4.191 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.455/1.455, allocations: 225.7 MB / 252.5 MB, free: 12.87 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001659/0.001659, allocations: 47.92 kB / 370.9 MB, free: 9.203 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2429/0.2445, allocations: 52.18 MB / 423.1 MB, free: 14.5 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.01215/0.2567, allocations: 9.379 MB / 432.5 MB, free: 5.078 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007859/0.2646, allocations: 3.686 MB / 436.1 MB, free: 1.383 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001217/0.2658, allocations: 75.62 kB / 436.2 MB, free: 1.309 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004212/0.27, allocations: 2.188 MB / 438.4 MB, free: 15.11 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004961/0.2749, allocations: 1.883 MB / 440.3 MB, free: 13.22 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001641/0.2766, allocations: 0.7214 MB / 441 MB, free: 12.5 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006258/0.2828, allocations: 4.229 MB / 445.2 MB, free: 8.262 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003236/0.2861, allocations: 2.458 MB / 447.7 MB, free: 5.754 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002434/0.2885, allocations: 1.495 MB / 449.2 MB, free: 4.254 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003321/0.2918, allocations: 2.145 MB / 451.3 MB, free: 2.102 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007015/0.2925, allocations: 296 kB / 451.6 MB, free: 1.812 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001829/0.2944, allocations: 0.8426 MB / 452.5 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001984/0.2963, allocations: 1.862 MB / 454.3 MB, free: 15.1 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001867/0.2982, allocations: 1.561 MB / 455.9 MB, free: 13.53 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007567/0.3058, allocations: 6.475 MB / 462.4 MB, free: 7.031 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.337e-06/0.3058, allocations: 4 kB / 462.4 MB, free: 7.027 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.3058, allocations: 3.938 kB / 462.4 MB, free: 7.023 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001908/0.306, allocations: 0 / 462.4 MB, free: 7.023 MB / 366.1 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.009139/0.3151, allocations: 4.644 MB / 467 MB, free: 2.324 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.72e-05/0.3152, allocations: 12.03 kB / 467 MB, free: 2.312 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007445/0.3226, allocations: 1.944 MB / 469 MB, free: 372 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005579/0.3282, allocations: 2.241 MB / 471.2 MB, free: 14.07 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002097/0.3284, allocations: 221.6 kB / 471.4 MB, free: 13.85 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005836/0.329, allocations: 303.8 kB / 471.7 MB, free: 13.55 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01665/0.3456, allocations: 9.66 MB / 481.4 MB, free: 3.129 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001182/0.3458, allocations: 47.64 kB / 481.4 MB, free: 3.082 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003788/0.3461, allocations: 151.8 kB / 481.6 MB, free: 2.934 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002987/0.3491, allocations: 1.915 MB / 483.5 MB, free: 1.016 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01539/0.3645, allocations: 7.613 MB / 491.1 MB, free: 9.379 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04287/0.4074, allocations: 35.24 MB / 0.514 GB, free: 4.984 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006629/0.414, allocations: 2.316 MB / 0.5163 GB, free: 2.629 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001317/0.4153, allocations: 0.8038 MB / 0.5171 GB, free: 1.816 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005658/0.421, allocations: 2.827 MB / 0.5198 GB, free: 14.96 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.02e-05/0.421, allocations: 55.14 kB / 0.5199 GB, free: 14.9 MB / 446.1 MB Notification: Performance of pre-optimization done (n=134): time 3.787e-06/0.421, allocations: 0 / 0.5199 GB, free: 14.9 MB / 446.1 MB Notification: Performance of matching and sorting (n=152): time 0.02165/0.4427, allocations: 9.062 MB / 0.5287 GB, free: 5.781 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001013/0.4428, allocations: 141.5 kB / 0.5289 GB, free: 5.609 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005057/0.4478, allocations: 3.706 MB / 0.5325 GB, free: 1.898 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001693/0.448, allocations: 49.7 kB / 0.5325 GB, free: 1.844 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.2206/0.6686, allocations: 3.227 MB / 0.5357 GB, free: 109.1 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006899/0.6693, allocations: 0.6342 MB / 0.5363 GB, free: 108.8 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001685/0.671, allocations: 1.176 MB / 0.5374 GB, free: 108.3 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.075e-05/0.671, allocations: 309.5 kB / 0.5377 GB, free: 108 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002376/0.6734, allocations: 1.576 MB / 0.5393 GB, free: 107.6 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003335/0.6767, allocations: 5.364 MB / 0.5445 GB, free: 102 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008108/0.6848, allocations: 7.538 MB / 0.5519 GB, free: 95.24 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002014/0.685, allocations: 43.8 kB / 0.5519 GB, free: 95.23 MB / 446.1 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.01049/0.6955, allocations: 6.636 MB / 0.5584 GB, free: 91.25 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.971e-05/0.6956, allocations: 60 kB / 0.5585 GB, free: 91.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001671/0.6958, allocations: 136 kB / 0.5586 GB, free: 91.06 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001458/0.6959, allocations: 176 kB / 0.5588 GB, free: 90.89 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003795/0.6997, allocations: 1.384 MB / 0.5601 GB, free: 89.66 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000127/0.6998, allocations: 264 kB / 0.5604 GB, free: 89.44 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003477/0.7033, allocations: 287.3 kB / 0.5606 GB, free: 89.17 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003546/0.7037, allocations: 367.6 kB / 0.561 GB, free: 88.82 MB / 446.1 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.002212/0.7059, allocations: 1.978 MB / 0.5629 GB, free: 87.07 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004067/0.7063, allocations: 313.9 kB / 0.5632 GB, free: 86.76 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001585/0.7079, allocations: 1.216 MB / 0.5644 GB, free: 85.72 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.829e-05/0.7079, allocations: 22.02 kB / 0.5644 GB, free: 85.7 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.917e-06/0.7079, allocations: 0 / 0.5644 GB, free: 85.7 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.165e-05/0.7079, allocations: 11.22 kB / 0.5644 GB, free: 85.7 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00727/0.7152, allocations: 4.583 MB / 0.5689 GB, free: 81.36 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.712e-05/0.7152, allocations: 20 kB / 0.5689 GB, free: 81.34 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008587/0.7161, allocations: 280.8 kB / 0.5692 GB, free: 81.07 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.138e-05/0.7161, allocations: 24 kB / 0.5692 GB, free: 81.04 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.723e-05/0.7161, allocations: 44 kB / 0.5693 GB, free: 81 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.989e-05/0.7162, allocations: 39.86 kB / 0.5693 GB, free: 80.96 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.295e-05/0.7162, allocations: 27.88 kB / 0.5693 GB, free: 80.93 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002866/0.719, allocations: 3.201 MB / 0.5725 GB, free: 77.48 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006133/0.7197, allocations: 309.7 kB / 0.5727 GB, free: 77.17 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002576/0.7199, allocations: 55.81 kB / 0.5728 GB, free: 77.12 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009867/0.7209, allocations: 55.97 kB / 0.5729 GB, free: 77.07 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001335/0.721, allocations: 155.3 kB / 0.573 GB, free: 76.91 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.241e-05/0.7211, allocations: 64 kB / 0.5731 GB, free: 76.85 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002342/0.7235, allocations: 2.123 MB / 0.5751 GB, free: 74.74 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.7235, allocations: 0 / 0.5751 GB, free: 74.74 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004137/0.7276, allocations: 0.8593 MB / 0.576 GB, free: 73.88 MB / 446.1 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.0003267/0.7279, allocations: 206.4 kB / 0.5762 GB, free: 73.67 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004643/0.7326, allocations: 3.547 MB / 0.5796 GB, free: 70.17 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.171e-05/0.7326, allocations: 0 / 0.5796 GB, free: 70.17 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007801/0.7333, allocations: 0.6886 MB / 0.5803 GB, free: 69.48 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002201/0.7356, allocations: 396.5 kB / 0.5807 GB, free: 69.1 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01142/0.747, allocations: 8.591 MB / 0.5891 GB, free: 60.22 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0024/0.7494, allocations: 2.548 MB / 0.5916 GB, free: 57.64 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003258/0.7526, allocations: 1.731 MB / 0.5933 GB, free: 55.9 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003808/0.753, allocations: 215.4 kB / 0.5935 GB, free: 55.69 MB / 446.1 MB Notification: Performance of SimCode: time 8.32e-07/0.753, allocations: 0 / 0.5935 GB, free: 55.69 MB / 446.1 MB Notification: Performance of Templates: time 0.04462/0.7976, allocations: 23.64 MB / 0.6166 GB, free: 32.59 MB / 446.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringMassSystem/SpringMassSystem.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 6.216217430308461]