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.001461/0.001461, allocations: 88.62 kB / 20.96 MB, free: 3.477 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.001496/0.001496, allocations: 149.4 kB / 24.26 MB, free: 184 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.458/1.458, allocations: 173.4 MB / 200.8 MB, free: 9.309 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 2.114e-06/2.114e-06, allocations: 0 / 267.3 MB, free: 6.711 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.039e-05/3.25e-05, allocations: 2.312 kB / 267.3 MB, free: 6.707 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.01897/0.019, allocations: 9.067 MB / 276.4 MB, free: 13.59 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01254/0.03154, allocations: 3.683 MB / 280.1 MB, free: 9.895 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002073/0.03361, allocations: 63.69 kB / 280.1 MB, free: 9.832 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006907/0.04052, allocations: 2.16 MB / 282.3 MB, free: 7.664 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006642/0.04716, allocations: 1.753 MB / 284.1 MB, free: 5.902 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002785/0.04994, allocations: 0.7444 MB / 284.8 MB, free: 5.156 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.007906/0.05785, allocations: 3.723 MB / 288.5 MB, free: 1.43 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1449/0.2028, allocations: 2.536 MB / 291.1 MB, free: 15.29 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004376/0.2071, allocations: 1.922 MB / 293 MB, free: 15.29 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004468/0.2116, allocations: 1.895 MB / 294.9 MB, free: 15.29 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009482/0.2126, allocations: 265.8 kB / 295.1 MB, free: 15.29 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003229/0.2158, allocations: 1.061 MB / 296.2 MB, free: 15.29 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0025/0.2183, allocations: 1.687 MB / 297.9 MB, free: 15.21 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002178/0.2205, allocations: 1.069 MB / 299 MB, free: 15.03 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009543/0.23, allocations: 6.009 MB / 305 MB, free: 13.67 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.544e-06/0.23, allocations: 4 kB / 305 MB, free: 13.67 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.823e-06/0.23, allocations: 0 / 305 MB, free: 13.67 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0002058/0.2302, allocations: 0 / 305 MB, free: 13.67 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.0121/0.2423, allocations: 4.161 MB / 309.1 MB, free: 10.84 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.608e-05/0.2424, allocations: 10.58 kB / 309.1 MB, free: 10.84 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01064/0.253, allocations: 2.417 MB / 311.6 MB, free: 9.691 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004526/0.2575, allocations: 1.845 MB / 313.4 MB, free: 8.691 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001561/0.2577, allocations: 199.3 kB / 313.6 MB, free: 8.629 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009005/0.2586, allocations: 277.2 kB / 313.9 MB, free: 8.562 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01568/0.2743, allocations: 10.03 MB / 323.9 MB, free: 14.42 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001014/0.2744, allocations: 37.86 kB / 323.9 MB, free: 14.4 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003998/0.2748, allocations: 130.1 kB / 324.1 MB, free: 14.3 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003504/0.2783, allocations: 1.861 MB / 325.9 MB, free: 12.48 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01937/0.2976, allocations: 8.506 MB / 334.4 MB, free: 4.137 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06439/0.362, allocations: 34.82 MB / 369.3 MB, free: 0.7852 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01616/0.3782, allocations: 3.214 MB / 372.5 MB, free: 13.55 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004288/0.3825, allocations: 1.681 MB / 374.1 MB, free: 11.86 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01962/0.4021, allocations: 6.307 MB / 380.5 MB, free: 5.547 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.407e-05/0.4022, allocations: 55.41 kB / 380.5 MB, free: 5.488 MB / 330.7 MB Notification: Performance of pre-optimization done (n=150): time 6.763e-06/0.4022, allocations: 0 / 380.5 MB, free: 5.488 MB / 330.7 MB Notification: Performance of matching and sorting (n=166): time 0.06716/0.4694, allocations: 18.02 MB / 398.5 MB, free: 3.469 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001132/0.4695, allocations: 144.8 kB / 398.7 MB, free: 3.297 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005063/0.4745, allocations: 3.302 MB / 402 MB, free: 15.97 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001964/0.4747, allocations: 45.7 kB / 402 MB, free: 15.92 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002597/0.4773, allocations: 2.857 MB / 404.9 MB, free: 13.08 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009027/0.4782, allocations: 0.6622 MB / 405.5 MB, free: 12.43 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001752/0.48, allocations: 1.106 MB / 406.6 MB, free: 11.31 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001672/0.4801, allocations: 306.6 kB / 406.9 MB, free: 11.01 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003509/0.4837, allocations: 1.955 MB / 408.9 MB, free: 9.051 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007407/0.4911, allocations: 5.384 MB / 414.3 MB, free: 2.012 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0121/0.5032, allocations: 7.941 MB / 422.2 MB, free: 8.48 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.145e-05/0.5033, allocations: 39.5 kB / 422.3 MB, free: 8.445 MB / 378.7 MB Notification: Performance of matching and sorting (n=728) (initialization): time 0.1314/0.6347, allocations: 8.455 MB / 430.7 MB, free: 119.8 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001095/0.6348, allocations: 55 kB / 430.8 MB, free: 119.8 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002318/0.635, allocations: 121.1 kB / 430.9 MB, free: 119.8 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004724/0.6398, allocations: 1.39 MB / 432.3 MB, free: 119.8 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004403/0.6442, allocations: 1.271 MB / 433.5 MB, free: 119.8 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009342/0.6535, allocations: 6.377 MB / 439.9 MB, free: 118 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004706/0.6582, allocations: 353.8 kB / 440.3 MB, free: 117.9 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008274/0.659, allocations: 343.1 kB / 440.6 MB, free: 117.9 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.00259/0.6616, allocations: 1.809 MB / 442.4 MB, free: 117.2 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006323/0.6623, allocations: 331.8 kB / 442.7 MB, free: 117.1 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00632/0.6686, allocations: 3.317 MB / 446.1 MB, free: 116.1 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-05/0.6686, allocations: 24.61 kB / 446.1 MB, free: 116.1 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.298e-05/0.6686, allocations: 6.969 kB / 446.1 MB, free: 116.1 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.17e-05/0.6686, allocations: 15.17 kB / 446.1 MB, free: 116.1 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01177/0.6804, allocations: 6.646 MB / 452.7 MB, free: 113.8 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.575e-05/0.6804, allocations: 3.938 kB / 452.8 MB, free: 113.8 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001142/0.6816, allocations: 244.8 kB / 453 MB, free: 113.8 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003765/0.6853, allocations: 1.207 MB / 454.2 MB, free: 113.6 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002257/0.6856, allocations: 31.47 kB / 454.2 MB, free: 113.6 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007399/0.693, allocations: 6.019 MB / 460.2 MB, free: 110.8 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.016e-06/0.693, allocations: 3.938 kB / 460.3 MB, free: 110.8 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008257/0.7012, allocations: 5.721 MB / 466 MB, free: 105.6 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007282/0.7019, allocations: 266.2 kB / 466.2 MB, free: 105.5 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003214/0.7023, allocations: 31.94 kB / 466.3 MB, free: 105.5 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001357/0.7036, allocations: 129.6 kB / 466.4 MB, free: 105.4 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002844/0.7039, allocations: 92.77 kB / 466.5 MB, free: 105.3 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001206/0.704, allocations: 47.5 kB / 466.5 MB, free: 105.2 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002514/0.7065, allocations: 1.885 MB / 468.4 MB, free: 103.3 MB / 378.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.7065, allocations: 0 / 468.4 MB, free: 103.3 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0044/0.7109, allocations: 0.9921 MB / 469.4 MB, free: 102.4 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.0004509/0.7114, allocations: 187.9 kB / 469.6 MB, free: 102.2 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.006074/0.7175, allocations: 4.611 MB / 474.2 MB, free: 97.6 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.997e-06/0.7175, allocations: 0 / 474.2 MB, free: 97.6 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001796/0.7193, allocations: 1.442 MB / 475.6 MB, free: 96.16 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001864/0.7211, allocations: 316.7 kB / 475.9 MB, free: 95.87 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01123/0.7324, allocations: 8.167 MB / 484.1 MB, free: 87.68 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002192/0.7346, allocations: 2.309 MB / 486.4 MB, free: 85.34 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.003066/0.7376, allocations: 1.67 MB / 488.1 MB, free: 83.67 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005359/0.7382, allocations: 200.5 kB / 488.3 MB, free: 83.47 MB / 378.7 MB Notification: Performance of SimCode: time 1.143e-06/0.7382, allocations: 0 / 488.3 MB, free: 83.47 MB / 378.7 MB Notification: Performance of Templates: time 0.04672/0.7849, allocations: 29.26 MB / 0.5054 GB, free: 54.65 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=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.282429762999527]