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.001968/0.001968, allocations: 95.86 kB / 20.96 MB, free: 3.465 MB / 18.57 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.001844/0.001844, allocations: 153.1 kB / 24.27 MB, free: 168 kB / 18.57 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.516/1.516, allocations: 173.4 MB / 200.8 MB, free: 9.316 MB / 186.7 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 1.313e-06/1.313e-06, allocations: 0 / 267.3 MB, free: 6.727 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.309e-05/3.441e-05, allocations: 6.25 kB / 267.3 MB, free: 6.719 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.01495/0.01499, allocations: 10.35 MB / 277.7 MB, free: 12.32 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.009655/0.02464, allocations: 3.787 MB / 281.5 MB, free: 8.516 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00189/0.02653, allocations: 79.62 kB / 281.6 MB, free: 8.438 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005377/0.03191, allocations: 2.386 MB / 283.9 MB, free: 6.043 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005424/0.03733, allocations: 1.963 MB / 285.9 MB, free: 4.07 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00201/0.03934, allocations: 0.7952 MB / 286.7 MB, free: 3.273 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1304/0.1698, allocations: 4.851 MB / 291.5 MB, free: 15.25 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00422/0.174, allocations: 3.041 MB / 294.6 MB, free: 15.12 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004095/0.1781, allocations: 2.303 MB / 296.9 MB, free: 15.08 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003999/0.1821, allocations: 2.424 MB / 299.3 MB, free: 14.94 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008088/0.1829, allocations: 300.2 kB / 299.6 MB, free: 14.94 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001923/0.1848, allocations: 0.8974 MB / 300.5 MB, free: 14.93 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001628/0.1865, allocations: 1.977 MB / 302.5 MB, free: 14.36 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001453/0.1879, allocations: 1.223 MB / 303.7 MB, free: 13.84 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005594/0.1935, allocations: 6.496 MB / 310.2 MB, free: 10.7 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.1935, allocations: 0.5625 kB / 310.2 MB, free: 10.7 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.913e-06/0.1935, allocations: 0 / 310.2 MB, free: 10.7 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0002072/0.1937, allocations: 0.625 kB / 310.2 MB, free: 10.7 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.008896/0.2026, allocations: 5.478 MB / 315.7 MB, free: 7.023 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.817e-05/0.2027, allocations: 9.656 kB / 315.7 MB, free: 7.023 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007276/0.2099, allocations: 2.458 MB / 318.1 MB, free: 4.809 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004544/0.2145, allocations: 2.008 MB / 320.2 MB, free: 2.914 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001455/0.2146, allocations: 225.8 kB / 320.4 MB, free: 2.727 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005338/0.2152, allocations: 295.2 kB / 320.7 MB, free: 2.477 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0127/0.2279, allocations: 6.45 MB / 327.1 MB, free: 11.2 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000112/0.228, allocations: 46.92 kB / 327.2 MB, free: 11.18 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003919/0.2284, allocations: 144.4 kB / 327.3 MB, free: 11.07 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003622/0.232, allocations: 1.915 MB / 329.2 MB, free: 9.184 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01158/0.2436, allocations: 3.278 MB / 332.5 MB, free: 6.098 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05911/0.3027, allocations: 47.34 MB / 379.8 MB, free: 5.75 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00656/0.3092, allocations: 1.717 MB / 381.6 MB, free: 3.992 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001022/0.3103, allocations: 421.4 kB / 382 MB, free: 3.566 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00709/0.3174, allocations: 2.726 MB / 384.7 MB, free: 0.8438 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.388e-05/0.3174, allocations: 53.36 kB / 384.7 MB, free: 0.7852 MB / 330.7 MB Notification: Performance of pre-optimization done (n=134): time 7.334e-06/0.3174, allocations: 4 kB / 384.8 MB, free: 0.7812 MB / 330.7 MB Notification: Performance of matching and sorting (n=152): time 0.02283/0.3403, allocations: 7.831 MB / 392.6 MB, free: 8.914 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001197/0.3404, allocations: 144 kB / 392.7 MB, free: 8.746 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00675/0.3471, allocations: 4.262 MB / 397 MB, free: 4.473 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001855/0.3473, allocations: 45.7 kB / 397 MB, free: 4.422 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003462/0.3508, allocations: 3.558 MB / 400.6 MB, free: 0.8789 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008846/0.3517, allocations: 0.6858 MB / 401.3 MB, free: 208 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002386/0.354, allocations: 1.47 MB / 402.7 MB, free: 14.77 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002471/0.3543, allocations: 476.8 kB / 403.2 MB, free: 14.3 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001714/0.356, allocations: 0.6205 MB / 403.8 MB, free: 13.68 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007344/0.3633, allocations: 6.38 MB / 410.2 MB, free: 4.77 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01083/0.3742, allocations: 7.692 MB / 417.9 MB, free: 10.55 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001922/0.3744, allocations: 36 kB / 417.9 MB, free: 10.51 MB / 378.7 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.01194/0.3863, allocations: 5.065 MB / 423 MB, free: 5.445 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001122/0.3864, allocations: 63.98 kB / 423.1 MB, free: 5.383 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001811/0.3866, allocations: 136.9 kB / 423.2 MB, free: 5.25 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002094/0.3868, allocations: 176 kB / 423.4 MB, free: 5.078 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004583/0.3914, allocations: 1.384 MB / 424.8 MB, free: 3.691 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002983/0.3917, allocations: 267 kB / 425 MB, free: 3.43 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004735/0.3964, allocations: 351.6 kB / 425.4 MB, free: 3.086 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009259/0.3973, allocations: 367.8 kB / 425.7 MB, free: 2.73 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.002457/0.3998, allocations: 0.7433 MB / 426.5 MB, free: 1.973 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001056/0.4009, allocations: 365.7 kB / 426.8 MB, free: 1.613 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001833/0.4027, allocations: 0.7971 MB / 427.6 MB, free: 0.8086 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.962e-05/0.4027, allocations: 16.14 kB / 427.6 MB, free: 0.793 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.947e-06/0.4027, allocations: 0 / 427.6 MB, free: 0.793 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.312e-05/0.4028, allocations: 15.95 kB / 427.6 MB, free: 0.7773 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1346/0.5374, allocations: 5.766 MB / 433.4 MB, free: 115.5 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.579e-05/0.5374, allocations: 18.69 kB / 433.4 MB, free: 115.5 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009888/0.5384, allocations: 276.6 kB / 433.7 MB, free: 115.5 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.51e-05/0.5384, allocations: 24.81 kB / 433.7 MB, free: 115.5 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.827e-05/0.5385, allocations: 49.53 kB / 433.8 MB, free: 115.5 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.777e-05/0.5386, allocations: 37.2 kB / 433.8 MB, free: 115.5 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.835e-05/0.5386, allocations: 32.5 kB / 433.8 MB, free: 115.5 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002737/0.5413, allocations: 2.586 MB / 436.4 MB, free: 113.9 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008323/0.5421, allocations: 331.8 kB / 436.8 MB, free: 113.9 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003364/0.5425, allocations: 51.02 kB / 436.8 MB, free: 113.9 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001218/0.5437, allocations: 102.5 kB / 436.9 MB, free: 113.9 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001982/0.5439, allocations: 149.9 kB / 437 MB, free: 113.9 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001097/0.544, allocations: 73.47 kB / 437.1 MB, free: 113.9 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002942/0.5469, allocations: 1.747 MB / 438.9 MB, free: 113.7 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5469, allocations: 0 / 438.9 MB, free: 113.7 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.004603/0.5516, allocations: 0.9702 MB / 439.8 MB, free: 113.7 MB / 378.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.0004744/0.552, allocations: 228.9 kB / 440.1 MB, free: 113.6 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004468/0.5565, allocations: 2.806 MB / 442.9 MB, free: 112.8 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.254e-05/0.5565, allocations: 4.031 kB / 442.9 MB, free: 112.8 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007176/0.5572, allocations: 0.5085 MB / 443.4 MB, free: 112.6 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002293/0.5595, allocations: 418 kB / 443.8 MB, free: 112.4 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008917/0.5684, allocations: 7.577 MB / 451.4 MB, free: 108.1 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002299/0.5707, allocations: 2.319 MB / 453.7 MB, free: 107.4 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.002984/0.5737, allocations: 1.54 MB / 455.2 MB, free: 107.2 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000434/0.5742, allocations: 228.2 kB / 455.4 MB, free: 107.2 MB / 378.7 MB Notification: Performance of SimCode: time 2.074e-06/0.5742, allocations: 3.031 kB / 455.4 MB, free: 107.2 MB / 378.7 MB Notification: Performance of Templates: time 0.04083/0.615, allocations: 20.66 MB / 476.1 MB, free: 88.69 MB / 378.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) [Timeout 240] 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.170993804000318]