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.001869/0.001869, allocations: 109.5 kB / 20.43 MB, free: 1.449 MB / 14.72 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.002131/0.002131, allocations: 187.4 kB / 23.72 MB, free: 4.68 MB / 14.72 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.476/1.476, allocations: 225.6 MB / 252.5 MB, free: 13.02 MB / 206.1 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 0.0016/0.0016, allocations: 55.91 kB / 370.9 MB, free: 9.367 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2615/0.2631, allocations: 52.18 MB / 423.1 MB, free: 14.71 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.01262/0.2757, allocations: 10.38 MB / 433.5 MB, free: 4.285 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008527/0.2843, allocations: 3.921 MB / 437.4 MB, free: 360 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001962/0.2862, allocations: 63.75 kB / 437.5 MB, free: 296 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004941/0.2912, allocations: 2.106 MB / 439.6 MB, free: 14.18 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004813/0.296, allocations: 1.688 MB / 441.3 MB, free: 12.48 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001849/0.2978, allocations: 0.6939 MB / 442 MB, free: 11.79 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005316/0.3031, allocations: 3.365 MB / 445.3 MB, free: 8.418 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002763/0.3059, allocations: 2.029 MB / 447.4 MB, free: 6.34 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002244/0.3082, allocations: 1.277 MB / 448.6 MB, free: 5.059 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00291/0.3111, allocations: 1.908 MB / 450.5 MB, free: 3.145 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005828/0.3116, allocations: 260 kB / 450.8 MB, free: 2.891 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002257/0.3139, allocations: 1.17 MB / 452 MB, free: 1.719 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001637/0.3155, allocations: 1.609 MB / 453.6 MB, free: 108 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002019/0.3176, allocations: 1.864 MB / 455.4 MB, free: 14.23 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007062/0.3246, allocations: 5.965 MB / 461.4 MB, free: 8.238 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.3246, allocations: 0 / 461.4 MB, free: 8.238 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.3246, allocations: 0 / 461.4 MB, free: 8.238 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.439e-05/0.3247, allocations: 3.938 kB / 461.4 MB, free: 8.234 MB / 366.1 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.009739/0.3345, allocations: 4.153 MB / 465.6 MB, free: 4.027 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.896e-05/0.3345, allocations: 12.02 kB / 465.6 MB, free: 4.016 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01119/0.3457, allocations: 1.874 MB / 467.5 MB, free: 2.137 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006461/0.3522, allocations: 1.853 MB / 469.3 MB, free: 248 kB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002794/0.3524, allocations: 205.2 kB / 469.5 MB, free: 40 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001196/0.3536, allocations: 271.8 kB / 469.8 MB, free: 15.77 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0303/0.3839, allocations: 9.977 MB / 479.8 MB, free: 5.121 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001611/0.3841, allocations: 39.69 kB / 479.8 MB, free: 5.082 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006274/0.3847, allocations: 131.9 kB / 479.9 MB, free: 4.953 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005271/0.39, allocations: 1.856 MB / 481.8 MB, free: 3.098 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02883/0.4188, allocations: 8.544 MB / 490.3 MB, free: 10.54 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05382/0.4726, allocations: 36.66 MB / 0.5146 GB, free: 4.836 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01038/0.483, allocations: 3.079 MB / 0.5176 GB, free: 1.723 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002606/0.4856, allocations: 1.686 MB / 0.5193 GB, free: 28 kB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01173/0.4974, allocations: 6.636 MB / 0.5258 GB, free: 9.348 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.33e-05/0.4974, allocations: 51.56 kB / 0.5258 GB, free: 9.289 MB / 446.1 MB Notification: Performance of pre-optimization done (n=150): time 3.546e-06/0.4974, allocations: 0 / 0.5258 GB, free: 9.289 MB / 446.1 MB Notification: Performance of matching and sorting (n=166): time 0.2466/0.744, allocations: 17.37 MB / 0.5428 GB, free: 106.6 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.008e-05/0.7441, allocations: 141.3 kB / 0.5429 GB, free: 106.5 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003883/0.748, allocations: 3.481 MB / 0.5463 GB, free: 105.3 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000239/0.7482, allocations: 52.03 kB / 0.5464 GB, free: 105.2 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001136/0.7493, allocations: 2.853 MB / 0.5491 GB, free: 103.3 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004413/0.7498, allocations: 0.6736 MB / 0.5498 GB, free: 102.8 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001046/0.7508, allocations: 1.124 MB / 0.5509 GB, free: 102.2 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.951e-05/0.7509, allocations: 308.7 kB / 0.5512 GB, free: 101.9 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002348/0.7532, allocations: 1.95 MB / 0.5531 GB, free: 101.3 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003347/0.7566, allocations: 5.382 MB / 0.5584 GB, free: 95.8 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006258/0.7628, allocations: 7.935 MB / 0.5661 GB, free: 86.49 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.335e-05/0.7629, allocations: 36 kB / 0.5661 GB, free: 86.46 MB / 446.1 MB Notification: Performance of matching and sorting (n=728) (initialization): time 0.01258/0.7754, allocations: 8.174 MB / 0.5741 GB, free: 78.28 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.874e-05/0.7755, allocations: 59.12 kB / 0.5742 GB, free: 78.22 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.384e-05/0.7756, allocations: 120 kB / 0.5743 GB, free: 78.11 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003711/0.7793, allocations: 1.3 MB / 0.5756 GB, free: 76.8 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003352/0.7827, allocations: 1.259 MB / 0.5768 GB, free: 75.54 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007589/0.7902, allocations: 6.442 MB / 0.5831 GB, free: 68.98 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003922/0.7942, allocations: 295.7 kB / 0.5834 GB, free: 68.69 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005027/0.7947, allocations: 344.9 kB / 0.5837 GB, free: 68.36 MB / 446.1 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.002084/0.7968, allocations: 1.809 MB / 0.5855 GB, free: 66.54 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004392/0.7972, allocations: 317.8 kB / 0.5858 GB, free: 66.22 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006291/0.8035, allocations: 3.36 MB / 0.589 GB, free: 62.86 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.636e-05/0.8035, allocations: 20 kB / 0.5891 GB, free: 62.84 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.081e-05/0.8035, allocations: 4 kB / 0.5891 GB, free: 62.83 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.441e-05/0.8035, allocations: 7.969 kB / 0.5891 GB, free: 62.82 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01209/0.8156, allocations: 7.532 MB / 0.5964 GB, free: 55.25 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.189e-05/0.8156, allocations: 4 kB / 0.5964 GB, free: 55.25 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001055/0.8167, allocations: 243.6 kB / 0.5967 GB, free: 55.01 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003513/0.8202, allocations: 1.113 MB / 0.5977 GB, free: 53.89 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001494/0.8204, allocations: 31.55 kB / 0.5978 GB, free: 53.87 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007422/0.8278, allocations: 6.073 MB / 0.6037 GB, free: 47.7 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.8278, allocations: 0 / 0.6037 GB, free: 47.7 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008651/0.8364, allocations: 5.708 MB / 0.6093 GB, free: 41.96 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001126/0.8376, allocations: 290.2 kB / 0.6096 GB, free: 41.67 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000481/0.838, allocations: 28 kB / 0.6096 GB, free: 41.64 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00136/0.8394, allocations: 91.88 kB / 0.6097 GB, free: 41.55 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002411/0.8396, allocations: 92.81 kB / 0.6098 GB, free: 41.46 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001137/0.8397, allocations: 43.83 kB / 0.6098 GB, free: 41.43 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002746/0.8425, allocations: 2.154 MB / 0.6119 GB, free: 39.28 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.8425, allocations: 0 / 0.6119 GB, free: 39.28 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004629/0.8471, allocations: 0.9139 MB / 0.6128 GB, free: 38.37 MB / 446.1 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.000499/0.8476, allocations: 172 kB / 0.613 GB, free: 38.2 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00694/0.8546, allocations: 4.591 MB / 0.6174 GB, free: 33.62 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.563e-06/0.8546, allocations: 0 / 0.6174 GB, free: 33.62 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002128/0.8567, allocations: 1.435 MB / 0.6188 GB, free: 32.18 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002417/0.8591, allocations: 359.8 kB / 0.6192 GB, free: 31.83 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01364/0.8728, allocations: 8.191 MB / 0.6272 GB, free: 23.59 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002612/0.8754, allocations: 2.855 MB / 0.63 GB, free: 20.7 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003463/0.8788, allocations: 1.707 MB / 0.6316 GB, free: 18.99 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006563/0.8795, allocations: 211.4 kB / 0.6318 GB, free: 18.79 MB / 446.1 MB Notification: Performance of SimCode: time 1.233e-06/0.8795, allocations: 0 / 0.6318 GB, free: 18.79 MB / 446.1 MB Notification: Performance of Templates: time 0.06454/0.944, allocations: 35.39 MB / 0.6664 GB, free: 15.66 MB / 478.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1) [Timeout 480] 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.448555318638682]