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.9895/0.9895, allocations: 110.8 MB / 123.3 MB, free: 10.74 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001795/0.001795, allocations: 151.4 kB / 149.1 MB, free: 0.9531 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 3.256e-05/3.259e-05, allocations: 4 kB / 180.2 MB, free: 17.54 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06367/0.06372, allocations: 25.17 MB / 205.4 MB, free: 8.418 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6878/0.7515, allocations: 238.5 MB / 443.9 MB, free: 63.35 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000194/0.7518, allocations: 68.09 kB / 443.9 MB, free: 63.35 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8429/1.595, allocations: 259.4 MB / 0.6868 GB, free: 8.055 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.923e-06/1.595, allocations: 0 / 0.6868 GB, free: 8.055 MB / 250.7 MB Notification: Performance of Transformations before backend: time 0.0001307/1.595, allocations: 39.94 kB / 0.6869 GB, free: 8.016 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.004745/1.6, allocations: 1.68 MB / 0.6885 GB, free: 6.289 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.355e-05/1.6, allocations: 8.031 kB / 0.6885 GB, free: 6.281 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004286/1.6, allocations: 154.2 kB / 0.6887 GB, free: 6.129 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002373/1.602, allocations: 1.034 MB / 0.6897 GB, free: 5.051 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.17e-05/1.603, allocations: 82.47 kB / 0.6898 GB, free: 4.969 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002083/1.603, allocations: 87.94 kB / 0.6898 GB, free: 4.883 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002585/1.605, allocations: 1.506 MB / 0.6913 GB, free: 3.301 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.42e-05/1.605, allocations: 0 / 0.6913 GB, free: 3.301 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001371/1.606, allocations: 39.98 kB / 0.6913 GB, free: 3.262 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001336/1.606, allocations: 97.94 kB / 0.6914 GB, free: 3.164 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002394/1.608, allocations: 1.444 MB / 0.6929 GB, free: 1.719 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1868/1.795, allocations: 6.388 MB / 0.6991 GB, free: 18.53 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001315/1.796, allocations: 0.8749 MB / 0.6999 GB, free: 18.5 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007203/1.797, allocations: 0.5227 MB / 0.7005 GB, free: 18.49 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003366/1.8, allocations: 2.779 MB / 0.7032 GB, free: 16.96 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.664e-05/1.8, allocations: 48.5 kB / 0.7032 GB, free: 16.92 MB / 250.7 MB Notification: Performance of pre-optimization done (n=80): time 2.204e-06/1.8, allocations: 3.219 kB / 0.7032 GB, free: 16.92 MB / 250.7 MB Notification: Performance of matching and sorting (n=88): time 0.005566/1.806, allocations: 2.668 MB / 0.7058 GB, free: 16.39 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.549e-05/1.806, allocations: 191.9 kB / 0.706 GB, free: 16.17 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001445/1.808, allocations: 0.9756 MB / 0.707 GB, free: 16.01 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 8.873e-05/1.808, allocations: 46.23 kB / 0.707 GB, free: 15.98 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003904/1.808, allocations: 0.6529 MB / 0.7076 GB, free: 15.74 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002103/1.808, allocations: 309.7 kB / 0.7079 GB, free: 15.59 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.142e-05/1.808, allocations: 31.03 kB / 0.708 GB, free: 15.59 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 9.48e-05/1.809, allocations: 363.5 kB / 0.7083 GB, free: 15.28 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006537/1.809, allocations: 0.4926 MB / 0.7088 GB, free: 15.28 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008269/1.81, allocations: 0.9657 MB / 0.7097 GB, free: 14.73 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008192/1.811, allocations: 0.6246 MB / 0.7103 GB, free: 14.72 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.854e-06/1.811, allocations: 8.359 kB / 0.7104 GB, free: 14.71 MB / 250.7 MB Notification: Performance of matching and sorting (n=174) (initialization): time 0.002793/1.814, allocations: 1.749 MB / 0.7121 GB, free: 14.56 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.645e-05/1.814, allocations: 11.59 kB / 0.7121 GB, free: 14.56 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.784e-05/1.814, allocations: 15.28 kB / 0.7121 GB, free: 14.56 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00341/1.817, allocations: 0.6307 MB / 0.7127 GB, free: 14.54 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009413/1.818, allocations: 283.7 kB / 0.713 GB, free: 14.54 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001486/1.82, allocations: 2.101 MB / 0.715 GB, free: 12.98 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001419/1.821, allocations: 109.3 kB / 0.7151 GB, free: 12.98 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001214/1.821, allocations: 70.94 kB / 0.7152 GB, free: 12.98 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.0003791/1.822, allocations: 236.9 kB / 0.7154 GB, free: 12.86 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001883/1.822, allocations: 128.5 kB / 0.7155 GB, free: 12.8 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002751/1.824, allocations: 1.483 MB / 0.717 GB, free: 12.68 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.947e-06/1.825, allocations: 10.41 kB / 0.717 GB, free: 12.68 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/1.825, allocations: 0 / 0.717 GB, free: 12.68 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.546e-05/1.825, allocations: 10.38 kB / 0.717 GB, free: 12.68 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003963/1.829, allocations: 2.672 MB / 0.7196 GB, free: 12.29 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.172e-06/1.829, allocations: 5.094 kB / 0.7196 GB, free: 12.29 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006248/1.829, allocations: 151 kB / 0.7198 GB, free: 12.29 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002549/1.832, allocations: 0.5927 MB / 0.7204 GB, free: 12.27 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.049e-05/1.832, allocations: 25.5 kB / 0.7204 GB, free: 12.27 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001348/1.833, allocations: 2.089 MB / 0.7224 GB, free: 10.71 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.008e-06/1.833, allocations: 3.906 kB / 0.7224 GB, free: 10.71 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002771/1.836, allocations: 2.067 MB / 0.7244 GB, free: 10.34 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005414/1.837, allocations: 216.2 kB / 0.7246 GB, free: 10.18 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001872/1.837, allocations: 29.64 kB / 0.7247 GB, free: 10.18 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007502/1.838, allocations: 72.5 kB / 0.7247 GB, free: 10.17 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001816/1.838, allocations: 102.8 kB / 0.7248 GB, free: 10.17 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.898e-05/1.838, allocations: 35.5 kB / 0.7249 GB, free: 10.17 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.001026/1.839, allocations: 0.7404 MB / 0.7256 GB, free: 10.05 MB / 250.7 MB Notification: Performance of sort global known variables: time 1.5e-07/1.839, allocations: 0 / 0.7256 GB, free: 10.05 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.002714/1.842, allocations: 0.76 MB / 0.7263 GB, free: 10.05 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.002382/1.844, allocations: 0.9406 MB / 0.7273 GB, free: 9.93 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.002524/1.846, allocations: 1.276 MB / 0.7285 GB, free: 9.906 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 6.332e-06/1.846, allocations: 0 / 0.7285 GB, free: 9.906 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001369/1.848, allocations: 0.6756 MB / 0.7292 GB, free: 9.902 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002951/1.851, allocations: 0.5501 MB / 0.7297 GB, free: 9.891 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005041/1.856, allocations: 2.135 MB / 0.7318 GB, free: 9.398 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001033/1.857, allocations: 1.273 MB / 0.733 GB, free: 8.68 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.001806/1.859, allocations: 377.9 kB / 0.7334 GB, free: 8.664 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004809/1.859, allocations: 107.6 kB / 0.7335 GB, free: 8.656 MB / 250.7 MB Notification: Performance of SimCode: time 1.633e-06/1.859, allocations: 2.906 kB / 0.7335 GB, free: 8.656 MB / 250.7 MB Notification: Performance of Templates: time 0.04976/1.909, allocations: 31.61 MB / 0.7644 GB, free: 6.422 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)