Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.884/1.884, allocations: 194.9 MB / 208.4 MB, free: 3.242 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.804e-05/2.815e-05, allocations: 0 / 255.4 MB, free: 3.113 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0907/0.09076, allocations: 44.52 MB / 299.9 MB, free: 6.547 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9635/1.054, allocations: 323.6 MB / 0.609 GB, free: 64.61 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002946/1.055, allocations: 88.83 kB / 0.609 GB, free: 64.57 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8196/1.874, allocations: 164.6 MB / 0.7698 GB, free: 74.17 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.953e-06/1.874, allocations: 4 kB / 0.7698 GB, free: 74.16 MB / 410.7 MB Notification: Performance of Transformations before backend: time 8.195e-05/1.874, allocations: 20 kB / 0.7698 GB, free: 74.14 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 0.003396/1.878, allocations: 1.109 MB / 0.7709 GB, free: 73 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.936e-05/1.878, allocations: 12.03 kB / 0.7709 GB, free: 72.99 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002502/1.878, allocations: 96.62 kB / 0.771 GB, free: 72.89 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005522/1.879, allocations: 102.9 kB / 0.7711 GB, free: 72.79 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002081/1.881, allocations: 0.6626 MB / 0.7717 GB, free: 72.1 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.391e-05/1.881, allocations: 41.31 kB / 0.7718 GB, free: 72.05 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001503/1.881, allocations: 64.52 kB / 0.7718 GB, free: 72 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001994/1.883, allocations: 0.8638 MB / 0.7727 GB, free: 71.09 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.871e-05/1.883, allocations: 0 / 0.7727 GB, free: 71.09 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001218/1.883, allocations: 27.94 kB / 0.7727 GB, free: 71.06 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.468e-05/1.883, allocations: 49.23 kB / 0.7728 GB, free: 71.01 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001865/1.885, allocations: 0.7664 MB / 0.7735 GB, free: 70.24 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00749/1.893, allocations: 3.844 MB / 0.7773 GB, free: 66.16 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001154/1.894, allocations: 483.6 kB / 0.7777 GB, free: 65.68 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005203/1.895, allocations: 237.5 kB / 0.7779 GB, free: 65.45 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003475/1.898, allocations: 1.968 MB / 0.7799 GB, free: 63.29 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.964e-05/1.898, allocations: 38.56 kB / 0.7799 GB, free: 63.24 MB / 410.7 MB Notification: Performance of pre-optimization done (n=37): time 3.587e-06/1.898, allocations: 3.938 kB / 0.7799 GB, free: 63.24 MB / 410.7 MB Notification: Performance of matching and sorting (n=42): time 0.003862/1.902, allocations: 1.229 MB / 0.7811 GB, free: 61.95 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.192e-05/1.902, allocations: 136.5 kB / 0.7812 GB, free: 61.79 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001029/1.903, allocations: 0.6012 MB / 0.7818 GB, free: 61.18 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001091/1.903, allocations: 37.7 kB / 0.7819 GB, free: 61.14 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002965/1.904, allocations: 463.2 kB / 0.7823 GB, free: 60.68 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001485/1.904, allocations: 149.5 kB / 0.7824 GB, free: 60.54 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.026e-05/1.904, allocations: 16 kB / 0.7825 GB, free: 60.52 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 8.812e-05/1.904, allocations: 350.8 kB / 0.7828 GB, free: 60.17 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005968/1.905, allocations: 237.9 kB / 0.783 GB, free: 59.94 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007626/1.905, allocations: 0.5443 MB / 0.7836 GB, free: 59.25 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007214/1.906, allocations: 327 kB / 0.7839 GB, free: 58.93 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.838e-06/1.906, allocations: 7.984 kB / 0.7839 GB, free: 58.92 MB / 410.7 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.002019/1.908, allocations: 0.8316 MB / 0.7847 GB, free: 58.07 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007638/1.909, allocations: 3.924 MB / 0.7885 GB, free: 53.85 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.024e-05/1.909, allocations: 8 kB / 0.7885 GB, free: 53.84 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00148/1.911, allocations: 116.8 kB / 0.7886 GB, free: 53.72 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002233/1.913, allocations: 235.6 kB / 0.7889 GB, free: 53.49 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009805/1.914, allocations: 1.216 MB / 0.79 GB, free: 52.23 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001317/1.915, allocations: 63.97 kB / 0.7901 GB, free: 52.16 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001157/1.915, allocations: 47.98 kB / 0.7902 GB, free: 52.12 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.564e-05/1.915, allocations: 4 kB / 0.7902 GB, free: 52.11 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001893/1.917, allocations: 0.7755 MB / 0.7909 GB, free: 51.34 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.722e-05/1.917, allocations: 12 kB / 0.7909 GB, free: 51.32 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001152/1.918, allocations: 125 kB / 0.791 GB, free: 51.2 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001655/1.92, allocations: 219.7 kB / 0.7913 GB, free: 50.98 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004477/1.921, allocations: 0.5874 MB / 0.7918 GB, free: 50.37 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009439/1.922, allocations: 63.88 kB / 0.7919 GB, free: 50.31 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001043/1.922, allocations: 43.98 kB / 0.7919 GB, free: 50.27 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 45 * 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 (98): * Single equations (assignments): 96 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0002938/1.922, allocations: 165.3 kB / 0.7921 GB, free: 50.1 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002132/1.922, allocations: 79.09 kB / 0.7922 GB, free: 50.02 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002211/1.924, allocations: 0.7431 MB / 0.7929 GB, free: 49.27 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.54e-05/1.925, allocations: 8 kB / 0.7929 GB, free: 49.26 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.784e-06/1.925, allocations: 0 / 0.7929 GB, free: 49.26 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.097e-05/1.925, allocations: 3.984 kB / 0.7929 GB, free: 49.25 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00345/1.928, allocations: 1.422 MB / 0.7943 GB, free: 47.77 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.083e-06/1.928, allocations: 0 / 0.7943 GB, free: 47.77 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001294/1.929, allocations: 139.8 kB / 0.7944 GB, free: 47.64 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007099/1.93, allocations: 88.88 kB / 0.7945 GB, free: 47.55 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.062e-05/1.93, allocations: 19.98 kB / 0.7945 GB, free: 47.53 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006937/1.931, allocations: 1.177 MB / 0.7957 GB, free: 46.3 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.167e-06/1.931, allocations: 3.984 kB / 0.7957 GB, free: 46.3 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002082/1.933, allocations: 1.012 MB / 0.7967 GB, free: 45.24 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003203/1.933, allocations: 160.1 kB / 0.7968 GB, free: 45.06 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001899/1.934, allocations: 12 kB / 0.7968 GB, free: 45.05 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007965/1.934, allocations: 39.91 kB / 0.7969 GB, free: 45.01 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001664/1.935, allocations: 52.55 kB / 0.7969 GB, free: 44.96 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.546e-05/1.935, allocations: 23.98 kB / 0.7969 GB, free: 44.94 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0008114/1.936, allocations: 471.1 kB / 0.7974 GB, free: 44.48 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.91e-07/1.936, allocations: 0 / 0.7974 GB, free: 44.48 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00269/1.938, allocations: 0.6386 MB / 0.798 GB, free: 43.84 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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[2],tank1.aboveLevel[1]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.004218/1.943, allocations: 2.312 MB / 0.8003 GB, free: 41.53 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003564/1.946, allocations: 1.068 MB / 0.8013 GB, free: 40.46 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.306e-06/1.946, allocations: 0 / 0.8013 GB, free: 40.46 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001124/1.947, allocations: 332.4 kB / 0.8016 GB, free: 40.14 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002346/1.95, allocations: 282.5 kB / 0.8019 GB, free: 39.87 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004618/1.954, allocations: 1.502 MB / 0.8034 GB, free: 38.31 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004858/1.955, allocations: 1.003 MB / 0.8044 GB, free: 37.27 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006749/1.956, allocations: 295.3 kB / 0.8046 GB, free: 36.98 MB / 410.7 MB Notification: Performance of SimCode: time 1.282e-06/1.956, allocations: 4 kB / 0.8046 GB, free: 36.98 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.17/5.126, allocations: 25.24 MB / 0.8293 GB, free: 11.73 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1_res.mat does not exist to compare? outputFormat=mat