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.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks") Notification: Performance of loadModel(Modelica): time 1.782/1.782, allocations: 194.9 MB / 210.6 MB, free: 8.152 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.375e-05/2.382e-05, allocations: 4 kB / 258.8 MB, free: 7.859 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2807/0.2807, allocations: 44.5 MB / 303.3 MB, free: 12.96 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks): time 0.02203/0.3028, allocations: 14.73 MB / 318.1 MB, free: 14.8 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01063/0.3135, allocations: 5.081 MB / 323.1 MB, free: 9.715 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007577/0.3143, allocations: 35.69 kB / 323.2 MB, free: 9.68 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00113/0.3154, allocations: 282.5 kB / 323.4 MB, free: 9.402 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00317/0.3186, allocations: 0.7163 MB / 324.2 MB, free: 8.684 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003987/0.3227, allocations: 1.079 MB / 325.2 MB, free: 7.602 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001893/0.3246, allocations: 0.8244 MB / 326.1 MB, free: 6.773 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005815/0.3252, allocations: 319.5 kB / 326.4 MB, free: 6.461 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009084/0.3261, allocations: 458.9 kB / 326.8 MB, free: 6.012 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008139/0.3269, allocations: 426.8 kB / 327.2 MB, free: 5.594 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002637/0.3296, allocations: 1.006 MB / 328.2 MB, free: 4.586 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000293/0.3299, allocations: 80 kB / 328.3 MB, free: 4.508 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003009/0.3302, allocations: 207.5 kB / 328.5 MB, free: 4.305 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002568/0.3305, allocations: 76 kB / 328.6 MB, free: 4.23 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002196/0.3327, allocations: 1.204 MB / 329.8 MB, free: 3.023 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.3327, allocations: 0 / 329.8 MB, free: 3.023 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.515e-06/0.3327, allocations: 4 kB / 329.8 MB, free: 3.02 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.296e-05/0.3327, allocations: 3.938 kB / 329.8 MB, free: 3.016 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.002561/0.3353, allocations: 0.9473 MB / 330.8 MB, free: 2.02 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.602e-05/0.3354, allocations: 12.03 kB / 330.8 MB, free: 2.008 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003815/0.3358, allocations: 87.05 kB / 330.9 MB, free: 1.922 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001166/0.3369, allocations: 0.521 MB / 331.4 MB, free: 1.359 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.205e-05/0.337, allocations: 33 kB / 331.4 MB, free: 1.328 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001428/0.3372, allocations: 59.83 kB / 331.5 MB, free: 1.27 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001722/0.3389, allocations: 0.7333 MB / 332.2 MB, free: 0.5078 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.5e-05/0.3389, allocations: 0 / 332.2 MB, free: 0.5078 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.46e-05/0.339, allocations: 27.92 kB / 332.2 MB, free: 492 kB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001013/0.3391, allocations: 40.97 kB / 332.3 MB, free: 448 kB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001895/0.341, allocations: 0.6948 MB / 333 MB, free: 15.74 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.006445/0.3475, allocations: 3.05 MB / 336 MB, free: 12.47 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001231/0.3488, allocations: 484.5 kB / 336.5 MB, free: 11.99 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003475/0.3491, allocations: 349.3 kB / 336.8 MB, free: 11.57 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.942e-05/0.3492, allocations: 47 kB / 336.9 MB, free: 11.52 MB / 282.7 MB Notification: Performance of pre-optimization done (n=48): time 3.025e-06/0.3492, allocations: 0 / 336.9 MB, free: 11.52 MB / 282.7 MB Notification: Performance of matching and sorting (n=58): time 0.008411/0.3576, allocations: 2.312 MB / 339.2 MB, free: 9.129 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.563e-05/0.3577, allocations: 81.67 kB / 339.3 MB, free: 9.031 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009774/0.3587, allocations: 0.5461 MB / 339.8 MB, free: 8.48 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 7.943e-05/0.3588, allocations: 41.7 kB / 339.9 MB, free: 8.434 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000333/0.3591, allocations: 336.4 kB / 340.2 MB, free: 8.098 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002411/0.3594, allocations: 205 kB / 340.4 MB, free: 7.895 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.437e-05/0.3594, allocations: 16 kB / 340.4 MB, free: 7.879 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001993/0.3597, allocations: 378.8 kB / 340.8 MB, free: 7.5 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008418/0.3605, allocations: 297.8 kB / 341.1 MB, free: 7.211 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009578/0.3615, allocations: 469.8 kB / 341.5 MB, free: 6.684 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009248/0.3624, allocations: 351.1 kB / 341.9 MB, free: 6.344 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.901e-06/0.3624, allocations: 3.953 kB / 341.9 MB, free: 6.34 MB / 282.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.002507/0.365, allocations: 0.9541 MB / 342.8 MB, free: 5.375 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007511/0.3657, allocations: 1.825 MB / 344.6 MB, free: 3.402 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.593e-05/0.3657, allocations: 7.953 kB / 344.7 MB, free: 3.395 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004052/0.3698, allocations: 420.3 kB / 345.1 MB, free: 2.98 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001095/0.3709, allocations: 151.7 kB / 345.2 MB, free: 2.832 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001323/0.3723, allocations: 0.8254 MB / 346 MB, free: 1.98 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008613/0.3731, allocations: 47.91 kB / 346.1 MB, free: 1.934 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.261e-05/0.3732, allocations: 32 kB / 346.1 MB, free: 1.902 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.067e-06/0.3733, allocations: 4 kB / 346.1 MB, free: 1.898 MB / 282.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00218/0.3755, allocations: 0.8201 MB / 346.9 MB, free: 1.074 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.417e-06/0.3755, allocations: 4.625 kB / 346.9 MB, free: 1.07 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003122/0.3786, allocations: 276.5 kB / 347.2 MB, free: 0.7969 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001086/0.3797, allocations: 163.7 kB / 347.4 MB, free: 0.6367 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009318/0.3807, allocations: 0.7084 MB / 348.1 MB, free: 15.9 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007541/0.3814, allocations: 48.03 kB / 348.1 MB, free: 15.86 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.825e-05/0.3815, allocations: 32 kB / 348.2 MB, free: 15.82 MB / 298.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.0005105/0.3821, allocations: 245.5 kB / 348.4 MB, free: 15.57 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001803/0.3822, allocations: 75.11 kB / 348.5 MB, free: 15.5 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002504/0.3848, allocations: 0.8658 MB / 349.3 MB, free: 14.63 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.201e-05/0.3848, allocations: 8 kB / 349.3 MB, free: 14.62 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.021e-06/0.3848, allocations: 64 / 349.3 MB, free: 14.62 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.366e-05/0.3848, allocations: 7.984 kB / 349.4 MB, free: 14.62 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004292/0.3891, allocations: 1.719 MB / 351.1 MB, free: 12.83 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.859e-06/0.3892, allocations: 0 / 351.1 MB, free: 12.83 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009496/0.3901, allocations: 107.9 kB / 351.2 MB, free: 12.72 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002589/0.3927, allocations: 352.6 kB / 351.5 MB, free: 12.38 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.439e-05/0.3928, allocations: 23.98 kB / 351.5 MB, free: 12.35 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001168/0.394, allocations: 0.8074 MB / 352.4 MB, free: 11.52 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.394, allocations: 0 / 352.4 MB, free: 11.52 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003145/0.3972, allocations: 1.314 MB / 353.7 MB, free: 10.17 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002486/0.3974, allocations: 152.2 kB / 353.8 MB, free: 10 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001933/0.3976, allocations: 16 kB / 353.8 MB, free: 9.988 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007819/0.3984, allocations: 40.06 kB / 353.9 MB, free: 9.949 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001572/0.3986, allocations: 60.38 kB / 353.9 MB, free: 9.887 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.411e-05/0.3987, allocations: 27.92 kB / 354 MB, free: 9.859 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0008206/0.3995, allocations: 443 kB / 354.4 MB, free: 9.43 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.3995, allocations: 0 / 354.4 MB, free: 9.43 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001876/0.4014, allocations: 0.5271 MB / 354.9 MB, free: 8.902 MB / 298.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.001279/0.4027, allocations: 434.8 kB / 355.3 MB, free: 8.465 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.003483/0.4062, allocations: 1.179 MB / 356.5 MB, free: 7.293 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.469e-06/0.4062, allocations: 0 / 356.5 MB, free: 7.293 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001128/0.4074, allocations: 396.3 kB / 356.9 MB, free: 6.902 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002494/0.4099, allocations: 332.7 kB / 357.2 MB, free: 6.586 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003817/0.4137, allocations: 1.863 MB / 359.1 MB, free: 4.691 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007168/0.4144, allocations: 0.9765 MB / 360.1 MB, free: 3.684 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.001821/0.4163, allocations: 330 kB / 360.4 MB, free: 3.355 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002384/0.4165, allocations: 55.42 kB / 360.4 MB, free: 3.301 MB / 298.7 MB Notification: Performance of SimCode: time 9.81e-07/0.4165, allocations: 4 kB / 360.4 MB, free: 3.297 MB / 298.7 MB Notification: Performance of Templates: time 0.04879/0.4653, allocations: 19.33 MB / 379.8 MB, free: 15.97 MB / 330.7 MB