Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1") Notification: Performance of loadModel(Modelica): time 1.969/1.969, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.986e-05/3.001e-05, allocations: 4.984 kB / 292.1 MB, free: 8.824 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09636/0.09641, allocations: 50.41 MB / 342.6 MB, free: 6.395 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.014/1.111, allocations: 325 MB / 0.6519 GB, free: 35.23 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002522/1.111, allocations: 92.5 kB / 0.652 GB, free: 35.18 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.433/2.544, allocations: 287.3 MB / 0.9326 GB, free: 67.59 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.14e-06/2.544, allocations: 3.938 kB / 0.9326 GB, free: 67.58 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001336/2.544, allocations: 39 kB / 0.9326 GB, free: 67.57 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: 256 * Number of variables: 256 Notification: Performance of Generate backend data structure: time 0.004818/2.549, allocations: 1.786 MB / 0.9344 GB, free: 66.66 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.35e-05/2.549, allocations: 10.28 kB / 0.9344 GB, free: 66.66 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009363/2.55, allocations: 172.4 kB / 0.9345 GB, free: 66.58 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002923/2.553, allocations: 1.032 MB / 0.9355 GB, free: 66.24 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.816e-05/2.553, allocations: 88.62 kB / 0.9356 GB, free: 66.23 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002465/2.553, allocations: 90.92 kB / 0.9357 GB, free: 66.23 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003315/2.557, allocations: 1.594 MB / 0.9373 GB, free: 65.98 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.994e-05/2.557, allocations: 3.656 kB / 0.9373 GB, free: 65.98 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002005/2.557, allocations: 47.44 kB / 0.9373 GB, free: 65.98 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000159/2.557, allocations: 102.4 kB / 0.9374 GB, free: 65.97 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003584/2.561, allocations: 1.563 MB / 0.9389 GB, free: 65.96 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01283/2.574, allocations: 6.531 MB / 0.9453 GB, free: 62.28 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001866/2.576, allocations: 0.9019 MB / 0.9462 GB, free: 61.93 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001055/2.577, allocations: 0.5465 MB / 0.9467 GB, free: 61.72 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005011/2.582, allocations: 2.903 MB / 0.9496 GB, free: 59.71 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.575e-05/2.582, allocations: 49.59 kB / 0.9496 GB, free: 59.67 MB / 442.7 MB Notification: Performance of pre-optimization done (n=80): time 4.246e-06/2.582, allocations: 0 / 0.9496 GB, free: 59.67 MB / 442.7 MB Notification: Performance of matching and sorting (n=90): time 0.007609/2.589, allocations: 2.823 MB / 0.9524 GB, free: 58.42 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.611e-05/2.59, allocations: 192.4 kB / 0.9526 GB, free: 58.2 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00206/2.592, allocations: 1.136 MB / 0.9537 GB, free: 57.72 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002249/2.592, allocations: 48.45 kB / 0.9537 GB, free: 57.68 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004057/2.592, allocations: 0.6265 MB / 0.9543 GB, free: 57.13 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003145/2.593, allocations: 317.1 kB / 0.9546 GB, free: 56.89 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001219/2.593, allocations: 31.84 kB / 0.9547 GB, free: 56.87 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001106/2.593, allocations: 362.5 kB / 0.955 GB, free: 56.54 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001254/2.594, allocations: 0.5453 MB / 0.9555 GB, free: 56.34 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001467/2.596, allocations: 0.9325 MB / 0.9564 GB, free: 55.67 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0015/2.597, allocations: 0.6701 MB / 0.9571 GB, free: 55.42 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.064e-05/2.597, allocations: 3.5 kB / 0.9571 GB, free: 55.42 MB / 442.7 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.004013/2.601, allocations: 1.704 MB / 0.9588 GB, free: 54.8 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008631/2.602, allocations: 4.362 MB / 0.963 GB, free: 50.17 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.206e-05/2.602, allocations: 11.5 kB / 0.963 GB, free: 50.17 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004569/2.607, allocations: 0.6492 MB / 0.9637 GB, free: 50.07 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001583/2.608, allocations: 277.5 kB / 0.9639 GB, free: 50.05 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00225/2.611, allocations: 2.157 MB / 0.966 GB, free: 48.25 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001928/2.613, allocations: 109.1 kB / 0.9661 GB, free: 48.22 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000199/2.613, allocations: 59.69 kB / 0.9662 GB, free: 48.21 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.226e-05/2.613, allocations: 3.938 kB / 0.9662 GB, free: 48.21 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003663/2.616, allocations: 1.573 MB / 0.9677 GB, free: 47.65 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.584e-05/2.617, allocations: 15.42 kB / 0.9678 GB, free: 47.64 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004287/2.621, allocations: 493.2 kB / 0.9682 GB, free: 47.57 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001706/2.623, allocations: 289.7 kB / 0.9685 GB, free: 47.54 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001812/2.624, allocations: 1.984 MB / 0.9704 GB, free: 45.81 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001513/2.626, allocations: 94.44 kB / 0.9705 GB, free: 45.79 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000198/2.626, allocations: 72.56 kB / 0.9706 GB, free: 45.78 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * 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 (163): * Single equations (assignments): 160 * 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.0004499/2.627, allocations: 192.1 kB / 0.9708 GB, free: 45.61 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004083/2.627, allocations: 144.5 kB / 0.9709 GB, free: 45.54 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003937/2.631, allocations: 1.513 MB / 0.9724 GB, free: 44.61 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.801e-05/2.631, allocations: 8 kB / 0.9724 GB, free: 44.6 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.916e-06/2.631, allocations: 0 / 0.9724 GB, free: 44.6 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.791e-05/2.631, allocations: 11.55 kB / 0.9724 GB, free: 44.6 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005899/2.637, allocations: 2.788 MB / 0.9751 GB, free: 42.3 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.562e-06/2.637, allocations: 4 kB / 0.9751 GB, free: 42.29 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009147/2.638, allocations: 150.8 kB / 0.9753 GB, free: 42.17 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003673/2.642, allocations: 0.6012 MB / 0.9759 GB, free: 41.72 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000206/2.642, allocations: 29.34 kB / 0.9759 GB, free: 41.7 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001856/2.644, allocations: 2.115 MB / 0.978 GB, free: 39.59 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.126e-06/2.644, allocations: 4.031 kB / 0.978 GB, free: 39.59 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00394/2.648, allocations: 2.111 MB / 0.98 GB, free: 37.61 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006514/2.649, allocations: 260.8 kB / 0.9803 GB, free: 37.36 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003258/2.649, allocations: 24 kB / 0.9803 GB, free: 37.33 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001244/2.65, allocations: 74.97 kB / 0.9804 GB, free: 37.28 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002304/2.65, allocations: 95.48 kB / 0.9805 GB, free: 37.22 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001396/2.651, allocations: 46.17 kB / 0.9805 GB, free: 37.19 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001499/2.652, allocations: 0.8747 MB / 0.9814 GB, free: 36.38 MB / 442.7 MB Notification: Performance of sort global known variables: time 7.69e-07/2.652, allocations: 0 / 0.9814 GB, free: 36.38 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004244/2.656, allocations: 1.216 MB / 0.9826 GB, free: 35.2 MB / 442.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 (84): * Single equations (assignments): 81 * 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.003053/2.659, allocations: 1.151 MB / 0.9837 GB, free: 34.29 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005039/2.664, allocations: 2.113 MB / 0.9857 GB, free: 32.21 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.524e-06/2.665, allocations: 3.938 kB / 0.9857 GB, free: 32.21 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001816/2.666, allocations: 0.6926 MB / 0.9864 GB, free: 31.52 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003361/2.67, allocations: 0.573 MB / 0.987 GB, free: 30.97 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004573/2.674, allocations: 2.164 MB / 0.9891 GB, free: 28.79 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008387/2.675, allocations: 1.279 MB / 0.9903 GB, free: 27.49 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006757/2.676, allocations: 127.4 kB / 0.9905 GB, free: 27.37 MB / 442.7 MB Notification: Performance of SimCode: time 1.919e-06/2.676, allocations: 0 / 0.9905 GB, free: 27.37 MB / 442.7 MB Notification: Performance of Templates: time 0.3337/3.01, allocations: 44.61 MB / 1.034 GB, free: 77.58 MB / 458.7 MB