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.0009814/0.0009814, allocations: 76.31 kB / 22.21 MB, free: 2.285 MB / 18.57 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.0009398/0.0009398, allocations: 174.4 kB / 25.61 MB, free: 8.883 MB / 18.57 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.9683/0.9683, allocations: 177.1 MB / 206.1 MB, free: 4.457 MB / 186.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.854e-06/1.854e-06, allocations: 0 / 274.2 MB, free: 4.379 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.981e-05/3.166e-05, allocations: 10.25 kB / 274.2 MB, free: 4.367 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.01182/0.01185, allocations: 9.713 MB / 283.9 MB, free: 10.62 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006792/0.01864, allocations: 3.764 MB / 287.7 MB, free: 6.855 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001265/0.0199, allocations: 63.69 kB / 287.8 MB, free: 6.793 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002467/0.02237, allocations: 2.196 MB / 289.9 MB, free: 4.59 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003259/0.02563, allocations: 1.722 MB / 291.7 MB, free: 2.859 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001243/0.02687, allocations: 0.7443 MB / 292.4 MB, free: 2.113 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004388/0.03126, allocations: 3.77 MB / 296.2 MB, free: 14.34 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002689/0.03395, allocations: 2.54 MB / 298.7 MB, free: 11.74 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003445/0.0374, allocations: 1.976 MB / 300.7 MB, free: 9.762 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002866/0.04026, allocations: 1.859 MB / 302.6 MB, free: 7.898 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007085/0.04097, allocations: 260 kB / 302.8 MB, free: 7.645 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001724/0.04269, allocations: 1.041 MB / 303.9 MB, free: 6.602 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001081/0.04378, allocations: 1.667 MB / 305.5 MB, free: 4.93 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001252/0.04503, allocations: 1.043 MB / 306.6 MB, free: 3.883 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004102/0.04913, allocations: 3.974 MB / 310.5 MB, free: 15.89 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.04913, allocations: 4 kB / 310.5 MB, free: 15.89 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.012e-06/0.04913, allocations: 0 / 310.5 MB, free: 15.89 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.000148/0.04928, allocations: 0 / 310.5 MB, free: 15.89 MB / 298.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.005774/0.05506, allocations: 4.342 MB / 314.9 MB, free: 11.49 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.148e-05/0.0551, allocations: 8.031 kB / 314.9 MB, free: 11.48 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003104/0.0582, allocations: 1.368 MB / 316.3 MB, free: 10.11 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001906/0.06011, allocations: 1.546 MB / 317.8 MB, free: 8.527 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001107/0.06022, allocations: 213.1 kB / 318 MB, free: 8.316 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003083/0.06053, allocations: 259.9 kB / 318.3 MB, free: 8.062 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006985/0.06751, allocations: 5.285 MB / 323.6 MB, free: 1.848 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.951e-05/0.0676, allocations: 39.62 kB / 323.6 MB, free: 1.809 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002596/0.06786, allocations: 135.9 kB / 323.7 MB, free: 1.676 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001465/0.06933, allocations: 1.583 MB / 325.3 MB, free: 96 kB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005719/0.07504, allocations: 2.431 MB / 327.7 MB, free: 13.65 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1636/0.2386, allocations: 40.35 MB / 368.1 MB, free: 46.62 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006293/0.2449, allocations: 1.831 MB / 369.9 MB, free: 46.48 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009929/0.2459, allocations: 488.2 kB / 370.4 MB, free: 46.44 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005433/0.2513, allocations: 3.63 MB / 374 MB, free: 45.44 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.205e-05/0.2513, allocations: 51.36 kB / 374.1 MB, free: 45.39 MB / 330.7 MB Notification: Performance of pre-optimization done (n=135): time 3.406e-06/0.2514, allocations: 0.7188 kB / 374.1 MB, free: 45.39 MB / 330.7 MB Notification: Performance of matching and sorting (n=145): time 0.01302/0.2644, allocations: 5.464 MB / 379.5 MB, free: 44.66 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.593e-05/0.2644, allocations: 142.9 kB / 379.7 MB, free: 44.5 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002734/0.2671, allocations: 3.112 MB / 382.8 MB, free: 43.98 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.84e-05/0.2672, allocations: 43.39 kB / 382.8 MB, free: 43.95 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001108/0.2683, allocations: 3.099 MB / 385.9 MB, free: 42.17 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000372/0.2687, allocations: 0.623 MB / 386.6 MB, free: 41.83 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008908/0.2696, allocations: 1.234 MB / 387.8 MB, free: 41.38 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.379e-05/0.2696, allocations: 476.8 kB / 388.3 MB, free: 40.91 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007953/0.2704, allocations: 0.5071 MB / 388.8 MB, free: 40.53 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001914/0.2723, allocations: 5.845 MB / 394.6 MB, free: 32.49 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003453/0.2758, allocations: 6.984 MB / 401.6 MB, free: 23.58 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.083e-05/0.2759, allocations: 40 kB / 401.6 MB, free: 23.54 MB / 330.7 MB Notification: Performance of matching and sorting (n=736) (initialization): time 0.00459/0.2805, allocations: 4.529 MB / 406.2 MB, free: 19 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.758e-05/0.2805, allocations: 74.36 kB / 406.2 MB, free: 18.93 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.048e-05/0.2806, allocations: 128 kB / 406.4 MB, free: 18.8 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004869/0.2811, allocations: 300.8 kB / 406.7 MB, free: 18.51 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001867/0.2829, allocations: 1.271 MB / 407.9 MB, free: 17.23 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001229/0.2842, allocations: 2.478 MB / 410.4 MB, free: 14.66 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002084/0.2862, allocations: 255.7 kB / 410.7 MB, free: 14.41 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002234/0.2865, allocations: 308 kB / 411 MB, free: 14.11 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.0008789/0.2874, allocations: 0.6263 MB / 411.6 MB, free: 13.47 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003364/0.2877, allocations: 326.1 kB / 411.9 MB, free: 13.15 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009753/0.2887, allocations: 0.8522 MB / 412.7 MB, free: 12.28 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.362e-05/0.2887, allocations: 16 kB / 412.8 MB, free: 12.26 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/0.2887, allocations: 4 kB / 412.8 MB, free: 12.26 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.398e-06/0.2887, allocations: 9.844 kB / 412.8 MB, free: 12.25 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005009/0.2937, allocations: 3.995 MB / 416.8 MB, free: 8.074 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.406e-06/0.2937, allocations: 12.94 kB / 416.8 MB, free: 8.062 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000458/0.2942, allocations: 204.5 kB / 417 MB, free: 7.863 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003738/0.2945, allocations: 146.7 kB / 417.1 MB, free: 7.719 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.347e-05/0.2946, allocations: 32 kB / 417.2 MB, free: 7.688 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001133/0.2957, allocations: 2.243 MB / 419.4 MB, free: 5.34 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.37e-06/0.2957, allocations: 11.94 kB / 419.4 MB, free: 5.328 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001643/0.2974, allocations: 2.024 MB / 421.4 MB, free: 3.16 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003518/0.2977, allocations: 269.9 kB / 421.7 MB, free: 2.895 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001978/0.2979, allocations: 27.94 kB / 421.7 MB, free: 2.867 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000527/0.2985, allocations: 35.98 kB / 421.8 MB, free: 2.832 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001067/0.2986, allocations: 108.3 kB / 421.9 MB, free: 2.727 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.525e-05/0.2986, allocations: 39.98 kB / 421.9 MB, free: 2.688 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0008653/0.2995, allocations: 1.211 MB / 423.1 MB, free: 1.477 MB / 330.7 MB Notification: Performance of sort global known variables: time 7e-08/0.2995, allocations: 0 / 423.1 MB, free: 1.477 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.003046/0.3025, allocations: 0.8553 MB / 424 MB, free: 0.6211 MB / 330.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.000343/0.3029, allocations: 179.9 kB / 424.2 MB, free: 448 kB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.003572/0.3064, allocations: 2.532 MB / 426.7 MB, free: 13.9 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5e-06/0.3064, allocations: 0 / 426.7 MB, free: 13.9 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006099/0.3071, allocations: 0.5966 MB / 427.3 MB, free: 13.29 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001335/0.3084, allocations: 329.5 kB / 427.6 MB, free: 12.98 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009506/0.3179, allocations: 6.449 MB / 434.1 MB, free: 6.352 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001127/0.319, allocations: 1.036 MB / 435.1 MB, free: 5.293 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.001276/0.3203, allocations: 441.8 kB / 435.5 MB, free: 4.867 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006948/0.321, allocations: 0.5098 MB / 436 MB, free: 4.355 MB / 346.7 MB Notification: Performance of SimCode: time 2.034e-06/0.321, allocations: 0 / 436 MB, free: 4.355 MB / 346.7 MB Notification: Performance of Templates: time 0.05807/0.3791, allocations: 24.22 MB / 460.2 MB, free: 12.63 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 -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: 4.007598731666803]