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/Modelica 3.1.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo", uses=false) Using package ModelicaServices with version 1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo) Using package Modelica with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.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/Modelica 3.1.0+maint.om/package.mo): time 0.8901/0.8901, allocations: 110.9 MB / 125.9 MB, free: 6.219 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001739/0.001739, allocations: 149.8 kB / 151.9 MB, free: 4.988 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002638/0.0002639, allocations: 7.984 kB / 184.9 MB, free: 3.914 MB / 154.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.167/0.1673, allocations: 25.16 MB / 210.1 MB, free: 29.75 MB / 170.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4942/0.6616, allocations: 240.8 MB / 450.9 MB, free: 20.37 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002429/0.6619, allocations: 72.62 kB / 451 MB, free: 20.34 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9556/1.618, allocations: 302.1 MB / 0.7355 GB, free: 2.129 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.403e-06/1.618, allocations: 0 / 0.7355 GB, free: 2.129 MB / 250.7 MB Notification: Performance of Transformations before backend: time 0.0001364/1.618, allocations: 50.83 kB / 0.7355 GB, free: 2.082 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 309 * Number of variables: 309 Notification: Performance of Generate backend data structure: time 0.153/1.771, allocations: 2.132 MB / 0.7376 GB, free: 17.15 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.215e-05/1.771, allocations: 14.75 kB / 0.7376 GB, free: 17.15 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001258/1.772, allocations: 186.5 kB / 0.7378 GB, free: 17.06 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0032/1.775, allocations: 1.189 MB / 0.739 GB, free: 16.75 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.815e-05/1.775, allocations: 98.05 kB / 0.739 GB, free: 16.75 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002097/1.776, allocations: 117.8 kB / 0.7392 GB, free: 16.74 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002935/1.779, allocations: 1.841 MB / 0.741 GB, free: 16.46 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.22e-05/1.779, allocations: 3.25 kB / 0.741 GB, free: 16.46 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001516/1.779, allocations: 52.92 kB / 0.741 GB, free: 16.46 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001225/1.779, allocations: 112.7 kB / 0.7411 GB, free: 16.45 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002504/1.781, allocations: 1.819 MB / 0.7429 GB, free: 16.44 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009132/1.791, allocations: 7.414 MB / 0.7501 GB, free: 12.88 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001501/1.792, allocations: 1.153 MB / 0.7513 GB, free: 12.84 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004331/1.796, allocations: 3.299 MB / 0.7545 GB, free: 11.21 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.744e-05/1.796, allocations: 51.53 kB / 0.7545 GB, free: 11.18 MB / 250.7 MB Notification: Performance of pre-optimization done (n=119): time 3.086e-06/1.797, allocations: 5.234 kB / 0.7545 GB, free: 11.18 MB / 250.7 MB Notification: Performance of matching and sorting (n=131): time 0.01138/1.808, allocations: 5.194 MB / 0.7596 GB, free: 10.2 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.559e-05/1.808, allocations: 176.4 kB / 0.7598 GB, free: 10.01 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001325/1.809, allocations: 1.1 MB / 0.7609 GB, free: 9.855 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001114/1.809, allocations: 56.81 kB / 0.7609 GB, free: 9.824 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004328/1.81, allocations: 0.7037 MB / 0.7616 GB, free: 9.543 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002837/1.81, allocations: 463.2 kB / 0.762 GB, free: 9.262 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.155e-05/1.81, allocations: 35.22 kB / 0.7621 GB, free: 9.262 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 8.841e-05/1.81, allocations: 370.9 kB / 0.7624 GB, free: 8.957 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009279/1.811, allocations: 0.7018 MB / 0.7631 GB, free: 8.957 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001331/1.813, allocations: 1.154 MB / 0.7642 GB, free: 8.441 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001263/1.814, allocations: 0.835 MB / 0.7651 GB, free: 8.418 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.008e-05/1.814, allocations: 5.625 kB / 0.7651 GB, free: 8.418 MB / 250.7 MB Notification: Performance of matching and sorting (n=216) (initialization): time 0.003666/1.818, allocations: 2.309 MB / 0.7673 GB, free: 8.238 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.884e-05/1.818, allocations: 8.812 kB / 0.7673 GB, free: 8.238 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.952e-05/1.818, allocations: 13.59 kB / 0.7673 GB, free: 8.238 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005184/1.823, allocations: 0.935 MB / 0.7682 GB, free: 8.207 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001338/1.824, allocations: 339.8 kB / 0.7686 GB, free: 8.207 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002219/1.826, allocations: 2.863 MB / 0.7714 GB, free: 22.12 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00167/1.828, allocations: 133.3 kB / 0.7715 GB, free: 22.12 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001478/1.828, allocations: 81.44 kB / 0.7716 GB, free: 22.12 MB / 266.7 MB Warning: Assuming fixed start value for the following 6 variables: tank2.level:VARIABLE(min = 0.0 start = tank2.level_start unit = "m" fixed = true stateSelect=StateSelect.prefer ) "Fluid level in the tank" type: Real tank2.medium.T:VARIABLE(min = max(1.0, max(1.0, 1.0)) max = min(10000.0, min(10000.0, 10000.0)) start = 293.15 unit = "K" fixed = true nominal = 300.0 stateSelect=StateSelect.prefer ) "Temperature of medium" type: Real tank1.level:VARIABLE(min = 0.0 start = tank1.level_start unit = "m" fixed = true stateSelect=StateSelect.prefer ) "Fluid level in the tank" type: Real tank1.medium.T:VARIABLE(min = max(1.0, max(1.0, 1.0)) max = min(10000.0, min(10000.0, 10000.0)) start = 293.15 unit = "K" fixed = true nominal = 300.0 stateSelect=StateSelect.prefer ) "Temperature of medium" type: Real tank3.level:VARIABLE(min = 0.0 start = tank3.level_start unit = "m" fixed = true stateSelect=StateSelect.prefer ) "Fluid level in the tank" type: Real tank3.medium.T:VARIABLE(min = max(1.0, max(1.0, 1.0)) max = min(10000.0, min(10000.0, 10000.0)) start = 293.15 unit = "K" fixed = true nominal = 300.0 stateSelect=StateSelect.prefer ) "Temperature of medium" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 18 ($PRE.tank3.aboveLevel[1],tank3.aboveLevel[1],$PRE.tank3.aboveLevel[2],tank3.aboveLevel[2],$PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[2],$PRE.tank2.aboveLevel[3],tank2.aboveLevel[3],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 (195): * Single equations (assignments): 191 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 2,2 7,2 7,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0009636/1.829, allocations: 0.4923 MB / 0.7721 GB, free: 21.98 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002556/1.83, allocations: 159.2 kB / 0.7722 GB, free: 21.9 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003817/1.833, allocations: 2.299 MB / 0.7744 GB, free: 21.73 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.513e-05/1.833, allocations: 18.69 kB / 0.7745 GB, free: 21.73 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.252e-06/1.833, allocations: 0 / 0.7745 GB, free: 21.73 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.503e-05/1.833, allocations: 10.64 kB / 0.7745 GB, free: 21.73 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005589/1.839, allocations: 3.868 MB / 0.7783 GB, free: 21.28 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.534e-06/1.839, allocations: 2.078 kB / 0.7783 GB, free: 21.28 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000982/1.84, allocations: 237.7 kB / 0.7785 GB, free: 21.28 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003664/1.844, allocations: 0.8644 MB / 0.7793 GB, free: 21.25 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001356/1.844, allocations: 47.73 kB / 0.7794 GB, free: 21.25 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002068/1.846, allocations: 2.81 MB / 0.7821 GB, free: 19.16 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.437e-06/1.846, allocations: 3.688 kB / 0.7821 GB, free: 19.16 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004181/1.85, allocations: 3.158 MB / 0.7852 GB, free: 18.67 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006475/1.851, allocations: 255.3 kB / 0.7854 GB, free: 18.48 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000226/1.851, allocations: 36.45 kB / 0.7855 GB, free: 18.48 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009892/1.852, allocations: 99.08 kB / 0.7856 GB, free: 18.48 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002396/1.852, allocations: 146.8 kB / 0.7857 GB, free: 18.47 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001167/1.852, allocations: 62.25 kB / 0.7858 GB, free: 18.47 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.001163/1.854, allocations: 0.8474 MB / 0.7866 GB, free: 18.36 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.8e-07/1.854, allocations: 2.516 kB / 0.7866 GB, free: 18.36 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.003301/1.857, allocations: 0.8874 MB / 0.7875 GB, free: 18.32 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (tank3.medium.T,tank3.level,tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * 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 (130): * Single equations (assignments): 124 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,2 12,2 12,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.002134/1.859, allocations: 1.063 MB / 0.7885 GB, free: 18.14 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.003342/1.862, allocations: 1.843 MB / 0.7903 GB, free: 18.11 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 7.604e-06/1.862, allocations: 3.281 kB / 0.7903 GB, free: 18.11 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001603/1.864, allocations: 1.046 MB / 0.7913 GB, free: 18.1 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003133/1.867, allocations: 0.7275 MB / 0.792 GB, free: 18.09 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004991/1.872, allocations: 4.083 MB / 0.796 GB, free: 16.5 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008327/1.873, allocations: 1.431 MB / 0.7974 GB, free: 15.75 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.001685/1.875, allocations: 495.7 kB / 0.7979 GB, free: 15.69 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003611/1.875, allocations: 142.8 kB / 0.798 GB, free: 15.68 MB / 266.7 MB Notification: Performance of SimCode: time 9.32e-07/1.875, allocations: 0 / 0.798 GB, free: 15.68 MB / 266.7 MB Notification: Performance of Templates: time 0.1783/2.053, allocations: 40.24 MB / 0.8373 GB, free: 31.55 MB / 266.7 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)