Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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.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.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007932/0.0007931, allocations: 98.11 kB / 15.36 MB, free: 0.7344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.005377/0.005377, allocations: 169.5 kB / 16.27 MB, free: 6.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.441/1.441, allocations: 205.4 MB / 222.4 MB, free: 5.562 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004423/0.0004424, allocations: 12 kB / 279.5 MB, free: 12.5 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2216/0.2221, allocations: 47.58 MB / 327 MB, free: 1.375 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2): time 0.03413/0.2563, allocations: 37.58 MB / 364.6 MB, free: 13.65 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02065/0.277, allocations: 15.64 MB / 380.3 MB, free: 13.96 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001838/0.2788, allocations: 67.44 kB / 380.3 MB, free: 13.9 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001594/0.2804, allocations: 0.5905 MB / 380.9 MB, free: 13.3 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006127/0.2866, allocations: 2.377 MB / 383.3 MB, free: 10.92 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009255/0.2959, allocations: 3.207 MB / 386.5 MB, free: 7.703 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.008005/0.3039, allocations: 7.1 MB / 393.6 MB, free: 0.5898 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001689/0.3056, allocations: 1.09 MB / 394.7 MB, free: 15.48 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002609/0.3082, allocations: 1.487 MB / 396.2 MB, free: 13.99 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00238/0.3106, allocations: 1.791 MB / 398 MB, free: 12.19 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002359/0.3109, allocations: 88 kB / 398.1 MB, free: 12.11 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004323/0.3152, allocations: 2.371 MB / 400.4 MB, free: 9.73 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007748/0.316, allocations: 0.5646 MB / 401 MB, free: 9.164 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001214/0.3172, allocations: 0.9229 MB / 401.9 MB, free: 8.23 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00593/0.3231, allocations: 3.93 MB / 405.8 MB, free: 4.289 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.3232, allocations: 0 / 405.8 MB, free: 4.289 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.3232, allocations: 0 / 405.8 MB, free: 4.289 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.414e-05/0.3232, allocations: 0 / 405.8 MB, free: 4.289 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 315 * Number of variables: 315 Notification: Performance of Generate backend data structure: time 0.004386/0.3276, allocations: 2.085 MB / 407.9 MB, free: 2.148 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.054e-05/0.3277, allocations: 8.031 kB / 407.9 MB, free: 2.141 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000573/0.3282, allocations: 201.7 kB / 408.1 MB, free: 1.941 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001624/0.3299, allocations: 1.093 MB / 409.2 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.429e-05/0.33, allocations: 102.3 kB / 409.3 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002038/0.3302, allocations: 119.9 kB / 409.4 MB, free: 0.5703 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002959/0.3332, allocations: 1.955 MB / 411.4 MB, free: 14.52 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.411e-05/0.3332, allocations: 7.984 kB / 411.4 MB, free: 14.51 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001509/0.3334, allocations: 51.97 kB / 411.5 MB, free: 14.46 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001536/0.3335, allocations: 122.3 kB / 411.6 MB, free: 14.34 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003083/0.3366, allocations: 1.988 MB / 413.6 MB, free: 12.34 MB / 350.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01177/0.3484, allocations: 7.899 MB / 421.5 MB, free: 3.969 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001866/0.3503, allocations: 1.181 MB / 422.6 MB, free: 2.785 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001082/0.3514, allocations: 0.7495 MB / 423.4 MB, free: 2.035 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004965/0.3564, allocations: 3.422 MB / 426.8 MB, free: 14.34 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.065e-05/0.3564, allocations: 47.56 kB / 426.9 MB, free: 14.29 MB / 366.1 MB Notification: Performance of pre-optimization done (n=119): time 3.527e-06/0.3564, allocations: 0 / 426.9 MB, free: 14.29 MB / 366.1 MB Notification: Performance of matching and sorting (n=134): time 0.01183/0.3683, allocations: 5.443 MB / 432.3 MB, free: 8.711 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.932e-05/0.3684, allocations: 179.4 kB / 432.5 MB, free: 8.5 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001824/0.3702, allocations: 1.427 MB / 433.9 MB, free: 7.062 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001135/0.3703, allocations: 61.64 kB / 434 MB, free: 6.996 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005358/0.3709, allocations: 0.7112 MB / 434.7 MB, free: 6.277 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003703/0.3713, allocations: 469.3 kB / 435.1 MB, free: 5.812 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002096/0.3715, allocations: 153.6 kB / 435.3 MB, free: 5.656 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.515e-05/0.3716, allocations: 301.1 kB / 435.6 MB, free: 5.359 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001275/0.3729, allocations: 0.773 MB / 436.4 MB, free: 4.586 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001613/0.3745, allocations: 1.203 MB / 437.6 MB, free: 3.207 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00261/0.3771, allocations: 1.884 MB / 439.4 MB, free: 1.164 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.444e-06/0.3771, allocations: 4 kB / 439.4 MB, free: 1.16 MB / 366.1 MB Notification: Performance of matching and sorting (n=224) (initialization): time 0.003882/0.381, allocations: 2.455 MB / 441.9 MB, free: 14.68 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000259/0.3813, allocations: 438.5 kB / 442.3 MB, free: 14.09 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.609e-05/0.3813, allocations: 12 kB / 442.3 MB, free: 14.08 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007303/0.3886, allocations: 1.146 MB / 443.5 MB, free: 12.92 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001292/0.3899, allocations: 351.5 kB / 443.8 MB, free: 12.58 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002556/0.3925, allocations: 2.892 MB / 446.7 MB, free: 9.582 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001417/0.3939, allocations: 132 kB / 446.9 MB, free: 9.453 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001592/0.3941, allocations: 83.91 kB / 446.9 MB, free: 9.371 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.217e-06/0.3941, allocations: 4 kB / 446.9 MB, free: 9.367 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003453/0.3976, allocations: 2.139 MB / 449.1 MB, free: 7.215 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.659e-05/0.3976, allocations: 12 kB / 449.1 MB, free: 7.203 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006276/0.4039, allocations: 0.8659 MB / 450 MB, free: 6.324 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001347/0.4053, allocations: 363.5 kB / 450.3 MB, free: 5.969 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002181/0.4075, allocations: 2.646 MB / 453 MB, free: 3.219 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001573/0.409, allocations: 131.8 kB / 453.1 MB, free: 3.09 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001666/0.4092, allocations: 84.09 kB / 453.2 MB, free: 3.008 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * Number of states: 0 () * Number of discrete variables: 18 (tank2.aboveLevel[3],$PRE.tank2.aboveLevel[3],tank2.aboveLevel[2],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[1],tank3.aboveLevel[2],$PRE.tank3.aboveLevel[2],tank3.aboveLevel[1],$PRE.tank3.aboveLevel[1],tank2.ports_m_flow_out[3],tank2.ports_m_flow_out[2],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[1],tank3.ports_m_flow_out[2],tank3.ports_m_flow_out[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (203): * Single equations (assignments): 199 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * 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): 4 systems {(1,2), (2,7), (2,7), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.001075/0.4103, allocations: 0.5178 MB / 453.7 MB, free: 2.477 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002994/0.4106, allocations: 173.9 kB / 453.9 MB, free: 2.305 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1569/0.5675, allocations: 2.35 MB / 456.2 MB, free: 115.5 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.743e-05/0.5676, allocations: 26.19 kB / 456.2 MB, free: 115.5 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.224e-05/0.5676, allocations: 1.531 kB / 456.2 MB, free: 115.5 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.306e-05/0.5677, allocations: 8.344 kB / 456.2 MB, free: 115.5 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00811/0.5758, allocations: 4.026 MB / 460.3 MB, free: 114.5 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.048e-05/0.5758, allocations: 1.188 kB / 460.3 MB, free: 114.5 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009792/0.5768, allocations: 246.1 kB / 460.5 MB, free: 114.5 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003934/0.5808, allocations: 0.9325 MB / 461.4 MB, free: 114.3 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001519/0.5809, allocations: 46.33 kB / 461.5 MB, free: 114.3 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001837/0.5828, allocations: 2.844 MB / 464.3 MB, free: 112 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.027e-06/0.5828, allocations: 3.906 kB / 464.3 MB, free: 112 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004069/0.5869, allocations: 3.172 MB / 467.5 MB, free: 110.5 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004766/0.5874, allocations: 281.3 kB / 467.8 MB, free: 110.4 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002329/0.5876, allocations: 35.75 kB / 467.8 MB, free: 110.3 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001013/0.5886, allocations: 106.5 kB / 467.9 MB, free: 110.3 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002519/0.5889, allocations: 140 kB / 468.1 MB, free: 110.2 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001162/0.589, allocations: 58.97 kB / 468.1 MB, free: 110.2 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001168/0.5902, allocations: 0.9873 MB / 469.1 MB, free: 109.7 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.5902, allocations: 0 / 469.1 MB, free: 109.7 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002599/0.5928, allocations: 1.277 MB / 470.4 MB, free: 109.5 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (tank3.level,tank3.medium.T,tank1.level,tank1.medium.T,tank2.level,tank2.medium.T) * Number of discrete variables: 6 (tank3.aboveLevel[1],tank3.aboveLevel[2],tank1.aboveLevel[1],tank2.aboveLevel[1],tank2.aboveLevel[2],tank2.aboveLevel[3]) * Number of discrete states: 6 (tank3.aboveLevel[1],tank3.aboveLevel[2],tank1.aboveLevel[1],tank2.aboveLevel[1],tank2.aboveLevel[2],tank2.aboveLevel[3]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (133): * Single equations (assignments): 127 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * 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): 4 systems {(1,6), (2,12), (2,12), (1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001723/0.5945, allocations: 0.8937 MB / 471.3 MB, free: 109.3 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00458/0.5991, allocations: 3.096 MB / 474.4 MB, free: 107.6 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.312e-06/0.5992, allocations: 0 / 474.4 MB, free: 107.6 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001558/0.6007, allocations: 1.088 MB / 475.5 MB, free: 106.5 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003717/0.6045, allocations: 0.7608 MB / 476.2 MB, free: 105.8 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004624/0.6091, allocations: 4.29 MB / 480.5 MB, free: 101.6 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005885/0.6097, allocations: 1.399 MB / 481.9 MB, free: 100.2 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002096/0.6118, allocations: 0.7332 MB / 482.6 MB, free: 99.46 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003714/0.6122, allocations: 151.4 kB / 482.8 MB, free: 99.31 MB / 382.1 MB Notification: Performance of SimCode: time 1.392e-06/0.6122, allocations: 0 / 482.8 MB, free: 99.31 MB / 382.1 MB Notification: Performance of Templates: time 0.05491/0.6671, allocations: 47.22 MB / 0.5176 GB, free: 52.04 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.makefile (rm -f Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe ; mkfifo Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe >> ../files/Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.sim & ./Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe 2>&1)