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.2_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1") Notification: Performance of loadModel(Modelica): time 1.984/1.984, allocations: 194.9 MB / 211.2 MB, free: 8.363 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 4.088e-05/4.05e-05, allocations: 8 kB / 258.8 MB, free: 8.719 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3056/0.3057, allocations: 44.51 MB / 303.3 MB, free: 12.77 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1): time 0.04247/0.3482, allocations: 25.92 MB / 329.2 MB, free: 3.73 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0249/0.3732, allocations: 11.81 MB / 341 MB, free: 7.902 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002022/0.3753, allocations: 59.5 kB / 341.1 MB, free: 7.844 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002322/0.3776, allocations: 497.3 kB / 341.6 MB, free: 7.355 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006316/0.384, allocations: 1.499 MB / 343.1 MB, free: 5.852 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.009214/0.3932, allocations: 2.396 MB / 345.5 MB, free: 3.449 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.004515/0.3978, allocations: 1.656 MB / 347.1 MB, free: 1.789 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00163/0.3995, allocations: 0.684 MB / 347.8 MB, free: 1.105 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002874/0.4024, allocations: 0.9741 MB / 348.8 MB, free: 132 kB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00251/0.4049, allocations: 0.8845 MB / 349.7 MB, free: 15.24 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006467/0.4115, allocations: 2.107 MB / 351.8 MB, free: 13.13 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001295/0.4128, allocations: 148 kB / 351.9 MB, free: 12.99 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009704/0.4138, allocations: 422.8 kB / 352.3 MB, free: 12.57 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006769/0.4145, allocations: 152 kB / 352.5 MB, free: 12.43 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006459/0.421, allocations: 2.564 MB / 355 MB, free: 9.855 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.421, allocations: 0 / 355 MB, free: 9.855 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.676e-06/0.421, allocations: 0 / 355 MB, free: 9.855 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.311e-05/0.4211, allocations: 0 / 355 MB, free: 9.855 MB / 298.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.005929/0.427, allocations: 1.676 MB / 356.7 MB, free: 8.125 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.305e-05/0.4271, allocations: 8.031 kB / 356.7 MB, free: 8.117 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001064/0.4282, allocations: 170.2 kB / 356.9 MB, free: 7.949 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002835/0.4311, allocations: 0.9295 MB / 357.8 MB, free: 6.977 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001289/0.4312, allocations: 81.91 kB / 357.9 MB, free: 6.898 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003173/0.4316, allocations: 99.88 kB / 358 MB, free: 6.801 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004528/0.4361, allocations: 1.609 MB / 359.6 MB, free: 5.109 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.318e-05/0.4362, allocations: 4 kB / 359.6 MB, free: 5.105 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002163/0.4364, allocations: 43.98 kB / 359.7 MB, free: 5.062 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000241/0.4367, allocations: 109.8 kB / 359.8 MB, free: 4.953 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004927/0.4416, allocations: 1.639 MB / 361.4 MB, free: 3.316 MB / 298.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.01819/0.4599, allocations: 6.729 MB / 368.1 MB, free: 12.18 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002647/0.4626, allocations: 0.8937 MB / 369 MB, free: 11.28 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006415/0.469, allocations: 2.762 MB / 371.8 MB, free: 8.266 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.86e-05/0.4691, allocations: 51.22 kB / 371.8 MB, free: 8.207 MB / 314.7 MB Notification: Performance of pre-optimization done (n=80): time 4.228e-06/0.4692, allocations: 0 / 371.8 MB, free: 8.207 MB / 314.7 MB Notification: Performance of matching and sorting (n=90): time 0.01484/0.484, allocations: 3.635 MB / 375.5 MB, free: 4.457 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001179/0.4842, allocations: 188.9 kB / 375.7 MB, free: 4.23 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002265/0.4864, allocations: 1.055 MB / 376.7 MB, free: 3.168 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002668/0.4868, allocations: 49.69 kB / 376.8 MB, free: 3.113 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000696/0.4875, allocations: 0.6604 MB / 377.4 MB, free: 2.445 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005082/0.488, allocations: 327.4 kB / 377.7 MB, free: 2.121 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001402/0.4881, allocations: 28 kB / 377.8 MB, free: 2.094 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001863/0.4883, allocations: 366.8 kB / 378.1 MB, free: 1.727 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001671/0.49, allocations: 0.5504 MB / 378.7 MB, free: 1.18 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002159/0.4922, allocations: 1.048 MB / 379.7 MB, free: 15.91 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002031/0.4943, allocations: 0.686 MB / 380.4 MB, free: 15.23 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.354e-05/0.4943, allocations: 4 kB / 380.4 MB, free: 15.22 MB / 330.7 MB Notification: Performance of matching and sorting (n=188) (initialization): time 0.005462/0.4998, allocations: 1.804 MB / 382.2 MB, free: 13.4 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002375/0.5022, allocations: 5.834 MB / 388 MB, free: 7.109 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.082e-05/0.5023, allocations: 16 kB / 388.1 MB, free: 7.094 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008294/0.5106, allocations: 0.7633 MB / 388.8 MB, free: 6.32 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002267/0.5129, allocations: 303.4 kB / 389.1 MB, free: 6.023 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003088/0.5161, allocations: 2.129 MB / 391.3 MB, free: 3.816 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002237/0.5184, allocations: 104 kB / 391.4 MB, free: 3.715 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002659/0.5187, allocations: 71.98 kB / 391.4 MB, free: 3.645 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.74e-05/0.5187, allocations: 4.094 kB / 391.4 MB, free: 3.641 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005199/0.5239, allocations: 1.693 MB / 393.1 MB, free: 1.938 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.141e-05/0.524, allocations: 20.56 kB / 393.1 MB, free: 1.918 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006852/0.5309, allocations: 0.5956 MB / 393.7 MB, free: 1.312 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002289/0.5332, allocations: 311.5 kB / 394 MB, free: 1.008 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002528/0.5358, allocations: 1.973 MB / 396 MB, free: 14.96 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001697/0.5375, allocations: 108 kB / 396.1 MB, free: 14.85 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002094/0.5377, allocations: 71.98 kB / 396.2 MB, free: 14.78 MB / 346.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.001057/0.5388, allocations: 401.2 kB / 396.6 MB, free: 14.38 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004329/0.5393, allocations: 130.4 kB / 396.7 MB, free: 14.25 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005018/0.5443, allocations: 1.517 MB / 398.2 MB, free: 12.71 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.89e-05/0.5444, allocations: 12 kB / 398.2 MB, free: 12.7 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.747e-06/0.5444, allocations: 0 / 398.2 MB, free: 12.7 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.007e-05/0.5444, allocations: 3.984 kB / 398.2 MB, free: 12.7 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007807/0.5522, allocations: 2.756 MB / 401 MB, free: 9.867 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.859e-06/0.5523, allocations: 4 kB / 401 MB, free: 9.863 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001362/0.5537, allocations: 156 kB / 401.2 MB, free: 9.711 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005096/0.5588, allocations: 0.6424 MB / 401.8 MB, free: 9.059 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002526/0.5591, allocations: 31.94 kB / 401.8 MB, free: 9.027 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002751/0.5618, allocations: 2.098 MB / 403.9 MB, free: 6.852 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.699e-06/0.5619, allocations: 0 / 403.9 MB, free: 6.852 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005948/0.5679, allocations: 2.123 MB / 406 MB, free: 4.676 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006318/0.5685, allocations: 235.2 kB / 406.3 MB, free: 4.426 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004926/0.569, allocations: 27.98 kB / 406.3 MB, free: 4.398 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001588/0.5706, allocations: 71.81 kB / 406.4 MB, free: 4.328 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003725/0.571, allocations: 96.8 kB / 406.5 MB, free: 4.23 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001527/0.5712, allocations: 35.98 kB / 406.5 MB, free: 4.195 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001811/0.573, allocations: 0.7974 MB / 407.3 MB, free: 3.395 MB / 346.7 MB Notification: Performance of sort global known variables: time 8.31e-07/0.5731, allocations: 0 / 407.3 MB, free: 3.395 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.004606/0.5777, allocations: 1.078 MB / 408.4 MB, free: 2.316 MB / 346.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.003018/0.5807, allocations: 0.7945 MB / 409.2 MB, free: 1.523 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.007628/0.5884, allocations: 2.223 MB / 411.4 MB, free: 15.3 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.03e-05/0.5885, allocations: 0 / 411.4 MB, free: 15.3 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002484/0.591, allocations: 0.6736 MB / 412.1 MB, free: 14.63 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004307/0.5953, allocations: 0.503 MB / 412.6 MB, free: 14.13 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00803/0.6034, allocations: 3.215 MB / 415.8 MB, free: 10.87 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001249/0.6047, allocations: 1.283 MB / 417.1 MB, free: 9.559 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007644/0.6055, allocations: 123.4 kB / 417.2 MB, free: 9.438 MB / 362.7 MB Notification: Performance of SimCode: time 9.92e-07/0.6055, allocations: 0 / 417.2 MB, free: 9.438 MB / 362.7 MB Notification: Performance of Templates: time 0.3282/0.9337, allocations: 42.49 MB / 459.7 MB, free: 83.91 MB / 362.7 MB