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.001854/0.001854, allocations: 95.86 kB / 20.96 MB, free: 3.465 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.001828/0.001828, allocations: 153.1 kB / 24.27 MB, free: 168 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 1.536/1.536, allocations: 173.3 MB / 200.8 MB, free: 9.32 MB / 186.7 MB " [Timeout remaining time 178] 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 1.814e-06/1.814e-06, allocations: 0 / 267.3 MB, free: 6.727 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.32e-05/3.502e-05, allocations: 2.312 kB / 267.3 MB, free: 6.723 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.01558/0.01561, allocations: 9.975 MB / 277.3 MB, free: 12.7 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.009886/0.0255, allocations: 3.796 MB / 281.1 MB, free: 8.887 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001968/0.02747, allocations: 67.69 kB / 281.2 MB, free: 8.82 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005415/0.03288, allocations: 2.223 MB / 283.4 MB, free: 6.59 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006078/0.03896, allocations: 1.753 MB / 285.1 MB, free: 4.828 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00237/0.04133, allocations: 0.7405 MB / 285.9 MB, free: 4.086 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.006345/0.04767, allocations: 3.715 MB / 289.6 MB, free: 376 kB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1301/0.1778, allocations: 2.546 MB / 292.1 MB, free: 15.07 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003069/0.1808, allocations: 1.925 MB / 294.1 MB, free: 15.07 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003043/0.1839, allocations: 1.919 MB / 296 MB, free: 15.07 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006699/0.1846, allocations: 269.2 kB / 296.3 MB, free: 15.07 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002224/0.1868, allocations: 1.063 MB / 297.3 MB, free: 15.07 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001475/0.1883, allocations: 1.699 MB / 299 MB, free: 14.93 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001272/0.1895, allocations: 1.071 MB / 300.1 MB, free: 14.75 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005818/0.1954, allocations: 6.011 MB / 306.1 MB, free: 12.88 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.519e-06/0.1954, allocations: 0 / 306.1 MB, free: 12.88 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.023e-06/0.1954, allocations: 3.531 kB / 306.1 MB, free: 12.88 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001265/0.1955, allocations: 3.938 kB / 306.1 MB, free: 12.87 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.00749/0.203, allocations: 4.898 MB / 311 MB, free: 9.578 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.408e-05/0.203, allocations: 10.77 kB / 311 MB, free: 9.578 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006629/0.2096, allocations: 2.335 MB / 313.3 MB, free: 8.441 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003852/0.2135, allocations: 1.714 MB / 315.1 MB, free: 7.465 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001481/0.2136, allocations: 201.9 kB / 315.3 MB, free: 7.402 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006002/0.2142, allocations: 281.8 kB / 315.5 MB, free: 7.332 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01405/0.2283, allocations: 6.955 MB / 322.5 MB, free: 15.73 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001098/0.2284, allocations: 34.8 kB / 322.5 MB, free: 15.71 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004391/0.2288, allocations: 133.8 kB / 322.7 MB, free: 15.62 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004015/0.2329, allocations: 1.865 MB / 324.5 MB, free: 13.79 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.015/0.2479, allocations: 4.234 MB / 328.8 MB, free: 9.73 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06137/0.3092, allocations: 43.77 MB / 372.5 MB, free: 13.13 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009485/0.3187, allocations: 2.223 MB / 374.7 MB, free: 10.87 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001703/0.3204, allocations: 0.6575 MB / 375.4 MB, free: 10.2 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01189/0.3323, allocations: 4.684 MB / 380.1 MB, free: 5.516 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.715e-05/0.3324, allocations: 50.39 kB / 380.1 MB, free: 5.457 MB / 330.7 MB Notification: Performance of pre-optimization done (n=150): time 5.76e-06/0.3324, allocations: 0 / 380.1 MB, free: 5.457 MB / 330.7 MB Notification: Performance of matching and sorting (n=166): time 0.05299/0.3854, allocations: 13.62 MB / 393.8 MB, free: 7.844 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001183/0.3855, allocations: 149.5 kB / 393.9 MB, free: 7.664 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006516/0.392, allocations: 3.733 MB / 397.6 MB, free: 3.895 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004142/0.3924, allocations: 49.7 kB / 397.7 MB, free: 3.84 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003361/0.3958, allocations: 3.154 MB / 400.8 MB, free: 0.6992 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001293/0.3971, allocations: 0.7314 MB / 401.6 MB, free: 15.98 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002565/0.3997, allocations: 1.414 MB / 403 MB, free: 14.55 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002589/0.3999, allocations: 476.8 kB / 403.4 MB, free: 14.09 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002007/0.4019, allocations: 0.737 MB / 404.2 MB, free: 13.34 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007459/0.4094, allocations: 5.982 MB / 410.2 MB, free: 5.074 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01055/0.4199, allocations: 7.405 MB / 417.6 MB, free: 11.45 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001373/0.4201, allocations: 36 kB / 417.6 MB, free: 11.41 MB / 378.7 MB Notification: Performance of matching and sorting (n=728) (initialization): time 0.01461/0.4347, allocations: 5.778 MB / 423.4 MB, free: 5.625 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.281e-05/0.4348, allocations: 56 kB / 423.4 MB, free: 5.57 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001427/0.4349, allocations: 127.6 kB / 423.6 MB, free: 5.449 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00421/0.4391, allocations: 0.9558 MB / 424.5 MB, free: 4.488 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004201/0.4433, allocations: 1.255 MB / 425.8 MB, free: 3.23 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1536/0.597, allocations: 3.779 MB / 429.6 MB, free: 100.7 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004547/0.6015, allocations: 337.2 kB / 429.9 MB, free: 100.7 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001071/0.6026, allocations: 341 kB / 430.2 MB, free: 100.7 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.001722/0.6043, allocations: 0.7018 MB / 430.9 MB, free: 100.5 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006552/0.605, allocations: 331.7 kB / 431.2 MB, free: 100.5 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006104/0.6111, allocations: 2.051 MB / 433.3 MB, free: 100.4 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.902e-05/0.6111, allocations: 17.38 kB / 433.3 MB, free: 100.4 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.363e-05/0.6111, allocations: 9.25 kB / 433.3 MB, free: 100.4 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.348e-05/0.6111, allocations: 8.344 kB / 433.3 MB, free: 100.4 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01388/0.625, allocations: 5.977 MB / 439.3 MB, free: 99.86 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.648e-05/0.625, allocations: 1.375 kB / 439.3 MB, free: 99.86 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001265/0.6263, allocations: 240.4 kB / 439.5 MB, free: 99.86 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00366/0.63, allocations: 0.7852 MB / 440.3 MB, free: 99.84 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002046/0.6302, allocations: 30.84 kB / 440.4 MB, free: 99.84 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005481/0.6356, allocations: 3.475 MB / 443.8 MB, free: 97.9 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.424e-06/0.6356, allocations: 3.375 kB / 443.8 MB, free: 97.9 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0104/0.646, allocations: 3.196 MB / 447 MB, free: 97.25 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001056/0.6471, allocations: 265.1 kB / 447.3 MB, free: 97.25 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000415/0.6475, allocations: 24.03 kB / 447.3 MB, free: 97.25 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001361/0.6489, allocations: 120.1 kB / 447.4 MB, free: 97.25 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002741/0.6491, allocations: 97.64 kB / 447.5 MB, free: 97.25 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001191/0.6493, allocations: 45.23 kB / 447.6 MB, free: 97.25 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002215/0.6515, allocations: 1.517 MB / 449.1 MB, free: 97.07 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.6515, allocations: 0 / 449.1 MB, free: 97.07 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.004245/0.6557, allocations: 0.9918 MB / 450.1 MB, free: 97.07 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.0004221/0.6561, allocations: 184.5 kB / 450.3 MB, free: 96.98 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.005654/0.6618, allocations: 3.324 MB / 453.6 MB, free: 96.71 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.568e-06/0.6618, allocations: 0 / 453.6 MB, free: 96.71 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001595/0.6634, allocations: 0.9555 MB / 454.5 MB, free: 96.52 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001906/0.6653, allocations: 318.1 kB / 454.9 MB, free: 96.5 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0097/0.675, allocations: 6.636 MB / 461.5 MB, free: 93.48 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001931/0.6769, allocations: 2.085 MB / 463.6 MB, free: 92.18 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.00277/0.6797, allocations: 1.442 MB / 465 MB, free: 90.98 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000523/0.6802, allocations: 210.2 kB / 465.2 MB, free: 90.78 MB / 378.7 MB Notification: Performance of SimCode: time 1.042e-06/0.6802, allocations: 0 / 465.2 MB, free: 90.78 MB / 378.7 MB Notification: Performance of Templates: time 0.0471/0.7273, allocations: 29.4 MB / 494.6 MB, free: 61.89 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 6.311311563011259]