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.9617/0.9617, allocations: 110.8 MB / 118.3 MB, free: 14.48 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.002039/0.002039, allocations: 163.3 kB / 144 MB, free: 4.797 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 2.254e-05/2.256e-05, allocations: 0.625 kB / 173.9 MB, free: 22.8 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04673/0.04677, allocations: 25.18 MB / 199 MB, free: 13.7 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6077/0.6545, allocations: 240.1 MB / 439.1 MB, free: 83.68 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000219/0.6548, allocations: 71.61 kB / 439.2 MB, free: 83.68 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.016/1.671, allocations: 299.2 MB / 0.7211 GB, free: 20.61 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.432e-06/1.671, allocations: 0 / 0.7211 GB, free: 20.61 MB / 250.7 MB Notification: Performance of Transformations before backend: time 0.0001427/1.671, allocations: 47.33 kB / 0.7212 GB, free: 20.6 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.005924/1.677, allocations: 1.932 MB / 0.7231 GB, free: 19.74 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.99e-05/1.677, allocations: 10 kB / 0.7231 GB, free: 19.74 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007693/1.678, allocations: 186.2 kB / 0.7232 GB, free: 19.65 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002445/1.68, allocations: 1.186 MB / 0.7244 GB, free: 19.28 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.527e-05/1.68, allocations: 44.03 kB / 0.7244 GB, free: 19.28 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001759/1.68, allocations: 66.58 kB / 0.7245 GB, free: 19.28 MB / 250.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002371/1.683, allocations: 1.591 MB / 0.7261 GB, free: 19.27 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002288/1.685, allocations: 1.652 MB / 0.7277 GB, free: 18.99 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.472e-05/1.685, allocations: 3.406 kB / 0.7277 GB, free: 18.99 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001343/1.685, allocations: 3.438 kB / 0.7277 GB, free: 18.99 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001258/1.685, allocations: 116.6 kB / 0.7278 GB, free: 18.98 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00899/1.694, allocations: 7.166 MB / 0.7348 GB, free: 15.43 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001499/1.696, allocations: 1.092 MB / 0.7359 GB, free: 15.4 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007788/1.697, allocations: 0.6738 MB / 0.7365 GB, free: 15.39 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00457/1.701, allocations: 3.282 MB / 0.7397 GB, free: 13.74 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.684e-05/1.701, allocations: 45.56 kB / 0.7398 GB, free: 13.7 MB / 250.7 MB Notification: Performance of pre-optimization done (n=119): time 3.296e-06/1.701, allocations: 0 / 0.7398 GB, free: 13.7 MB / 250.7 MB Notification: Performance of matching and sorting (n=131): time 0.01507/1.717, allocations: 4.501 MB / 0.7442 GB, free: 13.05 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.773e-05/1.717, allocations: 169.5 kB / 0.7443 GB, free: 12.86 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001297/1.718, allocations: 0.8731 MB / 0.7452 GB, free: 12.7 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002171/1.718, allocations: 33.39 kB / 0.7452 GB, free: 12.67 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005188/1.719, allocations: 0.7193 MB / 0.7459 GB, free: 12.35 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003719/1.719, allocations: 441.7 kB / 0.7463 GB, free: 12.07 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.695e-05/1.719, allocations: 2.156 kB / 0.7463 GB, free: 12.07 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001113/1.719, allocations: 369.6 kB / 0.7467 GB, free: 11.76 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009555/1.72, allocations: 0.6515 MB / 0.7473 GB, free: 11.76 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001027/1.721, allocations: 1.103 MB / 0.7484 GB, free: 11.26 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004049/1.725, allocations: 1.15 MB / 0.7495 GB, free: 11.23 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.802e-05/1.725, allocations: 9.828 kB / 0.7495 GB, free: 11.23 MB / 250.7 MB Notification: Performance of matching and sorting (n=216) (initialization): time 0.006987/1.732, allocations: 2.459 MB / 0.7519 GB, free: 11.06 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.153e-05/1.732, allocations: 14.84 kB / 0.7519 GB, free: 11.06 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.561e-05/1.733, allocations: 14.73 kB / 0.752 GB, free: 11.06 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001223/1.734, allocations: 437.2 kB / 0.7524 GB, free: 11.03 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001302/1.735, allocations: 338.8 kB / 0.7527 GB, free: 11.03 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004227/1.739, allocations: 3.198 MB / 0.7558 GB, free: 8.941 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001994/1.741, allocations: 104.5 kB / 0.7559 GB, free: 8.934 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004323/1.742, allocations: 79.5 kB / 0.756 GB, free: 8.934 MB / 250.7 MB Warning: Assuming fixed start value for the following 6 variables: tank2.level:VARIABLE(min = 0.0 start = tank2.level_start unit = "m" 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" nominal = 300.0 stateSelect=StateSelect.prefer ) "Temperature of medium" type: Real tank1.level:VARIABLE(min = 0.0 start = tank1.level_start unit = "m" 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" nominal = 300.0 stateSelect=StateSelect.prefer ) "Temperature of medium" type: Real tank3.level:VARIABLE(min = 0.0 start = tank3.level_start unit = "m" 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" 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 () * 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.0008005/1.743, allocations: 212.9 kB / 0.7562 GB, free: 8.816 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005119/1.743, allocations: 150 kB / 0.7563 GB, free: 8.742 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006282/1.749, allocations: 2.321 MB / 0.7586 GB, free: 8.574 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.967e-05/1.749, allocations: 23.06 kB / 0.7586 GB, free: 8.574 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.286e-05/1.749, allocations: 0 / 0.7586 GB, free: 8.574 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.953e-05/1.75, allocations: 6.844 kB / 0.7586 GB, free: 8.574 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009068/1.759, allocations: 3.74 MB / 0.7623 GB, free: 8.16 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.061e-05/1.759, allocations: 6.922 kB / 0.7623 GB, free: 8.16 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001062/1.76, allocations: 235.9 kB / 0.7625 GB, free: 8.16 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00135/1.761, allocations: 440.9 kB / 0.7629 GB, free: 8.125 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002043/1.761, allocations: 20.92 kB / 0.763 GB, free: 8.125 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00363/1.765, allocations: 3.014 MB / 0.7659 GB, free: 22.04 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.224e-05/1.765, allocations: 9.766 kB / 0.7659 GB, free: 22.04 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00626/1.771, allocations: 3.144 MB / 0.769 GB, free: 21.58 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007049/1.772, allocations: 236.9 kB / 0.7692 GB, free: 21.4 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004968/1.773, allocations: 14.52 kB / 0.7692 GB, free: 21.4 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001297/1.774, allocations: 83.34 kB / 0.7693 GB, free: 21.39 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002534/1.774, allocations: 152 kB / 0.7694 GB, free: 21.39 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001476/1.774, allocations: 53.38 kB / 0.7695 GB, free: 21.39 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0009657/1.775, allocations: 0.6515 MB / 0.7701 GB, free: 21.28 MB / 266.7 MB Notification: Performance of sort global known variables: time 3.4e-07/1.775, allocations: 0.75 kB / 0.7701 GB, free: 21.28 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.002886/1.778, allocations: 0.822 MB / 0.7709 GB, free: 21.13 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]) * 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.002657/1.781, allocations: 1.046 MB / 0.772 GB, free: 20.85 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.003106/1.784, allocations: 1.715 MB / 0.7736 GB, free: 20.81 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 7.374e-06/1.784, allocations: 0 / 0.7736 GB, free: 20.81 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001604/1.786, allocations: 1.001 MB / 0.7746 GB, free: 20.8 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003915/1.789, allocations: 0.6747 MB / 0.7753 GB, free: 20.79 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005723/1.795, allocations: 2.688 MB / 0.7779 GB, free: 20.05 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001506/1.797, allocations: 1.423 MB / 0.7793 GB, free: 19.32 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.002611/1.799, allocations: 493.1 kB / 0.7798 GB, free: 19.25 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005784/1.8, allocations: 133.5 kB / 0.7799 GB, free: 19.24 MB / 266.7 MB Notification: Performance of SimCode: time 1.332e-06/1.8, allocations: 0 / 0.7799 GB, free: 19.24 MB / 266.7 MB Notification: Performance of Templates: time 0.05623/1.856, allocations: 36.58 MB / 0.8156 GB, free: 3.527 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)