Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank") Notification: Performance of loadModel(Modelica): time 1.896/1.896, allocations: 225.8 MB / 239.3 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.031e-05/3.048e-05, allocations: 2.031 kB / 292.1 MB, free: 8.832 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09259/0.09264, allocations: 50.42 MB / 342.6 MB, free: 6.383 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8787/0.9713, allocations: 327.1 MB / 0.6539 GB, free: 33.14 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002577/0.9716, allocations: 98.62 kB / 0.654 GB, free: 33.09 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7428/1.714, allocations: 146.1 MB / 0.7967 GB, free: 65.16 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.227e-06/1.715, allocations: 7.938 kB / 0.7967 GB, free: 65.16 MB / 442.7 MB Notification: Performance of Transformations before backend: time 6.859e-05/1.715, allocations: 23.98 kB / 0.7967 GB, free: 65.13 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: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.002335/1.717, allocations: 1.069 MB / 0.7978 GB, free: 64.01 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.123e-05/1.717, allocations: 15.97 kB / 0.7978 GB, free: 64 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005341/1.718, allocations: 90.97 kB / 0.7979 GB, free: 63.91 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00148/1.719, allocations: 0.6048 MB / 0.7984 GB, free: 63.26 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.427e-05/1.719, allocations: 100.3 kB / 0.7985 GB, free: 63.15 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000123/1.719, allocations: 47.95 kB / 0.7986 GB, free: 63.11 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001532/1.721, allocations: 0.8084 MB / 0.7994 GB, free: 62.24 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.528e-05/1.721, allocations: 4 kB / 0.7994 GB, free: 62.24 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001027/1.721, allocations: 23.98 kB / 0.7994 GB, free: 62.21 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.926e-05/1.721, allocations: 36.98 kB / 0.7994 GB, free: 62.18 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001323/1.722, allocations: 0.6617 MB / 0.8001 GB, free: 61.52 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005437/1.728, allocations: 3.411 MB / 0.8034 GB, free: 57.9 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008027/1.729, allocations: 415.6 kB / 0.8038 GB, free: 57.48 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004435/1.729, allocations: 257.1 kB / 0.8041 GB, free: 57.23 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002244/1.731, allocations: 1.421 MB / 0.8054 GB, free: 55.67 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005969/1.732, allocations: 361 kB / 0.8058 GB, free: 55.29 MB / 442.7 MB Notification: Performance of pre-optimization done (n=35): time 3.37e-06/1.732, allocations: 0 / 0.8058 GB, free: 55.29 MB / 442.7 MB Notification: Performance of matching and sorting (n=40): time 0.004032/1.736, allocations: 1.582 MB / 0.8073 GB, free: 53.63 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.103e-05/1.736, allocations: 273 kB / 0.8076 GB, free: 53.3 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001087/1.737, allocations: 0.668 MB / 0.8082 GB, free: 52.62 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001095/1.738, allocations: 41.69 kB / 0.8083 GB, free: 52.57 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002482/1.738, allocations: 417.5 kB / 0.8087 GB, free: 52.16 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001418/1.738, allocations: 134.2 kB / 0.8088 GB, free: 52.03 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.294e-05/1.738, allocations: 8 kB / 0.8088 GB, free: 52.02 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 7.418e-05/1.738, allocations: 338.9 kB / 0.8091 GB, free: 51.68 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00054/1.739, allocations: 265.5 kB / 0.8094 GB, free: 51.43 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000647/1.739, allocations: 0.4972 MB / 0.8099 GB, free: 50.82 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006243/1.74, allocations: 348.2 kB / 0.8102 GB, free: 50.48 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.329e-06/1.74, allocations: 4 kB / 0.8102 GB, free: 50.48 MB / 442.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.002081/1.742, allocations: 0.9067 MB / 0.8111 GB, free: 49.55 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005219/1.743, allocations: 2.476 MB / 0.8135 GB, free: 46.88 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.427e-05/1.743, allocations: 8 kB / 0.8135 GB, free: 46.87 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007076/1.743, allocations: 132.7 kB / 0.8137 GB, free: 46.74 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006922/1.744, allocations: 131.8 kB / 0.8138 GB, free: 46.61 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006525/1.745, allocations: 0.6811 MB / 0.8144 GB, free: 45.9 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001019/1.746, allocations: 51.98 kB / 0.8145 GB, free: 45.85 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001237/1.746, allocations: 35.98 kB / 0.8145 GB, free: 45.82 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.553e-05/1.746, allocations: 11.22 kB / 0.8145 GB, free: 45.81 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002197/1.748, allocations: 0.8974 MB / 0.8154 GB, free: 44.9 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.228e-05/1.748, allocations: 8.031 kB / 0.8154 GB, free: 44.89 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004635/1.749, allocations: 112.8 kB / 0.8155 GB, free: 44.78 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006449/1.749, allocations: 135.8 kB / 0.8157 GB, free: 44.65 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005233/1.75, allocations: 0.6499 MB / 0.8163 GB, free: 43.97 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000715/1.751, allocations: 43.98 kB / 0.8163 GB, free: 43.93 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001008/1.751, allocations: 35.98 kB / 0.8164 GB, free: 43.89 MB / 442.7 MB Warning: Assuming fixed start value for the following 2 variables: tank.level:VARIABLE(start = tank.level_start unit = "m" stateSelect=StateSelect.prefer ) "Fluid level in the tank" type: Real tank.medium.T:VARIABLE(min = max(1.0, max(1.0, 1.0)) max = min(10000.0, min(10000.0, 10000.0)) start = tank.T_start unit = "K" nominal = 300.0 stateSelect=StateSelect.prefer ) "Temperature of medium" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.tank.ports_m_flow_out[1],tank.ports_m_flow_out[1],$PRE.tank.aboveLevel[1],tank.aboveLevel[1],timeTable.a,timeTable.b,timeTable.last,$PRE.timeTable.nextEvent,timeTable.nextEvent,timeTable.nextEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (78): * Single equations (assignments): 76 * Array equations: 0 * Algorithm blocks: 1 * 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 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0003475/1.751, allocations: 205.4 kB / 0.8166 GB, free: 43.68 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002104/1.751, allocations: 79.06 kB / 0.8166 GB, free: 43.61 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001768/1.753, allocations: 0.7309 MB / 0.8174 GB, free: 42.86 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.671e-06/1.753, allocations: 8 kB / 0.8174 GB, free: 42.85 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.764e-06/1.753, allocations: 0 / 0.8174 GB, free: 42.85 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.001e-05/1.753, allocations: 7.938 kB / 0.8174 GB, free: 42.84 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002952/1.756, allocations: 1.459 MB / 0.8188 GB, free: 41.31 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.054e-06/1.756, allocations: 3.984 kB / 0.8188 GB, free: 41.31 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004006/1.757, allocations: 67.94 kB / 0.8189 GB, free: 41.24 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006212/1.757, allocations: 120.8 kB / 0.819 GB, free: 41.12 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.89e-05/1.757, allocations: 19.94 kB / 0.819 GB, free: 41.1 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005781/1.758, allocations: 0.6616 MB / 0.8196 GB, free: 40.41 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.959e-06/1.758, allocations: 0 / 0.8196 GB, free: 40.41 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002028/1.76, allocations: 1.091 MB / 0.8207 GB, free: 39.29 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003283/1.76, allocations: 164.1 kB / 0.8209 GB, free: 39.11 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001945/1.761, allocations: 20.12 kB / 0.8209 GB, free: 39.09 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006844/1.761, allocations: 35.95 kB / 0.8209 GB, free: 39.05 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000121/1.761, allocations: 31.95 kB / 0.821 GB, free: 39.02 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.655e-05/1.762, allocations: 23.98 kB / 0.821 GB, free: 39 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.000859/1.762, allocations: 0.5304 MB / 0.8215 GB, free: 38.47 MB / 442.7 MB Notification: Performance of sort global known variables: time 9.44e-07/1.762, allocations: 4 kB / 0.8215 GB, free: 38.46 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002237/1.765, allocations: 0.5855 MB / 0.8221 GB, free: 37.88 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (tank.medium.T,tank.level) * Number of discrete variables: 8 ($whenCondition1,tank.ports_m_flow_out[1],tank.aboveLevel[1],timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent,timeTable.nextEventScaled) * Number of discrete states: 8 (tank.aboveLevel[1],tank.ports_m_flow_out[1],timeTable.nextEvent,timeTable.last,timeTable.nextEventScaled,timeTable.b,timeTable.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 1 * 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 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.00169/1.766, allocations: 0.6093 MB / 0.8227 GB, free: 37.27 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00254/1.769, allocations: 1.104 MB / 0.8237 GB, free: 36.14 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.816e-06/1.769, allocations: 4 kB / 0.8237 GB, free: 36.14 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000781/1.77, allocations: 345.4 kB / 0.8241 GB, free: 35.79 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001874/1.772, allocations: 305.6 kB / 0.8244 GB, free: 35.49 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002314/1.774, allocations: 1.097 MB / 0.8254 GB, free: 34.36 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004753/1.775, allocations: 0.9737 MB / 0.8264 GB, free: 33.36 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002854/1.775, allocations: 67.42 kB / 0.8265 GB, free: 33.29 MB / 442.7 MB Notification: Performance of SimCode: time 2.17e-06/1.775, allocations: 0 / 0.8265 GB, free: 33.29 MB / 442.7 MB Notification: Performance of Templates: time 0.02704/1.802, allocations: 17.74 MB / 0.8438 GB, free: 15.65 MB / 442.7 MB