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.000872/0.000872, allocations: 79.91 kB / 21.18 MB, free: 3.391 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.0009133/0.0009133, allocations: 145.1 kB / 24.54 MB, free: 32 kB / 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.9444/0.9444, allocations: 173.4 MB / 201.1 MB, free: 9.32 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.513e-06/1.513e-06, allocations: 0 / 268 MB, free: 6.41 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.077e-05/2.228e-05, allocations: 2.312 kB / 268 MB, free: 6.406 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.00923/0.009252, allocations: 11.69 MB / 279.7 MB, free: 10.66 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006873/0.01612, allocations: 4.126 MB / 283.8 MB, free: 6.52 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001477/0.0176, allocations: 91.56 kB / 283.9 MB, free: 6.43 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003408/0.02101, allocations: 2.951 MB / 286.9 MB, free: 3.469 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00381/0.02482, allocations: 2.115 MB / 289 MB, free: 1.344 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001527/0.02635, allocations: 0.8888 MB / 289.9 MB, free: 464 kB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1315/0.1578, allocations: 5.235 MB / 295.1 MB, free: 14.9 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005286/0.1631, allocations: 3.551 MB / 298.6 MB, free: 14.61 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004997/0.1681, allocations: 2.623 MB / 301.3 MB, free: 14.16 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003547/0.1717, allocations: 2.669 MB / 303.9 MB, free: 13.7 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009936/0.1727, allocations: 357.7 kB / 304.3 MB, free: 13.7 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001874/0.1745, allocations: 1.24 MB / 305.5 MB, free: 13.56 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001502/0.176, allocations: 2.28 MB / 307.8 MB, free: 12.65 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001662/0.1777, allocations: 1.436 MB / 309.2 MB, free: 12.04 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004366/0.1821, allocations: 5.091 MB / 314.3 MB, free: 8.777 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.1821, allocations: 2.531 kB / 314.3 MB, free: 8.777 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1821, allocations: 0 / 314.3 MB, free: 8.777 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.703e-05/0.1822, allocations: 0.5 kB / 314.3 MB, free: 8.777 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.005725/0.1879, allocations: 5.803 MB / 320.1 MB, free: 3.023 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.149e-05/0.1879, allocations: 8.922 kB / 320.2 MB, free: 3.016 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004633/0.1926, allocations: 2.734 MB / 322.9 MB, free: 328 kB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003106/0.1957, allocations: 2.233 MB / 325.1 MB, free: 14.23 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001417/0.1958, allocations: 269.4 kB / 325.4 MB, free: 14 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005637/0.1964, allocations: 430.1 kB / 325.8 MB, free: 13.63 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01121/0.2076, allocations: 8.05 MB / 333.9 MB, free: 4.691 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.643e-05/0.2077, allocations: 51.67 kB / 333.9 MB, free: 4.664 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003135/0.208, allocations: 169.2 kB / 334.1 MB, free: 4.539 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001907/0.2099, allocations: 2.177 MB / 336.2 MB, free: 2.391 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009531/0.2194, allocations: 4.809 MB / 341.1 MB, free: 13.79 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03788/0.2573, allocations: 49.48 MB / 390.5 MB, free: 11.34 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007741/0.2651, allocations: 2.858 MB / 393.4 MB, free: 8.473 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001237/0.2663, allocations: 0.6732 MB / 394.1 MB, free: 7.785 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008116/0.2744, allocations: 4.957 MB / 399 MB, free: 2.84 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.914e-05/0.2745, allocations: 57.33 kB / 399.1 MB, free: 2.777 MB / 346.7 MB Notification: Performance of pre-optimization done (n=183): time 5.199e-06/0.2745, allocations: 0 / 399.1 MB, free: 2.777 MB / 346.7 MB Notification: Performance of matching and sorting (n=205): time 0.02251/0.297, allocations: 12.27 MB / 411.4 MB, free: 6.473 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0009776/0.298, allocations: 2.047 MB / 413.4 MB, free: 4.27 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003588/0.3015, allocations: 3.707 MB / 417.1 MB, free: 0.5664 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000185/0.3017, allocations: 53.7 kB / 417.2 MB, free: 0.5078 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001734/0.3035, allocations: 3.709 MB / 420.9 MB, free: 12.82 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006365/0.3041, allocations: 0.8663 MB / 421.7 MB, free: 11.96 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001237/0.3053, allocations: 1.451 MB / 423.2 MB, free: 10.5 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.78e-05/0.3054, allocations: 480.5 kB / 423.7 MB, free: 10.03 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00119/0.3066, allocations: 0.7863 MB / 424.4 MB, free: 9.242 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1386/0.4452, allocations: 6.885 MB / 431.3 MB, free: 98.79 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006991/0.4522, allocations: 8.496 MB / 439.8 MB, free: 90.84 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001338/0.4523, allocations: 42.44 kB / 439.9 MB, free: 90.84 MB / 378.7 MB Notification: Performance of matching and sorting (n=894) (initialization): time 0.01434/0.4667, allocations: 7.243 MB / 447.1 MB, free: 90.08 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.283e-05/0.4667, allocations: 72.2 kB / 447.2 MB, free: 90.08 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.005282/0.472, allocations: 2.374 MB / 449.6 MB, free: 89.98 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005072/0.4771, allocations: 1.752 MB / 451.3 MB, free: 89.93 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00321/0.4803, allocations: 1.597 MB / 452.9 MB, free: 89.78 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003781/0.4841, allocations: 4.702 MB / 457.6 MB, free: 86.15 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00403/0.4881, allocations: 0.5065 MB / 458.1 MB, free: 86.15 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006535/0.4888, allocations: 415.8 kB / 458.5 MB, free: 86.15 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.001545/0.4903, allocations: 0.7216 MB / 459.2 MB, free: 85.84 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004923/0.4908, allocations: 413.7 kB / 459.6 MB, free: 85.84 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002703/0.4935, allocations: 1.885 MB / 461.5 MB, free: 85.66 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.002161/0.4957, allocations: 1.396 MB / 462.9 MB, free: 85.52 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.503e-05/0.4957, allocations: 2.688 kB / 462.9 MB, free: 85.52 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.522e-05/0.4957, allocations: 10.73 kB / 462.9 MB, free: 85.52 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01006/0.5058, allocations: 7.791 MB / 470.7 MB, free: 82.49 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.298e-05/0.5058, allocations: 12.94 kB / 470.7 MB, free: 82.48 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008083/0.5066, allocations: 364.6 kB / 471.1 MB, free: 82.19 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001308/0.5079, allocations: 0.5723 MB / 471.7 MB, free: 81.88 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001447/0.508, allocations: 65.12 kB / 471.7 MB, free: 81.85 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002219/0.5103, allocations: 4.177 MB / 475.9 MB, free: 77.77 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.000494/0.5108, allocations: 1.921 MB / 477.8 MB, free: 75.73 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003826/0.5146, allocations: 3.562 MB / 481.4 MB, free: 72.11 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008019/0.5154, allocations: 369.4 kB / 481.7 MB, free: 71.88 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002589/0.5156, allocations: 55.98 kB / 481.8 MB, free: 71.83 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009685/0.5166, allocations: 191.7 kB / 482 MB, free: 71.64 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000221/0.5168, allocations: 183.3 kB / 482.2 MB, free: 71.46 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.052e-05/0.5169, allocations: 79.09 kB / 482.2 MB, free: 71.39 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001903/0.5188, allocations: 1.571 MB / 483.8 MB, free: 69.84 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.31e-07/0.5188, allocations: 0 / 483.8 MB, free: 69.84 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.004124/0.5229, allocations: 1.29 MB / 485.1 MB, free: 68.55 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.0004659/0.5234, allocations: 237.4 kB / 485.3 MB, free: 68.34 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.005486/0.5289, allocations: 3.962 MB / 489.3 MB, free: 64.35 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.027e-05/0.5289, allocations: 0 / 489.3 MB, free: 64.35 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001792/0.5307, allocations: 1.48 MB / 490.8 MB, free: 62.82 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002142/0.5328, allocations: 468 kB / 491.2 MB, free: 62.38 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01134/0.5442, allocations: 9.043 MB / 0.4886 GB, free: 53.05 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001146/0.5453, allocations: 1.34 MB / 0.4899 GB, free: 51.7 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.002574/0.5479, allocations: 1.727 MB / 0.4916 GB, free: 49.96 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005209/0.5484, allocations: 264.4 kB / 0.4918 GB, free: 49.7 MB / 378.7 MB Notification: Performance of SimCode: time 1.994e-06/0.5484, allocations: 0 / 0.4918 GB, free: 49.7 MB / 378.7 MB Notification: Performance of Templates: time 0.04781/0.5962, allocations: 36.63 MB / 0.5276 GB, free: 13.67 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.352226404938847]