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_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank") Notification: Performance of loadModel(Modelica): time 2.063/2.063, allocations: 205.8 MB / 218.9 MB, free: 9.359 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.256e-05/3.279e-05, allocations: 4 kB / 269.4 MB, free: 6.402 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08749/0.08755, allocations: 47.57 MB / 316.9 MB, free: 6.75 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8415/0.9291, allocations: 326.2 MB / 0.6281 GB, free: 41.5 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002326/0.9294, allocations: 90.89 kB / 0.6282 GB, free: 41.46 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6739/1.603, allocations: 143 MB / 0.7678 GB, free: 75.74 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.194e-06/1.603, allocations: 0 / 0.7678 GB, free: 75.74 MB / 426.7 MB Notification: Performance of Transformations before backend: time 6.596e-05/1.603, allocations: 23.94 kB / 0.7679 GB, free: 75.72 MB / 426.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.002495/1.606, allocations: 1.061 MB / 0.7689 GB, free: 74.61 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.338e-05/1.606, allocations: 12.03 kB / 0.7689 GB, free: 74.59 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005589/1.607, allocations: 98.95 kB / 0.769 GB, free: 74.5 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001522/1.608, allocations: 0.6164 MB / 0.7696 GB, free: 73.84 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.515e-05/1.608, allocations: 96.41 kB / 0.7697 GB, free: 73.73 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001291/1.608, allocations: 47.98 kB / 0.7697 GB, free: 73.68 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001534/1.61, allocations: 0.8045 MB / 0.7705 GB, free: 72.82 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.481e-05/1.61, allocations: 0 / 0.7705 GB, free: 72.82 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001081/1.61, allocations: 23.98 kB / 0.7705 GB, free: 72.79 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.212e-05/1.61, allocations: 40.98 kB / 0.7706 GB, free: 72.75 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001309/1.611, allocations: 0.6617 MB / 0.7712 GB, free: 72.09 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005619/1.617, allocations: 3.42 MB / 0.7746 GB, free: 68.46 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008054/1.618, allocations: 419.2 kB / 0.775 GB, free: 68.04 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004523/1.618, allocations: 257.1 kB / 0.7752 GB, free: 67.79 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002244/1.621, allocations: 1.429 MB / 0.7766 GB, free: 66.22 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005945/1.621, allocations: 357.2 kB / 0.777 GB, free: 65.84 MB / 426.7 MB Notification: Performance of pre-optimization done (n=35): time 4.23e-06/1.621, allocations: 0 / 0.777 GB, free: 65.84 MB / 426.7 MB Notification: Performance of matching and sorting (n=40): time 0.004029/1.625, allocations: 1.573 MB / 0.7785 GB, free: 64.19 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.598e-05/1.625, allocations: 269 kB / 0.7787 GB, free: 63.87 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001091/1.627, allocations: 0.6718 MB / 0.7794 GB, free: 63.18 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001059/1.627, allocations: 41.7 kB / 0.7794 GB, free: 63.14 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002912/1.627, allocations: 395.2 kB / 0.7798 GB, free: 62.75 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001449/1.627, allocations: 138.1 kB / 0.7799 GB, free: 62.61 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.433e-05/1.627, allocations: 15.94 kB / 0.78 GB, free: 62.59 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001304/1.627, allocations: 394.7 kB / 0.7803 GB, free: 62.2 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005222/1.628, allocations: 253.5 kB / 0.7806 GB, free: 61.95 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006544/1.629, allocations: 0.4972 MB / 0.7811 GB, free: 61.35 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000636/1.629, allocations: 357.5 kB / 0.7814 GB, free: 60.99 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.826e-06/1.629, allocations: 4 kB / 0.7814 GB, free: 60.99 MB / 426.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.002175/1.631, allocations: 0.9486 MB / 0.7823 GB, free: 60.02 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005119/1.632, allocations: 2.477 MB / 0.7848 GB, free: 57.35 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.395e-05/1.632, allocations: 8.078 kB / 0.7848 GB, free: 57.34 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000697/1.633, allocations: 128.8 kB / 0.7849 GB, free: 57.21 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007785/1.634, allocations: 131.8 kB / 0.785 GB, free: 57.09 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006671/1.634, allocations: 0.681 MB / 0.7857 GB, free: 56.38 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00116/1.635, allocations: 55.94 kB / 0.7857 GB, free: 56.32 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00012/1.636, allocations: 43.92 kB / 0.7858 GB, free: 56.28 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.273e-05/1.636, allocations: 4 kB / 0.7858 GB, free: 56.28 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00232/1.638, allocations: 0.882 MB / 0.7866 GB, free: 55.38 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.41e-05/1.638, allocations: 8.047 kB / 0.7866 GB, free: 55.38 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005694/1.639, allocations: 120.8 kB / 0.7868 GB, free: 55.25 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007254/1.639, allocations: 135.8 kB / 0.7869 GB, free: 55.12 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005736/1.64, allocations: 0.6616 MB / 0.7875 GB, free: 54.43 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00105/1.641, allocations: 51.88 kB / 0.7876 GB, free: 54.38 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001066/1.641, allocations: 35.98 kB / 0.7876 GB, free: 54.35 MB / 426.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.0003514/1.641, allocations: 210.2 kB / 0.7878 GB, free: 54.13 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001829/1.642, allocations: 79.06 kB / 0.7879 GB, free: 54.05 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001825/1.643, allocations: 0.7389 MB / 0.7886 GB, free: 53.3 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.708e-06/1.644, allocations: 4 kB / 0.7886 GB, free: 53.3 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.666e-06/1.644, allocations: 8 kB / 0.7886 GB, free: 53.29 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.276e-06/1.644, allocations: 3.984 kB / 0.7886 GB, free: 53.29 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002844/1.646, allocations: 1.47 MB / 0.7901 GB, free: 51.74 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.562e-06/1.646, allocations: 0 / 0.7901 GB, free: 51.74 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004186/1.647, allocations: 59.94 kB / 0.7901 GB, free: 51.68 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006108/1.648, allocations: 120.8 kB / 0.7902 GB, free: 51.56 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.143e-05/1.648, allocations: 16 kB / 0.7903 GB, free: 51.55 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005717/1.648, allocations: 0.6655 MB / 0.7909 GB, free: 50.86 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.698e-06/1.648, allocations: 0 / 0.7909 GB, free: 50.86 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001993/1.65, allocations: 1.087 MB / 0.792 GB, free: 49.73 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003081/1.651, allocations: 160.3 kB / 0.7921 GB, free: 49.55 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001852/1.651, allocations: 19.98 kB / 0.7921 GB, free: 49.54 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007591/1.652, allocations: 43.81 kB / 0.7922 GB, free: 49.49 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000112/1.652, allocations: 35.94 kB / 0.7922 GB, free: 49.46 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.441e-05/1.652, allocations: 27.94 kB / 0.7922 GB, free: 49.43 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0008565/1.653, allocations: 0.5226 MB / 0.7928 GB, free: 48.91 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.134e-06/1.653, allocations: 4 kB / 0.7928 GB, free: 48.91 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002361/1.655, allocations: 0.5894 MB / 0.7933 GB, free: 48.32 MB / 426.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.001692/1.657, allocations: 0.6005 MB / 0.7939 GB, free: 47.72 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.00269/1.659, allocations: 1.151 MB / 0.795 GB, free: 46.54 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.136e-06/1.659, allocations: 4 kB / 0.795 GB, free: 46.54 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008012/1.66, allocations: 357.8 kB / 0.7954 GB, free: 46.18 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001898/1.662, allocations: 314.4 kB / 0.7957 GB, free: 45.87 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002261/1.665, allocations: 1.057 MB / 0.7967 GB, free: 44.78 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004866/1.665, allocations: 0.979 MB / 0.7977 GB, free: 43.77 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001477/1.667, allocations: 312.1 kB / 0.798 GB, free: 43.46 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001586/1.667, allocations: 47.44 kB / 0.798 GB, free: 43.42 MB / 426.7 MB Notification: Performance of SimCode: time 1.791e-06/1.667, allocations: 0 / 0.798 GB, free: 43.42 MB / 426.7 MB Notification: Performance of Templates: time 0.04146/1.708, allocations: 19.79 MB / 0.8174 GB, free: 23.66 MB / 426.7 MB