Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.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.TanksWithEmptyingPipe1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo): time 0.9007/0.9007, 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.001855/0.001855, allocations: 143.3 kB / 151.9 MB, free: 5 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002899/0.0002899, allocations: 15.98 kB / 184.9 MB, free: 3.918 MB / 154.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1777/0.178, allocations: 25.15 MB / 210.1 MB, free: 29.75 MB / 170.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4749/0.653, allocations: 238.6 MB / 448.6 MB, free: 30.29 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002933/0.6533, allocations: 71.97 kB / 448.7 MB, free: 30.22 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.917/1.57, allocations: 260.4 MB / 0.6925 GB, free: 26.28 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.294e-06/1.57, allocations: 3.844 kB / 0.6925 GB, free: 26.28 MB / 250.7 MB Notification: Performance of Transformations before backend: time 0.0001053/1.57, allocations: 39.92 kB / 0.6925 GB, free: 26.27 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: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.004222/1.575, allocations: 1.848 MB / 0.6943 GB, free: 25.4 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.798e-05/1.575, allocations: 6.281 kB / 0.6943 GB, free: 25.4 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003086/1.575, allocations: 157.2 kB / 0.6945 GB, free: 25.32 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001827/1.577, allocations: 1.048 MB / 0.6955 GB, free: 24.98 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.984e-05/1.577, allocations: 76.03 kB / 0.6956 GB, free: 24.98 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001399/1.577, allocations: 91.98 kB / 0.6957 GB, free: 24.98 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002024/1.579, allocations: 1.528 MB / 0.6972 GB, free: 24.73 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.404e-05/1.579, allocations: 4.156 kB / 0.6972 GB, free: 24.73 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001205/1.579, allocations: 40.03 kB / 0.6972 GB, free: 24.73 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001012/1.579, allocations: 103.3 kB / 0.6973 GB, free: 24.73 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00192/1.581, allocations: 1.469 MB / 0.6987 GB, free: 24.72 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007495/1.589, allocations: 6.401 MB / 0.705 GB, free: 21.38 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001245/1.59, allocations: 0.8865 MB / 0.7058 GB, free: 21.34 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003277/1.593, allocations: 2.706 MB / 0.7085 GB, free: 19.79 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.221e-05/1.593, allocations: 46.78 kB / 0.7085 GB, free: 19.75 MB / 250.7 MB Notification: Performance of pre-optimization done (n=80): time 2.334e-06/1.594, allocations: 2.438 kB / 0.7085 GB, free: 19.75 MB / 250.7 MB Notification: Performance of matching and sorting (n=88): time 0.007016/1.601, allocations: 3.536 MB / 0.712 GB, free: 18.89 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.853e-05/1.601, allocations: 198.8 kB / 0.7122 GB, free: 18.67 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001119/1.602, allocations: 0.9792 MB / 0.7131 GB, free: 18.51 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 8.267e-05/1.602, allocations: 49.83 kB / 0.7132 GB, free: 18.48 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003671/1.602, allocations: 0.6514 MB / 0.7138 GB, free: 18.19 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001942/1.602, allocations: 315.2 kB / 0.7141 GB, free: 18 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.261e-05/1.602, allocations: 26.97 kB / 0.7141 GB, free: 18 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 8.604e-05/1.603, allocations: 361.7 kB / 0.7145 GB, free: 17.7 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006813/1.603, allocations: 0.5063 MB / 0.715 GB, free: 17.69 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008406/1.604, allocations: 0.9758 MB / 0.7159 GB, free: 17.13 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000782/1.605, allocations: 0.6348 MB / 0.7166 GB, free: 17.11 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.151e-06/1.605, allocations: 2.594 kB / 0.7166 GB, free: 17.11 MB / 250.7 MB Notification: Performance of matching and sorting (n=174) (initialization): time 0.002394/1.607, allocations: 1.771 MB / 0.7183 GB, free: 16.97 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.473e-05/1.607, allocations: 12.03 kB / 0.7183 GB, free: 16.97 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.497e-05/1.607, allocations: 17.8 kB / 0.7183 GB, free: 16.97 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003499/1.611, allocations: 0.6434 MB / 0.7189 GB, free: 16.95 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009564/1.612, allocations: 278 kB / 0.7192 GB, free: 16.94 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001397/1.613, allocations: 2.117 MB / 0.7213 GB, free: 15.36 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001325/1.615, allocations: 113.4 kB / 0.7214 GB, free: 15.35 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001125/1.615, allocations: 64.61 kB / 0.7214 GB, free: 15.35 MB / 250.7 MB Warning: Assuming fixed start value for the following 4 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 Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 64 * Number of states: 0 () * Number of discrete variables: 12 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[2],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[2],tank2.ports_m_flow_out[2],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[2],tank1.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 (160): * Single equations (assignments): 157 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 3,2 7,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.000739/1.615, allocations: 437.9 kB / 0.7219 GB, free: 15.2 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001743/1.616, allocations: 130.3 kB / 0.722 GB, free: 15.13 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002522/1.618, allocations: 1.496 MB / 0.7235 GB, free: 15 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.436e-06/1.618, allocations: 11.31 kB / 0.7235 GB, free: 15 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.019e-06/1.618, allocations: 1.75 kB / 0.7235 GB, free: 15 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.307e-06/1.618, allocations: 7.594 kB / 0.7235 GB, free: 15 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003727/1.622, allocations: 2.69 MB / 0.7261 GB, free: 14.16 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.531e-06/1.622, allocations: 3.469 kB / 0.7261 GB, free: 14.16 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006296/1.623, allocations: 146.4 kB / 0.7262 GB, free: 14.14 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002577/1.625, allocations: 0.5979 MB / 0.7268 GB, free: 14.05 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.889e-05/1.625, allocations: 31.64 kB / 0.7269 GB, free: 14.04 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001265/1.627, allocations: 2.099 MB / 0.7289 GB, free: 12.26 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/1.627, allocations: 3.062 kB / 0.7289 GB, free: 12.26 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002609/1.629, allocations: 2.088 MB / 0.7309 GB, free: 11.27 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003642/1.63, allocations: 215.3 kB / 0.7312 GB, free: 11.09 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001743/1.63, allocations: 27.53 kB / 0.7312 GB, free: 11.07 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007724/1.631, allocations: 79.66 kB / 0.7313 GB, free: 11.05 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001666/1.631, allocations: 98 kB / 0.7313 GB, free: 11.03 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.921e-05/1.631, allocations: 33.02 kB / 0.7314 GB, free: 11.03 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0008496/1.632, allocations: 0.756 MB / 0.7321 GB, free: 10.72 MB / 250.7 MB Notification: Performance of sort global known variables: time 2.4e-07/1.632, allocations: 0 / 0.7321 GB, free: 10.72 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.002085/1.634, allocations: 0.7576 MB / 0.7329 GB, free: 10.52 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Number of discrete states: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (82): * Single equations (assignments): 79 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {2 12,1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.001575/1.635, allocations: 0.951 MB / 0.7338 GB, free: 10.22 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.002065/1.637, allocations: 1.292 MB / 0.735 GB, free: 9.801 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 4.829e-06/1.637, allocations: 5.312 kB / 0.7351 GB, free: 9.801 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001179/1.639, allocations: 0.6982 MB / 0.7357 GB, free: 9.594 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00223/1.641, allocations: 0.5405 MB / 0.7363 GB, free: 9.48 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004009/1.645, allocations: 3.181 MB / 0.7394 GB, free: 7.816 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005702/1.645, allocations: 1.277 MB / 0.7406 GB, free: 7.035 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.001395/1.647, allocations: 385.1 kB / 0.741 GB, free: 6.98 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002715/1.647, allocations: 103.3 kB / 0.7411 GB, free: 6.883 MB / 250.7 MB Notification: Performance of SimCode: time 9.22e-07/1.647, allocations: 3.938 kB / 0.7411 GB, free: 6.879 MB / 250.7 MB Notification: Performance of Templates: time 0.1769/1.824, allocations: 31.08 MB / 0.7714 GB, free: 23.78 MB / 250.7 MB make -j1 -f Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.makefile (rm -f Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; mkfifo Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe >> ../files/Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.sim & ./Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe 2>&1)