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.001795/0.001795, allocations: 81.11 kB / 20.68 MB, free: 1.027 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.002053/0.002053, allocations: 145.7 kB / 23.94 MB, free: 4.164 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.431/1.431, allocations: 173.4 MB / 200.4 MB, free: 12.88 MB / 190.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 1.213e-06/1.213e-06, allocations: 0 / 318.9 MB, free: 3.547 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.912e-05/2.033e-05, allocations: 2.281 kB / 318.9 MB, free: 3.543 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.01017/0.01019, allocations: 9.053 MB / 328 MB, free: 13.66 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009272/0.01946, allocations: 3.691 MB / 331.7 MB, free: 11.32 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001869/0.02133, allocations: 64.97 kB / 331.7 MB, free: 11.3 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00467/0.026, allocations: 2.135 MB / 333.9 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004671/0.03067, allocations: 1.748 MB / 335.6 MB, free: 9.023 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001715/0.03238, allocations: 0.7316 MB / 336.4 MB, free: 8.52 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005061/0.03744, allocations: 3.707 MB / 340.1 MB, free: 6.504 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003443/0.04089, allocations: 2.472 MB / 342.5 MB, free: 3.977 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003073/0.04396, allocations: 1.921 MB / 344.5 MB, free: 2.051 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002839/0.0468, allocations: 1.898 MB / 346.4 MB, free: 152 kB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005063/0.04731, allocations: 268 kB / 346.6 MB, free: 15.88 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002131/0.04944, allocations: 1.065 MB / 347.7 MB, free: 14.82 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001703/0.05114, allocations: 1.687 MB / 349.4 MB, free: 13.13 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001472/0.05261, allocations: 1.071 MB / 350.4 MB, free: 12.05 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007262/0.05987, allocations: 5.992 MB / 356.4 MB, free: 6.043 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/0.05988, allocations: 0 / 356.4 MB, free: 6.043 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.115e-06/0.05988, allocations: 3.984 kB / 356.4 MB, free: 6.039 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.916e-05/0.05997, allocations: 0 / 356.4 MB, free: 6.039 MB / 318.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.008556/0.06853, allocations: 4.161 MB / 360.6 MB, free: 1.824 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.116e-05/0.06857, allocations: 16.92 kB / 360.6 MB, free: 1.809 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007526/0.07609, allocations: 1.968 MB / 362.6 MB, free: 15.83 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003723/0.07982, allocations: 1.834 MB / 364.4 MB, free: 13.96 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001896/0.08001, allocations: 213.1 kB / 364.6 MB, free: 13.75 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005609/0.08057, allocations: 267.8 kB / 364.9 MB, free: 13.49 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02078/0.1013, allocations: 10.03 MB / 374.9 MB, free: 2.773 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001031/0.1015, allocations: 35.69 kB / 375 MB, free: 2.738 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003992/0.1018, allocations: 135.9 kB / 375.1 MB, free: 2.605 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003488/0.1053, allocations: 1.856 MB / 376.9 MB, free: 0.75 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01963/0.125, allocations: 8.512 MB / 385.5 MB, free: 8.23 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04605/0.171, allocations: 34.75 MB / 420.2 MB, free: 4.457 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01013/0.1812, allocations: 3.196 MB / 423.4 MB, free: 1.223 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002673/0.1838, allocations: 1.693 MB / 425.1 MB, free: 15.52 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01108/0.1949, allocations: 6.293 MB / 431.4 MB, free: 9.18 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.62e-05/0.195, allocations: 51.5 kB / 431.4 MB, free: 9.121 MB / 398.1 MB Notification: Performance of pre-optimization done (n=150): time 4.128e-06/0.195, allocations: 0 / 431.4 MB, free: 9.121 MB / 398.1 MB Notification: Performance of matching and sorting (n=166): time 0.05824/0.2532, allocations: 17.96 MB / 449.4 MB, free: 7.109 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001153/0.2533, allocations: 145.5 kB / 449.5 MB, free: 6.934 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004994/0.2583, allocations: 3.306 MB / 452.8 MB, free: 3.605 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003351/0.2586, allocations: 49.7 kB / 452.9 MB, free: 3.551 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002294/0.2609, allocations: 2.844 MB / 455.7 MB, free: 0.6797 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000917/0.2619, allocations: 0.659 MB / 456.4 MB, free: 16 kB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001656/0.2635, allocations: 1.112 MB / 457.5 MB, free: 14.89 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001543/0.2637, allocations: 305.1 kB / 457.8 MB, free: 14.59 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003571/0.2672, allocations: 1.959 MB / 459.8 MB, free: 12.63 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006468/0.2737, allocations: 5.385 MB / 465.2 MB, free: 5.527 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1865/0.4602, allocations: 7.937 MB / 473.1 MB, free: 123.2 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001007/0.4603, allocations: 34.88 kB / 473.1 MB, free: 123.2 MB / 430.1 MB Notification: Performance of matching and sorting (n=728) (initialization): time 0.0152/0.4755, allocations: 8.164 MB / 481.3 MB, free: 120.8 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.432e-05/0.4756, allocations: 58.55 kB / 481.3 MB, free: 120.8 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001517/0.4758, allocations: 123.8 kB / 481.5 MB, free: 120.8 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004374/0.4802, allocations: 1.295 MB / 482.8 MB, free: 120.6 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004367/0.4845, allocations: 1.273 MB / 484 MB, free: 120.5 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00798/0.4925, allocations: 6.351 MB / 490.4 MB, free: 117.5 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004095/0.4966, allocations: 355.9 kB / 490.7 MB, free: 117.5 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006059/0.4972, allocations: 341.8 kB / 491.1 MB, free: 117.4 MB / 430.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.002193/0.4994, allocations: 1.817 MB / 492.9 MB, free: 116.6 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004518/0.4999, allocations: 283.2 kB / 493.2 MB, free: 116.6 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006066/0.5059, allocations: 3.321 MB / 496.5 MB, free: 115.6 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.135e-05/0.5059, allocations: 19.66 kB / 496.5 MB, free: 115.6 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.765e-06/0.506, allocations: 3.906 kB / 496.5 MB, free: 115.6 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.384e-05/0.506, allocations: 7.5 kB / 496.5 MB, free: 115.6 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01055/0.5165, allocations: 6.658 MB / 0.4914 GB, free: 112 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.323e-06/0.5165, allocations: 4 kB / 0.4914 GB, free: 112 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001009/0.5175, allocations: 241.2 kB / 0.4916 GB, free: 111.8 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003473/0.521, allocations: 1.12 MB / 0.4927 GB, free: 110.6 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001097/0.5211, allocations: 26.58 kB / 0.4927 GB, free: 110.6 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006714/0.5278, allocations: 6.011 MB / 0.4986 GB, free: 104.6 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.5278, allocations: 0 / 0.4986 GB, free: 104.6 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008132/0.536, allocations: 5.669 MB / 0.5041 GB, free: 99.02 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000666/0.5366, allocations: 274.7 kB / 0.5044 GB, free: 98.84 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003192/0.537, allocations: 24 kB / 0.5044 GB, free: 98.82 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00141/0.5384, allocations: 130.2 kB / 0.5045 GB, free: 98.69 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002723/0.5386, allocations: 92.81 kB / 0.5046 GB, free: 98.6 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001155/0.5388, allocations: 43.98 kB / 0.5047 GB, free: 98.56 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.00221/0.541, allocations: 1.889 MB / 0.5065 GB, free: 96.67 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.541, allocations: 0 / 0.5065 GB, free: 96.67 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.004229/0.5452, allocations: 0.989 MB / 0.5075 GB, free: 95.69 MB / 430.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.0005697/0.5458, allocations: 193.5 kB / 0.5077 GB, free: 95.51 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.006813/0.5526, allocations: 4.609 MB / 0.5122 GB, free: 90.91 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/0.5526, allocations: 0 / 0.5122 GB, free: 90.91 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001803/0.5544, allocations: 1.439 MB / 0.5136 GB, free: 89.46 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00183/0.5562, allocations: 309.8 kB / 0.5139 GB, free: 89.18 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0111/0.5673, allocations: 8.044 MB / 0.5217 GB, free: 81.11 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00202/0.5693, allocations: 2.306 MB / 0.524 GB, free: 78.77 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.00299/0.5723, allocations: 1.666 MB / 0.5256 GB, free: 77.09 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005543/0.5729, allocations: 204.5 kB / 0.5258 GB, free: 76.89 MB / 430.1 MB Notification: Performance of SimCode: time 7.11e-07/0.5729, allocations: 0 / 0.5258 GB, free: 76.89 MB / 430.1 MB Notification: Performance of Templates: time 0.04809/0.621, allocations: 29.09 MB / 0.5542 GB, free: 48.24 MB / 430.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.1257963217794895]