Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank.level|tank.medium.T|tank.aboveLevel.1.|tank.ports_m_flow_out.1.|timeTable.a|timeTable.b|timeTable.last|timeTable.nextEvent",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank") Notification: Performance of loadModel(Modelica): time 1.953/1.953, allocations: 225.8 MB / 239.4 MB, free: 11.16 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.926e-05/2.951e-05, allocations: 4 kB / 292.7 MB, free: 8.32 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09163/0.09169, allocations: 50.42 MB / 343.1 MB, free: 5.887 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8836/0.9753, allocations: 327 MB / 0.6544 GB, free: 33.33 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002663/0.9756, allocations: 95.98 kB / 0.6545 GB, free: 33.28 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7016/1.677, allocations: 146.1 MB / 0.7971 GB, free: 65.19 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.765e-06/1.677, allocations: 0 / 0.7971 GB, free: 65.19 MB / 442.7 MB Notification: Performance of Transformations before backend: time 6.538e-05/1.677, allocations: 23.98 kB / 0.7972 GB, free: 65.17 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.002197/1.68, allocations: 1.073 MB / 0.7982 GB, free: 64.04 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.811e-05/1.68, allocations: 8.031 kB / 0.7982 GB, free: 64.04 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004749/1.68, allocations: 98.95 kB / 0.7983 GB, free: 63.94 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001324/1.681, allocations: 0.6087 MB / 0.7989 GB, free: 63.29 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.024e-05/1.682, allocations: 100.4 kB / 0.799 GB, free: 63.18 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001126/1.682, allocations: 47.95 kB / 0.799 GB, free: 63.13 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001451/1.683, allocations: 0.8006 MB / 0.7998 GB, free: 62.28 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.426e-05/1.683, allocations: 4 kB / 0.7998 GB, free: 62.27 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001017/1.683, allocations: 27.98 kB / 0.7999 GB, free: 62.25 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.897e-05/1.683, allocations: 40.97 kB / 0.7999 GB, free: 62.21 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001279/1.685, allocations: 0.6539 MB / 0.8005 GB, free: 61.55 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005234/1.69, allocations: 3.415 MB / 0.8039 GB, free: 57.93 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007896/1.691, allocations: 419.6 kB / 0.8043 GB, free: 57.51 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004416/1.691, allocations: 257.1 kB / 0.8045 GB, free: 57.26 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002091/1.693, allocations: 1.417 MB / 0.8059 GB, free: 55.7 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005744/1.694, allocations: 365.1 kB / 0.8062 GB, free: 55.31 MB / 442.7 MB Notification: Performance of pre-optimization done (n=35): time 3.597e-06/1.694, allocations: 0 / 0.8062 GB, free: 55.31 MB / 442.7 MB Notification: Performance of matching and sorting (n=40): time 0.00374/1.698, allocations: 1.582 MB / 0.8078 GB, free: 53.66 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.338e-05/1.698, allocations: 269 kB / 0.808 GB, free: 53.33 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001018/1.699, allocations: 0.668 MB / 0.8087 GB, free: 52.65 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 7.421e-05/1.699, allocations: 41.64 kB / 0.8087 GB, free: 52.61 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002793/1.699, allocations: 407.1 kB / 0.8091 GB, free: 52.2 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001246/1.699, allocations: 134.2 kB / 0.8093 GB, free: 52.07 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.429e-05/1.699, allocations: 12 kB / 0.8093 GB, free: 52.06 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001263/1.7, allocations: 386.8 kB / 0.8096 GB, free: 51.67 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005091/1.7, allocations: 257.5 kB / 0.8099 GB, free: 51.42 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006476/1.701, allocations: 0.4934 MB / 0.8104 GB, free: 50.82 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006187/1.701, allocations: 348.2 kB / 0.8107 GB, free: 50.48 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.121e-06/1.701, allocations: 8 kB / 0.8107 GB, free: 50.47 MB / 442.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.002166/1.704, allocations: 0.9644 MB / 0.8116 GB, free: 49.49 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004895/1.704, allocations: 2.476 MB / 0.8141 GB, free: 46.82 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.333e-05/1.704, allocations: 8 kB / 0.8141 GB, free: 46.81 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006856/1.705, allocations: 124.8 kB / 0.8142 GB, free: 46.68 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006318/1.705, allocations: 135.8 kB / 0.8143 GB, free: 46.55 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006218/1.706, allocations: 0.6812 MB / 0.815 GB, free: 45.84 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009541/1.707, allocations: 51.91 kB / 0.815 GB, free: 45.79 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001039/1.707, allocations: 40.05 kB / 0.8151 GB, free: 45.75 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.109e-05/1.707, allocations: 4 kB / 0.8151 GB, free: 45.75 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002098/1.709, allocations: 0.8971 MB / 0.816 GB, free: 44.84 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.156e-05/1.709, allocations: 8 kB / 0.816 GB, free: 44.84 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005051/1.71, allocations: 117.1 kB / 0.8161 GB, free: 44.72 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005906/1.71, allocations: 131.8 kB / 0.8162 GB, free: 44.59 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005218/1.711, allocations: 0.6578 MB / 0.8168 GB, free: 43.91 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000865/1.712, allocations: 55.94 kB / 0.8169 GB, free: 43.85 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.527e-05/1.712, allocations: 39.92 kB / 0.8169 GB, free: 43.81 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.0003219/1.712, allocations: 205.7 kB / 0.8171 GB, free: 43.6 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001678/1.713, allocations: 79.06 kB / 0.8172 GB, free: 43.52 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001699/1.714, allocations: 0.7271 MB / 0.8179 GB, free: 42.78 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.756e-06/1.714, allocations: 4 kB / 0.8179 GB, free: 42.78 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.76e-06/1.714, allocations: 0 / 0.8179 GB, free: 42.78 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.556e-06/1.714, allocations: 11.95 kB / 0.8179 GB, free: 42.77 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002805/1.717, allocations: 1.459 MB / 0.8194 GB, free: 41.23 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.963e-06/1.717, allocations: 4 kB / 0.8194 GB, free: 41.23 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000426/1.718, allocations: 55.91 kB / 0.8194 GB, free: 41.18 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006594/1.718, allocations: 124.8 kB / 0.8195 GB, free: 41.05 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.65e-05/1.718, allocations: 23.94 kB / 0.8196 GB, free: 41.03 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005758/1.719, allocations: 0.6617 MB / 0.8202 GB, free: 40.34 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.872e-06/1.719, allocations: 4.062 kB / 0.8202 GB, free: 40.34 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002051/1.721, allocations: 1.099 MB / 0.8213 GB, free: 39.2 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002857/1.721, allocations: 164.1 kB / 0.8214 GB, free: 39.02 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001962/1.722, allocations: 16 kB / 0.8214 GB, free: 39 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007532/1.722, allocations: 36.03 kB / 0.8215 GB, free: 38.97 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001182/1.722, allocations: 35.94 kB / 0.8215 GB, free: 38.93 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.166e-05/1.723, allocations: 23.98 kB / 0.8215 GB, free: 38.91 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.000812/1.723, allocations: 0.5226 MB / 0.822 GB, free: 38.39 MB / 442.7 MB Notification: Performance of sort global known variables: time 8.68e-07/1.723, allocations: 0 / 0.822 GB, free: 38.39 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002044/1.725, allocations: 0.5855 MB / 0.8226 GB, free: 37.8 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.001545/1.727, allocations: 0.6177 MB / 0.8232 GB, free: 37.19 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002589/1.73, allocations: 1.156 MB / 0.8244 GB, free: 36.01 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.496e-06/1.73, allocations: 4 kB / 0.8244 GB, free: 36 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007425/1.73, allocations: 347.2 kB / 0.8247 GB, free: 35.65 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001774/1.732, allocations: 309.6 kB / 0.825 GB, free: 35.35 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002167/1.734, allocations: 1.061 MB / 0.826 GB, free: 34.26 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004543/1.735, allocations: 0.979 MB / 0.827 GB, free: 33.25 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001406/1.736, allocations: 305.9 kB / 0.8273 GB, free: 32.95 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001562/1.736, allocations: 51.42 kB / 0.8273 GB, free: 32.9 MB / 442.7 MB Notification: Performance of SimCode: time 1.818e-06/1.736, allocations: 0 / 0.8273 GB, free: 32.9 MB / 442.7 MB Notification: Performance of Templates: time 0.04105/1.778, allocations: 19.79 MB / 0.8466 GB, free: 13.26 MB / 442.7 MB