Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2,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.TankWithEmptyingPipe2") Notification: Performance of loadModel(Modelica): time 2.056/2.056, allocations: 224.7 MB / 241.1 MB, free: 1.699 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.062e-05/3.055e-05, allocations: 4 kB / 294.6 MB, free: 11.41 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1098/0.1098, allocations: 50.41 MB / 345 MB, free: 8.949 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2): time 0.02962/0.1395, allocations: 18.32 MB / 363.3 MB, free: 6.562 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01768/0.1572, allocations: 8.293 MB / 371.6 MB, free: 14.25 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001331/0.1586, allocations: 35.69 kB / 371.6 MB, free: 14.22 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001521/0.1602, allocations: 330.2 kB / 372 MB, free: 13.89 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004194/0.1644, allocations: 0.9888 MB / 372.9 MB, free: 12.9 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006774/0.1712, allocations: 1.714 MB / 374.7 MB, free: 11.18 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.002908/0.1741, allocations: 1.078 MB / 375.7 MB, free: 10.11 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001031/0.1752, allocations: 455.3 kB / 376.2 MB, free: 9.66 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001896/0.1771, allocations: 0.6391 MB / 376.8 MB, free: 9.02 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001531/0.1787, allocations: 0.5883 MB / 377.4 MB, free: 8.43 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00465/0.1834, allocations: 1.557 MB / 379 MB, free: 6.871 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000851/0.1843, allocations: 112 kB / 379.1 MB, free: 6.762 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005668/0.1849, allocations: 279.2 kB / 379.3 MB, free: 6.488 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004309/0.1853, allocations: 104 kB / 379.4 MB, free: 6.387 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004643/0.19, allocations: 1.758 MB / 381.2 MB, free: 4.625 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.1901, allocations: 0 / 381.2 MB, free: 4.625 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.285e-06/0.1901, allocations: 0 / 381.2 MB, free: 4.625 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.258e-05/0.1901, allocations: 0 / 381.2 MB, free: 4.625 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: 164 * Number of variables: 164 Notification: Performance of Generate backend data structure: time 0.004067/0.1942, allocations: 1.22 MB / 382.4 MB, free: 3.355 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.6e-05/0.1943, allocations: 8.031 kB / 382.4 MB, free: 3.348 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000706/0.195, allocations: 118.7 kB / 382.5 MB, free: 3.23 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001866/0.1969, allocations: 0.6518 MB / 383.2 MB, free: 2.535 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.733e-05/0.197, allocations: 61.28 kB / 383.3 MB, free: 2.477 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001966/0.1972, allocations: 59.98 kB / 383.3 MB, free: 2.418 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002833/0.2, allocations: 1.052 MB / 384.4 MB, free: 1.312 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.114e-05/0.2001, allocations: 0 / 384.4 MB, free: 1.312 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001476/0.2003, allocations: 31.94 kB / 384.4 MB, free: 1.281 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001729/0.2005, allocations: 69.27 kB / 384.5 MB, free: 1.215 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003065/0.2035, allocations: 1.028 MB / 385.5 MB, free: 192 kB / 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.01157/0.2152, allocations: 4.508 MB / 390 MB, free: 11.41 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001889/0.2171, allocations: 0.5669 MB / 390.6 MB, free: 10.83 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004427/0.2216, allocations: 2.012 MB / 392.6 MB, free: 8.605 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.141e-05/0.2217, allocations: 42.84 kB / 392.6 MB, free: 8.555 MB / 330.7 MB Notification: Performance of pre-optimization done (n=40): time 3.727e-06/0.2217, allocations: 3.938 kB / 392.6 MB, free: 8.551 MB / 330.7 MB Notification: Performance of matching and sorting (n=45): time 0.007785/0.2295, allocations: 1.947 MB / 394.6 MB, free: 6.512 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001056/0.2296, allocations: 158.2 kB / 394.7 MB, free: 6.32 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001884/0.2315, allocations: 0.8211 MB / 395.6 MB, free: 5.477 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001701/0.2317, allocations: 45.69 kB / 395.6 MB, free: 5.426 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005083/0.2323, allocations: 489.3 kB / 396.1 MB, free: 4.941 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002635/0.2325, allocations: 161.8 kB / 396.2 MB, free: 4.781 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.292e-05/0.2326, allocations: 20 kB / 396.3 MB, free: 4.762 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001785/0.2328, allocations: 346.8 kB / 396.6 MB, free: 4.414 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000984/0.2338, allocations: 313.8 kB / 396.9 MB, free: 4.105 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001285/0.2351, allocations: 0.6094 MB / 397.5 MB, free: 3.363 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001242/0.2364, allocations: 405.9 kB / 397.9 MB, free: 2.973 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.02e-05/0.2364, allocations: 0 / 397.9 MB, free: 2.973 MB / 330.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.005304/0.2418, allocations: 1.043 MB / 398.9 MB, free: 1.918 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.2811/0.5229, allocations: 3.483 MB / 402.4 MB, free: 50.43 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.014e-05/0.523, allocations: 8.5 kB / 402.4 MB, free: 50.43 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004448/0.5275, allocations: 373.1 kB / 402.8 MB, free: 50.41 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001472/0.529, allocations: 180.8 kB / 403 MB, free: 50.41 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001779/0.5308, allocations: 1.338 MB / 404.3 MB, free: 49.38 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001589/0.5324, allocations: 61.41 kB / 404.4 MB, free: 49.38 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000208/0.5327, allocations: 44.02 kB / 404.4 MB, free: 49.38 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.861e-05/0.5327, allocations: 7.312 kB / 404.4 MB, free: 49.38 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003371/0.5361, allocations: 0.9725 MB / 405.4 MB, free: 49.31 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.841e-05/0.5362, allocations: 12.73 kB / 405.4 MB, free: 49.3 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003786/0.54, allocations: 338.9 kB / 405.7 MB, free: 49.29 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001369/0.5414, allocations: 182.5 kB / 405.9 MB, free: 49.28 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001425/0.5428, allocations: 1.287 MB / 407.2 MB, free: 48.2 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001148/0.544, allocations: 61.83 kB / 407.3 MB, free: 48.18 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001371/0.5442, allocations: 44.5 kB / 407.3 MB, free: 48.17 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * 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 (104): * Single equations (assignments): 102 * 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 3,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0007203/0.5449, allocations: 286.5 kB / 407.6 MB, free: 47.97 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002759/0.5452, allocations: 95.23 kB / 407.7 MB, free: 47.97 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002785/0.548, allocations: 0.7928 MB / 408.5 MB, free: 47.65 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.283e-05/0.548, allocations: 5.312 kB / 408.5 MB, free: 47.65 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.336e-06/0.5481, allocations: 0 / 408.5 MB, free: 47.65 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.161e-05/0.5481, allocations: 3.812 kB / 408.5 MB, free: 47.65 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006538/0.5546, allocations: 1.597 MB / 410.1 MB, free: 46.88 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.486e-05/0.5547, allocations: 1.438 kB / 410.1 MB, free: 46.88 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001237/0.556, allocations: 83.5 kB / 410.2 MB, free: 46.86 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004265/0.5603, allocations: 299.6 kB / 410.5 MB, free: 46.82 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001714/0.5605, allocations: 15.5 kB / 410.5 MB, free: 46.81 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001845/0.5624, allocations: 1.299 MB / 411.8 MB, free: 45.66 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.222e-06/0.5625, allocations: 2.938 kB / 411.8 MB, free: 45.66 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004296/0.5668, allocations: 1.097 MB / 412.9 MB, free: 45.14 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007661/0.5676, allocations: 202 kB / 413.1 MB, free: 44.98 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005093/0.5681, allocations: 13.98 kB / 413.1 MB, free: 44.97 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001587/0.5698, allocations: 41.06 kB / 413.1 MB, free: 44.96 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003052/0.5701, allocations: 49.95 kB / 413.2 MB, free: 44.96 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001476/0.5703, allocations: 22.94 kB / 413.2 MB, free: 44.95 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.002242/0.5725, allocations: 0.6434 MB / 413.8 MB, free: 44.67 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.092e-06/0.5726, allocations: 2.031 kB / 413.8 MB, free: 44.67 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.00489/0.5775, allocations: 0.7556 MB / 414.6 MB, free: 44.62 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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[1],tank1.aboveLevel[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 41 * 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 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.003346/0.5809, allocations: 0.6014 MB / 415.2 MB, free: 44.45 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.006001/0.587, allocations: 1.227 MB / 416.4 MB, free: 44.06 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.341e-05/0.587, allocations: 0 / 416.4 MB, free: 44.06 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001331/0.5884, allocations: 309.7 kB / 416.7 MB, free: 43.96 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004234/0.5927, allocations: 397.5 kB / 417.1 MB, free: 43.86 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006266/0.599, allocations: 2.026 MB / 419.1 MB, free: 42.77 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008649/0.5999, allocations: 1.053 MB / 420.2 MB, free: 42.02 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005609/0.6005, allocations: 80.75 kB / 420.3 MB, free: 42.01 MB / 330.7 MB Notification: Performance of SimCode: time 1.423e-06/0.6006, allocations: 3.969 kB / 420.3 MB, free: 42.01 MB / 330.7 MB Notification: Performance of Templates: time 0.06377/0.6643, allocations: 25.85 MB / 446.1 MB, free: 18.14 MB / 330.7 MB