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_trunk_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank") Notification: Performance of loadModel(Modelica): time 2.172/2.172, allocations: 224.7 MB / 241.1 MB, free: 1.688 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.236e-05/4.232e-05, allocations: 4 kB / 294.6 MB, free: 11.41 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1405/0.1405, allocations: 50.42 MB / 345 MB, free: 8.945 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank): time 0.03502/0.1756, allocations: 14.65 MB / 359.6 MB, free: 10.24 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01692/0.1926, allocations: 5.544 MB / 365.2 MB, free: 4.684 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001349/0.1941, allocations: 27.81 kB / 365.2 MB, free: 4.656 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001773/0.1959, allocations: 326.5 kB / 365.5 MB, free: 4.336 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004099/0.2, allocations: 0.7125 MB / 366.2 MB, free: 3.621 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00739/0.2075, allocations: 1.254 MB / 367.5 MB, free: 2.363 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.003197/0.2107, allocations: 0.8555 MB / 368.4 MB, free: 1.504 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001202/0.212, allocations: 351.3 kB / 368.7 MB, free: 1.16 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002138/0.2141, allocations: 0.5144 MB / 369.2 MB, free: 0.6445 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00171/0.2159, allocations: 458.8 kB / 369.7 MB, free: 200 kB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004246/0.2202, allocations: 0.9909 MB / 370.7 MB, free: 15.2 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00081/0.2211, allocations: 76 kB / 370.7 MB, free: 15.13 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006748/0.2218, allocations: 215.3 kB / 370.9 MB, free: 14.92 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005068/0.2223, allocations: 80 kB / 371 MB, free: 14.84 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004121/0.2265, allocations: 1.224 MB / 372.2 MB, free: 13.61 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.2266, allocations: 0 / 372.2 MB, free: 13.61 MB / 314.7 MB Notification: Performance of FrontEnd: time 6.062e-06/0.2266, allocations: 0 / 372.2 MB, free: 13.61 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.499e-05/0.2266, allocations: 3.938 kB / 372.2 MB, free: 13.61 MB / 314.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.004158/0.2308, allocations: 1.011 MB / 373.3 MB, free: 12.54 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.855e-05/0.2309, allocations: 8.031 kB / 373.3 MB, free: 12.53 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009625/0.2319, allocations: 106.9 kB / 373.4 MB, free: 12.43 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002104/0.234, allocations: 0.5425 MB / 373.9 MB, free: 11.84 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001854/0.2342, allocations: 84.41 kB / 374 MB, free: 11.75 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002243/0.2345, allocations: 51.98 kB / 374 MB, free: 11.7 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003066/0.2376, allocations: 0.7969 MB / 374.8 MB, free: 10.86 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.075e-05/0.2377, allocations: 0 / 374.8 MB, free: 10.86 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001645/0.2379, allocations: 20 kB / 374.9 MB, free: 10.84 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001463/0.238, allocations: 40.97 kB / 374.9 MB, free: 10.79 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002806/0.2408, allocations: 0.6869 MB / 375.6 MB, free: 10.11 MB / 314.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.01119/0.2521, allocations: 3.471 MB / 379.1 MB, free: 6.414 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001694/0.2538, allocations: 423 kB / 379.5 MB, free: 5.992 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004064/0.258, allocations: 1.355 MB / 380.8 MB, free: 4.5 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001207/0.2592, allocations: 361.1 kB / 381.2 MB, free: 4.113 MB / 314.7 MB Notification: Performance of pre-optimization done (n=35): time 4.799e-06/0.2593, allocations: 0 / 381.2 MB, free: 4.113 MB / 314.7 MB Notification: Performance of matching and sorting (n=40): time 0.008903/0.2682, allocations: 1.854 MB / 383 MB, free: 2.148 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002079/0.2685, allocations: 269 kB / 383.3 MB, free: 1.824 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002099/0.2706, allocations: 0.6834 MB / 384 MB, free: 1.129 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001964/0.2708, allocations: 37.69 kB / 384 MB, free: 1.086 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005702/0.2714, allocations: 417.5 kB / 384.4 MB, free: 0.6758 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003123/0.2718, allocations: 138.2 kB / 384.6 MB, free: 0.5391 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.924e-05/0.2719, allocations: 12 kB / 384.6 MB, free: 0.5273 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002052/0.2721, allocations: 338.8 kB / 384.9 MB, free: 192 kB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001067/0.2732, allocations: 249.5 kB / 385.1 MB, free: 15.94 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001446/0.2747, allocations: 0.4957 MB / 385.6 MB, free: 15.34 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001404/0.2761, allocations: 344.4 kB / 386 MB, free: 15 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.302e-05/0.2762, allocations: 7.938 kB / 386 MB, free: 15 MB / 330.7 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.004125/0.2803, allocations: 0.8869 MB / 386.9 MB, free: 14.09 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001593/0.282, allocations: 2.567 MB / 389.4 MB, free: 11.32 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.54e-05/0.2821, allocations: 12 kB / 389.4 MB, free: 11.31 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001348/0.2834, allocations: 140.7 kB / 389.6 MB, free: 11.17 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001488/0.285, allocations: 131.8 kB / 389.7 MB, free: 11.04 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00141/0.2864, allocations: 0.6772 MB / 390.4 MB, free: 10.34 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001817/0.2883, allocations: 55.89 kB / 390.4 MB, free: 10.29 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001902/0.2885, allocations: 31.98 kB / 390.5 MB, free: 10.25 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.076e-05/0.2886, allocations: 4 kB / 390.5 MB, free: 10.25 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003769/0.2924, allocations: 0.8585 MB / 391.3 MB, free: 9.383 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.057e-05/0.2924, allocations: 4 kB / 391.3 MB, free: 9.379 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008116/0.2933, allocations: 120.9 kB / 391.5 MB, free: 9.258 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001317/0.2946, allocations: 143.7 kB / 391.6 MB, free: 9.117 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001182/0.2958, allocations: 0.6499 MB / 392.3 MB, free: 8.441 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001273/0.2971, allocations: 43.97 kB / 392.3 MB, free: 8.398 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001764/0.2974, allocations: 32 kB / 392.3 MB, free: 8.367 MB / 330.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: 29 * 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 (79): * Single equations (assignments): 77 * 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.00113/0.2985, allocations: 320.2 kB / 392.6 MB, free: 8.039 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003598/0.2989, allocations: 90.92 kB / 392.7 MB, free: 7.949 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003082/0.302, allocations: 0.6827 MB / 393.4 MB, free: 7.25 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.534e-05/0.3021, allocations: 4 kB / 393.4 MB, free: 7.246 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.488e-06/0.3021, allocations: 0 / 393.4 MB, free: 7.246 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.681e-05/0.3021, allocations: 0 / 393.4 MB, free: 7.246 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005191/0.3073, allocations: 1.402 MB / 394.8 MB, free: 5.773 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.877e-06/0.3074, allocations: 4.031 kB / 394.8 MB, free: 5.77 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008582/0.3083, allocations: 63.91 kB / 394.9 MB, free: 5.707 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001109/0.3094, allocations: 124.8 kB / 395 MB, free: 5.582 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001249/0.3096, allocations: 15.98 kB / 395 MB, free: 5.566 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001225/0.3108, allocations: 0.6616 MB / 395.7 MB, free: 4.879 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.729e-06/0.3109, allocations: 0 / 395.7 MB, free: 4.879 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003836/0.3147, allocations: 1.031 MB / 396.7 MB, free: 3.812 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005162/0.3153, allocations: 160.1 kB / 396.9 MB, free: 3.637 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003453/0.3157, allocations: 15.95 kB / 396.9 MB, free: 3.621 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001318/0.317, allocations: 47.75 kB / 396.9 MB, free: 3.574 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000219/0.3173, allocations: 35.94 kB / 397 MB, free: 3.539 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001037/0.3174, allocations: 20.06 kB / 397 MB, free: 3.52 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001673/0.3191, allocations: 0.5341 MB / 397.5 MB, free: 2.988 MB / 330.7 MB Notification: Performance of sort global known variables: time 8.42e-07/0.3192, allocations: 0 / 397.5 MB, free: 2.988 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.003512/0.3227, allocations: 0.5232 MB / 398 MB, free: 2.465 MB / 330.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 (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.002377/0.3251, allocations: 443.1 kB / 398.5 MB, free: 2.031 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.005292/0.3305, allocations: 1.157 MB / 399.6 MB, free: 0.8516 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.749e-05/0.3305, allocations: 4 kB / 399.6 MB, free: 0.8477 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001705/0.3323, allocations: 356.4 kB / 400 MB, free: 500 kB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004013/0.3363, allocations: 308.3 kB / 400.3 MB, free: 196 kB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2858/0.6222, allocations: 1.721 MB / 402 MB, free: 51.73 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008604/0.6231, allocations: 0.9797 MB / 403 MB, free: 51.02 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004249/0.6236, allocations: 64.22 kB / 403 MB, free: 51.02 MB / 330.7 MB Notification: Performance of SimCode: time 1.834e-06/0.6236, allocations: 1.25 kB / 403.1 MB, free: 51.02 MB / 330.7 MB Notification: Performance of Templates: time 0.04154/0.6651, allocations: 17.22 MB / 420.3 MB, free: 43.8 MB / 330.7 MB