Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe2",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.401/2.401, allocations: 195 MB / 202.9 MB, free: 6.719 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.781e-05/2.81e-05, allocations: 4.125 kB / 249.8 MB, free: 5.23 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1092/0.1092, allocations: 44.51 MB / 294.3 MB, free: 10.64 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.204/1.313, allocations: 318.6 MB / 0.5986 GB, free: 66.97 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003627/1.313, allocations: 87.2 kB / 0.5986 GB, free: 66.93 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.179/2.492, allocations: 188.9 MB / 0.7831 GB, free: 54.45 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.234e-06/2.492, allocations: 0 / 0.7831 GB, free: 54.45 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001321/2.493, allocations: 31.94 kB / 0.7832 GB, free: 54.42 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.005503/2.498, allocations: 1.29 MB / 0.7844 GB, free: 53.1 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.944e-05/2.498, allocations: 8.031 kB / 0.7844 GB, free: 53.09 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001514/2.5, allocations: 114.8 kB / 0.7845 GB, free: 52.98 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004904/2.505, allocations: 0.7751 MB / 0.7853 GB, free: 52.18 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001058/2.505, allocations: 20 kB / 0.7853 GB, free: 52.16 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003491/2.505, allocations: 36 kB / 0.7853 GB, free: 52.12 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004371/2.51, allocations: 0.8889 MB / 0.7862 GB, free: 51.23 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003984/2.514, allocations: 0.9602 MB / 0.7871 GB, free: 50.21 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.797e-05/2.514, allocations: 0 / 0.7871 GB, free: 50.21 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001771/2.514, allocations: 4 kB / 0.7872 GB, free: 50.21 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001766/2.514, allocations: 65.22 kB / 0.7872 GB, free: 50.14 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01192/2.526, allocations: 4.273 MB / 0.7914 GB, free: 45.65 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001534/2.528, allocations: 0.5158 MB / 0.7919 GB, free: 45.13 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008201/2.529, allocations: 286 kB / 0.7922 GB, free: 44.85 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004214/2.533, allocations: 1.956 MB / 0.7941 GB, free: 42.69 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.239e-05/2.533, allocations: 42.84 kB / 0.7941 GB, free: 42.64 MB / 410.7 MB Notification: Performance of pre-optimization done (n=40): time 4.338e-06/2.533, allocations: 0 / 0.7941 GB, free: 42.64 MB / 410.7 MB Notification: Performance of matching and sorting (n=45): time 0.01034/2.543, allocations: 1.718 MB / 0.7958 GB, free: 40.86 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.62e-05/2.543, allocations: 162.2 kB / 0.7959 GB, free: 40.67 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00135/2.545, allocations: 0.6171 MB / 0.7966 GB, free: 40.04 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001495/2.545, allocations: 29.7 kB / 0.7966 GB, free: 40 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004833/2.545, allocations: 0.4941 MB / 0.7971 GB, free: 39.5 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002161/2.546, allocations: 157.1 kB / 0.7972 GB, free: 39.35 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.598e-05/2.546, allocations: 0 / 0.7972 GB, free: 39.35 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001628/2.546, allocations: 398.7 kB / 0.7976 GB, free: 38.95 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008377/2.547, allocations: 282.5 kB / 0.7979 GB, free: 38.68 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001023/2.548, allocations: 0.637 MB / 0.7985 GB, free: 37.88 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.014/2.562, allocations: 1.364 MB / 0.7998 GB, free: 36.51 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-05/2.562, allocations: 4 kB / 0.7998 GB, free: 36.51 MB / 410.7 MB Notification: Performance of matching and sorting (n=115) (initialization): time 0.01643/2.578, allocations: 2.006 MB / 0.8018 GB, free: 34.49 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009439/2.579, allocations: 4.439 MB / 0.8061 GB, free: 29.7 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.222e-05/2.579, allocations: 12 kB / 0.8061 GB, free: 29.69 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001202/2.581, allocations: 161.6 kB / 0.8063 GB, free: 29.53 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00168/2.582, allocations: 195.6 kB / 0.8065 GB, free: 29.34 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003301/2.586, allocations: 1.483 MB / 0.8079 GB, free: 27.8 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001826/2.587, allocations: 51.94 kB / 0.808 GB, free: 27.75 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001678/2.588, allocations: 51.98 kB / 0.808 GB, free: 27.7 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.664e-05/2.588, allocations: 4 kB / 0.808 GB, free: 27.7 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0159/2.604, allocations: 1.811 MB / 0.8098 GB, free: 25.88 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.627e-05/2.604, allocations: 8 kB / 0.8098 GB, free: 25.87 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001169/2.605, allocations: 161.6 kB / 0.8099 GB, free: 25.71 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00163/2.607, allocations: 187.7 kB / 0.8101 GB, free: 25.52 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002685/2.609, allocations: 1.394 MB / 0.8115 GB, free: 24.08 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001572/2.611, allocations: 51.98 kB / 0.8115 GB, free: 24.03 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001463/2.611, allocations: 44 kB / 0.8116 GB, free: 23.98 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.0003566/2.611, allocations: 148.4 kB / 0.8117 GB, free: 23.83 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004009/2.615, allocations: 0.6812 MB / 0.8124 GB, free: 23.14 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002664/2.616, allocations: 82.97 kB / 0.8125 GB, free: 23.05 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004138/2.62, allocations: 0.7917 MB / 0.8132 GB, free: 22.24 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.427e-05/2.62, allocations: 11.95 kB / 0.8132 GB, free: 22.23 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.327e-06/2.62, allocations: 0 / 0.8132 GB, free: 22.23 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.277e-05/2.62, allocations: 3.984 kB / 0.8133 GB, free: 22.23 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005582/2.626, allocations: 1.49 MB / 0.8147 GB, free: 20.7 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.659e-06/2.626, allocations: 0 / 0.8147 GB, free: 20.7 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008751/2.627, allocations: 75.91 kB / 0.8148 GB, free: 20.62 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001171/2.628, allocations: 157 kB / 0.8149 GB, free: 20.46 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.104e-05/2.628, allocations: 8 kB / 0.8149 GB, free: 20.46 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002535/2.63, allocations: 1.381 MB / 0.8163 GB, free: 19.03 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.757e-06/2.63, allocations: 4.031 kB / 0.8163 GB, free: 19.02 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003821/2.634, allocations: 1.103 MB / 0.8174 GB, free: 17.88 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004164/2.635, allocations: 176 kB / 0.8175 GB, free: 17.68 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000312/2.635, allocations: 4 kB / 0.8175 GB, free: 17.68 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00109/2.636, allocations: 27.97 kB / 0.8176 GB, free: 17.65 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000231/2.636, allocations: 48.36 kB / 0.8176 GB, free: 17.61 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.889e-05/2.637, allocations: 20 kB / 0.8176 GB, free: 17.59 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0009996/2.638, allocations: 467.1 kB / 0.8181 GB, free: 17.14 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.21e-07/2.638, allocations: 0 / 0.8181 GB, free: 17.14 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004029/2.642, allocations: 0.764 MB / 0.8188 GB, free: 16.38 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.007328/2.649, allocations: 2.47 MB / 0.8212 GB, free: 13.91 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004012/2.653, allocations: 1.154 MB / 0.8224 GB, free: 12.77 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 9.318e-06/2.653, allocations: 4 kB / 0.8224 GB, free: 12.77 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001038/2.654, allocations: 297.3 kB / 0.8226 GB, free: 12.48 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00319/2.657, allocations: 295.9 kB / 0.8229 GB, free: 12.19 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006775/2.664, allocations: 1.691 MB / 0.8246 GB, free: 10.44 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007438/2.665, allocations: 1.054 MB / 0.8256 GB, free: 9.355 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.002914/2.668, allocations: 367 kB / 0.826 GB, free: 8.992 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007975/2.669, allocations: 311.3 kB / 0.8263 GB, free: 8.688 MB / 410.7 MB Notification: Performance of SimCode: time 1.563e-06/2.669, allocations: 0 / 0.8263 GB, free: 8.688 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.47/3.139, allocations: 28.88 MB / 0.8545 GB, free: 76.28 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003392/3.139, allocations: 201.6 kB / 0.8546 GB, free: 76.04 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 5.052/8.191, allocations: 0 / 0.8546 GB, free: 76.04 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2_res.mat does not exist to compare? outputFormat=mat