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.001466/0.001466, allocations: 83.58 kB / 21.19 MB, free: 3.383 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.001766/0.001766, allocations: 161 kB / 24.56 MB, free: 16 kB / 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.9467/0.9467, allocations: 177.1 MB / 205 MB, free: 5.613 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.623e-06/1.623e-06, allocations: 0 / 273 MB, free: 1.52 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.149e-05/2.311e-05, allocations: 2.312 kB / 273 MB, free: 1.516 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.01914/0.01916, allocations: 10.02 MB / 283 MB, free: 7.449 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.009097/0.02826, allocations: 3.812 MB / 286.8 MB, free: 3.625 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009059/0.02916, allocations: 63.69 kB / 286.9 MB, free: 3.562 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002596/0.03176, allocations: 2.227 MB / 289.1 MB, free: 1.328 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.1141/0.1459, allocations: 1.715 MB / 290.8 MB, free: 14.2 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001779/0.1477, allocations: 0.7426 MB / 291.6 MB, free: 14.2 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004702/0.1524, allocations: 3.768 MB / 295.3 MB, free: 13.72 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003481/0.1558, allocations: 2.533 MB / 297.9 MB, free: 13.47 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003647/0.1595, allocations: 1.978 MB / 299.9 MB, free: 13.32 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002409/0.1619, allocations: 1.859 MB / 301.7 MB, free: 13.05 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005634/0.1625, allocations: 260.3 kB / 302 MB, free: 13.05 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001598/0.1641, allocations: 1.047 MB / 303 MB, free: 12.93 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001013/0.1651, allocations: 1.663 MB / 304.7 MB, free: 12.26 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001125/0.1662, allocations: 1.04 MB / 305.7 MB, free: 11.81 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003787/0.17, allocations: 3.976 MB / 309.7 MB, free: 9.906 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.382e-06/0.17, allocations: 0 / 309.7 MB, free: 9.906 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.17, allocations: 0 / 309.7 MB, free: 9.906 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.000101/0.1701, allocations: 0 / 309.7 MB, free: 9.906 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.005251/0.1753, allocations: 4.472 MB / 314.2 MB, free: 6.348 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.224e-05/0.1754, allocations: 8.031 kB / 314.2 MB, free: 6.34 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003832/0.1792, allocations: 2.328 MB / 316.5 MB, free: 4.043 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001813/0.181, allocations: 1.705 MB / 318.2 MB, free: 2.453 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.932e-05/0.1811, allocations: 200.9 kB / 318.4 MB, free: 2.285 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002709/0.1814, allocations: 275.8 kB / 318.7 MB, free: 2.051 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009078/0.1905, allocations: 6.578 MB / 325.2 MB, free: 10.73 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001011/0.1906, allocations: 41.42 kB / 325.3 MB, free: 10.71 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002875/0.1908, allocations: 132.2 kB / 325.4 MB, free: 10.61 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001696/0.1925, allocations: 1.803 MB / 327.2 MB, free: 8.836 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00823/0.2008, allocations: 3.824 MB / 331 MB, free: 5.203 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02795/0.2287, allocations: 40.85 MB / 371.9 MB, free: 11.48 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004513/0.2332, allocations: 2.002 MB / 373.9 MB, free: 9.441 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007935/0.234, allocations: 0.546 MB / 374.4 MB, free: 8.883 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004796/0.2388, allocations: 3.809 MB / 378.3 MB, free: 5.078 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.469e-05/0.2389, allocations: 52.56 kB / 378.3 MB, free: 5.016 MB / 330.7 MB Notification: Performance of pre-optimization done (n=135): time 3.306e-06/0.2389, allocations: 0 / 378.3 MB, free: 5.016 MB / 330.7 MB Notification: Performance of matching and sorting (n=145): time 0.01439/0.2533, allocations: 8.199 MB / 386.5 MB, free: 12.78 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.6e-05/0.2533, allocations: 141.5 kB / 386.6 MB, free: 12.61 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003013/0.2563, allocations: 3.113 MB / 389.8 MB, free: 9.465 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.665e-05/0.2564, allocations: 45.7 kB / 389.8 MB, free: 9.414 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001692/0.2581, allocations: 3.078 MB / 392.9 MB, free: 6.352 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004228/0.2585, allocations: 0.6105 MB / 393.5 MB, free: 5.75 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009503/0.2595, allocations: 1.212 MB / 394.7 MB, free: 4.52 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001133/0.2596, allocations: 480.7 kB / 395.2 MB, free: 4.047 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009638/0.2605, allocations: 0.5692 MB / 395.7 MB, free: 3.473 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0037/0.2642, allocations: 5.878 MB / 401.6 MB, free: 11.17 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006168/0.2704, allocations: 7.118 MB / 408.7 MB, free: 1.621 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.587e-05/0.2705, allocations: 39.94 kB / 408.8 MB, free: 1.582 MB / 362.7 MB Notification: Performance of matching and sorting (n=736) (initialization): time 0.005997/0.2765, allocations: 4.871 MB / 413.6 MB, free: 12.71 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.122e-05/0.2766, allocations: 60 kB / 413.7 MB, free: 12.65 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.281e-05/0.2767, allocations: 132.8 kB / 413.8 MB, free: 12.52 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005711/0.2772, allocations: 310.2 kB / 414.1 MB, free: 12.22 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002313/0.2795, allocations: 1.31 MB / 415.4 MB, free: 10.91 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001688/0.2812, allocations: 2.528 MB / 418 MB, free: 8.27 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001924/0.2831, allocations: 351.5 kB / 418.3 MB, free: 7.926 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002617/0.2834, allocations: 351.9 kB / 418.7 MB, free: 7.582 MB / 378.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.0009275/0.2843, allocations: 0.6224 MB / 419.3 MB, free: 6.945 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002871/0.2846, allocations: 329.4 kB / 419.6 MB, free: 6.625 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001197/0.2858, allocations: 0.9382 MB / 420.5 MB, free: 5.672 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.962e-05/0.2858, allocations: 19.81 kB / 420.6 MB, free: 5.656 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.194e-06/0.2858, allocations: 4 kB / 420.6 MB, free: 5.652 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.228e-06/0.2859, allocations: 7.969 kB / 420.6 MB, free: 5.645 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00534/0.2912, allocations: 4.116 MB / 424.7 MB, free: 1.371 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.031e-05/0.2912, allocations: 8 kB / 424.7 MB, free: 1.363 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005202/0.2917, allocations: 232.5 kB / 424.9 MB, free: 1.137 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004005/0.2921, allocations: 156 kB / 425.1 MB, free: 0.9844 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.988e-05/0.2922, allocations: 32 kB / 425.1 MB, free: 0.9531 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001547/0.2937, allocations: 2.312 MB / 427.4 MB, free: 14.53 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.821e-06/0.2937, allocations: 11.97 kB / 427.4 MB, free: 14.52 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002567/0.2963, allocations: 2.161 MB / 429.6 MB, free: 12.21 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003713/0.2967, allocations: 266 kB / 429.9 MB, free: 11.95 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001819/0.2969, allocations: 39.92 kB / 429.9 MB, free: 11.91 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005635/0.2974, allocations: 94.38 kB / 430 MB, free: 11.82 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001272/0.2976, allocations: 100.4 kB / 430.1 MB, free: 11.72 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.871e-05/0.2976, allocations: 47.98 kB / 430.1 MB, free: 11.68 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001429/0.299, allocations: 1.305 MB / 431.4 MB, free: 10.37 MB / 394.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.299, allocations: 0 / 431.4 MB, free: 10.37 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002691/0.3017, allocations: 0.8514 MB / 432.3 MB, free: 9.52 MB / 394.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.0003076/0.302, allocations: 185.7 kB / 432.5 MB, free: 9.332 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003064/0.3051, allocations: 2.69 MB / 435.2 MB, free: 6.641 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.3051, allocations: 0 / 435.2 MB, free: 6.641 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005805/0.3057, allocations: 0.6417 MB / 435.8 MB, free: 5.977 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00102/0.3067, allocations: 334.9 kB / 436.1 MB, free: 5.656 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.113/0.4197, allocations: 6.478 MB / 442.6 MB, free: 129.9 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001066/0.4208, allocations: 1.033 MB / 443.6 MB, free: 129.7 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.002745/0.4235, allocations: 1.452 MB / 445.1 MB, free: 129.7 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003993/0.4239, allocations: 205.1 kB / 445.3 MB, free: 129.7 MB / 394.7 MB Notification: Performance of SimCode: time 2.104e-06/0.4239, allocations: 0 / 445.3 MB, free: 129.7 MB / 394.7 MB Notification: Performance of Templates: time 0.03504/0.459, allocations: 22.03 MB / 467.3 MB, free: 121 MB / 394.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: 3.8483043238520622]