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.00165/0.00165, allocations: 80.31 kB / 22.21 MB, free: 2.289 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.002175/0.002175, allocations: 166.5 kB / 25.6 MB, free: 8.457 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.9993/0.9993, allocations: 177.1 MB / 206 MB, free: 4.473 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 4.699e-06/4.699e-06, allocations: 0 / 274.2 MB, free: 4.402 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.823e-05/3.293e-05, allocations: 4.984 kB / 274.2 MB, free: 4.398 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.01274/0.01277, allocations: 10.07 MB / 284.3 MB, free: 10.29 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.009061/0.02184, allocations: 3.782 MB / 288 MB, free: 6.508 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002522/0.02436, allocations: 71.69 kB / 288.1 MB, free: 6.438 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004915/0.02927, allocations: 2.359 MB / 290.5 MB, free: 4.07 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006353/0.03563, allocations: 1.928 MB / 292.4 MB, free: 2.133 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001897/0.03752, allocations: 0.7913 MB / 293.2 MB, free: 1.34 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.006932/0.04445, allocations: 5 MB / 298.2 MB, free: 12.33 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004253/0.04871, allocations: 3.037 MB / 301.2 MB, free: 9.242 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004135/0.05284, allocations: 2.354 MB / 303.6 MB, free: 6.883 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00259/0.05543, allocations: 2.334 MB / 305.9 MB, free: 4.543 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000481/0.05591, allocations: 296 kB / 306.2 MB, free: 4.254 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001326/0.05724, allocations: 0.8736 MB / 307.1 MB, free: 3.379 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001335/0.05857, allocations: 1.932 MB / 309 MB, free: 1.441 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001192/0.05977, allocations: 1.195 MB / 310.2 MB, free: 248 kB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004316/0.06408, allocations: 4.21 MB / 314.4 MB, free: 12.02 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.06409, allocations: 4 kB / 314.4 MB, free: 12.01 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.512e-06/0.06409, allocations: 0 / 314.4 MB, free: 12.01 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.594e-05/0.06417, allocations: 4 kB / 314.4 MB, free: 12.01 MB / 298.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.0055/0.06967, allocations: 4.777 MB / 319.2 MB, free: 7.164 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.957e-05/0.06972, allocations: 12.03 kB / 319.2 MB, free: 7.152 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003871/0.0736, allocations: 1.512 MB / 320.7 MB, free: 5.637 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002478/0.07607, allocations: 1.816 MB / 322.5 MB, free: 3.766 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001343/0.07621, allocations: 233.6 kB / 322.8 MB, free: 3.535 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003788/0.07659, allocations: 295.8 kB / 323.1 MB, free: 3.246 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006553/0.08314, allocations: 5.496 MB / 328.6 MB, free: 12.71 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000101/0.08324, allocations: 55.55 kB / 328.6 MB, free: 12.65 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002778/0.08352, allocations: 139.9 kB / 328.7 MB, free: 12.52 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001587/0.08511, allocations: 1.72 MB / 330.5 MB, free: 10.79 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006012/0.09112, allocations: 2.353 MB / 332.8 MB, free: 8.406 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1815/0.2726, allocations: 43.68 MB / 376.5 MB, free: 42.23 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00322/0.2758, allocations: 1.626 MB / 378.1 MB, free: 42.08 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003727/0.2762, allocations: 333 kB / 378.5 MB, free: 42.03 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002794/0.279, allocations: 2.576 MB / 381 MB, free: 41.1 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.838e-05/0.279, allocations: 52.7 kB / 381.1 MB, free: 41.05 MB / 330.7 MB Notification: Performance of pre-optimization done (n=133): time 2.925e-06/0.279, allocations: 0.7188 kB / 381.1 MB, free: 41.05 MB / 330.7 MB Notification: Performance of matching and sorting (n=151): time 0.009581/0.2886, allocations: 4.865 MB / 385.9 MB, free: 40.29 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.637e-05/0.2886, allocations: 149.1 kB / 386.1 MB, free: 40.14 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002443/0.2911, allocations: 3.412 MB / 389.5 MB, free: 39.61 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.255e-05/0.2911, allocations: 48.52 kB / 389.6 MB, free: 39.58 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001253/0.2924, allocations: 3.397 MB / 392.9 MB, free: 37.68 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003157/0.2927, allocations: 0.6566 MB / 393.6 MB, free: 37.22 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009114/0.2936, allocations: 1.276 MB / 394.9 MB, free: 36.52 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 4.008e-05/0.2937, allocations: 485.8 kB / 395.4 MB, free: 36.05 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007359/0.2944, allocations: 497.2 kB / 395.8 MB, free: 35.95 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002205/0.2966, allocations: 6.13 MB / 402 MB, free: 27.43 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004098/0.3007, allocations: 7.301 MB / 409.3 MB, free: 18.09 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.55e-05/0.3008, allocations: 36 kB / 409.3 MB, free: 18.05 MB / 330.7 MB Notification: Performance of matching and sorting (n=771) (initialization): time 0.004908/0.3057, allocations: 4.622 MB / 413.9 MB, free: 13.43 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.434e-05/0.3057, allocations: 64 kB / 414 MB, free: 13.37 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.634e-05/0.3058, allocations: 132 kB / 414.1 MB, free: 13.24 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.165e-05/0.3059, allocations: 180 kB / 414.3 MB, free: 13.06 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002067/0.308, allocations: 1.365 MB / 415.7 MB, free: 11.7 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.899e-05/0.308, allocations: 263 kB / 415.9 MB, free: 11.44 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002151/0.3102, allocations: 264 kB / 416.2 MB, free: 11.18 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002143/0.3104, allocations: 324 kB / 416.5 MB, free: 10.86 MB / 330.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.0008959/0.3113, allocations: 0.6602 MB / 417.2 MB, free: 10.2 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003281/0.3116, allocations: 353.9 kB / 417.5 MB, free: 9.848 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002624/0.3119, allocations: 309.8 kB / 417.8 MB, free: 9.539 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.255e-05/0.3119, allocations: 24 kB / 417.8 MB, free: 9.516 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.11e-05/0.3119, allocations: 0 / 417.8 MB, free: 9.516 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.628e-06/0.3119, allocations: 7.641 kB / 417.8 MB, free: 9.512 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004767/0.3167, allocations: 4.83 MB / 422.7 MB, free: 4.316 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.318e-05/0.3167, allocations: 16 kB / 422.7 MB, free: 4.301 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005003/0.3172, allocations: 271.7 kB / 422.9 MB, free: 4.035 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.55e-05/0.3172, allocations: 24 kB / 423 MB, free: 4.012 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.572e-05/0.3173, allocations: 48 kB / 423 MB, free: 3.965 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.199e-05/0.3173, allocations: 45.91 kB / 423.1 MB, free: 3.922 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.083e-05/0.3173, allocations: 28.75 kB / 423.1 MB, free: 3.895 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001389/0.3187, allocations: 2.378 MB / 425.5 MB, free: 1.168 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003085/0.319, allocations: 325.7 kB / 425.8 MB, free: 0.8477 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001942/0.3192, allocations: 55.98 kB / 425.8 MB, free: 0.793 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005823/0.3198, allocations: 43.94 kB / 425.9 MB, free: 0.75 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.437e-05/0.3199, allocations: 155.3 kB / 426 MB, free: 0.5977 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.881e-05/0.3199, allocations: 56 kB / 426.1 MB, free: 0.543 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001243/0.3212, allocations: 1.364 MB / 427.5 MB, free: 15.19 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3212, allocations: 0 / 427.5 MB, free: 15.19 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.003056/0.3242, allocations: 0.9452 MB / 428.4 MB, free: 14.24 MB / 346.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.0003195/0.3245, allocations: 217.6 kB / 428.6 MB, free: 14.02 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002533/0.3271, allocations: 2.385 MB / 431 MB, free: 11.66 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.835e-06/0.3271, allocations: 4.812 kB / 431 MB, free: 11.65 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006607/0.3277, allocations: 442.3 kB / 431.4 MB, free: 11.22 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001405/0.3291, allocations: 421 kB / 431.8 MB, free: 10.83 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008899/0.338, allocations: 7.476 MB / 439.3 MB, free: 2.949 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00102/0.3391, allocations: 1.16 MB / 440.5 MB, free: 1.754 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.001167/0.3402, allocations: 489.8 kB / 441 MB, free: 1.277 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006464/0.3409, allocations: 0.5645 MB / 441.5 MB, free: 0.7109 MB / 346.7 MB Notification: Performance of SimCode: time 1.603e-06/0.3409, allocations: 0 / 441.5 MB, free: 0.7109 MB / 346.7 MB Notification: Performance of Templates: time 0.04125/0.3821, allocations: 23.88 MB / 465.4 MB, free: 9.348 MB / 378.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: 4.028734537772834]