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.629/1.629, allocations: 171.2 MB / 183.8 MB, free: 12.04 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.263e-05/3.278e-05, allocations: 4 kB / 225.1 MB, free: 2.691 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2594/0.2594, allocations: 38.77 MB / 263.8 MB, free: 9.762 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8866/1.146, allocations: 314 MB / 0.5643 GB, free: 69.79 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002656/1.146, allocations: 86.89 kB / 0.5643 GB, free: 69.74 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9701/2.117, allocations: 190.1 MB / 0.75 GB, free: 33.09 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.663e-06/2.117, allocations: 4 kB / 0.75 GB, free: 33.08 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.58e-05/2.117, allocations: 31.92 kB / 0.7501 GB, free: 33.05 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.004062/2.121, allocations: 1.29 MB / 0.7513 GB, free: 31.71 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.554e-05/2.121, allocations: 8.031 kB / 0.7513 GB, free: 31.71 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002943/2.121, allocations: 110.5 kB / 0.7514 GB, free: 31.59 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005898/2.122, allocations: 119.2 kB / 0.7515 GB, free: 31.47 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002432/2.124, allocations: 0.7724 MB / 0.7523 GB, free: 30.66 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.894e-05/2.124, allocations: 53.3 kB / 0.7524 GB, free: 30.61 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000165/2.124, allocations: 59.98 kB / 0.7524 GB, free: 30.55 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002292/2.127, allocations: 1.042 MB / 0.7534 GB, free: 29.45 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.75e-05/2.127, allocations: 0 / 0.7534 GB, free: 29.45 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001333/2.127, allocations: 31.98 kB / 0.7535 GB, free: 29.41 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001251/2.127, allocations: 61.28 kB / 0.7535 GB, free: 29.36 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002294/2.129, allocations: 0.9928 MB / 0.7545 GB, free: 28.36 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009317/2.139, allocations: 4.406 MB / 0.7588 GB, free: 23.69 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00125/2.14, allocations: 0.5285 MB / 0.7593 GB, free: 23.15 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006248/2.141, allocations: 294.1 kB / 0.7596 GB, free: 22.86 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003316/2.144, allocations: 1.993 MB / 0.7615 GB, free: 20.65 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.802e-05/2.144, allocations: 42.89 kB / 0.7616 GB, free: 20.6 MB / 362.7 MB Notification: Performance of pre-optimization done (n=40): time 3.416e-06/2.144, allocations: 0 / 0.7616 GB, free: 20.6 MB / 362.7 MB Notification: Performance of matching and sorting (n=45): time 0.004459/2.149, allocations: 1.45 MB / 0.763 GB, free: 19.09 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.852e-05/2.149, allocations: 166.2 kB / 0.7631 GB, free: 18.89 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001277/2.15, allocations: 0.727 MB / 0.7639 GB, free: 18.16 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 9.813e-05/2.15, allocations: 37.7 kB / 0.7639 GB, free: 18.12 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003471/2.151, allocations: 0.5008 MB / 0.7644 GB, free: 17.61 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001628/2.151, allocations: 165.7 kB / 0.7645 GB, free: 17.45 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.124e-05/2.151, allocations: 23.94 kB / 0.7646 GB, free: 17.43 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.713e-05/2.151, allocations: 346.8 kB / 0.7649 GB, free: 17.08 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007154/2.152, allocations: 293.9 kB / 0.7652 GB, free: 16.79 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008746/2.152, allocations: 0.6561 MB / 0.7658 GB, free: 15.97 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008567/2.153, allocations: 387 kB / 0.7662 GB, free: 15.59 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.576e-06/2.153, allocations: 7.984 kB / 0.7662 GB, free: 15.59 MB / 362.7 MB Notification: Performance of matching and sorting (n=115) (initialization): time 0.002408/2.156, allocations: 1.036 MB / 0.7672 GB, free: 14.54 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008197/2.157, allocations: 4.454 MB / 0.7715 GB, free: 9.738 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.194e-05/2.157, allocations: 12 kB / 0.7716 GB, free: 9.727 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003184/2.16, allocations: 317.4 kB / 0.7719 GB, free: 9.41 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001343/2.161, allocations: 183.7 kB / 0.772 GB, free: 9.23 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001321/2.163, allocations: 1.331 MB / 0.7733 GB, free: 7.848 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001446/2.164, allocations: 71.94 kB / 0.7734 GB, free: 7.777 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001356/2.164, allocations: 47.98 kB / 0.7735 GB, free: 7.73 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.442e-05/2.164, allocations: 4 kB / 0.7735 GB, free: 7.727 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002306/2.167, allocations: 0.9636 MB / 0.7744 GB, free: 6.754 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.005e-05/2.167, allocations: 12 kB / 0.7744 GB, free: 6.742 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002743/2.169, allocations: 277.9 kB / 0.7747 GB, free: 6.465 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001321/2.171, allocations: 195.7 kB / 0.7749 GB, free: 6.273 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00126/2.172, allocations: 1.28 MB / 0.7761 GB, free: 4.941 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001088/2.173, allocations: 51.97 kB / 0.7762 GB, free: 4.891 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001089/2.173, allocations: 56.05 kB / 0.7762 GB, free: 4.836 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.0002915/2.174, allocations: 164.6 kB / 0.7764 GB, free: 4.668 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002452/2.174, allocations: 82.97 kB / 0.7765 GB, free: 4.586 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002427/2.176, allocations: 0.7703 MB / 0.7772 GB, free: 3.805 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.117e-06/2.176, allocations: 8 kB / 0.7772 GB, free: 3.797 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.646e-06/2.176, allocations: 4 kB / 0.7772 GB, free: 3.793 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.909e-06/2.176, allocations: 3.984 kB / 0.7772 GB, free: 3.789 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003569/2.18, allocations: 1.532 MB / 0.7787 GB, free: 2.184 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.174e-06/2.18, allocations: 7.984 kB / 0.7787 GB, free: 2.176 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006813/2.181, allocations: 75.91 kB / 0.7788 GB, free: 2.102 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002229/2.183, allocations: 285.5 kB / 0.7791 GB, free: 1.816 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.27e-05/2.183, allocations: 15.98 kB / 0.7791 GB, free: 1.801 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001162/2.184, allocations: 1.296 MB / 0.7803 GB, free: 464 kB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.307e-06/2.184, allocations: 0 / 0.7803 GB, free: 464 kB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2479/2.432, allocations: 1.084 MB / 0.7814 GB, free: 62.43 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004608/2.433, allocations: 175.2 kB / 0.7816 GB, free: 62.34 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002029/2.433, allocations: 12.17 kB / 0.7816 GB, free: 62.34 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009144/2.434, allocations: 44.31 kB / 0.7816 GB, free: 62.34 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001906/2.434, allocations: 46.25 kB / 0.7817 GB, free: 62.34 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.345e-05/2.434, allocations: 24.42 kB / 0.7817 GB, free: 62.34 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001252/2.435, allocations: 0.5567 MB / 0.7822 GB, free: 62.24 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.3e-07/2.435, allocations: 0 / 0.7822 GB, free: 62.24 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.003216/2.439, allocations: 0.8016 MB / 0.783 GB, free: 62.24 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.005073/2.444, allocations: 2.475 MB / 0.7854 GB, free: 61.38 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003736/2.448, allocations: 1.215 MB / 0.7866 GB, free: 61.37 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 8.025e-06/2.448, allocations: 2.156 kB / 0.7866 GB, free: 61.37 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001279/2.449, allocations: 355.9 kB / 0.787 GB, free: 61.37 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002426/2.451, allocations: 300.8 kB / 0.7873 GB, free: 61.37 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005472/2.457, allocations: 1.801 MB / 0.789 GB, free: 60.98 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006429/2.458, allocations: 1.054 MB / 0.79 GB, free: 60.28 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000746/2.458, allocations: 326.7 kB / 0.7904 GB, free: 60.27 MB / 362.7 MB Notification: Performance of SimCode: time 1.412e-06/2.458, allocations: 3.094 kB / 0.7904 GB, free: 60.27 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.26/5.718, allocations: 29.21 MB / 0.8189 GB, free: 59.16 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