Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2,fileNamePrefix="Modelica_3_2_2_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: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.962e-05/2.974e-05, allocations: 7.938 kB / 249.7 MB, free: 15.18 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3037/0.3038, allocations: 44.48 MB / 294.2 MB, free: 14.19 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.011/1.315, allocations: 318.6 MB / 0.5985 GB, free: 111.8 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004541/1.315, allocations: 94.31 kB / 0.5986 GB, free: 111.8 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9331/2.248, allocations: 188.9 MB / 0.783 GB, free: 92.84 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.394e-06/2.248, allocations: 0 / 0.783 GB, free: 92.84 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001127/2.249, allocations: 29.7 kB / 0.7831 GB, free: 92.83 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: 164 * Number of variables: 164 Notification: Performance of Generate backend data structure: time 0.004361/2.253, allocations: 1.292 MB / 0.7843 GB, free: 92.15 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.895e-05/2.253, allocations: 10.34 kB / 0.7843 GB, free: 92.15 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007642/2.254, allocations: 112.3 kB / 0.7844 GB, free: 92.1 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002584/2.256, allocations: 0.7723 MB / 0.7852 GB, free: 91.81 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.867e-05/2.256, allocations: 28.55 kB / 0.7852 GB, free: 91.81 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001674/2.257, allocations: 34.66 kB / 0.7852 GB, free: 91.81 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002121/2.259, allocations: 0.8859 MB / 0.7861 GB, free: 91.8 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002107/2.261, allocations: 0.9504 MB / 0.787 GB, free: 91.62 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.475e-05/2.261, allocations: 9.906 kB / 0.7871 GB, free: 91.62 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001308/2.261, allocations: 4.406 kB / 0.7871 GB, free: 91.62 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001418/2.261, allocations: 64.62 kB / 0.7871 GB, free: 91.61 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00926/2.271, allocations: 4.264 MB / 0.7913 GB, free: 89.43 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001202/2.272, allocations: 0.5085 MB / 0.7918 GB, free: 89.4 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005798/2.272, allocations: 293.5 kB / 0.7921 GB, free: 89.39 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003479/2.276, allocations: 1.96 MB / 0.794 GB, free: 88.14 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.995e-05/2.276, allocations: 37.98 kB / 0.794 GB, free: 88.1 MB / 410.7 MB Notification: Performance of pre-optimization done (n=40): time 2.855e-06/2.276, allocations: 3.938 kB / 0.794 GB, free: 88.1 MB / 410.7 MB Notification: Performance of matching and sorting (n=45): time 0.008123/2.284, allocations: 1.721 MB / 0.7957 GB, free: 87.65 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.923e-05/2.284, allocations: 161.1 kB / 0.7958 GB, free: 87.46 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001098/2.285, allocations: 0.6154 MB / 0.7964 GB, free: 87.32 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000142/2.286, allocations: 28.05 kB / 0.7965 GB, free: 87.29 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003813/2.286, allocations: 0.5154 MB / 0.797 GB, free: 86.92 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001955/2.286, allocations: 162 kB / 0.7971 GB, free: 86.8 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.744e-05/2.286, allocations: 0 / 0.7971 GB, free: 86.8 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 9.521e-05/2.286, allocations: 352.1 kB / 0.7975 GB, free: 86.46 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006739/2.287, allocations: 283.4 kB / 0.7977 GB, free: 86.36 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008483/2.288, allocations: 0.6386 MB / 0.7984 GB, free: 85.79 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01092/2.299, allocations: 1.377 MB / 0.7997 GB, free: 85.56 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-05/2.299, allocations: 0 / 0.7997 GB, free: 85.56 MB / 410.7 MB Notification: Performance of matching and sorting (n=115) (initialization): time 0.01296/2.312, allocations: 1.954 MB / 0.8016 GB, free: 85.14 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009179/2.313, allocations: 4.44 MB / 0.8059 GB, free: 80.45 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.18e-05/2.313, allocations: 17.45 kB / 0.806 GB, free: 80.44 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000957/2.314, allocations: 161.7 kB / 0.8061 GB, free: 80.39 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001365/2.315, allocations: 192.3 kB / 0.8063 GB, free: 80.38 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002641/2.318, allocations: 1.481 MB / 0.8077 GB, free: 79.2 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001527/2.319, allocations: 50.11 kB / 0.8078 GB, free: 79.19 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001646/2.32, allocations: 48.48 kB / 0.8078 GB, free: 79.18 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.419e-05/2.32, allocations: 6.375 kB / 0.8078 GB, free: 79.18 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0122/2.332, allocations: 1.811 MB / 0.8096 GB, free: 78.78 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.457e-05/2.332, allocations: 11 kB / 0.8096 GB, free: 78.78 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007821/2.333, allocations: 154.6 kB / 0.8098 GB, free: 78.73 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001213/2.334, allocations: 189.9 kB / 0.81 GB, free: 78.71 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002218/2.336, allocations: 1.382 MB / 0.8113 GB, free: 77.57 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001104/2.337, allocations: 47.28 kB / 0.8114 GB, free: 77.56 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001168/2.337, allocations: 41.72 kB / 0.8114 GB, free: 77.56 MB / 410.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.0003117/2.338, allocations: 148 kB / 0.8115 GB, free: 77.42 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00309/2.341, allocations: 0.6863 MB / 0.8122 GB, free: 77.18 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002012/2.341, allocations: 85.33 kB / 0.8123 GB, free: 77.14 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003176/2.344, allocations: 0.7924 MB / 0.8131 GB, free: 76.86 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.131e-05/2.344, allocations: 7.125 kB / 0.8131 GB, free: 76.86 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.435e-06/2.344, allocations: 0 / 0.8131 GB, free: 76.86 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.866e-06/2.344, allocations: 0 / 0.8131 GB, free: 76.86 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004467/2.349, allocations: 1.5 MB / 0.8145 GB, free: 76.16 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.055e-06/2.349, allocations: 0 / 0.8145 GB, free: 76.16 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000696/2.35, allocations: 82.64 kB / 0.8146 GB, free: 76.16 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000925/2.351, allocations: 153.6 kB / 0.8148 GB, free: 76.11 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.826e-05/2.351, allocations: 9.156 kB / 0.8148 GB, free: 76.11 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002025/2.353, allocations: 1.383 MB / 0.8161 GB, free: 74.95 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.766e-06/2.353, allocations: 0 / 0.8161 GB, free: 74.95 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003083/2.356, allocations: 1.112 MB / 0.8172 GB, free: 74.41 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004328/2.356, allocations: 166 kB / 0.8174 GB, free: 74.26 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002761/2.357, allocations: 11.47 kB / 0.8174 GB, free: 74.25 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008565/2.357, allocations: 34.39 kB / 0.8174 GB, free: 74.25 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001731/2.358, allocations: 48 kB / 0.8174 GB, free: 74.25 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.809e-05/2.358, allocations: 19.25 kB / 0.8175 GB, free: 74.24 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0008049/2.359, allocations: 468.5 kB / 0.8179 GB, free: 74.03 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.32e-07/2.359, allocations: 0 / 0.8179 GB, free: 74.03 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003435/2.362, allocations: 0.7522 MB / 0.8186 GB, free: 73.86 MB / 410.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.006055/2.368, allocations: 2.486 MB / 0.8211 GB, free: 72.48 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003285/2.371, allocations: 1.137 MB / 0.8222 GB, free: 71.95 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.163e-06/2.371, allocations: 4 kB / 0.8222 GB, free: 71.95 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007837/2.372, allocations: 293 kB / 0.8225 GB, free: 71.69 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002485/2.375, allocations: 271.5 kB / 0.8227 GB, free: 71.5 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005368/2.38, allocations: 1.732 MB / 0.8244 GB, free: 70.02 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005934/2.381, allocations: 1.055 MB / 0.8254 GB, free: 69.07 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006699/2.382, allocations: 324.7 kB / 0.8258 GB, free: 68.78 MB / 410.7 MB Notification: Performance of SimCode: time 9.62e-07/2.382, allocations: 0 / 0.8258 GB, free: 68.78 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.306/5.687, allocations: 28.88 MB / 0.854 GB, free: 40.72 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.TankWithEmptyingPipe2_res.mat does not exist to compare? outputFormat=mat