Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.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.0009462/0.0009462, allocations: 85.05 kB / 21.5 MB, free: 2.992 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.00102/0.00102, allocations: 147.7 kB / 24.89 MB, free: 8.727 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.9124/0.9124, allocations: 173.4 MB / 201.5 MB, free: 8.766 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.PendulumWithSpringDamper,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|prismatic.s|prismatic.v|revolute.phi|revolute.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|prismatic.s|prismatic.v|revolute.phi|revolute.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.524e-06/2.524e-06, allocations: 0 / 268.5 MB, free: 6.027 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.022e-05/3.274e-05, allocations: 6.25 kB / 268.5 MB, free: 6.02 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.01242/0.01245, allocations: 9.764 MB / 278.2 MB, free: 12.21 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00625/0.0187, allocations: 3.9 MB / 282.1 MB, free: 8.293 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009918/0.01969, allocations: 67.69 kB / 282.2 MB, free: 8.227 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002574/0.02227, allocations: 2.223 MB / 284.4 MB, free: 5.996 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002839/0.02511, allocations: 1.765 MB / 286.2 MB, free: 4.223 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00107/0.02618, allocations: 0.7444 MB / 286.9 MB, free: 3.477 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1158/0.142, allocations: 3.699 MB / 290.6 MB, free: 15.07 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003712/0.1457, allocations: 2.62 MB / 293.3 MB, free: 14.89 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003498/0.1492, allocations: 1.987 MB / 295.2 MB, free: 14.89 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003032/0.1522, allocations: 1.769 MB / 297 MB, free: 14.89 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009906/0.1532, allocations: 259.3 kB / 297.3 MB, free: 14.89 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002026/0.1552, allocations: 1.059 MB / 298.3 MB, free: 14.88 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001502/0.1567, allocations: 1.683 MB / 300 MB, free: 14.66 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002005/0.1587, allocations: 1.065 MB / 301.1 MB, free: 14.48 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005144/0.1639, allocations: 4.024 MB / 305.1 MB, free: 13.46 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.99e-06/0.1639, allocations: 0 / 305.1 MB, free: 13.46 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.733e-06/0.1639, allocations: 0 / 305.1 MB, free: 13.46 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001842/0.1641, allocations: 0 / 305.1 MB, free: 13.46 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: 1349 * Number of variables: 1349 Notification: Performance of Generate backend data structure: time 0.005591/0.1697, allocations: 3.853 MB / 309 MB, free: 11.43 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.697e-05/0.1697, allocations: 7.391 kB / 309 MB, free: 11.43 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003393/0.1731, allocations: 1.023 MB / 310 MB, free: 11.26 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00205/0.1752, allocations: 1.425 MB / 311.4 MB, free: 10.56 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001149/0.1753, allocations: 202.7 kB / 311.6 MB, free: 10.5 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003844/0.1757, allocations: 277.8 kB / 311.9 MB, free: 10.43 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006498/0.1822, allocations: 4.671 MB / 316.6 MB, free: 6.75 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.784e-05/0.1822, allocations: 35.92 kB / 316.6 MB, free: 6.734 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002885/0.1825, allocations: 135.4 kB / 316.7 MB, free: 6.637 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001583/0.1841, allocations: 1.584 MB / 318.3 MB, free: 5.082 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005513/0.1896, allocations: 2.401 MB / 320.7 MB, free: 2.891 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02345/0.2131, allocations: 28.89 MB / 349.6 MB, free: 5.953 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00365/0.2167, allocations: 1.773 MB / 351.4 MB, free: 4.191 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005789/0.2173, allocations: 400.8 kB / 351.8 MB, free: 3.805 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004911/0.2222, allocations: 3.397 MB / 355.2 MB, free: 448 kB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.55e-05/0.2222, allocations: 54.5 kB / 355.2 MB, free: 388 kB / 298.7 MB Notification: Performance of pre-optimization done (n=135): time 3.467e-06/0.2222, allocations: 0 / 355.2 MB, free: 388 kB / 298.7 MB Notification: Performance of matching and sorting (n=145): time 0.01096/0.2332, allocations: 4.761 MB / 360 MB, free: 11.64 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.245e-05/0.2333, allocations: 148.9 kB / 360.1 MB, free: 11.47 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002653/0.2359, allocations: 2.787 MB / 362.9 MB, free: 9.164 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 9.011e-05/0.236, allocations: 52.83 kB / 363 MB, free: 9.109 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001154/0.2372, allocations: 2.789 MB / 365.7 MB, free: 6.461 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000405/0.2376, allocations: 0.5994 MB / 366.3 MB, free: 5.891 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008249/0.2384, allocations: 1.064 MB / 367.4 MB, free: 4.938 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.057e-05/0.2384, allocations: 309.1 kB / 367.7 MB, free: 4.633 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001015/0.2395, allocations: 0.6671 MB / 368.4 MB, free: 3.957 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002331/0.2418, allocations: 4.124 MB / 372.5 MB, free: 14.24 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003774/0.2456, allocations: 5.331 MB / 377.8 MB, free: 7.297 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.531e-05/0.2456, allocations: 40 kB / 377.9 MB, free: 7.258 MB / 330.7 MB Notification: Performance of matching and sorting (n=736) (initialization): time 0.004611/0.2503, allocations: 3.848 MB / 381.7 MB, free: 3.391 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.401e-05/0.2503, allocations: 60 kB / 381.8 MB, free: 3.332 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.363e-05/0.2504, allocations: 128 kB / 381.9 MB, free: 3.207 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005288/0.2509, allocations: 303.2 kB / 382.2 MB, free: 2.91 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002023/0.253, allocations: 1.275 MB / 383.5 MB, free: 1.633 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001492/0.2544, allocations: 1.918 MB / 385.4 MB, free: 15.62 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002505/0.257, allocations: 251.7 kB / 385.6 MB, free: 15.38 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002665/0.2572, allocations: 300 kB / 385.9 MB, free: 15.08 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 581 * Number of states: 0 () * Number of discrete variables: 36 (prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],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],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 (706): * Single equations (assignments): 702 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001103/0.2583, allocations: 0.5872 MB / 386.5 MB, free: 14.48 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003036/0.2586, allocations: 183.8 kB / 386.7 MB, free: 14.3 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009686/0.2596, allocations: 0.7604 MB / 387.5 MB, free: 13.52 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.891e-05/0.2596, allocations: 16 kB / 387.5 MB, free: 13.51 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/0.2596, allocations: 0 / 387.5 MB, free: 13.51 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.819e-06/0.2596, allocations: 11.97 kB / 387.5 MB, free: 13.5 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004481/0.2641, allocations: 3.349 MB / 390.8 MB, free: 10.01 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.035e-06/0.2641, allocations: 8 kB / 390.8 MB, free: 10 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004433/0.2646, allocations: 207.7 kB / 391 MB, free: 9.801 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000503/0.2651, allocations: 284.2 kB / 391.3 MB, free: 9.516 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.033e-05/0.2651, allocations: 39.98 kB / 391.4 MB, free: 9.477 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001119/0.2663, allocations: 1.695 MB / 393.1 MB, free: 7.684 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.971e-06/0.2663, allocations: 11.94 kB / 393.1 MB, free: 7.672 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001523/0.2678, allocations: 1.668 MB / 394.7 MB, free: 5.895 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003828/0.2682, allocations: 265.9 kB / 395 MB, free: 5.633 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002009/0.2684, allocations: 31.98 kB / 395 MB, free: 5.602 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004953/0.2689, allocations: 32 kB / 395.1 MB, free: 5.57 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001139/0.269, allocations: 104.2 kB / 395.2 MB, free: 5.469 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.566e-05/0.269, allocations: 36 kB / 395.2 MB, free: 5.434 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0008476/0.2699, allocations: 0.9849 MB / 396.2 MB, free: 4.445 MB / 346.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2699, allocations: 4 kB / 396.2 MB, free: 4.441 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002808/0.2727, allocations: 0.8749 MB / 397.1 MB, free: 3.566 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 31 * Number of states: 4 (revolute.phi,revolute.w,prismatic.s,prismatic.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 (121): * Single equations (assignments): 117 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00032/0.273, allocations: 183.9 kB / 397.2 MB, free: 3.375 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002531/0.2755, allocations: 2.296 MB / 399.5 MB, free: 1.082 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001412/0.2757, allocations: 92.16 kB / 399.6 MB, free: 0.9805 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004719/0.2762, allocations: 0.4914 MB / 400.1 MB, free: 484 kB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001379/0.2775, allocations: 0.4894 MB / 400.6 MB, free: 15.98 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007035/0.2846, allocations: 6.33 MB / 406.9 MB, free: 9.496 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007964/0.2854, allocations: 1.024 MB / 408 MB, free: 8.449 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0009809/0.2863, allocations: 448.1 kB / 408.4 MB, free: 8.008 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005801/0.2869, allocations: 477.2 kB / 408.9 MB, free: 7.539 MB / 362.7 MB Notification: Performance of SimCode: time 2.084e-06/0.2869, allocations: 0 / 408.9 MB, free: 7.539 MB / 362.7 MB Notification: Performance of Templates: time 0.1329/0.4199, allocations: 23.89 MB / 432.8 MB, free: 120 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PendulumWithSpringDamper/PendulumWithSpringDamper.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.626215721014887]