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.001824/0.001824, allocations: 84.78 kB / 20.68 MB, free: 1.023 MB / 14.72 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.001958/0.001958, allocations: 164.5 kB / 23.95 MB, free: 4.156 MB / 14.72 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 1.436/1.436, allocations: 177.1 MB / 204.3 MB, free: 9.191 MB / 190.1 MB " [Timeout remaining time 178] 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.834e-06/1.834e-06, allocations: 0 / 325.1 MB, free: 0.543 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.845e-05/3.029e-05, allocations: 2.281 kB / 325.1 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.01718/0.01721, allocations: 9.371 MB / 334.4 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01348/0.0307, allocations: 3.721 MB / 338.2 MB, free: 7.457 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001891/0.03259, allocations: 70.5 kB / 338.2 MB, free: 7.438 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007942/0.04053, allocations: 2.282 MB / 340.5 MB, free: 5.695 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007857/0.04839, allocations: 1.909 MB / 342.4 MB, free: 3.777 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002818/0.0512, allocations: 0.7874 MB / 343.2 MB, free: 2.984 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01014/0.06134, allocations: 5.004 MB / 348.2 MB, free: 13.97 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005458/0.0668, allocations: 2.938 MB / 351.2 MB, free: 10.98 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003173/0.06998, allocations: 2.268 MB / 353.4 MB, free: 8.707 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003259/0.07323, allocations: 2.393 MB / 355.8 MB, free: 6.309 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005327/0.07377, allocations: 296 kB / 356.1 MB, free: 6.02 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001654/0.07542, allocations: 0.8776 MB / 357 MB, free: 5.141 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001791/0.07721, allocations: 1.936 MB / 358.9 MB, free: 3.199 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001535/0.07875, allocations: 1.207 MB / 360.1 MB, free: 1.988 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006912/0.08566, allocations: 6.401 MB / 366.5 MB, free: 11.57 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.08566, allocations: 4 kB / 366.5 MB, free: 11.56 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.08566, allocations: 0 / 366.5 MB, free: 11.56 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001201/0.08578, allocations: 0 / 366.5 MB, free: 11.56 MB / 334.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.008446/0.09423, allocations: 4.672 MB / 371.2 MB, free: 6.832 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.013e-05/0.09427, allocations: 12.03 kB / 371.2 MB, free: 6.82 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008135/0.1024, allocations: 2.088 MB / 373.3 MB, free: 4.727 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00416/0.1066, allocations: 2.17 MB / 375.5 MB, free: 2.508 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001962/0.1068, allocations: 221.6 kB / 375.7 MB, free: 2.289 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005447/0.1073, allocations: 299.8 kB / 376 MB, free: 1.996 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01529/0.1226, allocations: 9.707 MB / 385.7 MB, free: 7.52 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001054/0.1227, allocations: 43.64 kB / 385.7 MB, free: 7.477 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003769/0.1231, allocations: 139.9 kB / 385.9 MB, free: 7.34 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003076/0.1262, allocations: 1.927 MB / 387.8 MB, free: 5.41 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01474/0.1409, allocations: 7.656 MB / 395.5 MB, free: 13.73 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04178/0.1827, allocations: 35.41 MB / 430.9 MB, free: 9.168 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006982/0.1897, allocations: 2.442 MB / 433.3 MB, free: 6.688 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00129/0.1909, allocations: 0.7948 MB / 434.1 MB, free: 5.883 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00569/0.1966, allocations: 2.965 MB / 437.1 MB, free: 2.891 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.675e-05/0.1967, allocations: 55.14 kB / 437.1 MB, free: 2.828 MB / 398.1 MB Notification: Performance of pre-optimization done (n=134): time 3.406e-06/0.1967, allocations: 0 / 437.1 MB, free: 2.828 MB / 398.1 MB Notification: Performance of matching and sorting (n=152): time 0.02342/0.2201, allocations: 9.518 MB / 446.6 MB, free: 9.254 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.29e-05/0.2202, allocations: 141.5 kB / 446.8 MB, free: 9.082 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005473/0.2257, allocations: 3.842 MB / 450.6 MB, free: 5.234 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001327/0.2258, allocations: 49.7 kB / 450.7 MB, free: 5.18 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002316/0.2281, allocations: 3.198 MB / 453.9 MB, free: 1.949 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005747/0.2287, allocations: 0.6206 MB / 454.5 MB, free: 1.324 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001377/0.2301, allocations: 1.164 MB / 455.6 MB, free: 152 kB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000129/0.2302, allocations: 305.1 kB / 455.9 MB, free: 15.85 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002859/0.2331, allocations: 1.604 MB / 457.5 MB, free: 14.24 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005846/0.2389, allocations: 5.374 MB / 462.9 MB, free: 6.969 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1694/0.4083, allocations: 7.576 MB / 470.5 MB, free: 119.7 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000143/0.4085, allocations: 38.69 kB / 470.5 MB, free: 119.7 MB / 430.1 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.01155/0.42, allocations: 6.693 MB / 477.2 MB, free: 117.9 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.169e-05/0.4201, allocations: 63.16 kB / 477.3 MB, free: 117.9 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001888/0.4203, allocations: 134.8 kB / 477.4 MB, free: 117.9 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002099/0.4205, allocations: 177.3 kB / 477.6 MB, free: 117.9 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00418/0.4247, allocations: 1.403 MB / 479 MB, free: 117.7 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002131/0.4249, allocations: 263.9 kB / 479.3 MB, free: 117.6 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004079/0.429, allocations: 395.3 kB / 479.6 MB, free: 117.5 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004537/0.4294, allocations: 366.6 kB / 480 MB, free: 117.5 MB / 430.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.002244/0.4317, allocations: 1.971 MB / 482 MB, free: 116.6 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004247/0.4321, allocations: 325.8 kB / 482.3 MB, free: 116.6 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005167/0.4326, allocations: 362.6 kB / 482.6 MB, free: 116.5 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.865e-05/0.4326, allocations: 15.5 kB / 482.7 MB, free: 116.5 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.018e-05/0.4326, allocations: 3.75 kB / 482.7 MB, free: 116.5 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.219e-05/0.4327, allocations: 7.641 kB / 482.7 MB, free: 116.5 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006007/0.4387, allocations: 4.662 MB / 487.3 MB, free: 114.4 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.801e-05/0.4387, allocations: 19.53 kB / 487.3 MB, free: 114.4 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008627/0.4395, allocations: 274.1 kB / 487.6 MB, free: 114.3 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.911e-05/0.4396, allocations: 31.41 kB / 487.6 MB, free: 114.3 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.038e-05/0.4396, allocations: 50.56 kB / 487.7 MB, free: 114.3 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.075e-05/0.4397, allocations: 35.23 kB / 487.7 MB, free: 114.3 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.24e-05/0.4397, allocations: 30.69 kB / 487.8 MB, free: 114.3 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002891/0.4426, allocations: 3.175 MB / 490.9 MB, free: 112.5 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004778/0.4431, allocations: 345.6 kB / 491.3 MB, free: 112.5 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003101/0.4434, allocations: 57.66 kB / 491.3 MB, free: 112.4 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001298/0.4447, allocations: 107.4 kB / 491.4 MB, free: 112.4 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001565/0.4448, allocations: 154.3 kB / 491.6 MB, free: 112.4 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.72e-05/0.4449, allocations: 65.38 kB / 491.6 MB, free: 112.4 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002771/0.4477, allocations: 2.232 MB / 493.9 MB, free: 111.6 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4477, allocations: 0 / 493.9 MB, free: 111.6 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.004227/0.4519, allocations: 0.9385 MB / 494.8 MB, free: 110.9 MB / 430.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.000395/0.4523, allocations: 223.6 kB / 495 MB, free: 110.7 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004527/0.4568, allocations: 3.573 MB / 498.6 MB, free: 107.6 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.114e-05/0.4568, allocations: 4 kB / 498.6 MB, free: 107.6 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007641/0.4576, allocations: 0.6913 MB / 499.3 MB, free: 107 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00225/0.4598, allocations: 401 kB / 499.7 MB, free: 106.7 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01092/0.4708, allocations: 8.454 MB / 0.4962 GB, free: 98.24 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002328/0.4731, allocations: 2.563 MB / 0.4987 GB, free: 95.66 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.003274/0.4764, allocations: 1.731 MB / 0.5004 GB, free: 93.92 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004895/0.4769, allocations: 232.5 kB / 0.5007 GB, free: 93.7 MB / 430.1 MB Notification: Performance of SimCode: time 1.333e-06/0.4769, allocations: 0 / 0.5007 GB, free: 93.7 MB / 430.1 MB Notification: Performance of Templates: time 0.04182/0.5187, allocations: 20.51 MB / 0.5207 GB, free: 73.74 MB / 430.1 MB " [Timeout remaining time 659] 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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 5.839369505643845]