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_trunk_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks") Notification: Performance of loadModel(Modelica): time 2.283/2.283, allocations: 224.7 MB / 241.1 MB, free: 1.668 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.478e-05/3.494e-05, allocations: 0 / 294.6 MB, free: 11.41 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1438/0.1438, allocations: 50.42 MB / 345 MB, free: 8.949 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks): time 0.03739/0.1813, allocations: 14.85 MB / 359.8 MB, free: 10.04 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01182/0.1932, allocations: 5.156 MB / 365 MB, free: 4.875 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001127/0.1944, allocations: 31.75 kB / 365 MB, free: 4.844 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001247/0.1956, allocations: 278.4 kB / 365.3 MB, free: 4.57 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003243/0.1989, allocations: 0.7319 MB / 366 MB, free: 3.836 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004457/0.2034, allocations: 1.079 MB / 367.1 MB, free: 2.754 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002277/0.2057, allocations: 0.8205 MB / 367.9 MB, free: 1.93 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007522/0.2065, allocations: 319.6 kB / 368.2 MB, free: 1.617 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001276/0.2078, allocations: 470.8 kB / 368.7 MB, free: 1.156 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001069/0.2089, allocations: 434.7 kB / 369.1 MB, free: 0.7305 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003126/0.212, allocations: 1.011 MB / 370.1 MB, free: 15.71 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005411/0.2126, allocations: 76 kB / 370.2 MB, free: 15.64 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000404/0.2131, allocations: 195.4 kB / 370.4 MB, free: 15.45 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00033/0.2134, allocations: 79.94 kB / 370.5 MB, free: 15.38 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002974/0.2164, allocations: 1.208 MB / 371.7 MB, free: 14.16 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.2164, allocations: 3.938 kB / 371.7 MB, free: 14.16 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.705e-06/0.2165, allocations: 4 kB / 371.7 MB, free: 14.16 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.165e-05/0.2165, allocations: 4 kB / 371.7 MB, free: 14.15 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.002845/0.2193, allocations: 0.955 MB / 372.7 MB, free: 13.15 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.086e-05/0.2194, allocations: 12.03 kB / 372.7 MB, free: 13.14 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004616/0.2199, allocations: 83.16 kB / 372.7 MB, free: 13.05 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001364/0.2213, allocations: 0.5287 MB / 373.3 MB, free: 12.48 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.689e-05/0.2214, allocations: 40.94 kB / 373.3 MB, free: 12.45 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001441/0.2215, allocations: 47.98 kB / 373.4 MB, free: 12.4 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001974/0.2235, allocations: 0.7294 MB / 374.1 MB, free: 11.64 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.126e-05/0.2236, allocations: 3.938 kB / 374.1 MB, free: 11.64 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001008/0.2237, allocations: 23.98 kB / 374.1 MB, free: 11.61 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001129/0.2238, allocations: 40.97 kB / 374.2 MB, free: 11.57 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001959/0.2258, allocations: 0.6948 MB / 374.9 MB, free: 10.88 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.007347/0.2332, allocations: 3.046 MB / 377.9 MB, free: 7.613 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001311/0.2345, allocations: 488.5 kB / 378.4 MB, free: 7.125 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004258/0.235, allocations: 341.3 kB / 378.7 MB, free: 6.719 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.118e-05/0.235, allocations: 43 kB / 378.7 MB, free: 6.668 MB / 314.7 MB Notification: Performance of pre-optimization done (n=48): time 2.826e-06/0.235, allocations: 0 / 378.7 MB, free: 6.668 MB / 314.7 MB Notification: Performance of matching and sorting (n=58): time 0.009466/0.2445, allocations: 2.32 MB / 381.1 MB, free: 4.277 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.693e-05/0.2446, allocations: 85.67 kB / 381.2 MB, free: 4.176 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001149/0.2458, allocations: 0.5461 MB / 381.7 MB, free: 3.621 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001505/0.246, allocations: 41.7 kB / 381.7 MB, free: 3.574 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003381/0.2463, allocations: 354.8 kB / 382.1 MB, free: 3.223 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002825/0.2466, allocations: 205.1 kB / 382.3 MB, free: 3.02 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.833e-05/0.2467, allocations: 20 kB / 382.3 MB, free: 3 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001742/0.2469, allocations: 346.7 kB / 382.6 MB, free: 2.652 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008609/0.2478, allocations: 293.8 kB / 382.9 MB, free: 2.367 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001015/0.2488, allocations: 473.8 kB / 383.4 MB, free: 1.832 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009652/0.2498, allocations: 347 kB / 383.7 MB, free: 1.5 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.07e-06/0.2498, allocations: 4 kB / 383.7 MB, free: 1.496 MB / 314.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.002594/0.2524, allocations: 0.9079 MB / 384.6 MB, free: 0.5781 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000825/0.2533, allocations: 1.831 MB / 386.5 MB, free: 14.6 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.09e-05/0.2533, allocations: 8 kB / 386.5 MB, free: 14.59 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004387/0.2577, allocations: 416.2 kB / 386.9 MB, free: 14.18 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001232/0.259, allocations: 155.8 kB / 387 MB, free: 14.03 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001423/0.2604, allocations: 0.8177 MB / 387.9 MB, free: 13.18 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00106/0.2615, allocations: 55.88 kB / 387.9 MB, free: 13.13 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001052/0.2617, allocations: 31.98 kB / 387.9 MB, free: 13.1 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.827e-05/0.2617, allocations: 7.953 kB / 388 MB, free: 13.09 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00237/0.2641, allocations: 0.8084 MB / 388.8 MB, free: 12.28 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.591e-05/0.2641, allocations: 4 kB / 388.8 MB, free: 12.27 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003322/0.2674, allocations: 281 kB / 389 MB, free: 12 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001226/0.2687, allocations: 155.8 kB / 389.2 MB, free: 11.84 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000992/0.2697, allocations: 0.7007 MB / 389.9 MB, free: 11.12 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007347/0.2705, allocations: 47.95 kB / 389.9 MB, free: 11.07 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.939e-05/0.2706, allocations: 35.98 kB / 390 MB, free: 11.04 MB / 330.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.0006286/0.2712, allocations: 249.5 kB / 390.2 MB, free: 10.78 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002254/0.2715, allocations: 71.16 kB / 390.3 MB, free: 10.71 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002591/0.2741, allocations: 0.8504 MB / 391.1 MB, free: 9.859 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.6e-05/0.2741, allocations: 8 kB / 391.1 MB, free: 9.852 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.085e-06/0.2742, allocations: 0 / 391.1 MB, free: 9.852 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.391e-05/0.2742, allocations: 8.047 kB / 391.2 MB, free: 9.844 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00464/0.2788, allocations: 1.727 MB / 392.9 MB, free: 8.047 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-05/0.2789, allocations: 3.953 kB / 392.9 MB, free: 8.043 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001016/0.2799, allocations: 115.8 kB / 393 MB, free: 7.93 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002682/0.2826, allocations: 348.6 kB / 393.3 MB, free: 7.586 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001452/0.2828, allocations: 20 kB / 393.4 MB, free: 7.566 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001227/0.2841, allocations: 0.8138 MB / 394.2 MB, free: 6.727 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.048e-06/0.2841, allocations: 0 / 394.2 MB, free: 6.727 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003356/0.2875, allocations: 1.31 MB / 395.5 MB, free: 5.383 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003489/0.2879, allocations: 156.2 kB / 395.6 MB, free: 5.211 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002161/0.2881, allocations: 23.89 kB / 395.7 MB, free: 5.188 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008839/0.289, allocations: 35.97 kB / 395.7 MB, free: 5.152 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001812/0.2892, allocations: 48.48 kB / 395.7 MB, free: 5.105 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.558e-05/0.2893, allocations: 35.98 kB / 395.8 MB, free: 5.07 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0008583/0.2902, allocations: 439 kB / 396.2 MB, free: 4.645 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.2902, allocations: 0 / 396.2 MB, free: 4.645 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002137/0.2923, allocations: 0.5271 MB / 396.7 MB, free: 4.117 MB / 330.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.001469/0.2938, allocations: 430.7 kB / 397.2 MB, free: 3.688 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.003785/0.2976, allocations: 1.169 MB / 398.3 MB, free: 2.523 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 9.728e-06/0.2977, allocations: 3.859 kB / 398.3 MB, free: 2.52 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001221/0.2989, allocations: 387 kB / 398.7 MB, free: 2.137 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002903/0.3019, allocations: 325.8 kB / 399 MB, free: 1.824 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2811/0.583, allocations: 1.895 MB / 400.9 MB, free: 52.24 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007823/0.5839, allocations: 0.9799 MB / 401.9 MB, free: 51.54 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004737/0.5844, allocations: 69.77 kB / 402 MB, free: 51.53 MB / 330.7 MB Notification: Performance of SimCode: time 1.503e-06/0.5844, allocations: 0 / 402 MB, free: 51.53 MB / 330.7 MB Notification: Performance of Templates: time 0.04323/0.6276, allocations: 17.35 MB / 419.3 MB, free: 45.18 MB / 330.7 MB