Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009698/0.0009698, allocations: 75.77 kB / 21.18 MB, free: 3.379 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.000931/0.000931, allocations: 165 kB / 24.56 MB, free: 8 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9936/0.9936, allocations: 177.1 MB / 205 MB, free: 5.637 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.553e-06/1.553e-06, allocations: 0 / 273 MB, free: 1.539 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.83e-05/1.985e-05, allocations: 2.312 kB / 273 MB, free: 1.535 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.009527/0.009547, allocations: 10.02 MB / 283 MB, free: 7.473 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00505/0.0146, allocations: 3.816 MB / 286.8 MB, free: 3.645 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000613/0.01521, allocations: 63.69 kB / 286.9 MB, free: 3.582 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002317/0.01753, allocations: 2.227 MB / 289.1 MB, free: 1.348 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.135/0.1525, allocations: 1.711 MB / 290.8 MB, free: 14.21 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002015/0.1546, allocations: 0.7483 MB / 291.6 MB, free: 14.21 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004896/0.1594, allocations: 3.766 MB / 295.3 MB, free: 13.73 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004018/0.1635, allocations: 2.531 MB / 297.9 MB, free: 13.48 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003515/0.167, allocations: 1.914 MB / 299.8 MB, free: 13.34 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002319/0.1693, allocations: 1.921 MB / 301.7 MB, free: 13.07 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006331/0.1699, allocations: 266.7 kB / 302 MB, free: 13.07 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001801/0.1717, allocations: 1.051 MB / 303 MB, free: 12.94 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001079/0.1728, allocations: 1.674 MB / 304.7 MB, free: 12.27 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001216/0.174, allocations: 1.056 MB / 305.7 MB, free: 11.81 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003768/0.1778, allocations: 4.001 MB / 309.7 MB, free: 9.867 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.07e-06/0.1778, allocations: 0 / 309.7 MB, free: 9.867 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1778, allocations: 0 / 309.7 MB, free: 9.867 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.262e-05/0.1779, allocations: 3.031 kB / 309.7 MB, free: 9.867 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.004753/0.1826, allocations: 4.491 MB / 314.2 MB, free: 6.254 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.159e-05/0.1827, allocations: 8.031 kB / 314.2 MB, free: 6.246 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00369/0.1864, allocations: 2.331 MB / 316.6 MB, free: 3.945 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002007/0.1884, allocations: 1.712 MB / 318.3 MB, free: 2.344 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.942e-05/0.1885, allocations: 205 kB / 318.5 MB, free: 2.176 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002903/0.1888, allocations: 273.8 kB / 318.8 MB, free: 1.941 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009062/0.1978, allocations: 6.589 MB / 325.3 MB, free: 10.61 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.862e-05/0.1979, allocations: 44.95 kB / 325.4 MB, free: 10.59 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002937/0.1982, allocations: 130.5 kB / 325.5 MB, free: 10.49 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001824/0.2, allocations: 1.856 MB / 327.4 MB, free: 8.66 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007807/0.2078, allocations: 3.937 MB / 331.3 MB, free: 4.918 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0309/0.2387, allocations: 40.8 MB / 372.1 MB, free: 11.3 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005124/0.2439, allocations: 2.188 MB / 374.3 MB, free: 9.074 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001021/0.2449, allocations: 0.6311 MB / 374.9 MB, free: 8.43 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006356/0.2512, allocations: 4.595 MB / 379.5 MB, free: 3.836 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.554e-05/0.2513, allocations: 61.67 kB / 379.6 MB, free: 3.77 MB / 330.7 MB Notification: Performance of pre-optimization done (n=150): time 4.949e-06/0.2513, allocations: 0 / 379.6 MB, free: 3.77 MB / 330.7 MB Notification: Performance of matching and sorting (n=166): time 0.02722/0.2785, allocations: 13.41 MB / 393 MB, free: 6.363 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.399e-05/0.2786, allocations: 141.5 kB / 393.1 MB, free: 6.191 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003667/0.2822, allocations: 3.005 MB / 396.1 MB, free: 3.148 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001102/0.2824, allocations: 53.7 kB / 396.2 MB, free: 3.09 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001541/0.2839, allocations: 2.992 MB / 399.2 MB, free: 116 kB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006302/0.2845, allocations: 0.6937 MB / 399.9 MB, free: 15.43 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001371/0.2859, allocations: 1.19 MB / 401.1 MB, free: 14.23 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001305/0.286, allocations: 480.8 kB / 401.5 MB, free: 13.75 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001178/0.2872, allocations: 0.6628 MB / 402.2 MB, free: 13.09 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003718/0.2909, allocations: 5.733 MB / 407.9 MB, free: 5.047 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005586/0.2965, allocations: 7.085 MB / 415 MB, free: 11.66 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.357e-05/0.2966, allocations: 36 kB / 415 MB, free: 11.62 MB / 378.7 MB Notification: Performance of matching and sorting (n=728) (initialization): time 0.008081/0.3047, allocations: 5.6 MB / 420.6 MB, free: 6.016 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.106e-05/0.3047, allocations: 58.5 kB / 420.7 MB, free: 5.961 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001148/0.3048, allocations: 127.9 kB / 420.8 MB, free: 5.836 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002221/0.3071, allocations: 0.9322 MB / 421.8 MB, free: 4.902 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002235/0.3093, allocations: 1.263 MB / 423 MB, free: 3.637 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004413/0.3137, allocations: 3.584 MB / 426.6 MB, free: 15.94 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002488/0.3162, allocations: 344.5 kB / 426.9 MB, free: 15.61 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003468/0.3165, allocations: 340 kB / 427.3 MB, free: 15.28 MB / 394.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.001053/0.3176, allocations: 0.6162 MB / 427.9 MB, free: 14.65 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003685/0.318, allocations: 326.1 kB / 428.2 MB, free: 14.33 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003232/0.3212, allocations: 1.963 MB / 430.2 MB, free: 12.35 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.19e-05/0.3212, allocations: 17.88 kB / 430.2 MB, free: 12.33 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.156e-05/0.3212, allocations: 8 kB / 430.2 MB, free: 12.32 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.546e-05/0.3212, allocations: 15.91 kB / 430.2 MB, free: 12.31 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008181/0.3294, allocations: 5.16 MB / 435.4 MB, free: 7.109 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.292e-06/0.3294, allocations: 0 / 435.4 MB, free: 7.109 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006552/0.3301, allocations: 243.7 kB / 435.6 MB, free: 6.871 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001964/0.332, allocations: 0.7561 MB / 436.4 MB, free: 6.109 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000102/0.3321, allocations: 28 kB / 436.4 MB, free: 6.082 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003947/0.3361, allocations: 3.297 MB / 439.7 MB, free: 2.668 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.3361, allocations: 3.938 kB / 439.7 MB, free: 2.664 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.163/0.4991, allocations: 3.02 MB / 442.7 MB, free: 125.1 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006613/0.4998, allocations: 259.7 kB / 443 MB, free: 125.1 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002099/0.5, allocations: 27.56 kB / 443 MB, free: 125.1 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007926/0.5008, allocations: 123.8 kB / 443.1 MB, free: 125.1 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002048/0.501, allocations: 91.72 kB / 443.2 MB, free: 125.1 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.165e-05/0.5011, allocations: 43.77 kB / 443.3 MB, free: 125.1 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001609/0.5027, allocations: 1.266 MB / 444.5 MB, free: 124.9 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.5027, allocations: 0 / 444.5 MB, free: 124.9 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003102/0.5058, allocations: 0.9653 MB / 445.5 MB, free: 124.9 MB / 394.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.0003403/0.5061, allocations: 174.6 kB / 445.7 MB, free: 124.9 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.004077/0.5102, allocations: 3.002 MB / 448.7 MB, free: 124.6 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.297e-06/0.5102, allocations: 0.875 kB / 448.7 MB, free: 124.6 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001078/0.5113, allocations: 0.8775 MB / 449.5 MB, free: 124.4 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001101/0.5124, allocations: 323.4 kB / 449.8 MB, free: 124.4 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007345/0.5197, allocations: 6.548 MB / 456.4 MB, free: 121.9 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000764/0.5205, allocations: 1.049 MB / 457.4 MB, free: 121.8 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0018/0.5223, allocations: 1.435 MB / 458.9 MB, free: 121.6 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003543/0.5226, allocations: 207.1 kB / 459.1 MB, free: 121.6 MB / 394.7 MB Notification: Performance of SimCode: time 7.21e-07/0.5226, allocations: 3.719 kB / 459.1 MB, free: 121.6 MB / 394.7 MB Notification: Performance of Templates: time 0.03256/0.5552, allocations: 29.18 MB / 488.3 MB, free: 100.5 MB / 394.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PendulumWithSpringDamper/PendulumWithSpringDamper.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.079734884668142]