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 1.078/1.078, allocations: 111.1 MB / 126.3 MB, free: 6.41 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.652e-05/2.65e-05, allocations: 0 / 154.5 MB, free: 2.836 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0534/0.05345, allocations: 25.18 MB / 179.7 MB, free: 9.613 MB / 154.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank): time 0.02655/0.08006, allocations: 16.61 MB / 196.3 MB, free: 8.961 MB / 170.7 MB Notification: Performance of NFInst.instExpressions: time 0.01113/0.09125, allocations: 5.013 MB / 201.3 MB, free: 3.934 MB / 170.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009691/0.09227, allocations: 27.75 kB / 201.3 MB, free: 3.906 MB / 170.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001174/0.09347, allocations: 318.5 kB / 201.7 MB, free: 3.594 MB / 170.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002515/0.09601, allocations: 0.6425 MB / 202.3 MB, free: 2.949 MB / 170.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004913/0.1009, allocations: 1.173 MB / 203.5 MB, free: 1.773 MB / 170.7 MB Notification: Performance of NFFlatten.flatten: time 0.002201/0.1032, allocations: 0.7737 MB / 204.2 MB, free: 0.9961 MB / 170.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007867/0.104, allocations: 327.4 kB / 204.6 MB, free: 0.6758 MB / 170.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001369/0.1054, allocations: 486.8 kB / 205 MB, free: 204 kB / 170.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1734/0.2788, allocations: 398.1 kB / 205.4 MB, free: 4.785 MB / 170.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002611/0.2814, allocations: 0.763 MB / 206.2 MB, free: 4.785 MB / 170.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005744/0.2821, allocations: 63.34 kB / 206.3 MB, free: 4.785 MB / 170.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003978/0.2825, allocations: 201.8 kB / 206.4 MB, free: 4.785 MB / 170.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003591/0.2828, allocations: 75.66 kB / 206.5 MB, free: 4.785 MB / 170.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002843/0.2857, allocations: 1.066 MB / 207.6 MB, free: 4.711 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.269e-06/0.2858, allocations: 0.6875 kB / 207.6 MB, free: 4.711 MB / 170.7 MB Notification: Performance of FrontEnd: time 2.886e-06/0.2858, allocations: 0 / 207.6 MB, free: 4.711 MB / 170.7 MB Notification: Performance of Transformations before backend: time 3.427e-05/0.2858, allocations: 0 / 207.6 MB, free: 4.711 MB / 170.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.002786/0.2886, allocations: 0.9604 MB / 208.6 MB, free: 4.082 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.574e-05/0.2887, allocations: 9.828 kB / 208.6 MB, free: 4.082 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003271/0.289, allocations: 88.58 kB / 208.6 MB, free: 4.039 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00129/0.2903, allocations: 0.5366 MB / 209.2 MB, free: 3.77 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001134/0.2904, allocations: 93.11 kB / 209.3 MB, free: 3.707 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001428/0.2906, allocations: 43.67 kB / 209.3 MB, free: 3.707 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001771/0.2924, allocations: 0.7458 MB / 210.1 MB, free: 3.559 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.83e-05/0.2924, allocations: 1.375 kB / 210.1 MB, free: 3.559 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.811e-05/0.2925, allocations: 23.53 kB / 210.1 MB, free: 3.559 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.048e-05/0.2927, allocations: 37.98 kB / 210.1 MB, free: 3.559 MB / 170.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001572/0.2942, allocations: 0.614 MB / 210.7 MB, free: 3.555 MB / 170.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006284/0.3005, allocations: 3.669 MB / 214.4 MB, free: 1.141 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001032/0.3016, allocations: 383.4 kB / 214.8 MB, free: 1.117 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002546/0.3042, allocations: 1.322 MB / 216.1 MB, free: 16.16 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006416/0.3049, allocations: 269.1 kB / 216.4 MB, free: 16.07 MB / 186.7 MB Notification: Performance of pre-optimization done (n=33): time 3.426e-06/0.3049, allocations: 0 / 216.4 MB, free: 16.07 MB / 186.7 MB Notification: Performance of matching and sorting (n=37): time 0.005966/0.3109, allocations: 1.699 MB / 218.1 MB, free: 15.38 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001226/0.311, allocations: 166.5 kB / 218.2 MB, free: 15.19 MB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00122/0.3123, allocations: 0.5854 MB / 218.8 MB, free: 15.05 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001565/0.3125, allocations: 36.27 kB / 218.8 MB, free: 15.02 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003503/0.3129, allocations: 430.1 kB / 219.3 MB, free: 14.75 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000172/0.313, allocations: 126.1 kB / 219.4 MB, free: 14.68 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.209e-05/0.3131, allocations: 13.31 kB / 219.4 MB, free: 14.68 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0001503/0.3133, allocations: 348.3 kB / 219.7 MB, free: 14.36 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005981/0.3139, allocations: 218.5 kB / 220 MB, free: 14.36 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007841/0.3147, allocations: 0.4981 MB / 220.5 MB, free: 14.01 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008141/0.3155, allocations: 320.5 kB / 220.8 MB, free: 13.96 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.277e-06/0.3156, allocations: 3.094 kB / 220.8 MB, free: 13.96 MB / 186.7 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.00253/0.3181, allocations: 0.8585 MB / 221.6 MB, free: 13.86 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.229e-05/0.3182, allocations: 40.56 kB / 221.7 MB, free: 13.82 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.289e-05/0.3183, allocations: 8.344 kB / 221.7 MB, free: 13.82 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009045/0.3192, allocations: 131.4 kB / 221.8 MB, free: 13.81 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001027/0.3203, allocations: 146.9 kB / 221.9 MB, free: 13.81 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009359/0.3212, allocations: 0.6607 MB / 222.6 MB, free: 13.29 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001041/0.3223, allocations: 44.67 kB / 222.7 MB, free: 13.29 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.608e-05/0.3224, allocations: 38.75 kB / 222.7 MB, free: 13.29 MB / 186.7 MB Warning: Assuming fixed start value for the following 2 variables: 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" fixed = true nominal = 300.0 stateSelect=StateSelect.prefer ) "Temperature of medium" type: Real tank.level:VARIABLE(min = 0.0 start = tank.level_start unit = "m" fixed = true stateSelect=StateSelect.prefer ) "Fluid level in the tank" 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.0007373/0.3232, allocations: 311.4 kB / 223 MB, free: 13.13 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000184/0.3234, allocations: 70.91 kB / 223.1 MB, free: 13.09 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001857/0.3252, allocations: 0.6379 MB / 223.7 MB, free: 12.98 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.134e-05/0.3253, allocations: 3.125 kB / 223.7 MB, free: 12.98 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.644e-06/0.3253, allocations: 4 kB / 223.7 MB, free: 12.98 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.191e-05/0.3253, allocations: 3.984 kB / 223.7 MB, free: 12.97 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003477/0.3288, allocations: 1.267 MB / 225 MB, free: 12.41 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.615e-06/0.3289, allocations: 0 / 225 MB, free: 12.41 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005794/0.3295, allocations: 58.56 kB / 225 MB, free: 12.41 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007891/0.3303, allocations: 129.4 kB / 225.2 MB, free: 12.36 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001096/0.3304, allocations: 14.08 kB / 225.2 MB, free: 12.36 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009054/0.3313, allocations: 0.661 MB / 225.8 MB, free: 11.81 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.238e-06/0.3314, allocations: 0 / 225.8 MB, free: 11.81 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002328/0.3337, allocations: 0.9465 MB / 226.8 MB, free: 11.48 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003832/0.3342, allocations: 141.1 kB / 226.9 MB, free: 11.34 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002347/0.3344, allocations: 16.09 kB / 226.9 MB, free: 11.34 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007872/0.3352, allocations: 32.72 kB / 227 MB, free: 11.33 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001817/0.3354, allocations: 30.48 kB / 227 MB, free: 11.32 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.953e-05/0.3355, allocations: 17.58 kB / 227 MB, free: 11.32 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.0009025/0.3364, allocations: 457 kB / 227.5 MB, free: 11.16 MB / 186.7 MB Notification: Performance of sort global known variables: time 8.21e-07/0.3365, allocations: 3.188 kB / 227.5 MB, free: 11.16 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.001852/0.3383, allocations: 328.3 kB / 227.8 MB, free: 11.12 MB / 186.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (tank.level,tank.medium.T) * 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 (timeTable.last,timeTable.nextEvent,timeTable.b,timeTable.a,$whenCondition1,tank.aboveLevel[1],tank.ports_m_flow_out[1]) * 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.001615/0.34, allocations: 378.3 kB / 228.2 MB, free: 10.93 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.00218/0.3422, allocations: 0.6297 MB / 228.8 MB, free: 10.79 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 7.334e-06/0.3423, allocations: 2.812 kB / 228.8 MB, free: 10.79 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001053/0.3434, allocations: 322.9 kB / 229.1 MB, free: 10.69 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002417/0.3458, allocations: 275.3 kB / 229.4 MB, free: 10.6 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00385/0.3497, allocations: 1.706 MB / 231.1 MB, free: 9.246 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008185/0.3506, allocations: 0.9678 MB / 232 MB, free: 8.27 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000318/0.3509, allocations: 55.42 kB / 232.1 MB, free: 8.215 MB / 186.7 MB Notification: Performance of SimCode: time 1.002e-06/0.3509, allocations: 4 kB / 232.1 MB, free: 8.211 MB / 186.7 MB Notification: Performance of Templates: time 0.03691/0.3878, allocations: 14.91 MB / 247 MB, free: 9.477 MB / 202.7 MB