Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.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.001166/0.001166, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001603/0.002769, allocations: 449.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.001158/0.001158, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001458/0.002616, allocations: 455.6 kB / 11.71 MB, free: 2.461 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9889/0.9889, allocations: 177.2 MB / 189.6 MB, free: 5.312 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08697/1.076, allocations: 53.65 MB / 243.3 MB, free: 15.59 MB / 250.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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.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.1.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.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.994e-06/1.994e-06, allocations: 0 / 244.5 MB, free: 14.32 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.043e-05/2.242e-05, allocations: 2.312 kB / 244.5 MB, free: 14.32 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.009533/0.009555, allocations: 11.44 MB / 256 MB, free: 2.828 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.007017/0.01657, allocations: 4.299 MB / 260.3 MB, free: 14.51 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001357/0.01793, allocations: 79.62 kB / 260.3 MB, free: 14.43 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002833/0.02076, allocations: 2.799 MB / 263.1 MB, free: 11.62 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003465/0.02423, allocations: 2.037 MB / 265.2 MB, free: 9.578 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001257/0.02549, allocations: 0.8265 MB / 266 MB, free: 8.75 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.005519/0.031, allocations: 5.236 MB / 271.2 MB, free: 3.504 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003819/0.03482, allocations: 3.134 MB / 274.4 MB, free: 316 kB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.122/0.1568, allocations: 2.738 MB / 277.1 MB, free: 3.582 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003891/0.1607, allocations: 2.491 MB / 279.6 MB, free: 3.582 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001272/0.162, allocations: 355.5 kB / 279.9 MB, free: 3.582 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002498/0.1645, allocations: 1.256 MB / 281.2 MB, free: 3.582 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001988/0.1664, allocations: 2.004 MB / 283.2 MB, free: 3.543 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002116/0.1686, allocations: 1.139 MB / 284.3 MB, free: 3.328 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004624/0.1732, allocations: 4.638 MB / 289 MB, free: 2.602 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.278e-05/0.1732, allocations: 0 / 289 MB, free: 2.602 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.072e-06/0.1732, allocations: 0.5 kB / 289 MB, free: 2.602 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0002303/0.1734, allocations: 0.625 kB / 289 MB, free: 2.602 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.006503/0.1799, allocations: 5.88 MB / 294.9 MB, free: 452 kB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.219e-05/0.18, allocations: 13.83 kB / 294.9 MB, free: 448 kB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00323/0.1832, allocations: 1.303 MB / 296.2 MB, free: 436 kB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002357/0.1856, allocations: 1.891 MB / 298.1 MB, free: 15.84 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001225/0.1857, allocations: 270.9 kB / 298.3 MB, free: 15.83 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005168/0.1862, allocations: 427.5 kB / 298.8 MB, free: 15.82 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0072/0.1934, allocations: 5.867 MB / 304.6 MB, free: 10.9 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001051/0.1935, allocations: 48.03 kB / 304.7 MB, free: 10.88 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003138/0.1938, allocations: 176.8 kB / 304.8 MB, free: 10.75 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001908/0.1957, allocations: 1.935 MB / 306.8 MB, free: 8.848 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006001/0.2017, allocations: 3.139 MB / 309.9 MB, free: 5.957 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02906/0.2308, allocations: 34.86 MB / 344.8 MB, free: 3.148 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004859/0.2356, allocations: 2.381 MB / 347.2 MB, free: 0.8008 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007138/0.2364, allocations: 479.3 kB / 347.6 MB, free: 344 kB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006299/0.2427, allocations: 4.28 MB / 351.9 MB, free: 12.11 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.251e-05/0.2427, allocations: 47.88 kB / 351.9 MB, free: 12.05 MB / 330.7 MB Notification: Performance of pre-optimization done (n=183): time 5.891e-06/0.2427, allocations: 4 kB / 352 MB, free: 12.05 MB / 330.7 MB Notification: Performance of matching and sorting (n=205): time 0.01657/0.2593, allocations: 7.245 MB / 359.2 MB, free: 4.879 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0008878/0.2602, allocations: 1.482 MB / 360.7 MB, free: 3.281 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00396/0.2641, allocations: 3.314 MB / 364 MB, free: 0.5781 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003341/0.2645, allocations: 52.44 kB / 364 MB, free: 0.5234 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001572/0.266, allocations: 3.351 MB / 367.4 MB, free: 13.33 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007492/0.2668, allocations: 0.8313 MB / 368.2 MB, free: 12.55 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001062/0.2678, allocations: 1.279 MB / 369.5 MB, free: 11.41 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.316e-05/0.2679, allocations: 301.1 kB / 369.8 MB, free: 11.11 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001416/0.2693, allocations: 0.8899 MB / 370.7 MB, free: 10.22 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003347/0.2727, allocations: 4.877 MB / 375.6 MB, free: 3.547 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005437/0.2781, allocations: 6.49 MB / 382.1 MB, free: 11.3 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.388e-05/0.2782, allocations: 47.75 kB / 382.1 MB, free: 11.26 MB / 362.7 MB Notification: Performance of matching and sorting (n=895) (initialization): time 0.008232/0.2864, allocations: 5.081 MB / 387.2 MB, free: 6.156 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.353e-05/0.2865, allocations: 68.94 kB / 387.3 MB, free: 6.09 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.003304/0.2898, allocations: 1.188 MB / 388.4 MB, free: 4.887 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003027/0.2928, allocations: 0.5989 MB / 389 MB, free: 4.273 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003041/0.2959, allocations: 1.731 MB / 390.8 MB, free: 2.543 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00322/0.2991, allocations: 3.118 MB / 393.9 MB, free: 15.25 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003121/0.3022, allocations: 301.2 kB / 394.2 MB, free: 14.95 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004985/0.3027, allocations: 360 kB / 394.5 MB, free: 14.6 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 666 * 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 (857): * Single equations (assignments): 848 * 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.001465/0.3042, allocations: 0.6832 MB / 395.2 MB, free: 13.91 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00047/0.3046, allocations: 237.6 kB / 395.4 MB, free: 13.68 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002/0.3066, allocations: 1.354 MB / 396.8 MB, free: 12.3 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0014/0.308, allocations: 0.8486 MB / 397.6 MB, free: 11.44 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.135e-06/0.308, allocations: 4 kB / 397.7 MB, free: 11.43 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.384e-05/0.308, allocations: 11.91 kB / 397.7 MB, free: 11.42 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008245/0.3163, allocations: 5.954 MB / 403.6 MB, free: 5.367 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.398e-05/0.3163, allocations: 16 kB / 403.6 MB, free: 5.352 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008762/0.3172, allocations: 380.2 kB / 404 MB, free: 4.98 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007006/0.3179, allocations: 353.4 kB / 404.4 MB, free: 4.633 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001255/0.3191, allocations: 0.5357 MB / 404.9 MB, free: 4.078 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001192/0.3193, allocations: 59.97 kB / 404.9 MB, free: 4.02 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002063/0.3213, allocations: 2.849 MB / 407.8 MB, free: 0.9766 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006048/0.3219, allocations: 1.35 MB / 409.1 MB, free: 15.52 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003108/0.325, allocations: 2.636 MB / 411.8 MB, free: 12.66 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004776/0.3255, allocations: 59.97 kB / 411.8 MB, free: 12.6 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008617/0.3264, allocations: 51.98 kB / 411.9 MB, free: 12.55 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002067/0.3266, allocations: 180.3 kB / 412.1 MB, free: 12.38 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.17e-05/0.3267, allocations: 67.97 kB / 412.1 MB, free: 12.31 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001242/0.3279, allocations: 1.198 MB / 413.3 MB, free: 11.12 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3279, allocations: 0 / 413.3 MB, free: 11.12 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003683/0.3316, allocations: 1.262 MB / 414.6 MB, free: 9.863 MB / 394.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.0003931/0.332, allocations: 219.8 kB / 414.8 MB, free: 9.637 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003997/0.336, allocations: 3.241 MB / 418 MB, free: 6.387 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001795/0.3362, allocations: 112.8 kB / 418.2 MB, free: 6.27 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001312/0.3375, allocations: 1.022 MB / 419.2 MB, free: 5.215 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002136/0.3396, allocations: 0.9495 MB / 420.1 MB, free: 4.27 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1151/0.4547, allocations: 8.815 MB / 428.9 MB, free: 123.4 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001759/0.4565, allocations: 1.335 MB / 430.3 MB, free: 123.3 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001876/0.4583, allocations: 0.5373 MB / 430.8 MB, free: 123.2 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001181/0.4595, allocations: 0.608 MB / 431.4 MB, free: 123.2 MB / 394.7 MB Notification: Performance of SimCode: time 1.412e-06/0.4595, allocations: 3.75 kB / 431.4 MB, free: 123.2 MB / 394.7 MB Notification: Performance of Templates: time 0.05065/0.5102, allocations: 40.3 MB / 471.7 MB, free: 99.27 MB / 394.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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: 3.997231204994023]