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.9156/0.9156, allocations: 110.8 MB / 118.3 MB, free: 10.52 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001907/0.001907, allocations: 155.3 kB / 144 MB, free: 9.801 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 1.905e-05/1.91e-05, allocations: 4 kB / 173.9 MB, free: 11.87 MB / 154.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05498/0.05502, allocations: 25.17 MB / 199 MB, free: 2.652 MB / 170.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5861/0.6411, allocations: 237.8 MB / 436.8 MB, free: 45.32 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002029/0.6414, allocations: 70.3 kB / 436.9 MB, free: 45.25 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.004/1.646, allocations: 257.8 MB / 0.6784 GB, free: 31.17 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.533e-06/1.646, allocations: 2.438 kB / 0.6784 GB, free: 31.17 MB / 250.7 MB Notification: Performance of Transformations before backend: time 0.0001667/1.646, allocations: 39.84 kB / 0.6785 GB, free: 31.16 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.005094/1.651, allocations: 1.674 MB / 0.6801 GB, free: 30.36 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.334e-05/1.651, allocations: 11.28 kB / 0.6801 GB, free: 30.36 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007301/1.652, allocations: 157.7 kB / 0.6803 GB, free: 30.29 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002397/1.654, allocations: 1.028 MB / 0.6813 GB, free: 29.95 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.666e-05/1.654, allocations: 34.72 kB / 0.6813 GB, free: 29.95 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002713/1.655, allocations: 55.36 kB / 0.6814 GB, free: 29.95 MB / 250.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002217/1.657, allocations: 1.261 MB / 0.6826 GB, free: 29.95 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002249/1.659, allocations: 1.375 MB / 0.6839 GB, free: 29.71 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.238e-05/1.659, allocations: 3.828 kB / 0.6839 GB, free: 29.71 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001424/1.659, allocations: 8.859 kB / 0.6839 GB, free: 29.71 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001459/1.66, allocations: 94.91 kB / 0.684 GB, free: 29.71 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007535/1.667, allocations: 6.195 MB / 0.6901 GB, free: 26.43 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001047/1.668, allocations: 0.8386 MB / 0.6909 GB, free: 26.39 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005723/1.669, allocations: 0.4895 MB / 0.6914 GB, free: 26.39 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00305/1.672, allocations: 2.738 MB / 0.6941 GB, free: 24.84 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.781e-05/1.672, allocations: 45.77 kB / 0.6941 GB, free: 24.79 MB / 250.7 MB Notification: Performance of pre-optimization done (n=80): time 2.675e-06/1.672, allocations: 2.906 kB / 0.6941 GB, free: 24.79 MB / 250.7 MB Notification: Performance of matching and sorting (n=88): time 0.009047/1.681, allocations: 2.981 MB / 0.697 GB, free: 24.23 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.135e-05/1.681, allocations: 193.4 kB / 0.6972 GB, free: 24.02 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001158/1.682, allocations: 0.7979 MB / 0.698 GB, free: 23.86 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 8.752e-05/1.682, allocations: 29.02 kB / 0.698 GB, free: 23.82 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004529/1.683, allocations: 0.6626 MB / 0.6987 GB, free: 23.5 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002346/1.683, allocations: 302.7 kB / 0.6989 GB, free: 23.32 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.83e-05/1.683, allocations: 0 / 0.6989 GB, free: 23.32 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001081/1.683, allocations: 365.4 kB / 0.6993 GB, free: 23.01 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006771/1.684, allocations: 481.1 kB / 0.6997 GB, free: 23 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008365/1.685, allocations: 0.9278 MB / 0.7007 GB, free: 22.45 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002356/1.687, allocations: 0.8093 MB / 0.7014 GB, free: 22.43 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-05/1.687, allocations: 3.906 kB / 0.7014 GB, free: 22.43 MB / 250.7 MB Notification: Performance of matching and sorting (n=174) (initialization): time 0.004337/1.691, allocations: 1.808 MB / 0.7032 GB, free: 22.28 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.641e-05/1.692, allocations: 15.88 kB / 0.7032 GB, free: 22.28 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.014e-05/1.692, allocations: 13.19 kB / 0.7032 GB, free: 22.28 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008892/1.693, allocations: 304.5 kB / 0.7035 GB, free: 22.25 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009611/1.694, allocations: 274.4 kB / 0.7038 GB, free: 22.25 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00303/1.697, allocations: 2.366 MB / 0.7061 GB, free: 20.69 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001473/1.698, allocations: 74.3 kB / 0.7062 GB, free: 20.69 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002157/1.698, allocations: 67.84 kB / 0.7062 GB, free: 20.69 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" 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 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 () * 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.0005093/1.699, allocations: 196.2 kB / 0.7064 GB, free: 20.57 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000321/1.699, allocations: 123 kB / 0.7065 GB, free: 20.5 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004501/1.704, allocations: 1.506 MB / 0.708 GB, free: 20.36 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.109e-05/1.704, allocations: 11.03 kB / 0.708 GB, free: 20.36 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.528e-06/1.704, allocations: 0 / 0.708 GB, free: 20.36 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.048e-05/1.704, allocations: 7.281 kB / 0.708 GB, free: 20.36 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005211/1.709, allocations: 2.606 MB / 0.7106 GB, free: 19.98 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.955e-06/1.709, allocations: 5.656 kB / 0.7106 GB, free: 19.98 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006611/1.71, allocations: 146.7 kB / 0.7107 GB, free: 19.97 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009537/1.711, allocations: 311.6 kB / 0.711 GB, free: 19.95 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.468e-05/1.711, allocations: 14.62 kB / 0.711 GB, free: 19.95 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002716/1.713, allocations: 2.249 MB / 0.7132 GB, free: 18.36 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.873e-06/1.713, allocations: 7.875 kB / 0.7132 GB, free: 18.36 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003652/1.717, allocations: 2.093 MB / 0.7153 GB, free: 17.99 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004677/1.718, allocations: 206.7 kB / 0.7155 GB, free: 17.82 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002993/1.718, allocations: 7.484 kB / 0.7155 GB, free: 17.82 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008967/1.719, allocations: 58.92 kB / 0.7155 GB, free: 17.82 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001718/1.719, allocations: 96.5 kB / 0.7156 GB, free: 17.82 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.906e-05/1.719, allocations: 37.47 kB / 0.7157 GB, free: 17.82 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0008331/1.72, allocations: 0.5889 MB / 0.7162 GB, free: 17.71 MB / 250.7 MB Notification: Performance of sort global known variables: time 2.3e-07/1.72, allocations: 0 / 0.7162 GB, free: 17.71 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.002487/1.722, allocations: 0.71 MB / 0.7169 GB, free: 17.57 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]) * 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.002525/1.725, allocations: 0.9251 MB / 0.7178 GB, free: 17.31 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.002132/1.727, allocations: 1.203 MB / 0.719 GB, free: 17.25 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 5.41e-06/1.727, allocations: 0 / 0.719 GB, free: 17.25 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001048/1.728, allocations: 0.6268 MB / 0.7196 GB, free: 17.22 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002955/1.731, allocations: 0.5233 MB / 0.7201 GB, free: 17.2 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004454/1.736, allocations: 2.071 MB / 0.7222 GB, free: 16.55 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001043/1.737, allocations: 1.275 MB / 0.7234 GB, free: 15.81 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.001599/1.738, allocations: 369.5 kB / 0.7238 GB, free: 15.76 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003653/1.739, allocations: 105.5 kB / 0.7239 GB, free: 15.75 MB / 250.7 MB Notification: Performance of SimCode: time 1.402e-06/1.739, allocations: 0 / 0.7239 GB, free: 15.75 MB / 250.7 MB Notification: Performance of Templates: time 0.196/1.935, allocations: 28.21 MB / 0.7514 GB, free: 29.47 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)