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.0008579/0.0008579, allocations: 84 kB / 21.43 MB, free: 3.129 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.003601/0.003601, allocations: 145.8 kB / 24.68 MB, free: 9.426 MB / 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.8195/0.8195, allocations: 173.4 MB / 201.2 MB, free: 9.434 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 1.362e-06/1.362e-06, allocations: 0 / 319.7 MB, free: 5.84 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.756e-05/1.893e-05, allocations: 2.281 kB / 319.7 MB, free: 5.836 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.007006/0.007025, allocations: 9.061 MB / 328.8 MB, free: 12.73 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004331/0.01136, allocations: 3.691 MB / 332.5 MB, free: 9.023 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005437/0.0119, allocations: 75.62 kB / 332.5 MB, free: 8.949 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00197/0.01387, allocations: 2.117 MB / 334.6 MB, free: 6.824 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001934/0.0158, allocations: 1.752 MB / 336.4 MB, free: 5.066 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008121/0.01662, allocations: 0.7249 MB / 337.1 MB, free: 4.34 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002725/0.01934, allocations: 3.718 MB / 340.8 MB, free: 0.6094 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001871/0.02121, allocations: 2.461 MB / 343.3 MB, free: 14.09 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001432/0.02265, allocations: 1.929 MB / 345.2 MB, free: 12.16 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0017/0.02434, allocations: 1.89 MB / 347.1 MB, free: 10.27 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002377/0.02458, allocations: 268 kB / 347.4 MB, free: 10 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001082/0.02566, allocations: 1.065 MB / 348.4 MB, free: 8.938 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008399/0.0265, allocations: 1.691 MB / 350.1 MB, free: 7.242 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006769/0.02718, allocations: 1.063 MB / 351.2 MB, free: 6.176 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003922/0.0311, allocations: 5.992 MB / 357.2 MB, free: 168 kB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.03111, allocations: 4 kB / 357.2 MB, free: 164 kB / 314.7 MB Notification: Performance of FrontEnd: time 2.394e-06/0.03111, allocations: 0 / 357.2 MB, free: 164 kB / 314.7 MB Notification: Performance of Transformations before backend: time 4.013e-05/0.03115, allocations: 0 / 357.2 MB, free: 164 kB / 314.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.004437/0.03559, allocations: 4.18 MB / 361.4 MB, free: 11.93 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.179e-05/0.03563, allocations: 8.922 kB / 361.4 MB, free: 11.92 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003314/0.03894, allocations: 1.909 MB / 363.3 MB, free: 10 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001963/0.0409, allocations: 1.822 MB / 365.1 MB, free: 8.145 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001035/0.04101, allocations: 213.1 kB / 365.3 MB, free: 7.934 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003071/0.04131, allocations: 267.8 kB / 365.6 MB, free: 7.672 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009778/0.05109, allocations: 10.04 MB / 375.6 MB, free: 12.94 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.916e-05/0.05115, allocations: 35.69 kB / 375.7 MB, free: 12.91 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002257/0.05138, allocations: 127.9 kB / 375.8 MB, free: 12.78 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001588/0.05297, allocations: 1.86 MB / 377.6 MB, free: 10.92 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01067/0.06363, allocations: 8.524 MB / 386.2 MB, free: 2.391 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0256/0.08923, allocations: 34.76 MB / 420.9 MB, free: 14.6 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00498/0.09421, allocations: 3.2 MB / 424.1 MB, free: 11.36 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001854/0.09607, allocations: 1.697 MB / 425.8 MB, free: 9.656 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006104/0.1022, allocations: 6.313 MB / 432.1 MB, free: 3.297 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.645e-05/0.1022, allocations: 47.56 kB / 432.2 MB, free: 3.242 MB / 394.7 MB Notification: Performance of pre-optimization done (n=150): time 3.196e-06/0.1022, allocations: 0 / 432.2 MB, free: 3.242 MB / 394.7 MB Notification: Performance of matching and sorting (n=166): time 0.02715/0.1294, allocations: 17.97 MB / 450.2 MB, free: 1.223 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.275e-05/0.1294, allocations: 149.5 kB / 450.3 MB, free: 1.043 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1353/0.2647, allocations: 3.304 MB / 453.6 MB, free: 121.1 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002787/0.265, allocations: 45.67 kB / 453.7 MB, free: 121 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007349/0.2657, allocations: 2.845 MB / 456.5 MB, free: 119.5 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003071/0.266, allocations: 0.6638 MB / 457.2 MB, free: 119 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007064/0.2667, allocations: 1.114 MB / 458.3 MB, free: 118.5 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.358e-05/0.2667, allocations: 308.6 kB / 458.6 MB, free: 118.2 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001494/0.2682, allocations: 1.944 MB / 460.5 MB, free: 117.6 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002051/0.2703, allocations: 5.378 MB / 465.9 MB, free: 112.3 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003752/0.274, allocations: 7.923 MB / 473.8 MB, free: 104.6 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.527e-05/0.2741, allocations: 36 kB / 473.9 MB, free: 104.5 MB / 410.7 MB Notification: Performance of matching and sorting (n=728) (initialization): time 0.006608/0.2807, allocations: 8.151 MB / 482 MB, free: 97.35 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.09e-05/0.2807, allocations: 56 kB / 482.1 MB, free: 97.3 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.752e-05/0.2808, allocations: 120 kB / 482.2 MB, free: 97.18 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001829/0.2826, allocations: 1.304 MB / 483.5 MB, free: 95.87 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001625/0.2842, allocations: 1.259 MB / 484.7 MB, free: 94.61 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004487/0.2887, allocations: 6.361 MB / 491.1 MB, free: 88.15 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001754/0.2905, allocations: 327.6 kB / 491.4 MB, free: 87.83 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002028/0.2907, allocations: 340 kB / 491.8 MB, free: 87.5 MB / 410.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.001443/0.2921, allocations: 1.811 MB / 493.6 MB, free: 85.68 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002107/0.2923, allocations: 286 kB / 493.8 MB, free: 85.4 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00329/0.2956, allocations: 3.319 MB / 497.2 MB, free: 82.06 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.193e-05/0.2956, allocations: 23.98 kB / 497.2 MB, free: 82.04 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.692e-06/0.2956, allocations: 4 kB / 497.2 MB, free: 82.03 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.416e-06/0.2956, allocations: 3.984 kB / 497.2 MB, free: 82.03 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006077/0.3017, allocations: 6.668 MB / 0.4921 GB, free: 75.36 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.22e-06/0.3017, allocations: 0 / 0.4921 GB, free: 75.36 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005155/0.3022, allocations: 235.7 kB / 0.4923 GB, free: 75.13 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001671/0.3039, allocations: 1.12 MB / 0.4934 GB, free: 74.01 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.053e-05/0.304, allocations: 24 kB / 0.4934 GB, free: 73.98 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004125/0.3081, allocations: 6.007 MB / 0.4993 GB, free: 67.88 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.472e-06/0.3081, allocations: 0 / 0.4993 GB, free: 67.88 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004487/0.3126, allocations: 5.678 MB / 0.5048 GB, free: 62.19 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002237/0.3128, allocations: 266 kB / 0.5051 GB, free: 61.93 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001613/0.313, allocations: 24 kB / 0.5051 GB, free: 61.9 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006324/0.3136, allocations: 126.5 kB / 0.5052 GB, free: 61.78 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001389/0.3137, allocations: 88.77 kB / 0.5053 GB, free: 61.69 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.307e-05/0.3138, allocations: 47.98 kB / 0.5053 GB, free: 61.64 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001252/0.315, allocations: 1.889 MB / 0.5072 GB, free: 59.75 MB / 410.7 MB Notification: Performance of sort global known variables: time 4e-08/0.315, allocations: 0 / 0.5072 GB, free: 59.75 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002233/0.3173, allocations: 0.9882 MB / 0.5081 GB, free: 58.77 MB / 410.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.0003094/0.3176, allocations: 195.3 kB / 0.5083 GB, free: 58.57 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003513/0.3211, allocations: 4.605 MB / 0.5128 GB, free: 53.99 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.3211, allocations: 0 / 0.5128 GB, free: 53.99 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001077/0.3222, allocations: 1.429 MB / 0.5142 GB, free: 52.54 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009634/0.3231, allocations: 300.1 kB / 0.5145 GB, free: 52.26 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006494/0.3296, allocations: 8.439 MB / 0.5228 GB, free: 43.78 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001341/0.331, allocations: 2.312 MB / 0.525 GB, free: 41.44 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003955/0.3314, allocations: 248.5 kB / 0.5252 GB, free: 41.2 MB / 410.7 MB Notification: Performance of SimCode: time 9.42e-07/0.3314, allocations: 0 / 0.5252 GB, free: 41.2 MB / 410.7 MB Notification: Performance of Templates: time 0.04081/0.3722, allocations: 66.84 MB / 0.5905 GB, free: 6.426 MB / 442.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=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: 7.944615166634321]