Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008049/0.0008049, allocations: 92.33 kB / 21.44 MB, free: 3.102 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0007753/0.0007753, allocations: 159.6 kB / 24.7 MB, free: 9.434 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8362/0.8362, allocations: 177 MB / 204.9 MB, free: 5.762 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.232e-06/1.232e-06, allocations: 0 / 325.8 MB, free: 15.41 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.189e-05/2.312e-05, allocations: 2.844 kB / 325.8 MB, free: 15.4 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.007443/0.007466, allocations: 9.361 MB / 335.1 MB, free: 5.992 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004877/0.01234, allocations: 3.715 MB / 338.9 MB, free: 2.266 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006789/0.01302, allocations: 75.62 kB / 338.9 MB, free: 2.191 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002233/0.01526, allocations: 2.289 MB / 341.2 MB, free: 15.89 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002301/0.01756, allocations: 1.909 MB / 343.1 MB, free: 13.97 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008068/0.01836, allocations: 0.7835 MB / 343.9 MB, free: 13.19 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.003154/0.02152, allocations: 5.004 MB / 348.9 MB, free: 8.172 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00214/0.02366, allocations: 2.926 MB / 351.8 MB, free: 5.191 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002127/0.02578, allocations: 2.268 MB / 354.1 MB, free: 2.918 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001726/0.02751, allocations: 2.396 MB / 356.5 MB, free: 0.5156 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002706/0.02778, allocations: 300 kB / 356.8 MB, free: 228 kB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009286/0.02871, allocations: 0.8738 MB / 357.7 MB, free: 15.35 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009344/0.02964, allocations: 1.932 MB / 359.6 MB, free: 13.41 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007537/0.0304, allocations: 1.207 MB / 360.8 MB, free: 12.2 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00419/0.03459, allocations: 6.408 MB / 367.2 MB, free: 5.77 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.427e-06/0.03459, allocations: 0 / 367.2 MB, free: 5.77 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.283e-06/0.03459, allocations: 0 / 367.2 MB, free: 5.77 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.336e-05/0.03463, allocations: 0 / 367.2 MB, free: 5.77 MB / 330.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.004478/0.03911, allocations: 4.664 MB / 371.9 MB, free: 1.047 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.984e-05/0.03915, allocations: 15.97 kB / 371.9 MB, free: 1.031 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003608/0.04276, allocations: 1.991 MB / 373.9 MB, free: 15.04 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002403/0.04516, allocations: 2.17 MB / 376.1 MB, free: 12.82 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001187/0.04528, allocations: 233.6 kB / 376.3 MB, free: 12.59 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000335/0.04562, allocations: 295.8 kB / 376.6 MB, free: 12.3 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008694/0.05431, allocations: 9.688 MB / 386.3 MB, free: 1.84 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.235e-05/0.05438, allocations: 47.58 kB / 386.3 MB, free: 1.793 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002442/0.05463, allocations: 151.8 kB / 386.5 MB, free: 1.645 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001511/0.05614, allocations: 1.911 MB / 388.4 MB, free: 15.73 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009599/0.06574, allocations: 7.644 MB / 396 MB, free: 8.059 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02499/0.09072, allocations: 35.41 MB / 431.4 MB, free: 3.492 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003698/0.09442, allocations: 2.441 MB / 433.9 MB, free: 1.016 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007398/0.09516, allocations: 0.8026 MB / 434.7 MB, free: 208 kB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003416/0.09858, allocations: 2.965 MB / 437.6 MB, free: 13.21 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.882e-05/0.09861, allocations: 47.22 kB / 437.7 MB, free: 13.16 MB / 410.7 MB Notification: Performance of pre-optimization done (n=134): time 3.977e-06/0.09861, allocations: 0 / 437.7 MB, free: 13.16 MB / 410.7 MB Notification: Performance of matching and sorting (n=152): time 0.01236/0.111, allocations: 9.517 MB / 447.2 MB, free: 3.582 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.392e-05/0.111, allocations: 145.5 kB / 447.4 MB, free: 3.406 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1394/0.2504, allocations: 3.844 MB / 451.2 MB, free: 113.4 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002125/0.2506, allocations: 47.95 kB / 451.2 MB, free: 113.4 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001569/0.2522, allocations: 3.201 MB / 454.4 MB, free: 112.1 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003638/0.2526, allocations: 0.627 MB / 455.1 MB, free: 111.7 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009979/0.2536, allocations: 1.157 MB / 456.2 MB, free: 111.1 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.788e-05/0.2536, allocations: 303.8 kB / 456.5 MB, free: 110.8 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001436/0.255, allocations: 1.592 MB / 458.1 MB, free: 110.3 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002071/0.2571, allocations: 5.358 MB / 463.5 MB, free: 104.7 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003793/0.2609, allocations: 7.559 MB / 471 MB, free: 97.98 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.463e-05/0.2609, allocations: 36.09 kB / 471.1 MB, free: 97.98 MB / 410.7 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.005375/0.2663, allocations: 6.646 MB / 477.7 MB, free: 93.48 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.436e-05/0.2664, allocations: 60 kB / 477.8 MB, free: 93.42 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.392e-05/0.2664, allocations: 141.8 kB / 477.9 MB, free: 93.28 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.611e-05/0.2665, allocations: 176 kB / 478.1 MB, free: 93.11 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001822/0.2683, allocations: 1.383 MB / 479.5 MB, free: 91.89 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.048e-05/0.2684, allocations: 265.6 kB / 479.7 MB, free: 91.66 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001921/0.2703, allocations: 349.2 kB / 480.1 MB, free: 91.37 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000198/0.2705, allocations: 374.3 kB / 480.4 MB, free: 91.01 MB / 410.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.00167/0.2722, allocations: 1.975 MB / 482.4 MB, free: 89.29 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001975/0.2724, allocations: 313.9 kB / 482.7 MB, free: 88.98 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002669/0.2726, allocations: 368.4 kB / 483.1 MB, free: 88.66 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.17e-05/0.2727, allocations: 16 kB / 483.1 MB, free: 88.64 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.997e-06/0.2727, allocations: 7.75 kB / 483.1 MB, free: 88.64 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.566e-06/0.2727, allocations: 11.78 kB / 483.1 MB, free: 88.64 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003583/0.2763, allocations: 4.652 MB / 487.8 MB, free: 83.94 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.958e-06/0.2763, allocations: 20 kB / 487.8 MB, free: 83.92 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004472/0.2767, allocations: 283.5 kB / 488.1 MB, free: 83.64 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.116e-05/0.2767, allocations: 24 kB / 488.1 MB, free: 83.62 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.931e-05/0.2768, allocations: 55.98 kB / 488.1 MB, free: 83.57 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.069e-05/0.2768, allocations: 35.86 kB / 488.2 MB, free: 83.53 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.394e-06/0.2768, allocations: 29.66 kB / 488.2 MB, free: 83.5 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001658/0.2784, allocations: 3.173 MB / 491.4 MB, free: 80.08 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002396/0.2787, allocations: 333.7 kB / 491.7 MB, free: 79.75 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001612/0.2788, allocations: 55.67 kB / 491.8 MB, free: 79.7 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006197/0.2795, allocations: 99.33 kB / 491.9 MB, free: 79.61 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.096e-05/0.2795, allocations: 151.3 kB / 492 MB, free: 79.46 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.528e-05/0.2796, allocations: 67.98 kB / 492.1 MB, free: 79.39 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001424/0.281, allocations: 2.228 MB / 494.3 MB, free: 77.17 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.281, allocations: 4 kB / 494.3 MB, free: 77.17 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002223/0.2832, allocations: 0.9413 MB / 495.2 MB, free: 76.23 MB / 410.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.0002692/0.2835, allocations: 218 kB / 495.5 MB, free: 76.01 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002419/0.2859, allocations: 3.55 MB / 499 MB, free: 72.5 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.549e-06/0.2859, allocations: 4 kB / 499 MB, free: 72.5 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004508/0.2864, allocations: 0.6945 MB / 499.7 MB, free: 71.8 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001256/0.2876, allocations: 408.7 kB / 0.4884 GB, free: 71.42 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006445/0.2941, allocations: 8.87 MB / 0.497 GB, free: 62.27 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001591/0.2957, allocations: 2.553 MB / 0.4995 GB, free: 59.69 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003401/0.296, allocations: 276.5 kB / 0.4998 GB, free: 59.42 MB / 410.7 MB Notification: Performance of SimCode: time 6.41e-07/0.296, allocations: 0 / 0.4998 GB, free: 59.42 MB / 410.7 MB Notification: Performance of Templates: time 0.03596/0.332, allocations: 52.26 MB / 0.5508 GB, free: 7.234 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_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_trunk_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: 7.527727615088224]