Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.739/1.739, allocations: 171.2 MB / 183.8 MB, free: 12.01 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.893e-05/2.898e-05, allocations: 0 / 225.1 MB, free: 2.688 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2605/0.2605, allocations: 38.77 MB / 263.9 MB, free: 9.77 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8911/1.152, allocations: 314 MB / 0.5643 GB, free: 69.75 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003233/1.152, allocations: 95.61 kB / 0.5644 GB, free: 69.69 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9263/2.078, allocations: 190.2 MB / 0.7501 GB, free: 33.05 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.904e-06/2.078, allocations: 0 / 0.7501 GB, free: 33.05 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.00011/2.079, allocations: 31.94 kB / 0.7501 GB, free: 33.02 MB / 362.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.004977/2.084, allocations: 1.29 MB / 0.7513 GB, free: 31.68 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.759e-05/2.084, allocations: 12.03 kB / 0.7514 GB, free: 31.67 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003028/2.084, allocations: 110.5 kB / 0.7515 GB, free: 31.55 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008707/2.085, allocations: 115.2 kB / 0.7516 GB, free: 31.44 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003465/2.088, allocations: 0.7763 MB / 0.7523 GB, free: 30.62 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.385e-05/2.089, allocations: 49.3 kB / 0.7524 GB, free: 30.57 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002361/2.089, allocations: 59.98 kB / 0.7524 GB, free: 30.51 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003215/2.092, allocations: 1.032 MB / 0.7534 GB, free: 29.42 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.566e-05/2.092, allocations: 0 / 0.7534 GB, free: 29.42 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001882/2.092, allocations: 31.98 kB / 0.7535 GB, free: 29.39 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001898/2.092, allocations: 65.27 kB / 0.7535 GB, free: 29.32 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003088/2.096, allocations: 0.9824 MB / 0.7545 GB, free: 28.34 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01262/2.108, allocations: 4.41 MB / 0.7588 GB, free: 23.66 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001712/2.11, allocations: 0.5158 MB / 0.7593 GB, free: 23.14 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008645/2.111, allocations: 302 kB / 0.7596 GB, free: 22.84 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004567/2.115, allocations: 1.993 MB / 0.7615 GB, free: 20.63 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.43e-05/2.116, allocations: 38.89 kB / 0.7616 GB, free: 20.59 MB / 362.7 MB Notification: Performance of pre-optimization done (n=40): time 3.817e-06/2.116, allocations: 0 / 0.7616 GB, free: 20.59 MB / 362.7 MB Notification: Performance of matching and sorting (n=45): time 0.006277/2.122, allocations: 1.45 MB / 0.763 GB, free: 19.08 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.94e-05/2.122, allocations: 162.2 kB / 0.7631 GB, free: 18.88 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001788/2.124, allocations: 0.727 MB / 0.7639 GB, free: 18.15 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001356/2.124, allocations: 45.69 kB / 0.7639 GB, free: 18.1 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004679/2.124, allocations: 0.5008 MB / 0.7644 GB, free: 17.59 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002317/2.125, allocations: 165.7 kB / 0.7645 GB, free: 17.43 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.802e-05/2.125, allocations: 23.94 kB / 0.7646 GB, free: 17.41 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001202/2.125, allocations: 346.8 kB / 0.7649 GB, free: 17.06 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001007/2.126, allocations: 289.9 kB / 0.7652 GB, free: 16.78 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00126/2.127, allocations: 0.6502 MB / 0.7658 GB, free: 15.96 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001196/2.128, allocations: 391 kB / 0.7662 GB, free: 15.58 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.241e-05/2.128, allocations: 4 kB / 0.7662 GB, free: 15.57 MB / 362.7 MB Notification: Performance of matching and sorting (n=115) (initialization): time 0.00345/2.132, allocations: 1.016 MB / 0.7672 GB, free: 14.54 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00107/2.133, allocations: 4.44 MB / 0.7715 GB, free: 9.758 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.873e-05/2.133, allocations: 12 kB / 0.7715 GB, free: 9.746 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004371/2.137, allocations: 313.4 kB / 0.7718 GB, free: 9.434 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00183/2.139, allocations: 191.7 kB / 0.772 GB, free: 9.246 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001759/2.141, allocations: 1.323 MB / 0.7733 GB, free: 7.871 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001996/2.143, allocations: 71.92 kB / 0.7734 GB, free: 7.801 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001607/2.143, allocations: 47.98 kB / 0.7734 GB, free: 7.754 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.632e-05/2.143, allocations: 4 kB / 0.7734 GB, free: 7.75 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00314/2.147, allocations: 0.9324 MB / 0.7743 GB, free: 6.809 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.514e-05/2.147, allocations: 12 kB / 0.7743 GB, free: 6.797 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003745/2.15, allocations: 282 kB / 0.7746 GB, free: 6.516 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001809/2.152, allocations: 195.7 kB / 0.7748 GB, free: 6.324 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001637/2.154, allocations: 1.28 MB / 0.7761 GB, free: 4.992 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00114/2.155, allocations: 60.09 kB / 0.7761 GB, free: 4.934 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001339/2.155, allocations: 47.98 kB / 0.7762 GB, free: 4.887 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 51 * 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 (109): * Single equations (assignments): 107 * 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.0003002/2.155, allocations: 164.6 kB / 0.7763 GB, free: 4.719 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002498/2.156, allocations: 86.97 kB / 0.7764 GB, free: 4.633 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002462/2.158, allocations: 0.7641 MB / 0.7771 GB, free: 3.859 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.838e-06/2.158, allocations: 8 kB / 0.7771 GB, free: 3.852 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/2.158, allocations: 3.938 kB / 0.7772 GB, free: 3.848 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.384e-06/2.158, allocations: 0 / 0.7772 GB, free: 3.848 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003419/2.162, allocations: 1.536 MB / 0.7787 GB, free: 2.238 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.883e-06/2.162, allocations: 4 kB / 0.7787 GB, free: 2.234 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006895/2.162, allocations: 79.89 kB / 0.7787 GB, free: 2.156 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002274/2.165, allocations: 277.5 kB / 0.779 GB, free: 1.879 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.995e-05/2.165, allocations: 23.98 kB / 0.779 GB, free: 1.855 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001142/2.166, allocations: 1.296 MB / 0.7803 GB, free: 0.5078 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.948e-06/2.166, allocations: 4.031 kB / 0.7803 GB, free: 0.5039 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2525/2.418, allocations: 1.075 MB / 0.7813 GB, free: 62.31 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004558/2.419, allocations: 175.5 kB / 0.7815 GB, free: 62.21 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002329/2.419, allocations: 12.72 kB / 0.7815 GB, free: 62.21 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009025/2.42, allocations: 39.41 kB / 0.7816 GB, free: 62.21 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001779/2.42, allocations: 49 kB / 0.7816 GB, free: 62.21 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.359e-05/2.42, allocations: 24.36 kB / 0.7816 GB, free: 62.21 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001285/2.422, allocations: 0.5564 MB / 0.7822 GB, free: 62.12 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.71e-07/2.422, allocations: 3.531 kB / 0.7822 GB, free: 62.12 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.003328/2.425, allocations: 0.8046 MB / 0.783 GB, free: 62.12 MB / 362.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.005009/2.43, allocations: 2.474 MB / 0.7854 GB, free: 61.24 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003839/2.434, allocations: 1.184 MB / 0.7865 GB, free: 61.23 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 9.027e-06/2.434, allocations: 0 / 0.7865 GB, free: 61.23 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001382/2.435, allocations: 347.5 kB / 0.7869 GB, free: 61.23 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002522/2.438, allocations: 314.4 kB / 0.7872 GB, free: 61.23 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005535/2.444, allocations: 1.788 MB / 0.7889 GB, free: 60.85 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006262/2.444, allocations: 1.051 MB / 0.7899 GB, free: 60.14 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007488/2.445, allocations: 339 kB / 0.7903 GB, free: 60.13 MB / 362.7 MB Notification: Performance of SimCode: time 1.573e-06/2.445, allocations: 0 / 0.7903 GB, free: 60.13 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.341/5.786, allocations: 29.2 MB / 0.8188 GB, free: 58.9 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2_res.mat does not exist to compare? outputFormat=mat