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_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank") Notification: Performance of loadModel(Modelica): time 1.982/1.982, allocations: 225.8 MB / 238.8 MB, free: 11.15 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.973e-05/2.982e-05, allocations: 4 kB / 292.1 MB, free: 8.328 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09322/0.09327, allocations: 50.41 MB / 342.6 MB, free: 5.898 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.131/1.224, allocations: 327 MB / 0.6539 GB, free: 33.4 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003529/1.225, allocations: 88.77 kB / 0.654 GB, free: 33.36 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7495/1.974, allocations: 146.1 MB / 0.7966 GB, free: 65.25 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.975e-06/1.974, allocations: 0 / 0.7966 GB, free: 65.25 MB / 442.7 MB Notification: Performance of Transformations before backend: time 6.457e-05/1.974, allocations: 20 kB / 0.7966 GB, free: 65.23 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.002313/1.977, allocations: 1.076 MB / 0.7977 GB, free: 64.1 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.053e-05/1.977, allocations: 12.03 kB / 0.7977 GB, free: 64.09 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005215/1.977, allocations: 103 kB / 0.7978 GB, free: 63.99 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001386/1.979, allocations: 0.6009 MB / 0.7984 GB, free: 63.34 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.09e-05/1.979, allocations: 96.34 kB / 0.7985 GB, free: 63.24 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001197/1.979, allocations: 55.94 kB / 0.7985 GB, free: 63.18 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001493/1.98, allocations: 0.8046 MB / 0.7993 GB, free: 62.32 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.563e-05/1.981, allocations: 3.938 kB / 0.7993 GB, free: 62.32 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001026/1.981, allocations: 23.94 kB / 0.7994 GB, free: 62.3 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.774e-05/1.981, allocations: 36.98 kB / 0.7994 GB, free: 62.26 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001293/1.982, allocations: 0.6578 MB / 0.8 GB, free: 61.6 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00541/1.987, allocations: 3.419 MB / 0.8034 GB, free: 57.98 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008003/1.988, allocations: 407.2 kB / 0.8038 GB, free: 57.57 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004542/1.989, allocations: 265.1 kB / 0.804 GB, free: 57.31 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002127/1.991, allocations: 1.41 MB / 0.8054 GB, free: 55.76 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005882/1.992, allocations: 375.5 kB / 0.8057 GB, free: 55.36 MB / 442.7 MB Notification: Performance of pre-optimization done (n=35): time 3.324e-06/1.992, allocations: 0 / 0.8057 GB, free: 55.36 MB / 442.7 MB Notification: Performance of matching and sorting (n=40): time 0.003928/1.995, allocations: 1.578 MB / 0.8073 GB, free: 53.71 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.652e-05/1.996, allocations: 261 kB / 0.8075 GB, free: 53.39 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00124/1.997, allocations: 0.6719 MB / 0.8082 GB, free: 52.71 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000104/1.997, allocations: 41.64 kB / 0.8082 GB, free: 52.66 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002821/1.997, allocations: 399.1 kB / 0.8086 GB, free: 52.27 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001377/1.997, allocations: 138.2 kB / 0.8087 GB, free: 52.13 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.48e-05/1.998, allocations: 12 kB / 0.8088 GB, free: 52.12 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001291/1.998, allocations: 394.7 kB / 0.8091 GB, free: 51.73 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005242/1.998, allocations: 257.4 kB / 0.8094 GB, free: 51.48 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006465/1.999, allocations: 0.4973 MB / 0.8099 GB, free: 50.87 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006189/2, allocations: 344.2 kB / 0.8102 GB, free: 50.54 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.7e-06/2, allocations: 4 kB / 0.8102 GB, free: 50.53 MB / 442.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.002196/2.002, allocations: 0.9645 MB / 0.8111 GB, free: 49.55 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004867/2.002, allocations: 2.465 MB / 0.8135 GB, free: 46.89 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.464e-05/2.002, allocations: 12 kB / 0.8136 GB, free: 46.88 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006905/2.003, allocations: 128.7 kB / 0.8137 GB, free: 46.75 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006653/2.004, allocations: 139.8 kB / 0.8138 GB, free: 46.61 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006273/2.004, allocations: 0.685 MB / 0.8145 GB, free: 45.9 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000977/2.005, allocations: 35.98 kB / 0.8145 GB, free: 45.86 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001068/2.005, allocations: 43.98 kB / 0.8146 GB, free: 45.82 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.159e-05/2.005, allocations: 4 kB / 0.8146 GB, free: 45.82 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002104/2.008, allocations: 0.9012 MB / 0.8154 GB, free: 44.91 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.067e-05/2.008, allocations: 4 kB / 0.8154 GB, free: 44.9 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005127/2.008, allocations: 121.1 kB / 0.8156 GB, free: 44.78 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006324/2.009, allocations: 139.8 kB / 0.8157 GB, free: 44.64 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005343/2.009, allocations: 0.6578 MB / 0.8163 GB, free: 43.96 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008868/2.01, allocations: 51.88 kB / 0.8164 GB, free: 43.91 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001014/2.01, allocations: 43.97 kB / 0.8164 GB, free: 43.87 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.0003323/2.011, allocations: 202.8 kB / 0.8166 GB, free: 43.66 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001614/2.011, allocations: 83.06 kB / 0.8167 GB, free: 43.57 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001734/2.013, allocations: 0.731 MB / 0.8174 GB, free: 42.83 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.309e-06/2.013, allocations: 4 kB / 0.8174 GB, free: 42.82 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.98e-06/2.013, allocations: 0 / 0.8174 GB, free: 42.82 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.678e-06/2.013, allocations: 7.938 kB / 0.8174 GB, free: 42.82 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002746/2.015, allocations: 1.463 MB / 0.8189 GB, free: 41.28 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.655e-06/2.015, allocations: 0 / 0.8189 GB, free: 41.28 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004065/2.016, allocations: 59.97 kB / 0.8189 GB, free: 41.22 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006336/2.017, allocations: 124.8 kB / 0.819 GB, free: 41.1 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.773e-05/2.017, allocations: 19.89 kB / 0.819 GB, free: 41.08 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005695/2.017, allocations: 0.6616 MB / 0.8197 GB, free: 40.39 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.281e-06/2.017, allocations: 0 / 0.8197 GB, free: 40.39 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001954/2.019, allocations: 1.091 MB / 0.8208 GB, free: 39.26 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002659/2.02, allocations: 168.1 kB / 0.8209 GB, free: 39.08 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001745/2.02, allocations: 19.94 kB / 0.8209 GB, free: 39.06 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000692/2.02, allocations: 36.03 kB / 0.821 GB, free: 39.02 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001286/2.021, allocations: 32.02 kB / 0.821 GB, free: 38.99 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.572e-05/2.021, allocations: 31.98 kB / 0.821 GB, free: 38.96 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0008274/2.021, allocations: 0.5265 MB / 0.8215 GB, free: 38.44 MB / 442.7 MB Notification: Performance of sort global known variables: time 8.62e-07/2.022, allocations: 0 / 0.8215 GB, free: 38.44 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.00214/2.024, allocations: 0.5855 MB / 0.8221 GB, free: 37.85 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.001568/2.025, allocations: 0.6173 MB / 0.8227 GB, free: 37.24 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002632/2.028, allocations: 1.145 MB / 0.8238 GB, free: 36.07 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.35e-06/2.028, allocations: 0 / 0.8238 GB, free: 36.07 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007669/2.029, allocations: 347.2 kB / 0.8242 GB, free: 35.71 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001813/2.031, allocations: 309.2 kB / 0.8245 GB, free: 35.42 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002195/2.033, allocations: 1.072 MB / 0.8255 GB, free: 34.31 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004659/2.033, allocations: 0.9829 MB / 0.8265 GB, free: 33.3 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001458/2.035, allocations: 305.5 kB / 0.8268 GB, free: 33 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001584/2.035, allocations: 43.44 kB / 0.8268 GB, free: 32.96 MB / 442.7 MB Notification: Performance of SimCode: time 1.647e-06/2.035, allocations: 0 / 0.8268 GB, free: 32.96 MB / 442.7 MB Notification: Performance of Templates: time 0.0411/2.076, allocations: 19.8 MB / 0.8461 GB, free: 13.31 MB / 442.7 MB