Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank1.aboveLevel.1.|tank1.aboveLevel.2.",fileNamePrefix="Modelica_trunk_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1") Notification: Performance of loadModel(Modelica): time 2.143/2.143, allocations: 224.7 MB / 241.1 MB, free: 1.691 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.463e-05/3.442e-05, allocations: 4 kB / 294.6 MB, free: 11.41 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1199/0.12, allocations: 50.42 MB / 345 MB, free: 8.945 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1): time 0.03181/0.1518, allocations: 17.29 MB / 362.3 MB, free: 7.598 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01327/0.1652, allocations: 5.88 MB / 368.1 MB, free: 1.707 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001135/0.1664, allocations: 31.75 kB / 368.2 MB, free: 1.676 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001378/0.1678, allocations: 306.4 kB / 368.5 MB, free: 1.375 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003363/0.1712, allocations: 0.7786 MB / 369.3 MB, free: 0.5938 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005146/0.1763, allocations: 1.231 MB / 370.5 MB, free: 15.36 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.00258/0.1789, allocations: 0.9106 MB / 371.4 MB, free: 14.45 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009612/0.1799, allocations: 403.9 kB / 371.8 MB, free: 14.05 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001546/0.1815, allocations: 0.5417 MB / 372.3 MB, free: 13.51 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001152/0.1827, allocations: 474.6 kB / 372.8 MB, free: 13.04 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003504/0.1862, allocations: 1.104 MB / 373.9 MB, free: 11.94 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006675/0.1869, allocations: 84 kB / 374 MB, free: 11.86 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004799/0.1874, allocations: 231.3 kB / 374.2 MB, free: 11.63 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003844/0.1878, allocations: 88 kB / 374.3 MB, free: 11.54 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003549/0.1914, allocations: 1.341 MB / 375.6 MB, free: 10.2 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.11e-06/0.1915, allocations: 0 / 375.6 MB, free: 10.2 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.186e-06/0.1915, allocations: 0 / 375.6 MB, free: 10.2 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.024e-05/0.1915, allocations: 3.938 kB / 375.6 MB, free: 10.2 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 0.003336/0.1949, allocations: 1.041 MB / 376.7 MB, free: 9.105 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.924e-05/0.1949, allocations: 8.031 kB / 376.7 MB, free: 9.098 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006457/0.1956, allocations: 98.95 kB / 376.8 MB, free: 9 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001542/0.1971, allocations: 0.5701 MB / 377.4 MB, free: 8.387 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.922e-05/0.1972, allocations: 49.25 kB / 377.4 MB, free: 8.34 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001702/0.1974, allocations: 59.98 kB / 377.5 MB, free: 8.281 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002339/0.1998, allocations: 0.8712 MB / 378.3 MB, free: 7.363 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.315e-05/0.1999, allocations: 3.938 kB / 378.3 MB, free: 7.359 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001334/0.2, allocations: 31.98 kB / 378.4 MB, free: 7.328 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001114/0.2001, allocations: 45.28 kB / 378.4 MB, free: 7.281 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002281/0.2024, allocations: 0.8052 MB / 379.2 MB, free: 6.477 MB / 314.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.008728/0.2112, allocations: 3.858 MB / 383.1 MB, free: 2.371 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001636/0.2129, allocations: 0.5397 MB / 383.6 MB, free: 1.824 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005733/0.2135, allocations: 0.5034 MB / 384.1 MB, free: 1.211 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.193e-05/0.2135, allocations: 39 kB / 384.2 MB, free: 1.164 MB / 314.7 MB Notification: Performance of pre-optimization done (n=47): time 3.437e-06/0.2135, allocations: 0 / 384.2 MB, free: 1.164 MB / 314.7 MB Notification: Performance of matching and sorting (n=52): time 0.00787/0.2214, allocations: 2.121 MB / 386.3 MB, free: 14.95 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.927e-05/0.2216, allocations: 137 kB / 386.4 MB, free: 14.79 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001399/0.223, allocations: 0.6403 MB / 387.1 MB, free: 14.14 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001723/0.2232, allocations: 41.69 kB / 387.1 MB, free: 14.09 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004063/0.2236, allocations: 394.4 kB / 387.5 MB, free: 13.7 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000279/0.2239, allocations: 181.4 kB / 387.7 MB, free: 13.52 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.903e-05/0.224, allocations: 16 kB / 387.7 MB, free: 13.5 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000174/0.2242, allocations: 342.8 kB / 388 MB, free: 13.16 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009244/0.2251, allocations: 293.8 kB / 388.3 MB, free: 12.87 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001119/0.2262, allocations: 0.507 MB / 388.8 MB, free: 12.28 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001008/0.2273, allocations: 354 kB / 389.1 MB, free: 11.93 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.2e-06/0.2273, allocations: 0 / 389.1 MB, free: 11.93 MB / 330.7 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.002809/0.2301, allocations: 0.9333 MB / 390.1 MB, free: 10.99 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001066/0.2312, allocations: 2.274 MB / 392.4 MB, free: 8.543 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.387e-05/0.2313, allocations: 8 kB / 392.4 MB, free: 8.535 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002819/0.2341, allocations: 293.4 kB / 392.6 MB, free: 8.242 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001178/0.2353, allocations: 151.7 kB / 392.8 MB, free: 8.094 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001715/0.237, allocations: 1.3 MB / 394.1 MB, free: 6.742 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001161/0.2382, allocations: 56 kB / 394.1 MB, free: 6.688 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001182/0.2384, allocations: 35.98 kB / 394.2 MB, free: 6.652 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.654e-05/0.2384, allocations: 6.969 kB / 394.2 MB, free: 6.648 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002547/0.241, allocations: 0.8421 MB / 395 MB, free: 5.797 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.466e-05/0.241, allocations: 4 kB / 395 MB, free: 5.793 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00185/0.2429, allocations: 186.1 kB / 395.2 MB, free: 5.605 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001427/0.2443, allocations: 171.7 kB / 395.4 MB, free: 5.438 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001274/0.2456, allocations: 1.183 MB / 396.6 MB, free: 4.203 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008476/0.2465, allocations: 55.91 kB / 396.6 MB, free: 4.148 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001089/0.2466, allocations: 35.98 kB / 396.7 MB, free: 4.113 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 26 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[2],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 (85): * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 2,1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0006129/0.2472, allocations: 249.6 kB / 396.9 MB, free: 3.859 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002416/0.2475, allocations: 79.06 kB / 397 MB, free: 3.781 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003106/0.2506, allocations: 0.9884 MB / 398 MB, free: 2.777 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.841e-05/0.2507, allocations: 8 kB / 398 MB, free: 2.77 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.444e-06/0.2507, allocations: 0 / 398 MB, free: 2.77 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.266e-05/0.2507, allocations: 3.984 kB / 398 MB, free: 2.766 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004743/0.2555, allocations: 1.755 MB / 399.7 MB, free: 0.9414 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.386e-06/0.2555, allocations: 4 kB / 399.7 MB, free: 0.9375 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008729/0.2564, allocations: 99.88 kB / 399.8 MB, free: 0.8398 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001842/0.2583, allocations: 249.6 kB / 400.1 MB, free: 0.5898 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001197/0.2584, allocations: 19.98 kB / 400.1 MB, free: 0.5703 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2739/0.5323, allocations: 1.261 MB / 401.4 MB, free: 51.78 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.785e-06/0.5324, allocations: 2.062 kB / 401.4 MB, free: 51.78 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004067/0.5365, allocations: 1.339 MB / 402.7 MB, free: 51.56 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004261/0.537, allocations: 171.5 kB / 402.9 MB, free: 51.46 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002844/0.5373, allocations: 15.05 kB / 402.9 MB, free: 51.46 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001024/0.5383, allocations: 47.72 kB / 402.9 MB, free: 51.46 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002425/0.5386, allocations: 52.78 kB / 403 MB, free: 51.46 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001328/0.5387, allocations: 30.92 kB / 403 MB, free: 51.46 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001135/0.5399, allocations: 0.5111 MB / 403.5 MB, free: 51.36 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.753e-06/0.5399, allocations: 0 / 403.5 MB, free: 51.36 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002609/0.5425, allocations: 0.5897 MB / 404.1 MB, free: 51.34 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (tank1.level,tank1.medium.T) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank1.aboveLevel[2]) * Number of discrete states: 2 (tank1.aboveLevel[2],tank1.aboveLevel[1]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 7,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.001913/0.5445, allocations: 0.4905 MB / 404.6 MB, free: 51.21 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.004063/0.5486, allocations: 1.2 MB / 405.8 MB, free: 50.85 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.079e-05/0.5486, allocations: 1.719 kB / 405.8 MB, free: 50.85 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001217/0.5499, allocations: 394 kB / 406.2 MB, free: 50.73 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003567/0.5535, allocations: 382 kB / 406.6 MB, free: 50.66 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004587/0.5581, allocations: 1.921 MB / 408.5 MB, free: 49.68 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006855/0.5588, allocations: 1.003 MB / 409.5 MB, free: 48.96 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000534/0.5594, allocations: 82.81 kB / 409.6 MB, free: 48.96 MB / 330.7 MB Notification: Performance of SimCode: time 1.303e-06/0.5594, allocations: 0 / 409.6 MB, free: 48.96 MB / 330.7 MB Notification: Performance of Templates: time 0.04409/0.6035, allocations: 22.72 MB / 432.3 MB, free: 32.39 MB / 330.7 MB