Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001051/0.001051, allocations: 87.67 kB / 21.19 MB, free: 3.367 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009334/0.0009334, allocations: 156.5 kB / 24.55 MB, free: 12 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9913/0.9913, allocations: 177 MB / 204.8 MB, free: 5.598 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.173e-06/1.173e-06, allocations: 0 / 272.9 MB, free: 1.461 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.396e-05/1.513e-05, allocations: 9.203 kB / 272.9 MB, free: 1.453 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.008592/0.008607, allocations: 10.03 MB / 282.9 MB, free: 7.379 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005227/0.01383, allocations: 3.804 MB / 286.8 MB, free: 3.562 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005376/0.01437, allocations: 63.75 kB / 286.8 MB, free: 3.5 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002504/0.01688, allocations: 2.231 MB / 289 MB, free: 1.262 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.1334/0.1503, allocations: 1.715 MB / 290.8 MB, free: 14.76 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001615/0.1519, allocations: 0.744 MB / 291.5 MB, free: 14.76 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004345/0.1563, allocations: 3.764 MB / 295.3 MB, free: 14.28 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003018/0.1593, allocations: 2.537 MB / 297.8 MB, free: 14.03 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002793/0.1621, allocations: 1.917 MB / 299.7 MB, free: 13.59 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002319/0.1644, allocations: 1.915 MB / 301.6 MB, free: 13.25 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005921/0.165, allocations: 266.1 kB / 301.9 MB, free: 13.25 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001459/0.1664, allocations: 1.051 MB / 302.9 MB, free: 13.12 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009442/0.1674, allocations: 1.68 MB / 304.6 MB, free: 12.45 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001011/0.1684, allocations: 1.056 MB / 305.7 MB, free: 11.99 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003194/0.1716, allocations: 3.998 MB / 309.7 MB, free: 9.984 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.487e-06/0.1716, allocations: 3.938 kB / 309.7 MB, free: 9.98 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.733e-06/0.1716, allocations: 0 / 309.7 MB, free: 9.98 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001623/0.1717, allocations: 3.984 kB / 309.7 MB, free: 9.977 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.004864/0.1766, allocations: 4.488 MB / 314.2 MB, free: 6.297 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.093e-05/0.1767, allocations: 15.98 kB / 314.2 MB, free: 6.281 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003617/0.1803, allocations: 2.332 MB / 316.5 MB, free: 3.98 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001752/0.182, allocations: 1.704 MB / 318.2 MB, free: 2.383 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.002e-05/0.1821, allocations: 211.9 kB / 318.4 MB, free: 2.211 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002796/0.1824, allocations: 274.9 kB / 318.7 MB, free: 1.977 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007761/0.1902, allocations: 6.593 MB / 325.3 MB, free: 10.64 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.333e-05/0.1902, allocations: 35.55 kB / 325.3 MB, free: 10.63 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002402/0.1905, allocations: 142.1 kB / 325.5 MB, free: 10.52 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00176/0.1922, allocations: 1.846 MB / 327.3 MB, free: 8.703 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006693/0.1989, allocations: 3.935 MB / 331.3 MB, free: 4.961 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02541/0.2243, allocations: 40.8 MB / 372.1 MB, free: 11.34 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00468/0.229, allocations: 2.198 MB / 374.2 MB, free: 9.113 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007976/0.2298, allocations: 0.627 MB / 374.9 MB, free: 8.473 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005467/0.2353, allocations: 4.592 MB / 379.5 MB, free: 3.883 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.616e-05/0.2353, allocations: 57.2 kB / 379.5 MB, free: 3.82 MB / 330.7 MB Notification: Performance of pre-optimization done (n=150): time 3.707e-06/0.2353, allocations: 4 kB / 379.5 MB, free: 3.816 MB / 330.7 MB Notification: Performance of matching and sorting (n=166): time 0.02597/0.2613, allocations: 13.4 MB / 392.9 MB, free: 6.418 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.509e-05/0.2613, allocations: 148.1 kB / 393.1 MB, free: 6.242 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002852/0.2642, allocations: 3.009 MB / 396.1 MB, free: 3.195 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 8.287e-05/0.2643, allocations: 49.7 kB / 396.1 MB, free: 3.141 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001599/0.2659, allocations: 2.995 MB / 399.1 MB, free: 164 kB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004463/0.2663, allocations: 0.6915 MB / 399.8 MB, free: 15.48 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001073/0.2674, allocations: 1.197 MB / 401 MB, free: 14.27 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001021/0.2675, allocations: 476.8 kB / 401.5 MB, free: 13.8 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001014/0.2685, allocations: 0.6667 MB / 402.1 MB, free: 13.13 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003289/0.2718, allocations: 5.732 MB / 407.9 MB, free: 5.066 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004959/0.2768, allocations: 7.075 MB / 415 MB, free: 11.68 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.422e-05/0.2768, allocations: 36 kB / 415 MB, free: 11.65 MB / 378.7 MB Notification: Performance of matching and sorting (n=728) (initialization): time 0.007395/0.2842, allocations: 5.604 MB / 420.6 MB, free: 6.035 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.934e-05/0.2843, allocations: 56 kB / 420.6 MB, free: 5.98 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.973e-05/0.2843, allocations: 120 kB / 420.8 MB, free: 5.863 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002173/0.2865, allocations: 0.9322 MB / 421.7 MB, free: 4.93 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002158/0.2887, allocations: 1.267 MB / 423 MB, free: 3.66 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004236/0.2929, allocations: 3.584 MB / 426.5 MB, free: 15.96 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002111/0.295, allocations: 343.5 kB / 426.9 MB, free: 15.63 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003035/0.2953, allocations: 340 kB / 427.2 MB, free: 15.3 MB / 394.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.001105/0.2964, allocations: 0.6108 MB / 427.8 MB, free: 14.68 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003402/0.2968, allocations: 338 kB / 428.2 MB, free: 14.34 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003182/0.2999, allocations: 1.952 MB / 430.1 MB, free: 12.38 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.09e-05/0.3, allocations: 21.64 kB / 430.1 MB, free: 12.36 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.076e-05/0.3, allocations: 4 kB / 430.1 MB, free: 12.35 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.164e-05/0.3, allocations: 11.92 kB / 430.1 MB, free: 12.34 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008137/0.3081, allocations: 5.168 MB / 435.3 MB, free: 7.129 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.356e-06/0.3081, allocations: 4 kB / 435.3 MB, free: 7.125 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006323/0.3088, allocations: 239.7 kB / 435.5 MB, free: 6.891 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001903/0.3107, allocations: 0.763 MB / 436.3 MB, free: 6.125 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.668e-05/0.3108, allocations: 27.98 kB / 436.3 MB, free: 6.098 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003781/0.3145, allocations: 3.288 MB / 439.6 MB, free: 2.695 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.3145, allocations: 4 kB / 439.6 MB, free: 2.691 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1641/0.4786, allocations: 3.018 MB / 442.6 MB, free: 125.1 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008575/0.4795, allocations: 262.4 kB / 442.9 MB, free: 125.1 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003374/0.4798, allocations: 29.34 kB / 442.9 MB, free: 125.1 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008685/0.4807, allocations: 118.1 kB / 443 MB, free: 125.1 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002448/0.4809, allocations: 95.77 kB / 443.1 MB, free: 125.1 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.925e-05/0.481, allocations: 46.73 kB / 443.2 MB, free: 125.1 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001965/0.483, allocations: 1.265 MB / 444.5 MB, free: 125 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.483, allocations: 0.5938 kB / 444.5 MB, free: 125 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003593/0.4866, allocations: 0.9599 MB / 445.4 MB, free: 125 MB / 394.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.0004347/0.487, allocations: 182.4 kB / 445.6 MB, free: 124.9 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.004628/0.4916, allocations: 2.999 MB / 448.6 MB, free: 124.6 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.957e-06/0.4916, allocations: 0 / 448.6 MB, free: 124.6 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001219/0.4929, allocations: 0.8758 MB / 449.5 MB, free: 124.4 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001215/0.4941, allocations: 329 kB / 449.8 MB, free: 124.4 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01012/0.5042, allocations: 6.547 MB / 456.3 MB, free: 121.9 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009105/0.5051, allocations: 1.048 MB / 457.4 MB, free: 121.8 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.002117/0.5072, allocations: 1.436 MB / 458.8 MB, free: 121.7 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004448/0.5077, allocations: 213.3 kB / 459 MB, free: 121.6 MB / 394.7 MB Notification: Performance of SimCode: time 2.505e-06/0.5077, allocations: 0 / 459 MB, free: 121.6 MB / 394.7 MB Notification: Performance of Templates: time 0.03853/0.5462, allocations: 29.18 MB / 488.2 MB, free: 100.7 MB / 394.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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: 4.130643212702125]