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.0007562/0.0007562, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001104/0.00186, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 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.0006711/0.0006711, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009366/0.001608, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 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.8767/0.8767, allocations: 173.4 MB / 186 MB, free: 7.523 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1408/1.017, allocations: 52.49 MB / 238.5 MB, free: 7.629 MB / 234.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 1.333e-06/1.333e-06, allocations: 0 / 239.8 MB, free: 6.355 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.137e-05/1.27e-05, allocations: 2.312 kB / 239.8 MB, free: 6.352 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.01002/0.01003, allocations: 9.867 MB / 249.6 MB, free: 12.45 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.004349/0.01438, allocations: 3.938 MB / 253.6 MB, free: 8.52 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004566/0.01483, allocations: 63.69 kB / 253.6 MB, free: 8.457 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001825/0.01666, allocations: 2.126 MB / 255.7 MB, free: 6.328 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001701/0.01836, allocations: 1.707 MB / 257.5 MB, free: 4.617 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006763/0.01904, allocations: 0.7014 MB / 258.2 MB, free: 3.914 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.002023/0.02106, allocations: 3.583 MB / 261.7 MB, free: 332 kB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001421/0.02248, allocations: 2.33 MB / 264.1 MB, free: 13.93 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0013/0.02378, allocations: 2.067 MB / 266.1 MB, free: 11.86 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001247/0.02503, allocations: 1.757 MB / 267.9 MB, free: 10.09 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002444/0.02527, allocations: 260 kB / 268.1 MB, free: 9.84 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000998/0.02627, allocations: 1.084 MB / 269.2 MB, free: 8.754 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000827/0.0271, allocations: 1.512 MB / 270.7 MB, free: 7.238 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006747/0.02777, allocations: 0.8685 MB / 271.6 MB, free: 6.367 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002433/0.0302, allocations: 3.716 MB / 275.3 MB, free: 2.637 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.008e-05/0.03021, allocations: 4 kB / 275.3 MB, free: 2.633 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.082e-06/0.03021, allocations: 4 kB / 275.3 MB, free: 2.629 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.134e-05/0.03025, allocations: 0 / 275.3 MB, free: 2.629 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.003747/0.03399, allocations: 4.663 MB / 280 MB, free: 13.89 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.653e-05/0.03402, allocations: 8.031 kB / 280 MB, free: 13.89 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002227/0.03625, allocations: 1.019 MB / 281 MB, free: 12.87 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001309/0.03756, allocations: 1.429 MB / 282.5 MB, free: 11.41 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.406e-05/0.03765, allocations: 217.1 kB / 282.7 MB, free: 11.19 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002747/0.03792, allocations: 271.8 kB / 282.9 MB, free: 10.93 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004781/0.04271, allocations: 4.662 MB / 287.6 MB, free: 5.57 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.965e-05/0.04277, allocations: 39.69 kB / 287.6 MB, free: 5.531 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002027/0.04297, allocations: 127.9 kB / 287.8 MB, free: 5.406 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001201/0.04417, allocations: 1.505 MB / 289.3 MB, free: 3.902 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003829/0.048, allocations: 2.397 MB / 291.7 MB, free: 1.492 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01747/0.06547, allocations: 28.89 MB / 320.5 MB, free: 3.516 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00324/0.06871, allocations: 1.729 MB / 322.3 MB, free: 1.75 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004325/0.06914, allocations: 398.1 kB / 322.7 MB, free: 1.352 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003544/0.07269, allocations: 3.368 MB / 326 MB, free: 13.94 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.95e-05/0.07272, allocations: 51.16 kB / 326.1 MB, free: 13.88 MB / 330.7 MB Notification: Performance of pre-optimization done (n=135): time 2.645e-06/0.07272, allocations: 0 / 326.1 MB, free: 13.88 MB / 330.7 MB Notification: Performance of matching and sorting (n=145): time 0.009636/0.08236, allocations: 4.796 MB / 330.9 MB, free: 9.027 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.827e-05/0.0824, allocations: 149.5 kB / 331 MB, free: 8.852 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00172/0.08412, allocations: 2.786 MB / 333.8 MB, free: 6.039 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002999/0.08442, allocations: 45.7 kB / 333.9 MB, free: 5.988 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009697/0.08539, allocations: 2.798 MB / 336.7 MB, free: 3.16 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002745/0.08567, allocations: 0.6047 MB / 337.3 MB, free: 2.551 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007341/0.0864, allocations: 1.061 MB / 338.3 MB, free: 1.477 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.127e-05/0.08646, allocations: 301.1 kB / 338.6 MB, free: 1.18 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008541/0.08732, allocations: 0.6671 MB / 339.3 MB, free: 0.5039 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1033/0.1906, allocations: 4.129 MB / 343.4 MB, free: 65.84 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003702/0.1943, allocations: 5.725 MB / 349.1 MB, free: 61.15 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.062e-05/0.1944, allocations: 38.22 kB / 349.2 MB, free: 61.15 MB / 330.7 MB Notification: Performance of matching and sorting (n=736) (initialization): time 0.003901/0.1983, allocations: 3.857 MB / 353 MB, free: 60.68 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.387e-05/0.1983, allocations: 57.81 kB / 353.1 MB, free: 60.68 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.321e-05/0.1984, allocations: 135.6 kB / 353.2 MB, free: 60.68 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004943/0.1989, allocations: 307.9 kB / 353.5 MB, free: 60.66 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002026/0.2009, allocations: 1.411 MB / 354.9 MB, free: 60.54 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001104/0.202, allocations: 1.916 MB / 356.8 MB, free: 59.08 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001916/0.204, allocations: 249.4 kB / 357.1 MB, free: 59.08 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000304/0.2043, allocations: 304 kB / 357.4 MB, free: 59.08 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.0009638/0.2052, allocations: 0.5971 MB / 358 MB, free: 58.83 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002685/0.2055, allocations: 184 kB / 358.2 MB, free: 58.83 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001093/0.2066, allocations: 0.7508 MB / 358.9 MB, free: 58.73 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.72e-05/0.2066, allocations: 13.59 kB / 358.9 MB, free: 58.73 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.752e-06/0.2066, allocations: 3.25 kB / 358.9 MB, free: 58.73 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.083e-05/0.2066, allocations: 8.109 kB / 358.9 MB, free: 58.73 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004008/0.2106, allocations: 3.344 MB / 362.3 MB, free: 57.98 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.797e-05/0.2106, allocations: 21.3 kB / 362.3 MB, free: 57.98 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006242/0.2113, allocations: 234 kB / 362.5 MB, free: 57.96 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002396/0.2115, allocations: 263 kB / 362.8 MB, free: 57.96 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005541/0.2121, allocations: 291.2 kB / 363.1 MB, free: 57.93 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.215e-05/0.2121, allocations: 34.06 kB / 363.1 MB, free: 57.93 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001028/0.2132, allocations: 1.69 MB / 364.8 MB, free: 56.53 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.33e-06/0.2132, allocations: 7.406 kB / 364.8 MB, free: 56.53 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001436/0.2146, allocations: 1.684 MB / 366.5 MB, free: 55.66 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002152/0.2148, allocations: 29.33 kB / 366.5 MB, free: 55.66 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006875/0.2155, allocations: 37.12 kB / 366.5 MB, free: 55.66 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001292/0.2156, allocations: 103.2 kB / 366.6 MB, free: 55.64 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.279e-05/0.2157, allocations: 38.28 kB / 366.7 MB, free: 55.64 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0007918/0.2165, allocations: 0.9855 MB / 367.7 MB, free: 55.55 MB / 330.7 MB Notification: Performance of sort global known variables: time 9e-08/0.2165, allocations: 0 / 367.7 MB, free: 55.55 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002849/0.2193, allocations: 0.8736 MB / 368.5 MB, free: 55.55 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.0003049/0.2196, allocations: 189.7 kB / 368.7 MB, free: 55.47 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002366/0.222, allocations: 2.41 MB / 371.1 MB, free: 54.07 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001691/0.2222, allocations: 104.2 kB / 371.2 MB, free: 53.96 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005834/0.2228, allocations: 0.5658 MB / 371.8 MB, free: 53.5 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001981/0.2247, allocations: 2.338 MB / 374.1 MB, free: 51.28 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008594/0.2333, allocations: 6.501 MB / 380.6 MB, free: 45.78 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008558/0.2342, allocations: 1.033 MB / 381.7 MB, free: 45.2 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.001065/0.2353, allocations: 444.9 kB / 382.1 MB, free: 44.88 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005997/0.2358, allocations: 466.1 kB / 382.6 MB, free: 44.45 MB / 330.7 MB Notification: Performance of SimCode: time 8.11e-07/0.2359, allocations: 0 / 382.6 MB, free: 44.45 MB / 330.7 MB Notification: Performance of Templates: time 0.03207/0.2679, allocations: 22.6 MB / 405.2 MB, free: 22.09 MB / 330.7 MB " [Timeout remaining time 660] 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 -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.909982609562576]