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.001264/0.001264, allocations: 112.2 kB / 19.04 MB, free: 3.254 MB / 14.72 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.001232/0.001232, allocations: 196.4 kB / 22.22 MB, free: 72 kB / 14.72 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.431/1.431, allocations: 225.6 MB / 250.8 MB, free: 13.36 MB / 206.1 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 0.001512/0.001512, allocations: 55.86 kB / 368.7 MB, free: 10.15 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.289/0.2905, allocations: 52.13 MB / 420.9 MB, free: 15.12 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.01385/0.3043, allocations: 10.78 MB / 431.7 MB, free: 4.293 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009796/0.3141, allocations: 3.915 MB / 435.6 MB, free: 372 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002393/0.3165, allocations: 63.81 kB / 435.6 MB, free: 308 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005155/0.3217, allocations: 2.262 MB / 437.9 MB, free: 14.03 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006138/0.3278, allocations: 1.887 MB / 439.8 MB, free: 12.14 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002322/0.3301, allocations: 0.7058 MB / 440.5 MB, free: 11.43 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.007971/0.3381, allocations: 4.234 MB / 444.7 MB, free: 7.188 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003773/0.3419, allocations: 2.217 MB / 446.9 MB, free: 4.922 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003372/0.3453, allocations: 1.483 MB / 448.4 MB, free: 3.434 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004513/0.3498, allocations: 2.262 MB / 450.7 MB, free: 1.164 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001009/0.3508, allocations: 292 kB / 451 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002438/0.3532, allocations: 0.9674 MB / 451.9 MB, free: 15.91 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002527/0.3558, allocations: 1.87 MB / 453.8 MB, free: 14.04 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003351/0.3591, allocations: 2.105 MB / 455.9 MB, free: 11.92 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01091/0.37, allocations: 6.443 MB / 462.4 MB, free: 5.449 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.044e-05/0.37, allocations: 4 kB / 462.4 MB, free: 5.445 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.464e-06/0.37, allocations: 0 / 462.4 MB, free: 5.445 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003076/0.3703, allocations: 0 / 462.4 MB, free: 5.445 MB / 366.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.01261/0.3829, allocations: 4.724 MB / 467.1 MB, free: 0.6445 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.165e-05/0.383, allocations: 11.89 kB / 467.1 MB, free: 0.6328 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007498/0.3905, allocations: 1.944 MB / 469 MB, free: 14.68 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006009/0.3965, allocations: 2.305 MB / 471.3 MB, free: 12.32 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000235/0.3968, allocations: 229.6 kB / 471.6 MB, free: 12.09 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009438/0.3977, allocations: 295.8 kB / 471.9 MB, free: 11.8 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01864/0.4163, allocations: 9.635 MB / 481.5 MB, free: 1.406 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001367/0.4165, allocations: 47.58 kB / 481.5 MB, free: 1.359 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004081/0.4169, allocations: 147.8 kB / 481.7 MB, free: 1.215 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003082/0.42, allocations: 1.911 MB / 483.6 MB, free: 15.3 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01756/0.4375, allocations: 7.633 MB / 491.2 MB, free: 7.648 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05067/0.4882, allocations: 37.68 MB / 0.5165 GB, free: 0.7969 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006879/0.4951, allocations: 2.781 MB / 0.5192 GB, free: 13.87 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001381/0.4965, allocations: 0.8025 MB / 0.52 GB, free: 13.05 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007054/0.5035, allocations: 3.776 MB / 0.5237 GB, free: 9.078 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.605e-05/0.5036, allocations: 43.22 kB / 0.5237 GB, free: 9.023 MB / 446.1 MB Notification: Performance of pre-optimization done (n=134): time 4.769e-06/0.5036, allocations: 0 / 0.5237 GB, free: 9.023 MB / 446.1 MB Notification: Performance of matching and sorting (n=152): time 0.2677/0.7713, allocations: 9.235 MB / 0.5328 GB, free: 108.1 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.622e-05/0.7713, allocations: 146.6 kB / 0.5329 GB, free: 107.9 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01073/0.7821, allocations: 3.938 MB / 0.5367 GB, free: 106.9 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000304/0.7824, allocations: 49.41 kB / 0.5368 GB, free: 106.9 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00238/0.7848, allocations: 3.21 MB / 0.5399 GB, free: 105.2 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007325/0.7855, allocations: 0.6257 MB / 0.5405 GB, free: 104.8 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001689/0.7872, allocations: 1.173 MB / 0.5417 GB, free: 104.2 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.627e-05/0.7872, allocations: 308 kB / 0.542 GB, free: 103.9 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002621/0.7899, allocations: 1.581 MB / 0.5435 GB, free: 103.5 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003263/0.7931, allocations: 5.357 MB / 0.5488 GB, free: 97.89 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005958/0.7991, allocations: 7.553 MB / 0.5561 GB, free: 90.94 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.616e-05/0.7992, allocations: 35.12 kB / 0.5562 GB, free: 90.94 MB / 446.1 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.009194/0.8083, allocations: 6.674 MB / 0.5627 GB, free: 86.25 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.509e-05/0.8084, allocations: 64 kB / 0.5627 GB, free: 86.19 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001005/0.8085, allocations: 132 kB / 0.5629 GB, free: 86.06 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001229/0.8086, allocations: 180 kB / 0.563 GB, free: 85.89 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003438/0.8121, allocations: 1.382 MB / 0.5644 GB, free: 84.66 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001272/0.8122, allocations: 262.8 kB / 0.5646 GB, free: 84.43 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003758/0.816, allocations: 296.2 kB / 0.5649 GB, free: 84.18 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000374/0.8163, allocations: 364 kB / 0.5653 GB, free: 83.82 MB / 446.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.002334/0.8187, allocations: 1.984 MB / 0.5672 GB, free: 81.99 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004667/0.8191, allocations: 349.7 kB / 0.5675 GB, free: 81.65 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001546/0.8207, allocations: 1.246 MB / 0.5688 GB, free: 80.39 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.822e-05/0.8207, allocations: 23.73 kB / 0.5688 GB, free: 80.37 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.109e-05/0.8207, allocations: 5.062 kB / 0.5688 GB, free: 80.37 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.059e-05/0.8207, allocations: 7.984 kB / 0.5688 GB, free: 80.36 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006566/0.8273, allocations: 5.748 MB / 0.5744 GB, free: 74.32 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.598e-05/0.8273, allocations: 16 kB / 0.5744 GB, free: 74.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008373/0.8281, allocations: 279.5 kB / 0.5747 GB, free: 74.03 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.89e-05/0.8282, allocations: 26.52 kB / 0.5747 GB, free: 74 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.059e-05/0.8282, allocations: 51.98 kB / 0.5748 GB, free: 73.95 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.818e-05/0.8282, allocations: 35.86 kB / 0.5748 GB, free: 73.92 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.179e-05/0.8283, allocations: 31.81 kB / 0.5748 GB, free: 73.89 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002828/0.8311, allocations: 3.24 MB / 0.578 GB, free: 70.39 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006673/0.8318, allocations: 430.6 kB / 0.5784 GB, free: 69.95 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002934/0.832, allocations: 47.98 kB / 0.5784 GB, free: 69.91 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009884/0.833, allocations: 59.97 kB / 0.5785 GB, free: 69.85 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001333/0.8332, allocations: 143.4 kB / 0.5786 GB, free: 69.71 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.813e-05/0.8332, allocations: 71.98 kB / 0.5787 GB, free: 69.64 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002748/0.836, allocations: 2.434 MB / 0.5811 GB, free: 67.22 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.836, allocations: 4 kB / 0.5811 GB, free: 67.22 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004215/0.8402, allocations: 0.8671 MB / 0.5819 GB, free: 66.35 MB / 446.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.00033/0.8405, allocations: 203.3 kB / 0.5821 GB, free: 66.15 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004696/0.8452, allocations: 3.551 MB / 0.5856 GB, free: 62.63 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.018e-05/0.8452, allocations: 4 kB / 0.5856 GB, free: 62.63 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007554/0.846, allocations: 0.6838 MB / 0.5863 GB, free: 61.95 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002541/0.8485, allocations: 456.7 kB / 0.5867 GB, free: 61.52 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01133/0.8599, allocations: 8.638 MB / 0.5951 GB, free: 52.6 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00248/0.8624, allocations: 3.095 MB / 0.5982 GB, free: 49.47 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003306/0.8657, allocations: 1.772 MB / 0.5999 GB, free: 47.69 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004306/0.8661, allocations: 235.4 kB / 0.6001 GB, free: 47.46 MB / 446.1 MB Notification: Performance of SimCode: time 1.312e-06/0.8661, allocations: 0 / 0.6001 GB, free: 47.46 MB / 446.1 MB Notification: Performance of Templates: time 0.04754/0.9136, allocations: 25.52 MB / 0.625 GB, free: 22.15 MB / 446.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) [Timeout 480] 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.208713524974883]