Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.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.00125/0.00125, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00126/0.00251, 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.0008011/0.0008011, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001055/0.001856, 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.9654/0.9654, allocations: 177.2 MB / 189.6 MB, free: 5.32 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08232/1.048, 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.PendulumWithSpringDamper,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|prismatic.s|prismatic.v|revolute.phi|revolute.w",fileNamePrefix="Modelica_4.1.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.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.022e-06/1.022e-06, allocations: 0 / 244.5 MB, free: 14.34 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.792e-05/1.895e-05, allocations: 6.25 kB / 244.5 MB, free: 14.33 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.008036/0.008055, allocations: 9.861 MB / 254.4 MB, free: 4.422 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.005942/0.014, allocations: 3.951 MB / 258.3 MB, free: 468 kB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001131/0.01513, allocations: 67.62 kB / 258.4 MB, free: 400 kB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002253/0.01738, allocations: 2.114 MB / 260.5 MB, free: 14.27 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00302/0.0204, allocations: 1.683 MB / 262.2 MB, free: 12.58 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001104/0.0215, allocations: 0.6976 MB / 262.9 MB, free: 11.88 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003299/0.0248, allocations: 3.688 MB / 266.6 MB, free: 8.188 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002651/0.02745, allocations: 2.33 MB / 268.9 MB, free: 5.789 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002423/0.02988, allocations: 2.051 MB / 271 MB, free: 3.734 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001988/0.03187, allocations: 1.753 MB / 272.7 MB, free: 1.977 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005756/0.03244, allocations: 260 kB / 273 MB, free: 1.723 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001466/0.03391, allocations: 1.073 MB / 274 MB, free: 0.6484 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.1132/0.1471, allocations: 1.477 MB / 275.5 MB, free: 6.789 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001934/0.149, allocations: 0.8538 MB / 276.4 MB, free: 6.789 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004621/0.1536, allocations: 3.682 MB / 280.1 MB, free: 6.516 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.375e-05/0.1536, allocations: 2.312 kB / 280.1 MB, free: 6.516 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.402e-06/0.1536, allocations: 0 / 280.1 MB, free: 6.516 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0002216/0.1539, allocations: 1.375 kB / 280.1 MB, free: 6.516 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.008429/0.1623, allocations: 4.641 MB / 284.7 MB, free: 4.781 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.123e-05/0.1623, allocations: 9.625 kB / 284.7 MB, free: 4.781 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002777/0.1651, allocations: 1.014 MB / 285.7 MB, free: 4.77 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001824/0.1669, allocations: 1.434 MB / 287.2 MB, free: 4.328 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.621e-05/0.167, allocations: 208.4 kB / 287.4 MB, free: 4.32 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002922/0.1673, allocations: 265.8 kB / 287.6 MB, free: 4.316 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005205/0.1725, allocations: 4.689 MB / 292.3 MB, free: 2.418 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.913e-05/0.1726, allocations: 41.48 kB / 292.3 MB, free: 2.414 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000227/0.1728, allocations: 132.7 kB / 292.5 MB, free: 2.414 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001273/0.1741, allocations: 1.594 MB / 294.1 MB, free: 2.41 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00441/0.1785, allocations: 2.416 MB / 296.5 MB, free: 2.285 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02249/0.201, allocations: 28.94 MB / 325.4 MB, free: 8.109 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003441/0.2044, allocations: 1.759 MB / 327.2 MB, free: 6.375 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004823/0.2049, allocations: 400 kB / 327.6 MB, free: 5.984 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004487/0.2094, allocations: 3.384 MB / 331 MB, free: 2.629 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.039e-05/0.2094, allocations: 54.5 kB / 331 MB, free: 2.57 MB / 298.7 MB Notification: Performance of pre-optimization done (n=135): time 5.22e-06/0.2094, allocations: 0 / 331 MB, free: 2.57 MB / 298.7 MB Notification: Performance of matching and sorting (n=145): time 0.01109/0.2205, allocations: 4.759 MB / 335.8 MB, free: 13.86 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.924e-05/0.2206, allocations: 153.3 kB / 335.9 MB, free: 13.68 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002552/0.2231, allocations: 2.781 MB / 338.7 MB, free: 11.39 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 7.624e-05/0.2232, allocations: 45.7 kB / 338.7 MB, free: 11.34 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001412/0.2246, allocations: 2.799 MB / 341.5 MB, free: 8.691 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003551/0.225, allocations: 0.5916 MB / 342.1 MB, free: 8.129 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007901/0.2257, allocations: 1.06 MB / 343.2 MB, free: 7.18 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.438e-05/0.2258, allocations: 305.3 kB / 343.5 MB, free: 6.879 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001019/0.2268, allocations: 0.671 MB / 344.2 MB, free: 6.199 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002543/0.2294, allocations: 4.132 MB / 348.3 MB, free: 488 kB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003778/0.2331, allocations: 5.329 MB / 353.6 MB, free: 9.777 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.089e-05/0.2332, allocations: 36 kB / 353.7 MB, free: 9.742 MB / 330.7 MB Notification: Performance of matching and sorting (n=736) (initialization): time 0.004161/0.2374, allocations: 3.845 MB / 357.5 MB, free: 5.883 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.225e-05/0.2374, allocations: 60 kB / 357.6 MB, free: 5.824 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.732e-05/0.2375, allocations: 128.7 kB / 357.7 MB, free: 5.699 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005072/0.238, allocations: 306.1 kB / 358 MB, free: 5.402 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002441/0.2405, allocations: 1.416 MB / 359.4 MB, free: 3.984 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001381/0.2418, allocations: 1.931 MB / 361.3 MB, free: 1.969 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002053/0.2439, allocations: 257.6 kB / 361.6 MB, free: 1.719 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002606/0.2442, allocations: 308 kB / 361.9 MB, free: 1.418 MB / 330.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.001299/0.2455, allocations: 0.5895 MB / 362.5 MB, free: 0.8164 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002895/0.2457, allocations: 179.8 kB / 362.7 MB, free: 0.6406 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009443/0.2467, allocations: 0.7463 MB / 363.4 MB, free: 15.88 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.948e-05/0.2467, allocations: 16 kB / 363.4 MB, free: 15.87 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.364e-06/0.2467, allocations: 4 kB / 363.4 MB, free: 15.86 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.728e-06/0.2467, allocations: 3.984 kB / 363.4 MB, free: 15.86 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004502/0.2512, allocations: 3.351 MB / 366.8 MB, free: 12.87 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.917e-06/0.2512, allocations: 11.94 kB / 366.8 MB, free: 12.86 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005136/0.2517, allocations: 240.5 kB / 367 MB, free: 12.62 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003696/0.2521, allocations: 261.6 kB / 367.3 MB, free: 12.37 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005389/0.2527, allocations: 288 kB / 367.6 MB, free: 12.08 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.667e-05/0.2527, allocations: 36 kB / 367.6 MB, free: 12.05 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001114/0.2538, allocations: 1.703 MB / 369.3 MB, free: 10.27 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.304e-06/0.2538, allocations: 11.94 kB / 369.3 MB, free: 10.26 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001465/0.2553, allocations: 1.662 MB / 371 MB, free: 8.516 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002554/0.2556, allocations: 32 kB / 371 MB, free: 8.484 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005003/0.2561, allocations: 35.98 kB / 371 MB, free: 8.449 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001109/0.2562, allocations: 100.3 kB / 371.1 MB, free: 8.348 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.528e-05/0.2562, allocations: 36 kB / 371.2 MB, free: 8.312 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0009581/0.2572, allocations: 0.9817 MB / 372.2 MB, free: 7.449 MB / 346.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2572, allocations: 3.938 kB / 372.2 MB, free: 7.445 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002939/0.2601, allocations: 0.8566 MB / 373 MB, free: 6.59 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.0003304/0.2605, allocations: 170.3 kB / 373.2 MB, free: 6.414 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002999/0.2635, allocations: 2.31 MB / 375.5 MB, free: 4.125 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001775/0.2636, allocations: 100.1 kB / 375.6 MB, free: 4.012 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005217/0.2642, allocations: 499.1 kB / 376.1 MB, free: 3.512 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001837/0.266, allocations: 0.697 MB / 376.8 MB, free: 2.824 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01045/0.2764, allocations: 6.505 MB / 383.3 MB, free: 12.16 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001001/0.2774, allocations: 1.029 MB / 384.3 MB, free: 11.11 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.001258/0.2787, allocations: 452.1 kB / 384.7 MB, free: 10.66 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006227/0.2793, allocations: 473.2 kB / 385.2 MB, free: 10.2 MB / 362.7 MB Notification: Performance of SimCode: time 1.673e-06/0.2793, allocations: 4 kB / 385.2 MB, free: 10.2 MB / 362.7 MB Notification: Performance of Templates: time 0.0408/0.3201, allocations: 24.07 MB / 409.3 MB, free: 2.406 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.5376278962939978]