Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.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.001078/0.001078, allocations: 72.08 kB / 21.69 MB, free: 2.863 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.0009416/0.0009416, allocations: 145.1 kB / 24.97 MB, free: 8.812 MB / 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 0.9288/0.9288, allocations: 173.4 MB / 201.5 MB, free: 9.316 MB / 186.7 MB " [Timeout remaining time 179] 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.SpringDamperSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|body1.frame_a.r_0.[0-9,]+.|body1.v_0.[0-9,]+.|body1.w_a.[0-9,]+.|p2.s|p2.v",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|body1.frame_a.r_0.[0-9,]+.|body1.v_0.[0-9,]+.|body1.w_a.[0-9,]+.|p2.s|p2.v",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.343e-06/1.343e-06, allocations: 0 / 268.1 MB, free: 6.707 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.552e-05/1.686e-05, allocations: 2.312 kB / 268.1 MB, free: 6.703 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.008861/0.008878, allocations: 11.64 MB / 279.7 MB, free: 11 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005995/0.01487, allocations: 4.122 MB / 283.9 MB, free: 6.863 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007087/0.01558, allocations: 83.56 kB / 283.9 MB, free: 6.781 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003128/0.01871, allocations: 2.955 MB / 286.9 MB, free: 3.816 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002558/0.02127, allocations: 2.107 MB / 289 MB, free: 1.699 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001009/0.02228, allocations: 0.8888 MB / 289.9 MB, free: 0.8086 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1268/0.1491, allocations: 5.233 MB / 295.1 MB, free: 14.14 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003652/0.1527, allocations: 3.547 MB / 298.7 MB, free: 13.86 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00304/0.1558, allocations: 2.626 MB / 301.3 MB, free: 13.67 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002631/0.1584, allocations: 2.667 MB / 304 MB, free: 13.44 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006376/0.159, allocations: 360.3 kB / 304.3 MB, free: 13.44 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001432/0.1605, allocations: 1.237 MB / 305.5 MB, free: 13.3 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001026/0.1615, allocations: 2.279 MB / 307.8 MB, free: 12.39 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009945/0.1625, allocations: 1.438 MB / 309.3 MB, free: 11.77 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003206/0.1657, allocations: 5.098 MB / 314.4 MB, free: 8.863 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.948e-06/0.1657, allocations: 0 / 314.4 MB, free: 8.863 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.253e-06/0.1657, allocations: 0 / 314.4 MB, free: 8.863 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001826/0.1659, allocations: 0 / 314.4 MB, free: 8.863 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: 1686 * Number of variables: 1686 Notification: Performance of Generate backend data structure: time 0.005729/0.1716, allocations: 5.8 MB / 320.2 MB, free: 3.113 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.039e-05/0.1717, allocations: 12.92 kB / 320.2 MB, free: 3.102 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00448/0.1761, allocations: 2.729 MB / 322.9 MB, free: 420 kB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002481/0.1786, allocations: 2.238 MB / 325.1 MB, free: 14.31 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001478/0.1788, allocations: 266.9 kB / 325.4 MB, free: 14.09 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005675/0.1793, allocations: 431.3 kB / 325.8 MB, free: 13.72 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00966/0.189, allocations: 8.055 MB / 333.9 MB, free: 4.77 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.66e-05/0.1891, allocations: 44.8 kB / 333.9 MB, free: 4.75 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003149/0.1894, allocations: 175.5 kB / 334.1 MB, free: 4.621 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001967/0.1914, allocations: 2.165 MB / 336.3 MB, free: 2.484 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008414/0.1998, allocations: 4.824 MB / 341.1 MB, free: 13.88 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03082/0.2306, allocations: 49.48 MB / 390.6 MB, free: 11.43 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006014/0.2366, allocations: 2.857 MB / 393.4 MB, free: 8.551 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001023/0.2376, allocations: 0.6702 MB / 394.1 MB, free: 7.867 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006452/0.2441, allocations: 4.948 MB / 399 MB, free: 2.934 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.407e-05/0.2441, allocations: 62.62 kB / 399.1 MB, free: 2.863 MB / 346.7 MB Notification: Performance of pre-optimization done (n=183): time 4.017e-06/0.2441, allocations: 0 / 399.1 MB, free: 2.863 MB / 346.7 MB Notification: Performance of matching and sorting (n=205): time 0.02266/0.2668, allocations: 12.28 MB / 411.4 MB, free: 6.555 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001047/0.2678, allocations: 2.052 MB / 413.4 MB, free: 4.352 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00396/0.2718, allocations: 3.703 MB / 417.1 MB, free: 0.6523 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002421/0.272, allocations: 53.64 kB / 417.2 MB, free: 0.5938 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001864/0.2739, allocations: 3.706 MB / 420.9 MB, free: 12.9 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006919/0.2746, allocations: 0.8619 MB / 421.7 MB, free: 12.05 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001269/0.2759, allocations: 1.452 MB / 423.2 MB, free: 10.59 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000102/0.276, allocations: 484.6 kB / 423.7 MB, free: 10.12 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001331/0.2773, allocations: 0.7863 MB / 424.5 MB, free: 9.328 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1787/0.456, allocations: 6.888 MB / 431.3 MB, free: 115.6 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006685/0.4627, allocations: 8.49 MB / 439.8 MB, free: 107.1 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000109/0.4628, allocations: 41.22 kB / 439.9 MB, free: 107.1 MB / 378.7 MB Notification: Performance of matching and sorting (n=894) (initialization): time 0.01344/0.4763, allocations: 7.241 MB / 447.1 MB, free: 106 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.702e-05/0.4763, allocations: 71.31 kB / 447.2 MB, free: 106 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.005495/0.4818, allocations: 2.374 MB / 449.6 MB, free: 105.9 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005758/0.4876, allocations: 1.76 MB / 451.3 MB, free: 105.8 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003269/0.4909, allocations: 1.59 MB / 452.9 MB, free: 105.7 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003716/0.4946, allocations: 4.697 MB / 457.6 MB, free: 102 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003474/0.498, allocations: 0.5008 MB / 458.1 MB, free: 102 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003995/0.4984, allocations: 416.5 kB / 458.5 MB, free: 102 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 665 * Number of states: 0 () * Number of discrete variables: 45 (damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],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],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 (856): * Single equations (assignments): 847 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(4,100.0%), (3,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001309/0.4998, allocations: 0.7228 MB / 459.2 MB, free: 101.7 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004674/0.5002, allocations: 417.6 kB / 459.6 MB, free: 101.7 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002553/0.5028, allocations: 1.886 MB / 461.5 MB, free: 101.3 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.001971/0.5047, allocations: 1.4 MB / 462.9 MB, free: 100.4 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.447e-06/0.5048, allocations: 4 kB / 462.9 MB, free: 100.4 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.375e-05/0.5048, allocations: 9.328 kB / 462.9 MB, free: 100.4 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008449/0.5132, allocations: 7.801 MB / 470.7 MB, free: 92.49 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.067e-05/0.5132, allocations: 12.22 kB / 470.8 MB, free: 92.48 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007714/0.514, allocations: 372.7 kB / 471.1 MB, free: 92.12 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00123/0.5152, allocations: 0.568 MB / 471.7 MB, free: 91.53 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001133/0.5153, allocations: 63.97 kB / 471.8 MB, free: 91.47 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001911/0.5173, allocations: 4.171 MB / 475.9 MB, free: 87.09 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0004382/0.5177, allocations: 1.918 MB / 477.8 MB, free: 85.05 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003574/0.5213, allocations: 3.558 MB / 481.4 MB, free: 81.43 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006839/0.5219, allocations: 374.5 kB / 481.8 MB, free: 81.2 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002711/0.5222, allocations: 51.98 kB / 481.8 MB, free: 81.15 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009364/0.5232, allocations: 195.7 kB / 482 MB, free: 80.96 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002214/0.5234, allocations: 180.3 kB / 482.2 MB, free: 80.79 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.419e-05/0.5235, allocations: 72.53 kB / 482.3 MB, free: 80.71 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001663/0.5251, allocations: 1.571 MB / 483.8 MB, free: 79.16 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5251, allocations: 4 kB / 483.8 MB, free: 79.16 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0038/0.5289, allocations: 1.289 MB / 485.1 MB, free: 77.88 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 60 * Number of states: 14 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body1.frame_a.r_0[1],body1.frame_a.r_0[2],body1.frame_a.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.w_a[1],body1.w_a[2],body1.w_a[3],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 (180): * Single equations (assignments): 173 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(4,100.0%), (3,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004321/0.5294, allocations: 247.5 kB / 485.4 MB, free: 77.65 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.005428/0.5348, allocations: 3.963 MB / 489.3 MB, free: 73.66 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 8.286e-06/0.5348, allocations: 0 / 489.3 MB, free: 73.66 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001712/0.5365, allocations: 1.482 MB / 490.8 MB, free: 72.14 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001956/0.5385, allocations: 465.1 kB / 491.3 MB, free: 71.69 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009932/0.5484, allocations: 9.038 MB / 0.4886 GB, free: 62.36 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001014/0.5494, allocations: 1.342 MB / 0.4899 GB, free: 60.99 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.002403/0.5518, allocations: 1.719 MB / 0.4916 GB, free: 59.26 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004683/0.5523, allocations: 264.4 kB / 0.4918 GB, free: 59 MB / 378.7 MB Notification: Performance of SimCode: time 1.433e-06/0.5523, allocations: 4 kB / 0.4918 GB, free: 59 MB / 378.7 MB Notification: Performance of Templates: time 0.04388/0.5962, allocations: 36.63 MB / 0.5276 GB, free: 22.95 MB / 378.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringDamperSystem/SpringDamperSystem.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.130995491985232]