Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.009871/0.00987, allocations: 165.6 kB / 15.11 MB, free: 5.973 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.558/1.558, allocations: 170.8 MB / 186.6 MB, free: 1.031 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001708/0.001708, allocations: 113.6 kB / 226.2 MB, free: 10.09 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003226/0.0003226, allocations: 12 kB / 274.1 MB, free: 10.07 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2415/0.2418, allocations: 38.76 MB / 312.9 MB, free: 38.87 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7102/0.9521, allocations: 314.1 MB / 0.6123 GB, free: 71.55 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003236/0.9525, allocations: 89.11 kB / 0.6123 GB, free: 71.52 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6072/1.56, allocations: 190.8 MB / 0.7987 GB, free: 34.55 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.086e-06/1.56, allocations: 0 / 0.7987 GB, free: 34.55 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.638e-05/1.56, allocations: 20 kB / 0.7987 GB, free: 34.53 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 164 * Number of variables: 164 Notification: Performance of Generate backend data structure: time 0.005192/1.565, allocations: 1.426 MB / 0.8001 GB, free: 33.05 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.575e-05/1.565, allocations: 8.031 kB / 0.8001 GB, free: 33.04 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005439/1.566, allocations: 115.3 kB / 0.8002 GB, free: 32.93 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001606/1.567, allocations: 0.7762 MB / 0.801 GB, free: 32.11 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.64e-05/1.567, allocations: 49.3 kB / 0.801 GB, free: 32.06 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001181/1.568, allocations: 59.98 kB / 0.8011 GB, free: 32 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001694/1.569, allocations: 1.054 MB / 0.8021 GB, free: 30.89 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.468e-05/1.569, allocations: 0 / 0.8021 GB, free: 30.89 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.219e-05/1.569, allocations: 31.92 kB / 0.8021 GB, free: 30.86 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.632e-05/1.57, allocations: 69.2 kB / 0.8022 GB, free: 30.79 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001328/1.571, allocations: 1.008 MB / 0.8032 GB, free: 29.78 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005919/1.577, allocations: 4.394 MB / 0.8075 GB, free: 25.12 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007434/1.578, allocations: 0.5367 MB / 0.808 GB, free: 24.58 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001925/1.58, allocations: 1.919 MB / 0.8099 GB, free: 22.44 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.535e-05/1.58, allocations: 42.88 kB / 0.8099 GB, free: 22.39 MB / 362.7 MB Notification: Performance of pre-optimization done (n=40): time 1.993e-06/1.58, allocations: 4 kB / 0.8099 GB, free: 22.39 MB / 362.7 MB Notification: Performance of matching and sorting (n=45): time 0.003868/1.583, allocations: 1.877 MB / 0.8117 GB, free: 20.41 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.674e-05/1.584, allocations: 162.2 kB / 0.8119 GB, free: 20.22 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008697/1.584, allocations: 0.7423 MB / 0.8126 GB, free: 19.47 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.982e-05/1.584, allocations: 45.7 kB / 0.8127 GB, free: 19.42 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002833/1.585, allocations: 0.4905 MB / 0.8131 GB, free: 18.92 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001118/1.585, allocations: 157.8 kB / 0.8133 GB, free: 18.77 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.188e-05/1.585, allocations: 16 kB / 0.8133 GB, free: 18.75 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001424/1.585, allocations: 398.7 kB / 0.8137 GB, free: 18.35 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004242/1.585, allocations: 305.8 kB / 0.814 GB, free: 18.05 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006013/1.586, allocations: 0.6599 MB / 0.8146 GB, free: 17.23 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005564/1.587, allocations: 401.9 kB / 0.815 GB, free: 16.84 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.8e-06/1.587, allocations: 4 kB / 0.815 GB, free: 16.83 MB / 362.7 MB Notification: Performance of matching and sorting (n=115) (initialization): time 0.001601/1.588, allocations: 1.105 MB / 0.8161 GB, free: 15.71 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009548/1.589, allocations: 4.436 MB / 0.8204 GB, free: 10.93 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.59e-05/1.589, allocations: 12 kB / 0.8204 GB, free: 10.92 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001961/1.591, allocations: 317.4 kB / 0.8207 GB, free: 10.6 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007041/1.592, allocations: 199.7 kB / 0.8209 GB, free: 10.41 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008815/1.593, allocations: 1.319 MB / 0.8222 GB, free: 9.035 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008827/1.594, allocations: 68.05 kB / 0.8223 GB, free: 8.969 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.963e-05/1.594, allocations: 47.98 kB / 0.8223 GB, free: 8.922 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.332e-05/1.594, allocations: 7.938 kB / 0.8223 GB, free: 8.914 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001334/1.595, allocations: 0.9796 MB / 0.8233 GB, free: 7.926 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.779e-06/1.595, allocations: 8 kB / 0.8233 GB, free: 7.918 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001709/1.597, allocations: 301.4 kB / 0.8236 GB, free: 7.617 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005952/1.598, allocations: 183.7 kB / 0.8238 GB, free: 7.438 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007644/1.598, allocations: 1.292 MB / 0.825 GB, free: 6.094 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008461/1.599, allocations: 64.03 kB / 0.8251 GB, free: 6.031 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.959e-05/1.599, allocations: 47.98 kB / 0.8251 GB, free: 5.984 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 51 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[2],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 (109): * Single equations (assignments): 107 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 3,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0006884/1.6, allocations: 364.8 kB / 0.8255 GB, free: 5.617 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002217/1.6, allocations: 90.95 kB / 0.8256 GB, free: 5.527 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00258/1.603, allocations: 0.7732 MB / 0.8263 GB, free: 4.746 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.498e-06/1.603, allocations: 4 kB / 0.8263 GB, free: 4.742 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.587e-06/1.603, allocations: 0 / 0.8263 GB, free: 4.742 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.113e-05/1.603, allocations: 4.219 kB / 0.8263 GB, free: 4.738 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003878/1.607, allocations: 1.556 MB / 0.8279 GB, free: 3.109 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.504e-06/1.607, allocations: 4 kB / 0.8279 GB, free: 3.105 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006473/1.607, allocations: 71.91 kB / 0.8279 GB, free: 3.035 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002413/1.61, allocations: 293.5 kB / 0.8282 GB, free: 2.742 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.496e-05/1.61, allocations: 15.98 kB / 0.8282 GB, free: 2.727 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001256/1.611, allocations: 1.308 MB / 0.8295 GB, free: 1.367 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/1.611, allocations: 0 / 0.8295 GB, free: 1.367 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002452/1.614, allocations: 1.091 MB / 0.8306 GB, free: 240 kB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003742/1.614, allocations: 179.9 kB / 0.8307 GB, free: 40 kB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001878/1.614, allocations: 12 kB / 0.8307 GB, free: 28 kB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.1921/1.806, allocations: 38.28 kB / 0.8308 GB, free: 61.45 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002578/1.807, allocations: 47.14 kB / 0.8308 GB, free: 61.45 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.504e-05/1.807, allocations: 19.41 kB / 0.8308 GB, free: 61.45 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0008415/1.808, allocations: 0.5742 MB / 0.8314 GB, free: 61.36 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.6e-07/1.808, allocations: 0 / 0.8314 GB, free: 61.36 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.003728/1.811, allocations: 0.7959 MB / 0.8322 GB, free: 61.36 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (tank1.medium.T,tank1.level) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank1.aboveLevel[2]) * Number of discrete states: 2 (tank1.aboveLevel[1],tank1.aboveLevel[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 41 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.002404/1.814, allocations: 0.8111 MB / 0.833 GB, free: 61.27 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002744/1.817, allocations: 1.249 MB / 0.8342 GB, free: 61.27 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.953e-06/1.817, allocations: 3.812 kB / 0.8342 GB, free: 61.27 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007477/1.817, allocations: 352.1 kB / 0.8345 GB, free: 61.27 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001418/1.819, allocations: 303 kB / 0.8348 GB, free: 61.27 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002809/1.822, allocations: 2.087 MB / 0.8369 GB, free: 60.45 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004152/1.822, allocations: 1.056 MB / 0.8379 GB, free: 59.75 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.001082/1.823, allocations: 339 kB / 0.8382 GB, free: 59.74 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001628/1.823, allocations: 74.83 kB / 0.8383 GB, free: 59.73 MB / 362.7 MB Notification: Performance of SimCode: time 9.42e-07/1.823, allocations: 0 / 0.8383 GB, free: 59.73 MB / 362.7 MB Notification: Performance of Templates: time 0.03069/1.854, allocations: 21.62 MB / 0.8594 GB, free: 58.85 MB / 362.7 MB make -j1 -f Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.makefile (rm -f Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; mkfifo Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe >> ../files/Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.sim & ./Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe 2>&1)