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.001594/0.001594, allocations: 72.08 kB / 21.69 MB, free: 2.859 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.001084/0.001084, allocations: 144.3 kB / 24.97 MB, free: 9.34 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.9602/0.9602, 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.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.134e-06/2.134e-06, allocations: 3.984 kB / 268.1 MB, free: 6.695 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.427e-05/1.64e-05, allocations: 2.312 kB / 268.1 MB, free: 6.691 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.007578/0.007594, allocations: 10 MB / 278.1 MB, free: 12.64 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005788/0.01338, allocations: 3.796 MB / 281.9 MB, free: 8.828 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008182/0.0142, allocations: 63.75 kB / 282 MB, free: 8.766 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002521/0.01672, allocations: 2.227 MB / 284.2 MB, free: 6.531 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002585/0.01931, allocations: 1.753 MB / 285.9 MB, free: 4.77 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001037/0.02034, allocations: 0.7483 MB / 286.7 MB, free: 4.02 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002814/0.02316, allocations: 3.706 MB / 290.4 MB, free: 316 kB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1088/0.132, allocations: 2.543 MB / 292.9 MB, free: 15.12 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003032/0.135, allocations: 1.923 MB / 294.9 MB, free: 15.12 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002604/0.1376, allocations: 1.915 MB / 296.8 MB, free: 15.12 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006244/0.1382, allocations: 271.8 kB / 297 MB, free: 15.12 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001675/0.1399, allocations: 1.064 MB / 298.1 MB, free: 15.12 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001201/0.1411, allocations: 1.701 MB / 299.8 MB, free: 14.96 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001017/0.1421, allocations: 1.072 MB / 300.9 MB, free: 14.78 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003465/0.1456, allocations: 4.058 MB / 304.9 MB, free: 13.61 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.1456, allocations: 3.125 kB / 304.9 MB, free: 13.61 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.272e-06/0.1456, allocations: 0 / 304.9 MB, free: 13.61 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.659e-05/0.1456, allocations: 0 / 304.9 MB, free: 13.61 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.004743/0.1504, allocations: 4.501 MB / 309.4 MB, free: 11.06 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.485e-05/0.1504, allocations: 10.83 kB / 309.4 MB, free: 11.06 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005091/0.1555, allocations: 2.334 MB / 311.8 MB, free: 10.22 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001944/0.1574, allocations: 1.713 MB / 313.5 MB, free: 9.246 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001117/0.1575, allocations: 207.7 kB / 313.7 MB, free: 9.18 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003616/0.1579, allocations: 277.9 kB / 314 MB, free: 9.113 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008371/0.1663, allocations: 6.569 MB / 320.5 MB, free: 2.484 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.001e-05/0.1663, allocations: 40.86 kB / 320.6 MB, free: 2.465 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000296/0.1666, allocations: 135.6 kB / 320.7 MB, free: 2.363 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002032/0.1687, allocations: 1.853 MB / 322.6 MB, free: 0.543 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009063/0.1777, allocations: 3.918 MB / 326.5 MB, free: 12.81 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0248/0.2025, allocations: 40.79 MB / 367.3 MB, free: 3.207 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004597/0.2071, allocations: 2.173 MB / 369.4 MB, free: 1 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007854/0.2079, allocations: 0.6399 MB / 370.1 MB, free: 356 kB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005328/0.2132, allocations: 4.592 MB / 374.7 MB, free: 11.75 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.259e-05/0.2133, allocations: 49.67 kB / 374.7 MB, free: 11.7 MB / 330.7 MB Notification: Performance of pre-optimization done (n=150): time 3.386e-06/0.2133, allocations: 4 kB / 374.7 MB, free: 11.7 MB / 330.7 MB Notification: Performance of matching and sorting (n=166): time 0.02619/0.2395, allocations: 13.38 MB / 388.1 MB, free: 14.32 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003028/0.2398, allocations: 148.9 kB / 388.2 MB, free: 14.15 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002664/0.2424, allocations: 3.01 MB / 391.3 MB, free: 11.1 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 8.412e-05/0.2425, allocations: 53.7 kB / 391.3 MB, free: 11.04 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001335/0.2439, allocations: 2.994 MB / 394.3 MB, free: 8.062 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004253/0.2443, allocations: 0.6895 MB / 395 MB, free: 7.383 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001241/0.2455, allocations: 1.197 MB / 396.2 MB, free: 6.176 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.786e-05/0.2456, allocations: 476.8 kB / 396.7 MB, free: 5.707 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009745/0.2466, allocations: 0.6589 MB / 397.3 MB, free: 5.043 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00329/0.2499, allocations: 5.729 MB / 403 MB, free: 13.03 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005184/0.2551, allocations: 7.074 MB / 410.1 MB, free: 3.734 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.8e-05/0.2551, allocations: 36 kB / 410.2 MB, free: 3.699 MB / 362.7 MB Notification: Performance of matching and sorting (n=728) (initialization): time 0.007582/0.2627, allocations: 5.615 MB / 415.8 MB, free: 14.08 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.018e-05/0.2627, allocations: 64.06 kB / 415.8 MB, free: 14.02 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.159e-05/0.2628, allocations: 120 kB / 415.9 MB, free: 13.9 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002163/0.265, allocations: 0.9241 MB / 416.9 MB, free: 12.97 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002095/0.2671, allocations: 1.267 MB / 418.1 MB, free: 11.7 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004156/0.2713, allocations: 3.575 MB / 421.7 MB, free: 8.012 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002142/0.2734, allocations: 339.5 kB / 422 MB, free: 7.68 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002899/0.2737, allocations: 340 kB / 422.4 MB, free: 7.348 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 552 * 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 (685): * Single equations (assignments): 681 * 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 {(3,17,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001044/0.2747, allocations: 0.6186 MB / 423 MB, free: 6.715 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003512/0.2751, allocations: 326.1 kB / 423.3 MB, free: 6.395 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003173/0.2783, allocations: 1.968 MB / 425.3 MB, free: 4.41 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.817e-05/0.2783, allocations: 21.8 kB / 425.3 MB, free: 4.391 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.454e-06/0.2783, allocations: 4 kB / 425.3 MB, free: 4.387 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.059e-05/0.2783, allocations: 11.91 kB / 425.3 MB, free: 4.375 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1212/0.3995, allocations: 5.156 MB / 430.5 MB, free: 119.8 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.662e-05/0.3995, allocations: 4.75 kB / 430.5 MB, free: 119.8 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009045/0.4004, allocations: 242 kB / 430.7 MB, free: 119.8 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002107/0.4025, allocations: 0.7568 MB / 431.5 MB, free: 119.8 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001161/0.4026, allocations: 32.48 kB / 431.5 MB, free: 119.8 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003498/0.4061, allocations: 3.293 MB / 434.8 MB, free: 117.9 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.4061, allocations: 1.125 kB / 434.8 MB, free: 117.9 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004438/0.4105, allocations: 3.027 MB / 437.8 MB, free: 117.2 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000444/0.411, allocations: 261.2 kB / 438.1 MB, free: 117.2 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002174/0.4112, allocations: 24.75 kB / 438.1 MB, free: 117.2 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007064/0.4119, allocations: 119.1 kB / 438.2 MB, free: 117.2 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000187/0.4121, allocations: 96.27 kB / 438.3 MB, free: 117.2 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.674e-05/0.4122, allocations: 45.22 kB / 438.4 MB, free: 117.2 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001519/0.4137, allocations: 1.268 MB / 439.6 MB, free: 117 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.4e-07/0.4137, allocations: 1.094 kB / 439.6 MB, free: 117 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002855/0.4166, allocations: 0.9968 MB / 440.6 MB, free: 117 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (129): * Single equations (assignments): 125 * 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,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003346/0.4169, allocations: 186.8 kB / 440.8 MB, free: 117 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003455/0.4203, allocations: 3.007 MB / 443.8 MB, free: 116.4 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.4203, allocations: 0 / 443.8 MB, free: 116.4 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009118/0.4213, allocations: 0.8808 MB / 444.7 MB, free: 116.2 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001037/0.4223, allocations: 312.7 kB / 445 MB, free: 116.2 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007481/0.4298, allocations: 6.562 MB / 451.6 MB, free: 113.5 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007336/0.4305, allocations: 1.053 MB / 452.6 MB, free: 113.2 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001816/0.4323, allocations: 1.441 MB / 454.1 MB, free: 113.1 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003706/0.4327, allocations: 202.5 kB / 454.3 MB, free: 113.1 MB / 378.7 MB Notification: Performance of SimCode: time 1.202e-06/0.4327, allocations: 0 / 454.3 MB, free: 113.1 MB / 378.7 MB Notification: Performance of Templates: time 0.03433/0.467, allocations: 29.41 MB / 483.7 MB, free: 85.9 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.7955187461338937]