Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank") Notification: Performance of loadModel(Modelica): time 0.9746/0.9746, allocations: 111.2 MB / 123.8 MB, free: 11.15 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.954e-05/2.964e-05, allocations: 4 kB / 151.4 MB, free: 15.58 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1435/0.1435, allocations: 25.15 MB / 176.6 MB, free: 15.99 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5027/0.6462, allocations: 239.5 MB / 416 MB, free: 31.53 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001838/0.6464, allocations: 67.97 kB / 416.1 MB, free: 31.46 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7605/1.407, allocations: 131 MB / 0.5343 GB, free: 36.44 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.804e-06/1.407, allocations: 0 / 0.5343 GB, free: 36.44 MB / 234.7 MB Notification: Performance of Transformations before backend: time 7.231e-05/1.407, allocations: 22.25 kB / 0.5343 GB, free: 36.44 MB / 234.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 122 * Number of variables: 122 Notification: Performance of Generate backend data structure: time 0.002239/1.409, allocations: 1.034 MB / 0.5353 GB, free: 35.89 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.959e-05/1.409, allocations: 11.5 kB / 0.5353 GB, free: 35.89 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002551/1.41, allocations: 86.88 kB / 0.5354 GB, free: 35.85 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001395/1.411, allocations: 0.6169 MB / 0.536 GB, free: 35.61 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.963e-05/1.411, allocations: 94.47 kB / 0.5361 GB, free: 35.55 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001081/1.411, allocations: 46.84 kB / 0.5362 GB, free: 35.55 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001391/1.413, allocations: 0.7518 MB / 0.5369 GB, free: 35.38 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.543e-05/1.413, allocations: 6.844 kB / 0.5369 GB, free: 35.38 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.723e-05/1.413, allocations: 23.67 kB / 0.5369 GB, free: 35.38 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.615e-05/1.413, allocations: 40.56 kB / 0.537 GB, free: 35.38 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001192/1.414, allocations: 0.6021 MB / 0.5376 GB, free: 35.38 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00495/1.419, allocations: 3.593 MB / 0.5411 GB, free: 33.09 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008107/1.42, allocations: 378.2 kB / 0.5414 GB, free: 33.07 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004361/1.42, allocations: 230.1 kB / 0.5416 GB, free: 33.06 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002068/1.422, allocations: 1.387 MB / 0.543 GB, free: 32.11 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005047/1.423, allocations: 282.8 kB / 0.5433 GB, free: 32.03 MB / 234.7 MB Notification: Performance of pre-optimization done (n=33): time 3.537e-06/1.423, allocations: 0 / 0.5433 GB, free: 32.03 MB / 234.7 MB Notification: Performance of matching and sorting (n=37): time 0.003814/1.427, allocations: 1.454 MB / 0.5447 GB, free: 31.53 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.508e-05/1.427, allocations: 170.6 kB / 0.5449 GB, free: 31.34 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009004/1.428, allocations: 0.5736 MB / 0.5454 GB, free: 31.2 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 7.583e-05/1.428, allocations: 36.33 kB / 0.5454 GB, free: 31.17 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002422/1.428, allocations: 429.5 kB / 0.5459 GB, free: 30.89 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000123/1.428, allocations: 136.6 kB / 0.546 GB, free: 30.82 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.732e-05/1.428, allocations: 13.06 kB / 0.546 GB, free: 30.82 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 7.718e-05/1.429, allocations: 339 kB / 0.5463 GB, free: 30.51 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004784/1.429, allocations: 226.7 kB / 0.5465 GB, free: 30.51 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000606/1.43, allocations: 0.5032 MB / 0.547 GB, free: 30.17 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006141/1.43, allocations: 330.5 kB / 0.5473 GB, free: 30.13 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.108e-06/1.43, allocations: 3.688 kB / 0.5473 GB, free: 30.13 MB / 234.7 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.002098/1.432, allocations: 0.8737 MB / 0.5482 GB, free: 30.04 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.795e-05/1.432, allocations: 37.27 kB / 0.5482 GB, free: 30 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.652e-05/1.432, allocations: 11.25 kB / 0.5482 GB, free: 30 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006345/1.433, allocations: 123.6 kB / 0.5484 GB, free: 30 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006226/1.434, allocations: 147.4 kB / 0.5485 GB, free: 30 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006053/1.434, allocations: 0.6629 MB / 0.5492 GB, free: 29.47 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000898/1.435, allocations: 44.78 kB / 0.5492 GB, free: 29.47 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.596e-05/1.435, allocations: 38.59 kB / 0.5492 GB, free: 29.47 MB / 234.7 MB Warning: Assuming fixed start value for the following 2 variables: tank.level:VARIABLE(min = 0.0 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 = 293.15 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: 40 * Number of states: 0 () * Number of discrete variables: 10 ($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) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (80): * Single equations (assignments): 78 * 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.0003035/1.436, allocations: 205.8 kB / 0.5494 GB, free: 29.33 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001252/1.436, allocations: 83.06 kB / 0.5495 GB, free: 29.29 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00176/1.438, allocations: 0.6864 MB / 0.5502 GB, free: 29.19 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.209e-06/1.438, allocations: 3.969 kB / 0.5502 GB, free: 29.19 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.876e-06/1.438, allocations: 0 / 0.5502 GB, free: 29.19 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.998e-06/1.438, allocations: 0 / 0.5502 GB, free: 29.19 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002684/1.44, allocations: 1.341 MB / 0.5515 GB, free: 28.84 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.88e-06/1.44, allocations: 2.781 kB / 0.5515 GB, free: 28.84 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004145/1.441, allocations: 56.06 kB / 0.5515 GB, free: 28.84 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000649/1.442, allocations: 121.2 kB / 0.5517 GB, free: 28.83 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.235e-05/1.442, allocations: 15.05 kB / 0.5517 GB, free: 28.83 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005882/1.442, allocations: 0.6613 MB / 0.5523 GB, free: 28.31 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.648e-06/1.442, allocations: 3.953 kB / 0.5523 GB, free: 28.3 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001918/1.444, allocations: 1.001 MB / 0.5533 GB, free: 28.07 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002183/1.444, allocations: 139.2 kB / 0.5534 GB, free: 27.94 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001555/1.445, allocations: 11.88 kB / 0.5535 GB, free: 27.94 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005987/1.445, allocations: 34.72 kB / 0.5535 GB, free: 27.94 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001161/1.445, allocations: 35.86 kB / 0.5535 GB, free: 27.94 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.451e-05/1.445, allocations: 23 kB / 0.5535 GB, free: 27.94 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.0007037/1.446, allocations: 455.1 kB / 0.554 GB, free: 27.84 MB / 234.7 MB Notification: Performance of sort global known variables: time 7.94e-07/1.446, allocations: 2.156 kB / 0.554 GB, free: 27.84 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.001471/1.448, allocations: 369.5 kB / 0.5543 GB, free: 27.79 MB / 234.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: 7 ($whenCondition1,tank.ports_m_flow_out[1],tank.aboveLevel[1],timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent) * Number of discrete states: 7 (tank.aboveLevel[1],tank.ports_m_flow_out[1],timeTable.last,timeTable.nextEvent,timeTable.b,timeTable.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 29 * 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.001224/1.449, allocations: 0.5453 MB / 0.5549 GB, free: 27.61 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.001549/1.45, allocations: 0.606 MB / 0.5555 GB, free: 27.54 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 5.874e-06/1.451, allocations: 1.75 kB / 0.5555 GB, free: 27.54 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000714/1.451, allocations: 308.2 kB / 0.5557 GB, free: 27.48 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001572/1.453, allocations: 271.2 kB / 0.556 GB, free: 27.47 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002335/1.455, allocations: 1.092 MB / 0.5571 GB, free: 27.17 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004903/1.456, allocations: 0.9679 MB / 0.558 GB, free: 26.46 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002388/1.456, allocations: 58.97 kB / 0.5581 GB, free: 26.46 MB / 234.7 MB Notification: Performance of SimCode: time 1.999e-06/1.456, allocations: 0 / 0.5581 GB, free: 26.46 MB / 234.7 MB Notification: Performance of Templates: time 0.02434/1.48, allocations: 15.57 MB / 0.5733 GB, free: 25.54 MB / 234.7 MB