Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2") Notification: Performance of loadModel(Modelica): time 1.947/1.947, allocations: 225.8 MB / 239.3 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.213e-05/3.217e-05, allocations: 8 kB / 292.1 MB, free: 8.824 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09426/0.09431, allocations: 50.42 MB / 342.6 MB, free: 6.387 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8697/0.9641, allocations: 327.6 MB / 0.6544 GB, free: 32.67 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002322/0.9643, allocations: 92.14 kB / 0.6545 GB, free: 32.62 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.546/2.51, allocations: 331.1 MB / 0.9778 GB, free: 43.81 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.799e-06/2.51, allocations: 0 / 0.9778 GB, free: 43.81 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001742/2.51, allocations: 50.41 kB / 0.9779 GB, free: 43.77 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 315 * Number of variables: 315 Notification: Performance of Generate backend data structure: time 0.006672/2.517, allocations: 2.036 MB / 0.9798 GB, free: 41.71 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.46e-05/2.517, allocations: 8.031 kB / 0.9799 GB, free: 41.7 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001301/2.519, allocations: 205.5 kB / 0.9801 GB, free: 41.5 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003566/2.522, allocations: 1.19 MB / 0.9812 GB, free: 40.28 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001464/2.522, allocations: 98.5 kB / 0.9813 GB, free: 40.19 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004805/2.523, allocations: 120.1 kB / 0.9814 GB, free: 40.08 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004481/2.527, allocations: 1.911 MB / 0.9833 GB, free: 38.09 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.753e-05/2.527, allocations: 4 kB / 0.9833 GB, free: 38.08 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000276/2.528, allocations: 52.52 kB / 0.9833 GB, free: 38.04 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001829/2.528, allocations: 118.3 kB / 0.9835 GB, free: 37.92 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004578/2.532, allocations: 1.898 MB / 0.9853 GB, free: 36.02 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01602/2.549, allocations: 7.678 MB / 0.9928 GB, free: 28 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002476/2.551, allocations: 1.141 MB / 0.9939 GB, free: 26.86 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001513/2.553, allocations: 0.7305 MB / 0.9946 GB, free: 26.12 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007023/2.56, allocations: 3.472 MB / 0.998 GB, free: 22.42 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.17e-05/2.56, allocations: 55.48 kB / 0.9981 GB, free: 22.36 MB / 442.7 MB Notification: Performance of pre-optimization done (n=119): time 4.414e-06/2.56, allocations: 4 kB / 0.9981 GB, free: 22.35 MB / 442.7 MB Notification: Performance of matching and sorting (n=134): time 0.01194/2.572, allocations: 4.119 MB / 1.002 GB, free: 18.18 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.932e-05/2.572, allocations: 167.5 kB / 1.002 GB, free: 17.98 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002413/2.574, allocations: 1.239 MB / 1.003 GB, free: 16.73 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004061/2.575, allocations: 61.69 kB / 1.004 GB, free: 16.67 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005249/2.575, allocations: 0.6654 MB / 1.004 GB, free: 16 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005865/2.576, allocations: 480.2 kB / 1.005 GB, free: 15.54 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001765/2.576, allocations: 32 kB / 1.005 GB, free: 15.51 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001236/2.576, allocations: 378.8 kB / 1.005 GB, free: 15.13 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001745/2.578, allocations: 0.7341 MB / 1.006 GB, free: 14.39 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002101/2.58, allocations: 1.13 MB / 1.007 GB, free: 13.1 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001899/2.582, allocations: 0.8635 MB / 1.008 GB, free: 12.25 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.178e-05/2.582, allocations: 4 kB / 1.008 GB, free: 12.24 MB / 442.7 MB Notification: Performance of matching and sorting (n=221) (initialization): time 0.005122/2.587, allocations: 2.226 MB / 1.01 GB, free: 9.996 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008423/2.588, allocations: 4.278 MB / 1.014 GB, free: 5.387 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.238e-05/2.588, allocations: 8 kB / 1.014 GB, free: 5.379 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00661/2.595, allocations: 0.9359 MB / 1.015 GB, free: 4.43 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001909/2.597, allocations: 343.5 kB / 1.015 GB, free: 4.094 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002872/2.6, allocations: 2.906 MB / 1.018 GB, free: 1.09 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002358/2.602, allocations: 127.9 kB / 1.018 GB, free: 0.9648 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003464/2.602, allocations: 79.97 kB / 1.018 GB, free: 0.8867 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.288e-05/2.602, allocations: 192 / 1.018 GB, free: 0.8867 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005133/2.608, allocations: 2.05 MB / 1.02 GB, free: 14.83 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.793e-05/2.608, allocations: 19.92 kB / 1.02 GB, free: 14.81 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005291/2.613, allocations: 0.6548 MB / 1.021 GB, free: 14.14 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002181/2.615, allocations: 359.4 kB / 1.021 GB, free: 13.79 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003144/2.618, allocations: 2.611 MB / 1.024 GB, free: 11.08 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001801/2.62, allocations: 131.9 kB / 1.024 GB, free: 10.95 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000306/2.621, allocations: 87.53 kB / 1.024 GB, free: 10.87 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * Number of states: 0 () * Number of discrete variables: 18 ($PRE.tank3.aboveLevel[1],tank3.aboveLevel[1],$PRE.tank3.aboveLevel[2],tank3.aboveLevel[2],$PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[2],$PRE.tank2.aboveLevel[3],tank2.aboveLevel[3],tank2.ports_m_flow_out[3],tank2.ports_m_flow_out[2],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[1],tank3.ports_m_flow_out[2],tank3.ports_m_flow_out[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (200): * Single equations (assignments): 196 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 2,2 7,2 7,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0006196/2.621, allocations: 214.2 kB / 1.024 GB, free: 10.65 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005606/2.622, allocations: 173.9 kB / 1.024 GB, free: 10.48 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006718/2.629, allocations: 2.32 MB / 1.027 GB, free: 8.148 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.653e-05/2.629, allocations: 19.95 kB / 1.027 GB, free: 8.129 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.933e-06/2.629, allocations: 3.938 kB / 1.027 GB, free: 8.125 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.641e-05/2.629, allocations: 7.969 kB / 1.027 GB, free: 8.117 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0113/2.64, allocations: 3.978 MB / 1.031 GB, free: 4.086 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.201e-05/2.64, allocations: 0 / 1.031 GB, free: 4.086 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001597/2.642, allocations: 247.8 kB / 1.031 GB, free: 3.844 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005612/2.647, allocations: 0.8697 MB / 1.032 GB, free: 2.961 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003562/2.648, allocations: 47.92 kB / 1.032 GB, free: 2.914 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2831/2.931, allocations: 2.829 MB / 1.035 GB, free: 67.3 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-06/2.931, allocations: 2.844 kB / 1.035 GB, free: 67.3 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008194/2.939, allocations: 3.202 MB / 1.038 GB, free: 66.93 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008543/2.94, allocations: 279.2 kB / 1.038 GB, free: 66.83 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005988/2.941, allocations: 37.12 kB / 1.038 GB, free: 66.83 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001881/2.943, allocations: 114.2 kB / 1.038 GB, free: 66.83 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004903/2.943, allocations: 147.2 kB / 1.038 GB, free: 66.83 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002475/2.943, allocations: 63.08 kB / 1.038 GB, free: 66.83 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002068/2.945, allocations: 0.9578 MB / 1.039 GB, free: 66.71 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.007e-06/2.945, allocations: 2.406 kB / 1.039 GB, free: 66.71 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.005608/2.951, allocations: 1.381 MB / 1.041 GB, free: 66.71 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (tank3.medium.T,tank3.level,tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 6 (tank3.aboveLevel[1],tank3.aboveLevel[2],tank1.aboveLevel[1],tank2.aboveLevel[1],tank2.aboveLevel[2],tank2.aboveLevel[3]) * Number of discrete states: 6 (tank3.aboveLevel[1],tank3.aboveLevel[2],tank1.aboveLevel[1],tank2.aboveLevel[1],tank2.aboveLevel[2],tank2.aboveLevel[3]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (133): * Single equations (assignments): 127 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,2 12,2 12,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.003777/2.955, allocations: 1.264 MB / 1.042 GB, free: 66.61 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.008308/2.963, allocations: 2.912 MB / 1.045 GB, free: 66.57 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.208e-05/2.963, allocations: 8.406 kB / 1.045 GB, free: 66.57 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002816/2.966, allocations: 1.041 MB / 1.046 GB, free: 66.57 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004555/2.971, allocations: 0.7333 MB / 1.046 GB, free: 66.55 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006887/2.978, allocations: 2.865 MB / 1.049 GB, free: 65.91 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001219/2.979, allocations: 1.423 MB / 1.051 GB, free: 65.19 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009729/2.98, allocations: 163.9 kB / 1.051 GB, free: 65.18 MB / 458.7 MB Notification: Performance of SimCode: time 2.054e-06/2.98, allocations: 0 / 1.051 GB, free: 65.18 MB / 458.7 MB Notification: Performance of Templates: time 0.08025/3.06, allocations: 59.9 MB / 1.109 GB, free: 62.7 MB / 458.7 MB