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.001005/0.001005, allocations: 83.89 kB / 21.19 MB, free: 3.379 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.001066/0.001066, allocations: 145.1 kB / 24.54 MB, free: 24 kB / 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.9717/0.9717, allocations: 173.4 MB / 201.1 MB, free: 9.293 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.034e-06/2.034e-06, allocations: 0 / 268 MB, free: 6.387 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.84e-05/3.044e-05, allocations: 6.25 kB / 268 MB, free: 6.379 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.008668/0.008698, allocations: 10.04 MB / 278 MB, free: 12.29 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006874/0.01557, allocations: 3.808 MB / 281.8 MB, free: 8.469 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001402/0.01697, allocations: 63.75 kB / 281.9 MB, free: 8.406 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002627/0.0196, allocations: 2.238 MB / 284.2 MB, free: 6.16 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003236/0.02284, allocations: 1.753 MB / 285.9 MB, free: 4.398 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001193/0.02403, allocations: 0.7444 MB / 286.6 MB, free: 3.652 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1287/0.1527, allocations: 3.708 MB / 290.4 MB, free: 15.39 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004436/0.1571, allocations: 2.539 MB / 292.9 MB, free: 15.26 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003983/0.1611, allocations: 1.931 MB / 294.8 MB, free: 15.26 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003241/0.1644, allocations: 1.918 MB / 296.7 MB, free: 15.26 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001084/0.1654, allocations: 268.2 kB / 297 MB, free: 15.26 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002059/0.1675, allocations: 1.062 MB / 298.1 MB, free: 15.26 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001476/0.169, allocations: 1.707 MB / 299.8 MB, free: 15.1 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001804/0.1708, allocations: 1.067 MB / 300.8 MB, free: 14.9 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004755/0.1755, allocations: 4.061 MB / 304.9 MB, free: 13.51 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.149e-06/0.1755, allocations: 0 / 304.9 MB, free: 13.51 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.412e-06/0.1755, allocations: 0 / 304.9 MB, free: 13.51 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.000192/0.1757, allocations: 3.938 kB / 304.9 MB, free: 13.5 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.006073/0.1818, allocations: 4.507 MB / 309.4 MB, free: 10.95 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.284e-05/0.1818, allocations: 10.83 kB / 309.4 MB, free: 10.95 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004101/0.1859, allocations: 2.333 MB / 311.8 MB, free: 10.09 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002323/0.1883, allocations: 1.707 MB / 313.5 MB, free: 9.121 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.921e-05/0.1884, allocations: 201.5 kB / 313.7 MB, free: 9.059 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003025/0.1887, allocations: 281.7 kB / 313.9 MB, free: 8.988 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007945/0.1966, allocations: 6.569 MB / 320.5 MB, free: 2.242 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.848e-05/0.1967, allocations: 44.09 kB / 320.6 MB, free: 2.219 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002509/0.1969, allocations: 135 kB / 320.7 MB, free: 2.121 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001556/0.1985, allocations: 1.856 MB / 322.5 MB, free: 300 kB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00806/0.2066, allocations: 3.917 MB / 326.5 MB, free: 12.57 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03277/0.2393, allocations: 40.79 MB / 367.2 MB, free: 2.957 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01265/0.252, allocations: 2.163 MB / 369.4 MB, free: 0.7617 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004155/0.2561, allocations: 0.638 MB / 370 MB, free: 112 kB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01324/0.2694, allocations: 4.597 MB / 374.6 MB, free: 11.51 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.476e-05/0.2694, allocations: 54.38 kB / 374.7 MB, free: 11.45 MB / 330.7 MB Notification: Performance of pre-optimization done (n=150): time 5.42e-06/0.2694, allocations: 0 / 374.7 MB, free: 11.45 MB / 330.7 MB Notification: Performance of matching and sorting (n=166): time 0.04851/0.3179, allocations: 13.38 MB / 388.1 MB, free: 14.08 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.704e-05/0.318, allocations: 149.5 kB / 388.2 MB, free: 13.9 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003039/0.321, allocations: 3.014 MB / 391.2 MB, free: 10.85 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 9.715e-05/0.3211, allocations: 45.7 kB / 391.3 MB, free: 10.8 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00151/0.3227, allocations: 2.989 MB / 394.3 MB, free: 7.82 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000524/0.3232, allocations: 0.6954 MB / 395 MB, free: 7.137 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001065/0.3242, allocations: 1.197 MB / 396.2 MB, free: 5.93 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001057/0.3243, allocations: 479.1 kB / 396.6 MB, free: 5.461 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001112/0.3255, allocations: 0.6667 MB / 397.3 MB, free: 4.789 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003459/0.3289, allocations: 5.73 MB / 403 MB, free: 12.77 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005321/0.3342, allocations: 7.08 MB / 410.1 MB, free: 3.457 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.072e-05/0.3343, allocations: 36 kB / 410.1 MB, free: 3.422 MB / 362.7 MB Notification: Performance of matching and sorting (n=728) (initialization): time 0.00819/0.3425, allocations: 5.608 MB / 415.7 MB, free: 13.81 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.647e-05/0.3426, allocations: 56 kB / 415.8 MB, free: 13.75 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002555/0.3428, allocations: 127.9 kB / 415.9 MB, free: 13.63 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002384/0.3452, allocations: 0.9247 MB / 416.8 MB, free: 12.7 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002328/0.3475, allocations: 1.259 MB / 418.1 MB, free: 11.44 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004259/0.3518, allocations: 3.58 MB / 421.7 MB, free: 7.746 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002292/0.3541, allocations: 339.5 kB / 422 MB, free: 7.414 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000323/0.3544, allocations: 344 kB / 422.4 MB, free: 7.078 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.001089/0.3555, allocations: 0.6148 MB / 423 MB, free: 6.449 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006822/0.3562, allocations: 327.8 kB / 423.3 MB, free: 6.129 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003224/0.3594, allocations: 1.972 MB / 425.3 MB, free: 4.137 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.964e-05/0.3594, allocations: 16 kB / 425.3 MB, free: 4.121 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.867e-06/0.3594, allocations: 8 kB / 425.3 MB, free: 4.113 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.112e-05/0.3594, allocations: 15.91 kB / 425.3 MB, free: 4.098 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1299/0.4894, allocations: 5.143 MB / 430.4 MB, free: 114.5 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.826e-05/0.4894, allocations: 1.562 kB / 430.4 MB, free: 114.5 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008305/0.4902, allocations: 239 kB / 430.7 MB, free: 114.5 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00215/0.4924, allocations: 0.7573 MB / 431.4 MB, free: 114.5 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001384/0.4925, allocations: 28.58 kB / 431.5 MB, free: 114.5 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00366/0.4962, allocations: 3.303 MB / 434.8 MB, free: 112.6 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/0.4962, allocations: 10.47 kB / 434.8 MB, free: 112.6 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004934/0.5011, allocations: 3.016 MB / 437.8 MB, free: 111.9 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006667/0.5018, allocations: 265.6 kB / 438.1 MB, free: 111.9 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002249/0.502, allocations: 25.73 kB / 438.1 MB, free: 111.9 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007432/0.5027, allocations: 121.2 kB / 438.2 MB, free: 111.9 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001887/0.5029, allocations: 97.12 kB / 438.3 MB, free: 111.9 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.272e-05/0.503, allocations: 43.78 kB / 438.3 MB, free: 111.9 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001718/0.5047, allocations: 1.269 MB / 439.6 MB, free: 111.7 MB / 378.7 MB Notification: Performance of sort global known variables: time 4e-08/0.5047, allocations: 1.156 kB / 439.6 MB, free: 111.7 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003944/0.5087, allocations: 0.9916 MB / 440.6 MB, free: 111.7 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.0004488/0.5091, allocations: 194.7 kB / 440.8 MB, free: 111.7 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004239/0.5134, allocations: 3.002 MB / 443.8 MB, free: 111.4 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.597e-06/0.5134, allocations: 0 / 443.8 MB, free: 111.4 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001025/0.5144, allocations: 0.8755 MB / 444.7 MB, free: 111.2 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001189/0.5156, allocations: 312.8 kB / 445 MB, free: 111.2 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008183/0.5238, allocations: 6.564 MB / 451.5 MB, free: 108.6 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008413/0.5246, allocations: 1.043 MB / 452.6 MB, free: 108.5 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.00205/0.5267, allocations: 1.444 MB / 454 MB, free: 108.3 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004113/0.5271, allocations: 205.5 kB / 454.2 MB, free: 108.3 MB / 378.7 MB Notification: Performance of SimCode: time 1.723e-06/0.5271, allocations: 0 / 454.2 MB, free: 108.3 MB / 378.7 MB Notification: Performance of Templates: time 0.0363/0.5634, allocations: 29.42 MB / 483.6 MB, free: 82.09 MB / 378.7 MB " [Timeout remaining time 659] 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: 4.083617983851582]