Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks") Notification: Performance of loadModel(Modelica): time 1.939/1.939, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.833e-05/2.853e-05, allocations: 3.984 kB / 292.1 MB, free: 8.832 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0921/0.09215, allocations: 50.42 MB / 342.6 MB, free: 6.387 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8786/0.9708, allocations: 322.5 MB / 0.6495 GB, free: 37.59 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002371/0.9711, allocations: 86.64 kB / 0.6496 GB, free: 37.55 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.726/1.697, allocations: 140.2 MB / 0.7865 GB, free: 75.46 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.228e-06/1.697, allocations: 0 / 0.7865 GB, free: 75.46 MB / 442.7 MB Notification: Performance of Transformations before backend: time 7.307e-05/1.697, allocations: 19.94 kB / 0.7865 GB, free: 75.44 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.002436/1.7, allocations: 1.03 MB / 0.7875 GB, free: 74.36 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.385e-05/1.7, allocations: 8.031 kB / 0.7875 GB, free: 74.36 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004513/1.7, allocations: 79.16 kB / 0.7876 GB, free: 74.28 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001434/1.702, allocations: 0.5832 MB / 0.7881 GB, free: 73.65 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.167e-05/1.702, allocations: 40.97 kB / 0.7882 GB, free: 73.61 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001153/1.702, allocations: 44 kB / 0.7882 GB, free: 73.57 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001409/1.703, allocations: 0.7206 MB / 0.7889 GB, free: 72.82 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.608e-05/1.703, allocations: 3.938 kB / 0.7889 GB, free: 72.81 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.054e-05/1.703, allocations: 20 kB / 0.789 GB, free: 72.79 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.358e-05/1.704, allocations: 44.97 kB / 0.789 GB, free: 72.75 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001332/1.705, allocations: 0.6617 MB / 0.7896 GB, free: 72.09 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0053/1.71, allocations: 2.866 MB / 0.7924 GB, free: 69.04 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008533/1.711, allocations: 455.7 kB / 0.7929 GB, free: 68.58 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000435/1.712, allocations: 246.1 kB / 0.7931 GB, free: 68.34 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002639/1.712, allocations: 349.3 kB / 0.7934 GB, free: 67.93 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.025e-05/1.712, allocations: 39 kB / 0.7935 GB, free: 67.88 MB / 442.7 MB Notification: Performance of pre-optimization done (n=48): time 4.032e-06/1.712, allocations: 3.938 kB / 0.7935 GB, free: 67.88 MB / 442.7 MB Notification: Performance of matching and sorting (n=58): time 0.005076/1.717, allocations: 1.82 MB / 0.7953 GB, free: 66.01 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.578e-05/1.717, allocations: 85.67 kB / 0.7953 GB, free: 65.91 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008918/1.718, allocations: 0.5423 MB / 0.7959 GB, free: 65.36 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001448/1.718, allocations: 45.7 kB / 0.7959 GB, free: 65.3 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002018/1.718, allocations: 346.9 kB / 0.7963 GB, free: 64.96 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001945/1.719, allocations: 205 kB / 0.7964 GB, free: 64.76 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.419e-05/1.719, allocations: 16 kB / 0.7965 GB, free: 64.74 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 7.92e-05/1.719, allocations: 346.8 kB / 0.7968 GB, free: 64.39 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006027/1.719, allocations: 277.5 kB / 0.7971 GB, free: 64.12 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006361/1.72, allocations: 437.5 kB / 0.7975 GB, free: 63.63 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000694/1.721, allocations: 337.9 kB / 0.7978 GB, free: 63.3 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.887e-06/1.721, allocations: 0 / 0.7978 GB, free: 63.3 MB / 442.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001832/1.723, allocations: 0.8597 MB / 0.7986 GB, free: 62.43 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003566/1.723, allocations: 1.752 MB / 0.8003 GB, free: 60.54 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.22e-05/1.723, allocations: 4 kB / 0.8004 GB, free: 60.54 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002511/1.725, allocations: 348.5 kB / 0.8007 GB, free: 60.2 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008533/1.726, allocations: 151.7 kB / 0.8008 GB, free: 60.05 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001011/1.727, allocations: 0.8138 MB / 0.8016 GB, free: 59.21 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009205/1.728, allocations: 51.97 kB / 0.8017 GB, free: 59.16 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001073/1.728, allocations: 31.98 kB / 0.8017 GB, free: 59.12 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.384e-05/1.729, allocations: 4 kB / 0.8017 GB, free: 59.12 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001614/1.73, allocations: 0.761 MB / 0.8024 GB, free: 58.36 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.051e-05/1.73, allocations: 4 kB / 0.8025 GB, free: 58.36 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001627/1.732, allocations: 224.8 kB / 0.8027 GB, free: 58.13 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008777/1.733, allocations: 155.8 kB / 0.8028 GB, free: 57.98 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006384/1.733, allocations: 0.689 MB / 0.8035 GB, free: 57.27 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006024/1.734, allocations: 51.88 kB / 0.8035 GB, free: 57.21 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.676e-05/1.734, allocations: 32.09 kB / 0.8036 GB, free: 57.18 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 82 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 7} Notification: Performance of prepare postOptimizeDAE: time 0.0002422/1.734, allocations: 163.1 kB / 0.8037 GB, free: 57.02 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002101/1.735, allocations: 75.11 kB / 0.8038 GB, free: 56.95 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001833/1.736, allocations: 0.8265 MB / 0.8046 GB, free: 56.12 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.195e-05/1.736, allocations: 8 kB / 0.8046 GB, free: 56.11 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.561e-06/1.737, allocations: 0 / 0.8046 GB, free: 56.11 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.053e-05/1.737, allocations: 3.984 kB / 0.8046 GB, free: 56.11 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00325/1.74, allocations: 1.645 MB / 0.8062 GB, free: 54.39 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.242e-06/1.74, allocations: 4.062 kB / 0.8062 GB, free: 54.39 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006805/1.741, allocations: 111.8 kB / 0.8063 GB, free: 54.28 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001838/1.742, allocations: 324.5 kB / 0.8066 GB, free: 53.96 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001062/1.743, allocations: 23.98 kB / 0.8067 GB, free: 53.94 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008231/1.743, allocations: 0.7943 MB / 0.8074 GB, free: 53.12 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.037e-06/1.743, allocations: 0 / 0.8074 GB, free: 53.12 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002172/1.746, allocations: 1.244 MB / 0.8087 GB, free: 51.83 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002852/1.746, allocations: 152.3 kB / 0.8088 GB, free: 51.66 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001521/1.746, allocations: 12 kB / 0.8088 GB, free: 51.65 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006573/1.747, allocations: 51.81 kB / 0.8089 GB, free: 51.6 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001306/1.747, allocations: 52.56 kB / 0.8089 GB, free: 51.55 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.346e-05/1.747, allocations: 27.92 kB / 0.8089 GB, free: 51.52 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0006511/1.748, allocations: 435.2 kB / 0.8094 GB, free: 51.1 MB / 442.7 MB Notification: Performance of sort global known variables: time 8.02e-07/1.748, allocations: 0 / 0.8094 GB, free: 51.1 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002288/1.75, allocations: 0.5854 MB / 0.8099 GB, free: 50.52 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank2.aboveLevel[1]) * Number of discrete states: 2 (tank2.aboveLevel[1],tank1.aboveLevel[1]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 53 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.001628/1.752, allocations: 0.6132 MB / 0.8105 GB, free: 49.9 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002556/1.754, allocations: 1.084 MB / 0.8116 GB, free: 48.82 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.496e-06/1.754, allocations: 0 / 0.8116 GB, free: 48.82 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008557/1.755, allocations: 361.9 kB / 0.8119 GB, free: 48.47 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001956/1.757, allocations: 330.4 kB / 0.8122 GB, free: 48.15 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00247/1.76, allocations: 1.23 MB / 0.8134 GB, free: 46.88 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000452/1.76, allocations: 0.9713 MB / 0.8144 GB, free: 45.89 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003431/1.76, allocations: 71.41 kB / 0.8145 GB, free: 45.82 MB / 442.7 MB Notification: Performance of SimCode: time 2.812e-06/1.76, allocations: 0 / 0.8145 GB, free: 45.82 MB / 442.7 MB Notification: Performance of Templates: time 0.02668/1.787, allocations: 17.86 MB / 0.8319 GB, free: 28.05 MB / 442.7 MB