Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001146/0.001146, allocations: 68.19 kB / 9.935 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001268/0.002414, allocations: 445.7 kB / 10.37 MB, free: 328 kB / 10.45 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.0007959/0.0007959, allocations: 161.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001046/0.001842, allocations: 463.6 kB / 11.71 MB, free: 2.453 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9455/0.9455, allocations: 158.6 MB / 171.1 MB, free: 2.582 MB / 170.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1558/1.101, allocations: 49.48 MB / 220.5 MB, free: 1.457 MB / 218.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.813e-06/1.813e-06, allocations: 0 / 221.8 MB, free: 172 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.499e-05/2.68e-05, allocations: 6.312 kB / 221.8 MB, free: 164 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.009362/0.009388, allocations: 10.26 MB / 232.1 MB, free: 5.852 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.007622/0.01701, allocations: 3.942 MB / 236 MB, free: 1.895 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001395/0.01841, allocations: 71.69 kB / 236.1 MB, free: 1.824 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00282/0.02123, allocations: 2.292 MB / 238.4 MB, free: 15.52 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003491/0.02472, allocations: 1.917 MB / 240.3 MB, free: 13.6 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001115/0.02583, allocations: 0.7368 MB / 241.1 MB, free: 12.86 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.004241/0.03007, allocations: 4.676 MB / 245.7 MB, free: 8.172 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002566/0.03264, allocations: 2.655 MB / 248.4 MB, free: 5.449 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002765/0.0354, allocations: 2.474 MB / 250.9 MB, free: 2.969 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002036/0.03744, allocations: 2.237 MB / 253.1 MB, free: 0.7266 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003425/0.03778, allocations: 292 kB / 253.4 MB, free: 452 kB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001362/0.03914, allocations: 0.9127 MB / 254.3 MB, free: 15.53 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001182/0.04033, allocations: 1.757 MB / 256.1 MB, free: 13.77 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001005/0.04133, allocations: 0.9853 MB / 257 MB, free: 12.78 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00399/0.04532, allocations: 3.996 MB / 261 MB, free: 8.766 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.365e-05/0.04534, allocations: 0 / 261 MB, free: 8.766 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.963e-06/0.04534, allocations: 0 / 261 MB, free: 8.766 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.36e-05/0.0454, allocations: 0 / 261 MB, free: 8.766 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.004946/0.05035, allocations: 5.103 MB / 266.1 MB, free: 3.609 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.083e-05/0.05039, allocations: 11.97 kB / 266.2 MB, free: 3.598 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002647/0.05304, allocations: 1.165 MB / 267.3 MB, free: 2.414 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001864/0.0549, allocations: 1.743 MB / 269.1 MB, free: 0.6133 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000124/0.05502, allocations: 225.6 kB / 269.3 MB, free: 400 kB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003149/0.05534, allocations: 299.8 kB / 269.6 MB, free: 100 kB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004767/0.06011, allocations: 4.853 MB / 274.4 MB, free: 10.47 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.559e-05/0.06018, allocations: 51.55 kB / 274.5 MB, free: 10.42 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00023/0.06041, allocations: 147.9 kB / 274.6 MB, free: 10.27 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001426/0.06184, allocations: 1.724 MB / 276.3 MB, free: 8.547 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003742/0.06558, allocations: 2.402 MB / 278.7 MB, free: 6.098 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1556/0.2212, allocations: 30.98 MB / 309.7 MB, free: 20.89 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003088/0.2243, allocations: 1.513 MB / 311.2 MB, free: 20.68 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003838/0.2247, allocations: 273.9 kB / 311.5 MB, free: 20.64 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003838/0.2285, allocations: 2.427 MB / 313.9 MB, free: 19.87 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.298e-05/0.2286, allocations: 45.25 kB / 314 MB, free: 19.83 MB / 282.7 MB Notification: Performance of pre-optimization done (n=133): time 3.657e-06/0.2286, allocations: 3.469 kB / 314 MB, free: 19.83 MB / 282.7 MB Notification: Performance of matching and sorting (n=151): time 0.008344/0.2369, allocations: 4.418 MB / 318.4 MB, free: 19 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.237e-05/0.237, allocations: 144.2 kB / 318.5 MB, free: 18.84 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002343/0.2393, allocations: 3.098 MB / 321.6 MB, free: 18.21 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 5.364e-05/0.2393, allocations: 46.33 kB / 321.7 MB, free: 18.18 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001243/0.2406, allocations: 3.033 MB / 324.7 MB, free: 16.17 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003039/0.2409, allocations: 0.6266 MB / 325.3 MB, free: 15.8 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007429/0.2416, allocations: 1.11 MB / 326.5 MB, free: 15.18 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 3.68e-05/0.2417, allocations: 305.1 kB / 326.8 MB, free: 14.88 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008042/0.2425, allocations: 0.6647 MB / 327.4 MB, free: 14.72 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002011/0.2445, allocations: 4.333 MB / 331.7 MB, free: 9.531 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003833/0.2483, allocations: 5.572 MB / 337.3 MB, free: 3.629 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.473e-05/0.2484, allocations: 36 kB / 337.4 MB, free: 3.594 MB / 282.7 MB Notification: Performance of matching and sorting (n=771) (initialization): time 0.003748/0.2521, allocations: 3.936 MB / 341.3 MB, free: 15.64 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.227e-05/0.2522, allocations: 64 kB / 341.4 MB, free: 15.58 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.511e-05/0.2523, allocations: 132 kB / 341.5 MB, free: 15.45 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001162/0.2524, allocations: 180 kB / 341.7 MB, free: 15.28 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002726/0.2551, allocations: 1.533 MB / 343.2 MB, free: 13.74 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001761/0.2553, allocations: 259 kB / 343.4 MB, free: 13.49 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001961/0.2572, allocations: 259.7 kB / 343.7 MB, free: 13.23 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003091/0.2576, allocations: 327.9 kB / 344 MB, free: 12.91 MB / 298.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.001063/0.2586, allocations: 0.6129 MB / 344.6 MB, free: 12.29 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000264/0.2589, allocations: 199.8 kB / 344.8 MB, free: 12.09 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006995/0.2596, allocations: 0.6235 MB / 345.5 MB, free: 11.46 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.833e-05/0.2596, allocations: 16 kB / 345.5 MB, free: 11.45 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.304e-06/0.2596, allocations: 3.828 kB / 345.5 MB, free: 11.45 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.467e-05/0.2596, allocations: 11.97 kB / 345.5 MB, free: 11.44 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00488/0.2645, allocations: 4.037 MB / 349.5 MB, free: 7.117 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.508e-05/0.2645, allocations: 20 kB / 349.5 MB, free: 7.098 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005814/0.2651, allocations: 303.5 kB / 349.8 MB, free: 6.801 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007167/0.2658, allocations: 389.6 kB / 350.2 MB, free: 6.418 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.319e-05/0.2658, allocations: 28 kB / 350.2 MB, free: 6.391 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.02e-05/0.2659, allocations: 48 kB / 350.3 MB, free: 6.344 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.481e-05/0.2659, allocations: 36.2 kB / 350.3 MB, free: 6.309 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-05/0.2659, allocations: 32.75 kB / 350.4 MB, free: 6.277 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001591/0.2675, allocations: 1.913 MB / 352.3 MB, free: 4.105 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001924/0.2677, allocations: 51.92 kB / 352.3 MB, free: 4.055 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005428/0.2683, allocations: 47.97 kB / 352.4 MB, free: 4.008 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00012/0.2684, allocations: 151.3 kB / 352.5 MB, free: 3.859 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.256e-05/0.2684, allocations: 52 kB / 352.6 MB, free: 3.809 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.001171/0.2696, allocations: 1.298 MB / 353.9 MB, free: 2.512 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2696, allocations: 0 / 353.9 MB, free: 2.512 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.002575/0.2722, allocations: 0.9686 MB / 354.8 MB, free: 1.543 MB / 298.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.0003485/0.2725, allocations: 203.8 kB / 355 MB, free: 1.336 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002217/0.2748, allocations: 2.248 MB / 357.3 MB, free: 15.1 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001644/0.2749, allocations: 104.2 kB / 357.4 MB, free: 14.99 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005179/0.2754, allocations: 391.3 kB / 357.8 MB, free: 14.62 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001428/0.2769, allocations: 0.641 MB / 358.4 MB, free: 13.99 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009766/0.2866, allocations: 7.684 MB / 366.1 MB, free: 5.988 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009825/0.2876, allocations: 1.158 MB / 367.2 MB, free: 4.805 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.001024/0.2886, allocations: 489.8 kB / 367.7 MB, free: 4.328 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006318/0.2893, allocations: 0.5362 MB / 368.3 MB, free: 3.793 MB / 314.7 MB Notification: Performance of SimCode: time 9.81e-07/0.2893, allocations: 0 / 368.3 MB, free: 3.793 MB / 314.7 MB Notification: Performance of Templates: time 0.03782/0.3271, allocations: 24.57 MB / 392.8 MB, free: 11.23 MB / 346.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.680089494213462]