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.2_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank") Notification: Performance of loadModel(Modelica): time 1.963/1.963, allocations: 194.9 MB / 211.2 MB, free: 8.352 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.148e-05/3.137e-05, allocations: 8 kB / 258.8 MB, free: 8.703 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3717/0.3718, allocations: 44.51 MB / 303.3 MB, free: 12.78 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank): time 0.02442/0.3963, allocations: 14.49 MB / 317.8 MB, free: 15.19 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01219/0.4085, allocations: 5.476 MB / 323.3 MB, free: 9.703 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001077/0.4096, allocations: 31.75 kB / 323.3 MB, free: 9.672 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001215/0.4109, allocations: 314.5 kB / 323.6 MB, free: 9.363 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00288/0.4138, allocations: 0.7164 MB / 324.3 MB, free: 8.645 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005135/0.4189, allocations: 1.243 MB / 325.6 MB, free: 7.398 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002335/0.4213, allocations: 0.8399 MB / 326.4 MB, free: 6.555 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008059/0.4221, allocations: 355.2 kB / 326.7 MB, free: 6.207 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001386/0.4236, allocations: 0.5104 MB / 327.3 MB, free: 5.695 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001082/0.4247, allocations: 450.7 kB / 327.7 MB, free: 5.254 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002904/0.4276, allocations: 0.9792 MB / 328.7 MB, free: 4.273 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000492/0.4281, allocations: 75.98 kB / 328.8 MB, free: 4.199 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003996/0.4285, allocations: 203.4 kB / 328.9 MB, free: 4 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003367/0.4289, allocations: 84 kB / 329 MB, free: 3.918 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002866/0.4318, allocations: 1.196 MB / 330.2 MB, free: 2.719 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.4318, allocations: 0 / 330.2 MB, free: 2.719 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.745e-06/0.4318, allocations: 0 / 330.2 MB, free: 2.719 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.127e-05/0.4319, allocations: 0 / 330.2 MB, free: 2.719 MB / 266.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.002941/0.4348, allocations: 0.9996 MB / 331.2 MB, free: 1.66 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.823e-05/0.4349, allocations: 12.03 kB / 331.2 MB, free: 1.648 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005501/0.4354, allocations: 94.95 kB / 331.3 MB, free: 1.555 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001428/0.4369, allocations: 0.5618 MB / 331.9 MB, free: 0.9492 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001358/0.4371, allocations: 92.39 kB / 332 MB, free: 0.8477 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001365/0.4372, allocations: 44 kB / 332 MB, free: 0.8047 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001959/0.4392, allocations: 0.7891 MB / 332.8 MB, free: 15.97 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.741e-05/0.4392, allocations: 4 kB / 332.8 MB, free: 15.96 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001065/0.4394, allocations: 27.98 kB / 332.8 MB, free: 15.94 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001076/0.4395, allocations: 36.98 kB / 332.9 MB, free: 15.9 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00184/0.4413, allocations: 0.6713 MB / 333.6 MB, free: 15.23 MB / 282.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.007526/0.4489, allocations: 3.469 MB / 337 MB, free: 11.52 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00108/0.45, allocations: 395.1 kB / 337.4 MB, free: 11.13 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002552/0.4526, allocations: 1.292 MB / 338.7 MB, free: 9.699 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007165/0.4533, allocations: 288.7 kB / 339 MB, free: 9.398 MB / 282.7 MB Notification: Performance of pre-optimization done (n=35): time 3.106e-06/0.4534, allocations: 0 / 339 MB, free: 9.398 MB / 282.7 MB Notification: Performance of matching and sorting (n=40): time 0.005672/0.459, allocations: 1.706 MB / 340.7 MB, free: 7.582 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001139/0.4592, allocations: 170.5 kB / 340.9 MB, free: 7.379 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0012/0.4604, allocations: 0.6128 MB / 341.5 MB, free: 6.762 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 8.807e-05/0.4605, allocations: 37.7 kB / 341.5 MB, free: 6.719 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004381/0.461, allocations: 436.9 kB / 341.9 MB, free: 6.289 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001879/0.4612, allocations: 142 kB / 342.1 MB, free: 6.148 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.629e-05/0.4612, allocations: 16 kB / 342.1 MB, free: 6.133 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001626/0.4614, allocations: 346.8 kB / 342.4 MB, free: 5.785 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006707/0.4621, allocations: 237.9 kB / 342.7 MB, free: 5.555 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009163/0.463, allocations: 0.5233 MB / 343.2 MB, free: 4.898 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008493/0.4639, allocations: 347.1 kB / 343.5 MB, free: 4.551 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.197e-06/0.4639, allocations: 4 kB / 343.5 MB, free: 4.547 MB / 282.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.002564/0.4665, allocations: 0.8614 MB / 344.4 MB, free: 3.668 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001792/0.4683, allocations: 3.606 MB / 348 MB, free: 15.78 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.639e-05/0.4684, allocations: 8 kB / 348 MB, free: 15.77 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000993/0.4694, allocations: 144.7 kB / 348.1 MB, free: 15.62 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001076/0.4705, allocations: 151.7 kB / 348.3 MB, free: 15.48 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009798/0.4715, allocations: 0.6732 MB / 349 MB, free: 14.78 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001053/0.4726, allocations: 47.83 kB / 349 MB, free: 14.73 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000103/0.4727, allocations: 40 kB / 349 MB, free: 14.69 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.429e-05/0.4727, allocations: 4 kB / 349.1 MB, free: 14.69 MB / 298.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002657/0.4754, allocations: 0.8443 MB / 349.9 MB, free: 13.84 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.68e-05/0.4754, allocations: 12 kB / 349.9 MB, free: 13.82 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005998/0.4761, allocations: 117.3 kB / 350 MB, free: 13.71 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009825/0.4771, allocations: 151.7 kB / 350.2 MB, free: 13.56 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008137/0.4779, allocations: 0.6421 MB / 350.8 MB, free: 12.89 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007605/0.4787, allocations: 48.03 kB / 350.9 MB, free: 12.84 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.04e-05/0.4788, allocations: 36 kB / 350.9 MB, free: 12.81 MB / 298.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(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: 41 * 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 (85): * Single equations (assignments): 83 * 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.0007705/0.4796, allocations: 322.4 kB / 351.2 MB, free: 12.48 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002199/0.4798, allocations: 79.06 kB / 351.3 MB, free: 12.4 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001956/0.4818, allocations: 0.6121 MB / 351.9 MB, free: 11.76 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.007e-06/0.4818, allocations: 4 kB / 351.9 MB, free: 11.76 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.793e-06/0.4818, allocations: 0 / 351.9 MB, free: 11.76 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.008e-05/0.4818, allocations: 3.984 kB / 351.9 MB, free: 11.75 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003151/0.485, allocations: 1.301 MB / 353.2 MB, free: 10.38 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.624e-06/0.4851, allocations: 8.031 kB / 353.2 MB, free: 10.38 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005636/0.4856, allocations: 55.97 kB / 353.3 MB, free: 10.32 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007557/0.4864, allocations: 128.7 kB / 353.4 MB, free: 10.19 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.009e-05/0.4865, allocations: 16 kB / 353.4 MB, free: 10.18 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008696/0.4874, allocations: 0.6577 MB / 354.1 MB, free: 9.492 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.367e-06/0.4874, allocations: 7.984 kB / 354.1 MB, free: 9.484 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002288/0.4897, allocations: 0.9412 MB / 355 MB, free: 8.508 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002866/0.49, allocations: 152.2 kB / 355.2 MB, free: 8.34 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001963/0.4902, allocations: 16 kB / 355.2 MB, free: 8.324 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006983/0.4909, allocations: 27.94 kB / 355.2 MB, free: 8.297 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000135/0.4911, allocations: 35.94 kB / 355.2 MB, free: 8.262 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.547e-05/0.4912, allocations: 19.98 kB / 355.3 MB, free: 8.242 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0009245/0.4921, allocations: 479.1 kB / 355.7 MB, free: 7.781 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.4921, allocations: 3.938 kB / 355.7 MB, free: 7.777 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.002065/0.4942, allocations: 0.4959 MB / 356.2 MB, free: 7.281 MB / 298.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: 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 (timeTable.nextEvent,timeTable.last,timeTable.nextEventScaled,timeTable.b,timeTable.a,$whenCondition1,tank.aboveLevel[1],tank.ports_m_flow_out[1]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 30 * 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.001476/0.4957, allocations: 430.8 kB / 356.7 MB, free: 6.859 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.003459/0.4992, allocations: 1.185 MB / 357.8 MB, free: 5.652 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 8.556e-06/0.4992, allocations: 4 kB / 357.8 MB, free: 5.648 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001088/0.5003, allocations: 347.6 kB / 358.2 MB, free: 5.297 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002134/0.5025, allocations: 238.7 kB / 358.4 MB, free: 5.062 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003939/0.5065, allocations: 1.752 MB / 360.2 MB, free: 3.27 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007742/0.5073, allocations: 0.9772 MB / 361.1 MB, free: 2.266 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003199/0.5076, allocations: 55.44 kB / 361.2 MB, free: 2.211 MB / 298.7 MB Notification: Performance of SimCode: time 2.084e-06/0.5076, allocations: 0 / 361.2 MB, free: 2.211 MB / 298.7 MB Notification: Performance of Templates: time 0.03622/0.5439, allocations: 15.79 MB / 377 MB, free: 2.426 MB / 314.7 MB