Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2,fileNamePrefix="Modelica_trunk_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.977/1.977, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.115e-05/3.13e-05, allocations: 4 kB / 292.2 MB, free: 8.727 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1093/0.1094, allocations: 50.42 MB / 342.6 MB, free: 6.289 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.064/1.174, allocations: 324.7 MB / 0.6517 GB, free: 31.84 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003045/1.174, allocations: 90.77 kB / 0.6517 GB, free: 31.79 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9761/2.15, allocations: 196 MB / 0.8431 GB, free: 43.82 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.563e-06/2.15, allocations: 3.938 kB / 0.8431 GB, free: 43.82 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001122/2.15, allocations: 27.98 kB / 0.8432 GB, free: 43.79 MB / 458.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.00452/2.155, allocations: 1.29 MB / 0.8444 GB, free: 42.46 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.884e-05/2.155, allocations: 12.03 kB / 0.8444 GB, free: 42.45 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003451/2.155, allocations: 110.5 kB / 0.8445 GB, free: 42.33 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006564/2.156, allocations: 118.7 kB / 0.8446 GB, free: 42.21 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002418/2.158, allocations: 0.7335 MB / 0.8454 GB, free: 41.43 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.071e-05/2.158, allocations: 53.3 kB / 0.8454 GB, free: 41.38 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00021/2.159, allocations: 59.98 kB / 0.8455 GB, free: 41.32 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002479/2.161, allocations: 1.032 MB / 0.8465 GB, free: 40.23 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.952e-05/2.161, allocations: 8 kB / 0.8465 GB, free: 40.22 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001493/2.161, allocations: 27.98 kB / 0.8465 GB, free: 40.2 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001379/2.162, allocations: 61.28 kB / 0.8466 GB, free: 40.14 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002547/2.164, allocations: 0.9785 MB / 0.8475 GB, free: 39.16 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009786/2.174, allocations: 4.394 MB / 0.8518 GB, free: 34.51 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001341/2.175, allocations: 0.5494 MB / 0.8523 GB, free: 33.95 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007084/2.176, allocations: 314 kB / 0.8526 GB, free: 33.64 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003614/2.18, allocations: 2.086 MB / 0.8547 GB, free: 31.34 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.101e-05/2.18, allocations: 46.83 kB / 0.8547 GB, free: 31.29 MB / 458.7 MB Notification: Performance of pre-optimization done (n=40): time 3.717e-06/2.18, allocations: 0 / 0.8547 GB, free: 31.29 MB / 458.7 MB Notification: Performance of matching and sorting (n=45): time 0.005023/2.185, allocations: 1.493 MB / 0.8562 GB, free: 29.73 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.746e-05/2.185, allocations: 158.2 kB / 0.8563 GB, free: 29.54 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001545/2.187, allocations: 0.8097 MB / 0.8571 GB, free: 28.71 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001651/2.187, allocations: 41.69 kB / 0.8572 GB, free: 28.66 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000346/2.187, allocations: 489.4 kB / 0.8576 GB, free: 28.18 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001962/2.187, allocations: 165.7 kB / 0.8578 GB, free: 28.01 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.947e-05/2.187, allocations: 16 kB / 0.8578 GB, free: 28 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 8.972e-05/2.187, allocations: 342.8 kB / 0.8581 GB, free: 27.65 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007998/2.188, allocations: 309.8 kB / 0.8584 GB, free: 27.35 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009115/2.189, allocations: 0.5786 MB / 0.859 GB, free: 26.64 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008858/2.19, allocations: 391 kB / 0.8594 GB, free: 26.27 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.212e-06/2.19, allocations: 8 kB / 0.8594 GB, free: 26.26 MB / 458.7 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.002503/2.193, allocations: 0.9803 MB / 0.8603 GB, free: 25.26 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006411/2.193, allocations: 3.321 MB / 0.8636 GB, free: 21.69 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.061e-05/2.193, allocations: 8 kB / 0.8636 GB, free: 21.68 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003299/2.197, allocations: 313.4 kB / 0.8639 GB, free: 21.37 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001339/2.198, allocations: 175.7 kB / 0.8641 GB, free: 21.2 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001425/2.199, allocations: 1.343 MB / 0.8654 GB, free: 19.8 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001567/2.201, allocations: 71.88 kB / 0.8654 GB, free: 19.73 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000128/2.201, allocations: 47.98 kB / 0.8655 GB, free: 19.68 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.272e-05/2.201, allocations: 4 kB / 0.8655 GB, free: 19.68 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002313/2.204, allocations: 0.9133 MB / 0.8664 GB, free: 18.76 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.538e-05/2.204, allocations: 8 kB / 0.8664 GB, free: 18.75 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002788/2.206, allocations: 285.4 kB / 0.8667 GB, free: 18.46 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001313/2.208, allocations: 179.7 kB / 0.8668 GB, free: 18.29 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001278/2.209, allocations: 1.284 MB / 0.8681 GB, free: 16.95 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0011/2.21, allocations: 67.98 kB / 0.8681 GB, free: 16.89 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001051/2.21, allocations: 43.95 kB / 0.8682 GB, free: 16.84 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 38 * 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 (102): * Single equations (assignments): 100 * 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.0003074/2.211, allocations: 160.7 kB / 0.8683 GB, free: 16.68 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002717/2.211, allocations: 90.88 kB / 0.8684 GB, free: 16.59 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002446/2.213, allocations: 0.7733 MB / 0.8692 GB, free: 15.8 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.678e-06/2.213, allocations: 11.95 kB / 0.8692 GB, free: 15.79 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.576e-06/2.213, allocations: 3.984 kB / 0.8692 GB, free: 15.79 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.905e-06/2.213, allocations: 0 / 0.8692 GB, free: 15.79 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003908/2.217, allocations: 1.591 MB / 0.8707 GB, free: 14.13 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.993e-06/2.217, allocations: 0 / 0.8707 GB, free: 14.13 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006847/2.218, allocations: 71.91 kB / 0.8708 GB, free: 14.06 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00231/2.22, allocations: 285.5 kB / 0.8711 GB, free: 13.78 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001163/2.221, allocations: 16 kB / 0.8711 GB, free: 13.76 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001223/2.222, allocations: 1.312 MB / 0.8724 GB, free: 12.4 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/2.222, allocations: 0 / 0.8724 GB, free: 12.4 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002459/2.224, allocations: 1.095 MB / 0.8735 GB, free: 11.26 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004636/2.225, allocations: 191.8 kB / 0.8736 GB, free: 11.05 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002325/2.225, allocations: 19.98 kB / 0.8737 GB, free: 11.03 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001109/2.226, allocations: 36.03 kB / 0.8737 GB, free: 11 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001773/2.226, allocations: 52.36 kB / 0.8737 GB, free: 10.95 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.92e-05/2.227, allocations: 27.98 kB / 0.8738 GB, free: 10.92 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001212/2.228, allocations: 0.6289 MB / 0.8744 GB, free: 10.27 MB / 458.7 MB Notification: Performance of sort global known variables: time 5.31e-07/2.228, allocations: 3.938 kB / 0.8744 GB, free: 10.27 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003327/2.231, allocations: 0.8351 MB / 0.8752 GB, free: 9.434 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (tank1.medium.T,tank1.level) * 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.005197/2.236, allocations: 2.498 MB / 0.8776 GB, free: 6.906 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.003617/2.24, allocations: 1.177 MB / 0.8788 GB, free: 5.738 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.265e-06/2.24, allocations: 0 / 0.8788 GB, free: 5.738 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001269/2.241, allocations: 347 kB / 0.8791 GB, free: 5.398 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003083/2.244, allocations: 381.3 kB / 0.8795 GB, free: 5.023 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005125/2.25, allocations: 1.727 MB / 0.8812 GB, free: 3.242 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005689/2.25, allocations: 1.049 MB / 0.8822 GB, free: 2.164 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007472/2.251, allocations: 339.3 kB / 0.8825 GB, free: 1.832 MB / 458.7 MB Notification: Performance of SimCode: time 1.382e-06/2.251, allocations: 0 / 0.8825 GB, free: 1.832 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.528/5.779, allocations: 30.45 MB / 0.9123 GB, free: 86.66 MB / 458.7 MB