Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks.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.001488/0.001488, allocations: 75.77 kB / 22.46 MB, free: 2.09 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.00382/0.00382, allocations: 160.1 kB / 25.74 MB, free: 8.965 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9274/0.9274, allocations: 158.6 MB / 187.5 MB, free: 2.52 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Fluid.Examples.Tanks.ThreeTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank3.level|tank3.medium.T",fileNamePrefix="Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks") translateModel(Modelica.Fluid.Examples.Tanks.ThreeTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank3.level|tank3.medium.T",fileNamePrefix="Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.112e-06/1.112e-06, allocations: 0 / 251.1 MB, free: 7.781 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.608e-05/1.719e-05, allocations: 6.25 kB / 251.1 MB, free: 7.773 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.ThreeTanks): time 0.01937/0.01939, allocations: 29.53 MB / 280.6 MB, free: 10.12 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01421/0.0336, allocations: 15.03 MB / 295.7 MB, free: 11.05 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001501/0.0351, allocations: 59.44 kB / 295.7 MB, free: 11 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001263/0.03636, allocations: 0.5782 MB / 296.3 MB, free: 10.41 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004184/0.04055, allocations: 2.412 MB / 298.7 MB, free: 7.988 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006546/0.04709, allocations: 4.062 MB / 302.8 MB, free: 3.914 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.003675/0.05077, allocations: 4.157 MB / 306.9 MB, free: 15.74 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009756/0.05174, allocations: 1.075 MB / 308 MB, free: 14.64 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001827/0.05357, allocations: 2.054 MB / 310.1 MB, free: 12.59 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001608/0.05518, allocations: 1.664 MB / 311.7 MB, free: 10.92 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001881/0.05537, allocations: 167.9 kB / 311.9 MB, free: 10.75 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002673/0.05804, allocations: 1.876 MB / 313.8 MB, free: 8.875 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004621/0.0585, allocations: 0.6816 MB / 314.4 MB, free: 8.191 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005586/0.05906, allocations: 0.6353 MB / 315.1 MB, free: 7.555 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003106/0.06217, allocations: 3.236 MB / 318.3 MB, free: 4.309 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.06217, allocations: 0 / 318.3 MB, free: 4.309 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.183e-06/0.06217, allocations: 0 / 318.3 MB, free: 4.309 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.644e-05/0.06219, allocations: 0 / 318.3 MB, free: 4.309 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.002923/0.06511, allocations: 2.263 MB / 320.6 MB, free: 1.996 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.607e-05/0.06515, allocations: 11.98 kB / 320.6 MB, free: 1.984 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000511/0.06566, allocations: 286.7 kB / 320.9 MB, free: 1.703 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001163/0.06682, allocations: 1.024 MB / 321.9 MB, free: 0.6484 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001562/0.06698, allocations: 252.2 kB / 322.1 MB, free: 376 kB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001497/0.06713, allocations: 115.9 kB / 322.3 MB, free: 260 kB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001624/0.06875, allocations: 1.538 MB / 323.8 MB, free: 14.54 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.727e-05/0.06878, allocations: 0 / 323.8 MB, free: 14.54 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001015/0.06888, allocations: 51.95 kB / 323.8 MB, free: 14.49 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001091/0.06899, allocations: 113.9 kB / 324 MB, free: 14.38 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001203/0.07019, allocations: 0.7143 MB / 324.7 MB, free: 13.65 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005278/0.07547, allocations: 4.287 MB / 329 MB, free: 9.281 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000858/0.07633, allocations: 0.5989 MB / 329.6 MB, free: 8.672 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004473/0.07677, allocations: 310.5 kB / 329.9 MB, free: 8.367 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002367/0.07914, allocations: 1.846 MB / 331.7 MB, free: 6.5 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.214e-05/0.07917, allocations: 50.33 kB / 331.8 MB, free: 6.441 MB / 314.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000406/0.07958, allocations: 183.2 kB / 331.9 MB, free: 6.262 MB / 314.7 MB Notification: Performance of pre-optimization done (n=97): time 2.265e-06/0.07958, allocations: 0 / 331.9 MB, free: 6.262 MB / 314.7 MB Notification: Performance of matching and sorting (n=112): time 0.007818/0.0874, allocations: 3.361 MB / 335.3 MB, free: 2.871 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.697e-05/0.08746, allocations: 145.5 kB / 335.4 MB, free: 2.699 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007973/0.08825, allocations: 0.9651 MB / 336.4 MB, free: 1.715 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 7.368e-05/0.08833, allocations: 49.7 kB / 336.5 MB, free: 1.66 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003299/0.08866, allocations: 0.6788 MB / 337.1 MB, free: 0.9727 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002396/0.0889, allocations: 416.5 kB / 337.5 MB, free: 0.5625 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003088/0.08921, allocations: 293.1 kB / 337.8 MB, free: 272 kB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001049/0.08931, allocations: 484.7 kB / 338.3 MB, free: 15.79 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000484/0.0898, allocations: 283.5 kB / 338.6 MB, free: 15.51 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007174/0.09051, allocations: 0.8289 MB / 339.4 MB, free: 14.47 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001171/0.09168, allocations: 1.05 MB / 340.5 MB, free: 13.24 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.839e-06/0.09169, allocations: 4 kB / 340.5 MB, free: 13.23 MB / 330.7 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.001849/0.09354, allocations: 1.289 MB / 341.7 MB, free: 11.93 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.843e-05/0.09356, allocations: 12.16 kB / 341.8 MB, free: 11.92 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.112e-05/0.09357, allocations: 12 kB / 341.8 MB, free: 11.91 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003273/0.09684, allocations: 0.9475 MB / 342.7 MB, free: 10.95 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006132/0.09745, allocations: 295.5 kB / 343 MB, free: 10.66 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001126/0.09858, allocations: 1.167 MB / 344.2 MB, free: 9.465 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004771/0.09906, allocations: 55.97 kB / 344.2 MB, free: 9.41 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.135e-05/0.09915, allocations: 67.97 kB / 344.3 MB, free: 9.344 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006341/0.09978, allocations: 418.7 kB / 344.7 MB, free: 8.93 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007226/0.1005, allocations: 0.8484 MB / 345.6 MB, free: 7.859 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001162/0.1017, allocations: 1.057 MB / 346.6 MB, free: 6.609 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.41e-06/0.1017, allocations: 7.938 kB / 346.6 MB, free: 6.602 MB / 330.7 MB Notification: Performance of matching and sorting (n=181) (initialization_lambda0): time 0.001765/0.1034, allocations: 1.273 MB / 347.9 MB, free: 5.316 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.209e-05/0.1034, allocations: 12 kB / 347.9 MB, free: 5.305 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.047e-06/0.1035, allocations: 15.92 kB / 347.9 MB, free: 5.289 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002585/0.106, allocations: 0.7996 MB / 348.7 MB, free: 4.484 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006003/0.1066, allocations: 299.5 kB / 349 MB, free: 4.191 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009133/0.1076, allocations: 1.108 MB / 350.1 MB, free: 3.051 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004955/0.1081, allocations: 63.97 kB / 350.2 MB, free: 2.988 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.655e-05/0.1081, allocations: 67.97 kB / 350.2 MB, free: 2.922 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 6 (tank3.inFlow[1],tank3.regularFlow[1],tank2.inFlow[1],tank2.regularFlow[1],tank1.inFlow[1],tank1.regularFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (156): * Single equations (assignments): 155 * Array equations: 0 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(8,18)} Notification: Performance of prepare postOptimizeDAE: time 0.0002595/0.1084, allocations: 363.6 kB / 350.6 MB, free: 2.559 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002176/0.1086, allocations: 171.2 kB / 350.8 MB, free: 2.391 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001891/0.1105, allocations: 1.205 MB / 352 MB, free: 1.18 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.106e-06/0.1105, allocations: 12 kB / 352 MB, free: 1.168 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.937e-06/0.1105, allocations: 0 / 352 MB, free: 1.168 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.438e-06/0.1105, allocations: 7.922 kB / 352 MB, free: 1.16 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1069/0.2174, allocations: 2.135 MB / 354.1 MB, free: 106.1 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.91e-06/0.2174, allocations: 0.6562 kB / 354.1 MB, free: 106.1 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005524/0.218, allocations: 194.2 kB / 354.3 MB, free: 106.1 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001102/0.2191, allocations: 0.6094 MB / 354.9 MB, free: 106.1 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.875e-05/0.2191, allocations: 32.92 kB / 355 MB, free: 106.1 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009066/0.22, allocations: 1.201 MB / 356.2 MB, free: 105.3 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.22, allocations: 0 / 356.2 MB, free: 105.3 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001925/0.222, allocations: 1.48 MB / 357.6 MB, free: 105 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003971/0.2224, allocations: 286.6 kB / 357.9 MB, free: 105 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001344/0.2225, allocations: 24.78 kB / 357.9 MB, free: 105 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004347/0.2229, allocations: 48.34 kB / 358 MB, free: 105 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001545/0.2231, allocations: 93.97 kB / 358.1 MB, free: 105 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.13e-05/0.2232, allocations: 53.88 kB / 358.1 MB, free: 105 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0004734/0.2236, allocations: 0.5719 MB / 358.7 MB, free: 104.8 MB / 330.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2236, allocations: 0 / 358.7 MB, free: 104.8 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002044/0.2257, allocations: 1.168 MB / 359.9 MB, free: 104.7 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (tank1.level,tank1.medium.T,tank2.level,tank2.medium.T,tank3.level,tank3.medium.T) * Number of discrete variables: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (96): * Single equations (assignments): 95 * Array equations: 0 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(9,29)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00118/0.2269, allocations: 0.9247 MB / 360.8 MB, free: 104.2 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002719/0.2296, allocations: 1.643 MB / 362.4 MB, free: 102.8 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.526e-06/0.2296, allocations: 0 / 362.4 MB, free: 102.8 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008719/0.2305, allocations: 0.5112 MB / 363 MB, free: 102.4 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001379/0.2318, allocations: 0.6319 MB / 363.6 MB, free: 102 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002995/0.2348, allocations: 2.503 MB / 366.1 MB, free: 99.69 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001613/0.235, allocations: 349.1 kB / 366.4 MB, free: 99.33 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0008593/0.2358, allocations: 0.499 MB / 366.9 MB, free: 98.83 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002085/0.2361, allocations: 124.5 kB / 367 MB, free: 98.71 MB / 330.7 MB Notification: Performance of SimCode: time 8.12e-07/0.2361, allocations: 0 / 367 MB, free: 98.71 MB / 330.7 MB Notification: Performance of Templates: time 0.03169/0.2677, allocations: 41.53 MB / 408.6 MB, free: 57.16 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks.sim & ./Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Fluid/Examples/Tanks/ThreeTanks/ThreeTanks.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.078327088151127]