Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank1.aboveLevel.1.|tank1.aboveLevel.2.|tank2.aboveLevel.1.|tank2.aboveLevel.2.",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1") Notification: Performance of loadModel(Modelica): time 1.671/1.671, allocations: 171.2 MB / 185.7 MB, free: 1.402 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.99e-05/2.982e-05, allocations: 4 kB / 228.2 MB, free: 7.316 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07994/0.08, allocations: 38.76 MB / 266.9 MB, free: 484 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1): time 0.04063/0.1207, allocations: 25.91 MB / 292.8 MB, free: 6.477 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.2432/0.3639, allocations: 11.79 MB / 304.6 MB, free: 4.75 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001975/0.3659, allocations: 60.75 kB / 304.7 MB, free: 4.75 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002055/0.368, allocations: 496.8 kB / 305.2 MB, free: 4.746 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006199/0.3743, allocations: 1.507 MB / 306.7 MB, free: 4.711 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.009652/0.3839, allocations: 2.394 MB / 309.1 MB, free: 4.629 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.004318/0.3883, allocations: 1.66 MB / 310.7 MB, free: 4.617 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001507/0.3898, allocations: 0.6984 MB / 311.4 MB, free: 4.59 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003048/0.3929, allocations: 0.9714 MB / 312.4 MB, free: 4.586 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002769/0.3957, allocations: 0.8873 MB / 313.3 MB, free: 4.582 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006918/0.4027, allocations: 2.104 MB / 315.4 MB, free: 4.293 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001329/0.4041, allocations: 148.1 kB / 315.5 MB, free: 4.293 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009304/0.405, allocations: 427.6 kB / 315.9 MB, free: 4.184 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009021/0.4059, allocations: 150.2 kB / 316.1 MB, free: 4.184 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006457/0.4124, allocations: 2.559 MB / 318.7 MB, free: 2.98 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.4125, allocations: 0 / 318.7 MB, free: 2.98 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.695e-06/0.4125, allocations: 1.5 kB / 318.7 MB, free: 2.98 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.763e-05/0.4126, allocations: 0 / 318.7 MB, free: 2.98 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: 256 * Number of variables: 256 Notification: Performance of Generate backend data structure: time 0.005536/0.4181, allocations: 1.676 MB / 320.3 MB, free: 1.848 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.52e-05/0.4182, allocations: 9.062 kB / 320.3 MB, free: 1.848 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001057/0.4192, allocations: 175 kB / 320.5 MB, free: 1.762 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002597/0.4219, allocations: 0.9272 MB / 321.4 MB, free: 1.27 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.995e-05/0.422, allocations: 82.52 kB / 321.5 MB, free: 1.27 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00027/0.4223, allocations: 91.83 kB / 321.6 MB, free: 1.27 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004033/0.4263, allocations: 1.616 MB / 323.2 MB, free: 0.7227 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.418e-05/0.4264, allocations: 2.562 kB / 323.2 MB, free: 0.7227 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002293/0.4267, allocations: 44.3 kB / 323.3 MB, free: 0.7227 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002243/0.4269, allocations: 100 kB / 323.4 MB, free: 0.7031 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004526/0.4315, allocations: 1.637 MB / 325 MB, free: 440 kB / 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.01571/0.4472, allocations: 6.742 MB / 331.7 MB, free: 12.18 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002219/0.4495, allocations: 0.9007 MB / 332.6 MB, free: 12.01 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005853/0.4553, allocations: 2.765 MB / 335.4 MB, free: 9.352 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.021e-05/0.4554, allocations: 43.22 kB / 335.5 MB, free: 9.301 MB / 266.7 MB Notification: Performance of pre-optimization done (n=80): time 3.597e-06/0.4555, allocations: 2.719 kB / 335.5 MB, free: 9.301 MB / 266.7 MB Notification: Performance of matching and sorting (n=90): time 0.01407/0.4695, allocations: 3.643 MB / 339.1 MB, free: 5.594 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001129/0.4697, allocations: 188.9 kB / 339.3 MB, free: 5.367 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002227/0.4719, allocations: 1.051 MB / 340.3 MB, free: 4.309 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001714/0.4721, allocations: 49.69 kB / 340.4 MB, free: 4.254 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007664/0.4729, allocations: 0.674 MB / 341.1 MB, free: 3.578 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004359/0.4733, allocations: 317.7 kB / 341.4 MB, free: 3.27 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001386/0.4735, allocations: 28 kB / 341.4 MB, free: 3.242 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002549/0.4738, allocations: 369.9 kB / 341.8 MB, free: 2.875 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001623/0.4754, allocations: 0.5504 MB / 342.3 MB, free: 2.328 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002027/0.4774, allocations: 1.046 MB / 343.4 MB, free: 1.07 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001843/0.4793, allocations: 0.6837 MB / 344 MB, free: 420 kB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.136e-05/0.4793, allocations: 4 kB / 344 MB, free: 416 kB / 266.7 MB Notification: Performance of matching and sorting (n=188) (initialization): time 0.005178/0.4845, allocations: 1.878 MB / 345.9 MB, free: 14.61 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002358/0.4869, allocations: 5.839 MB / 351.8 MB, free: 8.328 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.611e-05/0.487, allocations: 16 kB / 351.8 MB, free: 8.312 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00819/0.4952, allocations: 0.766 MB / 352.5 MB, free: 7.539 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002215/0.4974, allocations: 295.4 kB / 352.8 MB, free: 7.273 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002898/0.5003, allocations: 2.137 MB / 355 MB, free: 5.07 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002192/0.5025, allocations: 110.9 kB / 355.1 MB, free: 4.965 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002407/0.5028, allocations: 67.98 kB / 355.1 MB, free: 4.898 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.702e-05/0.5028, allocations: 4 kB / 355.1 MB, free: 4.895 MB / 282.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004951/0.5078, allocations: 1.685 MB / 356.8 MB, free: 3.254 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.91e-05/0.5078, allocations: 16.88 kB / 356.8 MB, free: 3.238 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007057/0.5149, allocations: 0.6115 MB / 357.5 MB, free: 2.617 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002336/0.5173, allocations: 303.6 kB / 357.8 MB, free: 2.32 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002694/0.52, allocations: 2 MB / 359.8 MB, free: 252 kB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002146/0.5222, allocations: 104 kB / 359.9 MB, free: 148 kB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002104/0.5224, allocations: 75.98 kB / 359.9 MB, free: 72 kB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 67 * Number of states: 0 () * Number of discrete variables: 12 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[2],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[2],tank2.ports_m_flow_out[2],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[2],tank1.ports_m_flow_out[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (174): * Single equations (assignments): 171 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 3,2 7,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.001173/0.5236, allocations: 397.4 kB / 360.3 MB, free: 15.67 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003728/0.524, allocations: 134.4 kB / 360.4 MB, free: 15.54 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005126/0.5292, allocations: 1.509 MB / 362 MB, free: 14.01 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.891e-05/0.5292, allocations: 8 kB / 362 MB, free: 14 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.116e-05/0.5293, allocations: 0 / 362 MB, free: 14 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.124e-05/0.5293, allocations: 11.92 kB / 362 MB, free: 13.99 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008155/0.5375, allocations: 2.769 MB / 364.7 MB, free: 11.17 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.139e-05/0.5375, allocations: 8.125 kB / 364.8 MB, free: 11.16 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001377/0.5389, allocations: 151.8 kB / 364.9 MB, free: 11.02 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005145/0.5441, allocations: 0.6386 MB / 365.5 MB, free: 10.37 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002024/0.5443, allocations: 23.98 kB / 365.6 MB, free: 10.34 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002709/0.547, allocations: 2.09 MB / 367.7 MB, free: 8.18 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.394e-06/0.5471, allocations: 4.031 kB / 367.7 MB, free: 8.176 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005702/0.5528, allocations: 2.126 MB / 369.8 MB, free: 6 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006964/0.5535, allocations: 239.2 kB / 370 MB, free: 5.746 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003868/0.5539, allocations: 23.98 kB / 370 MB, free: 5.723 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00139/0.5553, allocations: 75.86 kB / 370.1 MB, free: 5.648 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002939/0.5556, allocations: 88.86 kB / 370.2 MB, free: 5.562 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001458/0.5558, allocations: 39.98 kB / 370.2 MB, free: 5.523 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.001851/0.5577, allocations: 0.7974 MB / 371 MB, free: 4.723 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.5577, allocations: 0 / 371 MB, free: 4.723 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.004439/0.5621, allocations: 1.078 MB / 372.1 MB, free: 3.645 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (tank1.level,tank1.medium.T,tank2.level,tank2.medium.T) * Number of discrete variables: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Number of discrete states: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * Single equations (assignments): 81 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {2 12,1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.002935/0.5651, allocations: 0.7941 MB / 372.9 MB, free: 2.891 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.007482/0.5726, allocations: 2.288 MB / 375.2 MB, free: 0.6133 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 8.245e-06/0.5727, allocations: 0 / 375.2 MB, free: 0.6133 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002379/0.5751, allocations: 0.6802 MB / 375.9 MB, free: 15.94 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004145/0.5793, allocations: 0.4992 MB / 376.4 MB, free: 15.45 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007776/0.5871, allocations: 3.163 MB / 379.5 MB, free: 12.24 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001227/0.5883, allocations: 1.285 MB / 380.8 MB, free: 10.93 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.003932/0.5923, allocations: 0.6518 MB / 381.5 MB, free: 10.27 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004402/0.5927, allocations: 91.42 kB / 381.6 MB, free: 10.18 MB / 314.7 MB Notification: Performance of SimCode: time 1.062e-06/0.5928, allocations: 0 / 381.6 MB, free: 10.18 MB / 314.7 MB Notification: Performance of Templates: time 0.09312/0.6859, allocations: 35.11 MB / 416.7 MB, free: 7.145 MB / 346.7 MB