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_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1") Notification: Performance of loadModel(Modelica): time 1.746/1.746, allocations: 171.1 MB / 186.3 MB, free: 1.398 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 4.895e-05/4.891e-05, allocations: 7.984 kB / 228.1 MB, free: 7.965 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08318/0.08325, allocations: 38.77 MB / 266.9 MB, free: 1.109 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1): time 0.04436/0.1277, allocations: 25.89 MB / 292.8 MB, free: 7.133 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.2521/0.3799, allocations: 11.8 MB / 304.6 MB, free: 4.363 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002079/0.382, allocations: 63.09 kB / 304.6 MB, free: 4.359 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002278/0.3843, allocations: 497.1 kB / 305.1 MB, free: 4.359 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006875/0.3912, allocations: 1.505 MB / 306.6 MB, free: 4.324 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0104/0.4017, allocations: 2.402 MB / 309 MB, free: 4.238 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.004584/0.4063, allocations: 1.651 MB / 310.7 MB, free: 4.234 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001705/0.408, allocations: 0.6988 MB / 311.4 MB, free: 4.207 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003343/0.4114, allocations: 0.9646 MB / 312.4 MB, free: 4.207 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002923/0.4144, allocations: 0.8904 MB / 313.2 MB, free: 4.203 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007319/0.4218, allocations: 2.108 MB / 315.4 MB, free: 3.984 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001515/0.4234, allocations: 147.2 kB / 315.5 MB, free: 3.984 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001174/0.4246, allocations: 429.5 kB / 315.9 MB, free: 3.871 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001055/0.4256, allocations: 151.2 kB / 316.1 MB, free: 3.871 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006839/0.4325, allocations: 2.551 MB / 318.6 MB, free: 2.672 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.958e-06/0.4326, allocations: 2.906 kB / 318.6 MB, free: 2.672 MB / 250.7 MB Notification: Performance of FrontEnd: time 3.316e-06/0.4326, allocations: 0 / 318.6 MB, free: 2.672 MB / 250.7 MB Notification: Performance of Transformations before backend: time 7.486e-05/0.4327, allocations: 0 / 318.6 MB, free: 2.672 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.006039/0.4387, allocations: 1.67 MB / 320.3 MB, free: 1.543 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.932e-05/0.4388, allocations: 15.22 kB / 320.3 MB, free: 1.539 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001151/0.4399, allocations: 175 kB / 320.5 MB, free: 1.453 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002627/0.4426, allocations: 0.9262 MB / 321.4 MB, free: 0.9609 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001286/0.4428, allocations: 82.08 kB / 321.5 MB, free: 0.957 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000304/0.4431, allocations: 98.97 kB / 321.6 MB, free: 0.9531 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004252/0.4473, allocations: 1.617 MB / 323.2 MB, free: 420 kB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.638e-05/0.4474, allocations: 8.938 kB / 323.2 MB, free: 416 kB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002343/0.4477, allocations: 43.34 kB / 323.2 MB, free: 416 kB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002225/0.4479, allocations: 104 kB / 323.3 MB, free: 392 kB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004907/0.4528, allocations: 1.632 MB / 325 MB, free: 116 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.01813/0.471, allocations: 6.722 MB / 331.7 MB, free: 11.83 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002556/0.4736, allocations: 0.9014 MB / 332.6 MB, free: 11.67 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00656/0.4802, allocations: 2.766 MB / 335.4 MB, free: 9.426 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.219e-05/0.4803, allocations: 42.72 kB / 335.4 MB, free: 9.383 MB / 266.7 MB Notification: Performance of pre-optimization done (n=80): time 4.118e-06/0.4804, allocations: 0 / 335.4 MB, free: 9.383 MB / 266.7 MB Notification: Performance of matching and sorting (n=90): time 0.01555/0.4959, allocations: 3.64 MB / 339.1 MB, free: 5.75 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001242/0.4961, allocations: 199.6 kB / 339.2 MB, free: 5.516 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002473/0.4986, allocations: 1.047 MB / 340.3 MB, free: 4.461 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000355/0.499, allocations: 49.7 kB / 340.3 MB, free: 4.406 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007357/0.4997, allocations: 0.6617 MB / 341 MB, free: 3.746 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005584/0.5003, allocations: 319.4 kB / 341.3 MB, free: 3.438 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001585/0.5005, allocations: 35.94 kB / 341.4 MB, free: 3.402 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002047/0.5007, allocations: 378.7 kB / 341.7 MB, free: 3.023 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001863/0.5026, allocations: 0.5465 MB / 342.3 MB, free: 2.48 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002297/0.5049, allocations: 1.035 MB / 343.3 MB, free: 1.23 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002283/0.5072, allocations: 0.685 MB / 344 MB, free: 0.5664 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.973e-05/0.5073, allocations: 4 kB / 344 MB, free: 0.5625 MB / 266.7 MB Notification: Performance of matching and sorting (n=188) (initialization): time 0.005815/0.5131, allocations: 1.812 MB / 345.8 MB, free: 14.84 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002539/0.5157, allocations: 5.837 MB / 351.6 MB, free: 8.555 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.266e-05/0.5158, allocations: 16 kB / 351.7 MB, free: 8.539 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008497/0.5243, allocations: 0.7581 MB / 352.4 MB, free: 7.773 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002391/0.5268, allocations: 302.1 kB / 352.7 MB, free: 7.5 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003206/0.53, allocations: 2.141 MB / 354.9 MB, free: 5.297 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002465/0.5325, allocations: 107.9 kB / 355 MB, free: 5.191 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004021/0.533, allocations: 75.92 kB / 355 MB, free: 5.117 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.704e-05/0.533, allocations: 4 kB / 355 MB, free: 5.113 MB / 282.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005518/0.5385, allocations: 1.692 MB / 356.7 MB, free: 3.512 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-05/0.5387, allocations: 16 kB / 356.7 MB, free: 3.496 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006948/0.5456, allocations: 0.5882 MB / 357.3 MB, free: 2.898 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002432/0.5481, allocations: 312.1 kB / 357.6 MB, free: 2.617 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00265/0.5508, allocations: 1.977 MB / 359.6 MB, free: 0.5742 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001802/0.5526, allocations: 96.02 kB / 359.7 MB, free: 492 kB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002368/0.5529, allocations: 71.98 kB / 359.8 MB, free: 420 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.001132/0.554, allocations: 392.4 kB / 360.2 MB, free: 36 kB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004685/0.5545, allocations: 138.5 kB / 360.3 MB, free: 15.89 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005338/0.5599, allocations: 1.504 MB / 361.8 MB, free: 14.38 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.823e-05/0.5599, allocations: 12 kB / 361.8 MB, free: 14.36 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.866e-06/0.56, allocations: 0 / 361.8 MB, free: 14.36 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.133e-05/0.56, allocations: 3.984 kB / 361.8 MB, free: 14.36 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008532/0.5685, allocations: 2.77 MB / 364.6 MB, free: 11.54 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.578e-06/0.5686, allocations: 7.875 kB / 364.6 MB, free: 11.53 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001456/0.5701, allocations: 155.8 kB / 364.7 MB, free: 11.38 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005309/0.5754, allocations: 0.6387 MB / 365.4 MB, free: 10.73 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002694/0.5757, allocations: 23.98 kB / 365.4 MB, free: 10.71 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002823/0.5786, allocations: 2.096 MB / 367.5 MB, free: 8.539 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.264e-06/0.5786, allocations: 4.031 kB / 367.5 MB, free: 8.535 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006012/0.5846, allocations: 2.122 MB / 369.6 MB, free: 6.363 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000744/0.5854, allocations: 235.3 kB / 369.9 MB, free: 6.113 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005762/0.586, allocations: 23.98 kB / 369.9 MB, free: 6.09 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001697/0.5878, allocations: 71.86 kB / 370 MB, free: 6.02 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003527/0.5881, allocations: 97.09 kB / 370 MB, free: 5.926 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001545/0.5883, allocations: 35.98 kB / 370.1 MB, free: 5.891 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.001828/0.5901, allocations: 0.8013 MB / 370.9 MB, free: 5.086 MB / 298.7 MB Notification: Performance of sort global known variables: time 6.92e-07/0.5902, allocations: 0 / 370.9 MB, free: 5.086 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.004958/0.5951, allocations: 1.078 MB / 372 MB, free: 4.008 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.003186/0.5984, allocations: 0.8102 MB / 372.8 MB, free: 3.242 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.007782/0.6062, allocations: 2.229 MB / 375 MB, free: 1.023 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 9.678e-06/0.6063, allocations: 0 / 375 MB, free: 1.023 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002526/0.6088, allocations: 0.6746 MB / 375.7 MB, free: 360 kB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004527/0.6134, allocations: 0.5034 MB / 376.2 MB, free: 15.86 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008237/0.6217, allocations: 3.219 MB / 379.4 MB, free: 12.59 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001273/0.623, allocations: 1.275 MB / 380.7 MB, free: 11.29 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007975/0.6238, allocations: 119.4 kB / 380.8 MB, free: 11.17 MB / 314.7 MB Notification: Performance of SimCode: time 1.162e-06/0.6238, allocations: 0 / 380.8 MB, free: 11.17 MB / 314.7 MB Notification: Performance of Templates: time 0.08877/0.7126, allocations: 42.51 MB / 423.3 MB, free: 0.6523 MB / 346.7 MB