Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank1.aboveLevel.1.|tank2.aboveLevel.1.",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks") Notification: Performance of loadModel(Modelica): time 1.79/1.79, allocations: 171.2 MB / 185.7 MB, free: 1.387 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 4.316e-05/4.355e-05, allocations: 6.188 kB / 228.2 MB, free: 7.316 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08113/0.0812, allocations: 38.77 MB / 266.9 MB, free: 476 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks): time 0.02512/0.1064, allocations: 14.72 MB / 281.6 MB, free: 1.684 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.01163/0.118, allocations: 5.086 MB / 286.7 MB, free: 12.59 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001109/0.1192, allocations: 27.75 kB / 286.8 MB, free: 12.57 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001259/0.1205, allocations: 286.4 kB / 287 MB, free: 12.29 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003158/0.1237, allocations: 0.7319 MB / 287.8 MB, free: 11.55 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004378/0.1281, allocations: 1.075 MB / 288.8 MB, free: 10.47 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.002164/0.1303, allocations: 0.8049 MB / 289.6 MB, free: 9.668 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006745/0.131, allocations: 319.6 kB / 290 MB, free: 9.355 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001105/0.1321, allocations: 458.9 kB / 290.4 MB, free: 8.906 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009417/0.1331, allocations: 434.7 kB / 290.8 MB, free: 8.48 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002964/0.1361, allocations: 1.003 MB / 291.8 MB, free: 7.477 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004394/0.1365, allocations: 76 kB / 291.9 MB, free: 7.402 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003817/0.1369, allocations: 207.4 kB / 292.1 MB, free: 7.199 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003076/0.1372, allocations: 76 kB / 292.2 MB, free: 7.125 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002666/0.1399, allocations: 1.204 MB / 293.4 MB, free: 5.918 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.426e-06/0.14, allocations: 0 / 293.4 MB, free: 5.918 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.976e-06/0.14, allocations: 4 kB / 293.4 MB, free: 5.914 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.829e-05/0.14, allocations: 0 / 293.4 MB, free: 5.914 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.002821/0.1428, allocations: 0.9589 MB / 294.4 MB, free: 4.906 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.545e-05/0.1429, allocations: 8.031 kB / 294.4 MB, free: 4.898 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004332/0.1433, allocations: 87.05 kB / 294.4 MB, free: 4.812 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001327/0.1447, allocations: 0.521 MB / 295 MB, free: 4.25 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.535e-05/0.1448, allocations: 33 kB / 295 MB, free: 4.215 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001495/0.1449, allocations: 55.97 kB / 295.1 MB, free: 4.16 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001934/0.1469, allocations: 0.7255 MB / 295.8 MB, free: 3.406 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.974e-05/0.1469, allocations: 4 kB / 295.8 MB, free: 3.402 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000103/0.147, allocations: 23.94 kB / 295.8 MB, free: 3.379 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001169/0.1472, allocations: 44.97 kB / 295.9 MB, free: 3.336 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001999/0.1492, allocations: 0.6947 MB / 296.5 MB, free: 2.637 MB / 250.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.2179/0.3671, allocations: 3.046 MB / 299.6 MB, free: 30.68 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001483/0.3686, allocations: 487.3 kB / 300.1 MB, free: 30.65 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003593/0.369, allocations: 341.9 kB / 300.4 MB, free: 30.28 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.105e-05/0.3691, allocations: 39.41 kB / 300.4 MB, free: 30.24 MB / 250.7 MB Notification: Performance of pre-optimization done (n=48): time 2.955e-06/0.3691, allocations: 3.469 kB / 300.4 MB, free: 30.24 MB / 250.7 MB Notification: Performance of matching and sorting (n=58): time 0.01164/0.3808, allocations: 2.324 MB / 302.8 MB, free: 29.55 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.749e-05/0.3809, allocations: 83.08 kB / 302.9 MB, free: 29.46 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001658/0.3825, allocations: 0.5466 MB / 303.4 MB, free: 29.21 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001952/0.3828, allocations: 41.58 kB / 303.4 MB, free: 29.17 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004396/0.3832, allocations: 330.4 kB / 303.8 MB, free: 28.91 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003635/0.3836, allocations: 209 kB / 304 MB, free: 28.75 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.629e-05/0.3837, allocations: 15.31 kB / 304 MB, free: 28.74 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0002094/0.384, allocations: 379.4 kB / 304.3 MB, free: 28.4 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001339/0.3853, allocations: 297.3 kB / 304.6 MB, free: 28.3 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001451/0.3868, allocations: 472.4 kB / 305.1 MB, free: 28.01 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0014/0.3882, allocations: 356 kB / 305.4 MB, free: 27.87 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.346e-06/0.3883, allocations: 1.562 kB / 305.5 MB, free: 27.87 MB / 250.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.003613/0.3919, allocations: 0.9494 MB / 306.4 MB, free: 27.48 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005079/0.3924, allocations: 1.828 MB / 308.2 MB, free: 25.55 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.129e-05/0.3925, allocations: 6.422 kB / 308.2 MB, free: 25.55 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005651/0.3982, allocations: 420.6 kB / 308.6 MB, free: 25.5 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001646/0.3998, allocations: 148 kB / 308.8 MB, free: 25.48 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001826/0.4017, allocations: 0.8271 MB / 309.6 MB, free: 24.84 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001495/0.4032, allocations: 51.84 kB / 309.7 MB, free: 24.83 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001609/0.4034, allocations: 35.83 kB / 309.7 MB, free: 24.82 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.899e-05/0.4035, allocations: 3.344 kB / 309.7 MB, free: 24.82 MB / 250.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003265/0.4068, allocations: 0.8124 MB / 310.5 MB, free: 24.51 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.73e-05/0.4068, allocations: 6.203 kB / 310.5 MB, free: 24.51 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004302/0.4111, allocations: 280.1 kB / 310.8 MB, free: 24.48 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001576/0.4128, allocations: 163 kB / 311 MB, free: 24.46 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001163/0.4139, allocations: 0.7126 MB / 311.7 MB, free: 23.86 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00125/0.4152, allocations: 42.73 kB / 311.7 MB, free: 23.85 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001339/0.4154, allocations: 31.47 kB / 311.7 MB, free: 23.84 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * 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 {2 7} Notification: Performance of prepare postOptimizeDAE: time 0.0007571/0.4161, allocations: 254.1 kB / 312 MB, free: 23.65 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002719/0.4164, allocations: 71.16 kB / 312.1 MB, free: 23.62 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003387/0.4198, allocations: 0.8645 MB / 312.9 MB, free: 23.25 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.448e-05/0.4199, allocations: 7.594 kB / 312.9 MB, free: 23.25 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.688e-06/0.4199, allocations: 5.453 kB / 312.9 MB, free: 23.25 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.413e-05/0.4199, allocations: 3.094 kB / 312.9 MB, free: 23.25 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005856/0.4258, allocations: 1.717 MB / 314.7 MB, free: 22.31 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.107e-06/0.4259, allocations: 1.344 kB / 314.7 MB, free: 22.31 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001262/0.4271, allocations: 108.1 kB / 314.8 MB, free: 22.29 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003493/0.4307, allocations: 357 kB / 315.1 MB, free: 22.14 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001643/0.4309, allocations: 21.61 kB / 315.1 MB, free: 22.12 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00145/0.4323, allocations: 0.806 MB / 315.9 MB, free: 21.45 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.019e-06/0.4324, allocations: 1.031 kB / 315.9 MB, free: 21.45 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004237/0.4366, allocations: 1.308 MB / 317.2 MB, free: 20.66 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003998/0.4371, allocations: 157.7 kB / 317.4 MB, free: 20.51 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002635/0.4374, allocations: 17.84 kB / 317.4 MB, free: 20.5 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001113/0.4385, allocations: 39.34 kB / 317.5 MB, free: 20.48 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002026/0.4387, allocations: 48.95 kB / 317.5 MB, free: 20.45 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001141/0.4388, allocations: 31.64 kB / 317.5 MB, free: 20.44 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0009615/0.4398, allocations: 436.7 kB / 318 MB, free: 20.19 MB / 250.7 MB Notification: Performance of sort global known variables: time 5.71e-07/0.4398, allocations: 1.641 kB / 318 MB, free: 20.19 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.002596/0.4425, allocations: 0.5255 MB / 318.5 MB, free: 20.12 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (tank1.level,tank1.medium.T,tank2.level,tank2.medium.T) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank2.aboveLevel[1]) * Number of discrete states: 2 (tank2.aboveLevel[1],tank1.aboveLevel[1]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 0 * 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 {2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.001634/0.4441, allocations: 442.7 kB / 318.9 MB, free: 19.96 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.004564/0.4487, allocations: 1.186 MB / 320.1 MB, free: 19.41 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 8.076e-06/0.4487, allocations: 0 / 320.1 MB, free: 19.41 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001422/0.4502, allocations: 397.7 kB / 320.5 MB, free: 19.12 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003321/0.4535, allocations: 328.1 kB / 320.8 MB, free: 18.81 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003361/0.4569, allocations: 1.861 MB / 322.7 MB, free: 16.94 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004612/0.4574, allocations: 0.9804 MB / 323.7 MB, free: 15.93 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.001776/0.4592, allocations: 334 kB / 324 MB, free: 15.6 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002266/0.4594, allocations: 63.42 kB / 324 MB, free: 15.54 MB / 250.7 MB Notification: Performance of SimCode: time 1.052e-06/0.4594, allocations: 0 / 324 MB, free: 15.54 MB / 250.7 MB Notification: Performance of Templates: time 0.04393/0.5034, allocations: 19.36 MB / 343.4 MB, free: 12.24 MB / 266.7 MB