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.0009771/0.0009773, allocations: 169.9 kB / 12.72 MB, free: 2.594 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.104/1.104, allocations: 170.6 MB / 183.8 MB, free: 11.48 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.001513/0.001513, allocations: 99.52 kB / 223.2 MB, free: 4.113 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.402e-05/2.404e-05, allocations: 0 / 268.9 MB, free: 20.93 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06358/0.06362, allocations: 38.77 MB / 307.6 MB, free: 14.13 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.589/0.6527, allocations: 314 MB / 0.607 GB, free: 4.652 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002115/0.653, allocations: 95.89 kB / 0.6071 GB, free: 4.602 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7128/1.366, allocations: 190.2 MB / 0.7928 GB, free: 67.66 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.392e-06/1.366, allocations: 0 / 0.7928 GB, free: 67.66 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.867e-05/1.366, allocations: 30.75 kB / 0.7929 GB, free: 67.66 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.002992/1.369, allocations: 1.291 MB / 0.7941 GB, free: 67.04 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.29e-05/1.369, allocations: 14.66 kB / 0.7941 GB, free: 67.03 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003691/1.369, allocations: 115 kB / 0.7943 GB, free: 66.98 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001461/1.371, allocations: 0.7773 MB / 0.795 GB, free: 66.73 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.652e-05/1.371, allocations: 52.38 kB / 0.7951 GB, free: 66.72 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001074/1.371, allocations: 63.36 kB / 0.7951 GB, free: 66.72 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001437/1.372, allocations: 1.039 MB / 0.7961 GB, free: 66.54 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.994e-05/1.372, allocations: 3.656 kB / 0.7961 GB, free: 66.54 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.383e-05/1.373, allocations: 25.64 kB / 0.7962 GB, free: 66.54 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.144e-05/1.373, allocations: 63.55 kB / 0.7962 GB, free: 66.54 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001274/1.374, allocations: 0.9935 MB / 0.7972 GB, free: 66.53 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005246/1.379, allocations: 4.403 MB / 0.8015 GB, free: 64.33 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007191/1.38, allocations: 0.5186 MB / 0.802 GB, free: 64.3 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003617/1.38, allocations: 304.2 kB / 0.8023 GB, free: 64.3 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00199/1.382, allocations: 1.998 MB / 0.8042 GB, free: 63.05 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.543e-05/1.382, allocations: 45.03 kB / 0.8043 GB, free: 63.01 MB / 362.7 MB Notification: Performance of pre-optimization done (n=40): time 2.274e-06/1.382, allocations: 2.812 kB / 0.8043 GB, free: 63.01 MB / 362.7 MB Notification: Performance of matching and sorting (n=45): time 0.002813/1.385, allocations: 1.453 MB / 0.8057 GB, free: 62.59 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.498e-05/1.385, allocations: 162.1 kB / 0.8059 GB, free: 62.4 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008197/1.386, allocations: 0.7323 MB / 0.8066 GB, free: 62.26 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.647e-05/1.386, allocations: 36.3 kB / 0.8066 GB, free: 62.23 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002572/1.386, allocations: 495.5 kB / 0.8071 GB, free: 61.98 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001035/1.386, allocations: 164.1 kB / 0.8072 GB, free: 61.89 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.15e-05/1.387, allocations: 19.94 kB / 0.8073 GB, free: 61.89 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001116/1.387, allocations: 395.5 kB / 0.8076 GB, free: 61.57 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000415/1.387, allocations: 299.1 kB / 0.8079 GB, free: 61.57 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005864/1.388, allocations: 0.6509 MB / 0.8086 GB, free: 61.13 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005258/1.388, allocations: 396.3 kB / 0.8089 GB, free: 61.13 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.069e-06/1.388, allocations: 2.75 kB / 0.8089 GB, free: 61.13 MB / 362.7 MB Notification: Performance of matching and sorting (n=115) (initialization): time 0.00153/1.39, allocations: 1.093 MB / 0.81 GB, free: 61.02 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007647/1.391, allocations: 4.439 MB / 0.8143 GB, free: 56.41 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.678e-05/1.391, allocations: 11.06 kB / 0.8144 GB, free: 56.41 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001922/1.392, allocations: 308.8 kB / 0.8146 GB, free: 56.39 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006757/1.393, allocations: 191.3 kB / 0.8148 GB, free: 56.39 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008724/1.394, allocations: 1.339 MB / 0.8161 GB, free: 55.34 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008826/1.395, allocations: 63.05 kB / 0.8162 GB, free: 55.34 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.23e-05/1.395, allocations: 48.95 kB / 0.8162 GB, free: 55.34 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.001e-05/1.395, allocations: 7.125 kB / 0.8163 GB, free: 55.34 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001393/1.396, allocations: 0.9655 MB / 0.8172 GB, free: 55.32 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.217e-05/1.396, allocations: 10.22 kB / 0.8172 GB, free: 55.32 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00154/1.398, allocations: 292.9 kB / 0.8175 GB, free: 55.3 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005635/1.399, allocations: 189.7 kB / 0.8177 GB, free: 55.3 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006755/1.399, allocations: 1.28 MB / 0.8189 GB, free: 54.26 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007023/1.4, allocations: 74.73 kB / 0.819 GB, free: 54.25 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.037e-05/1.4, allocations: 45.09 kB / 0.819 GB, free: 54.25 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 () * 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.0002178/1.4, allocations: 174.7 kB / 0.8192 GB, free: 54.14 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001495/1.4, allocations: 87.34 kB / 0.8193 GB, free: 54.09 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001476/1.402, allocations: 0.7565 MB / 0.82 GB, free: 54 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.384e-06/1.402, allocations: 7.531 kB / 0.82 GB, free: 54 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/1.402, allocations: 7.359 kB / 0.82 GB, free: 54 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.116e-06/1.402, allocations: 3.656 kB / 0.82 GB, free: 54 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002174/1.404, allocations: 1.536 MB / 0.8215 GB, free: 53.65 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.877e-06/1.404, allocations: 0 / 0.8215 GB, free: 53.65 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003659/1.405, allocations: 77.28 kB / 0.8216 GB, free: 53.65 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001278/1.406, allocations: 281.7 kB / 0.8219 GB, free: 53.63 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.888e-05/1.406, allocations: 10.19 kB / 0.8219 GB, free: 53.63 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007161/1.407, allocations: 1.305 MB / 0.8232 GB, free: 52.59 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/1.407, allocations: 3.781 kB / 0.8232 GB, free: 52.59 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001248/1.408, allocations: 1.082 MB / 0.8242 GB, free: 52.32 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002191/1.408, allocations: 176 kB / 0.8244 GB, free: 52.18 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001097/1.408, allocations: 17.75 kB / 0.8244 GB, free: 52.18 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004758/1.409, allocations: 39.83 kB / 0.8244 GB, free: 52.18 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001018/1.409, allocations: 46.75 kB / 0.8245 GB, free: 52.18 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.058e-05/1.409, allocations: 23.41 kB / 0.8245 GB, free: 52.18 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0006259/1.41, allocations: 0.5565 MB / 0.8251 GB, free: 52.09 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.41e-07/1.41, allocations: 0 / 0.8251 GB, free: 52.09 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002117/1.412, allocations: 0.8053 MB / 0.8258 GB, free: 51.94 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]) * 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.001457/1.413, allocations: 0.799 MB / 0.8266 GB, free: 51.71 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002039/1.415, allocations: 1.257 MB / 0.8278 GB, free: 51.66 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.968e-06/1.415, allocations: 3.688 kB / 0.8279 GB, free: 51.66 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000703/1.416, allocations: 343.3 kB / 0.8282 GB, free: 51.64 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001325/1.417, allocations: 314.9 kB / 0.8285 GB, free: 51.62 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002226/1.419, allocations: 1.34 MB / 0.8298 GB, free: 51.29 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004156/1.42, allocations: 1.063 MB / 0.8308 GB, free: 50.58 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.00124/1.421, allocations: 404.8 kB / 0.8312 GB, free: 50.56 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001476/1.421, allocations: 66.89 kB / 0.8313 GB, free: 50.55 MB / 362.7 MB Notification: Performance of SimCode: time 9.62e-07/1.421, allocations: 0 / 0.8313 GB, free: 50.55 MB / 362.7 MB Notification: Performance of Templates: time 0.03232/1.454, allocations: 23.34 MB / 0.8541 GB, free: 46.44 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)