Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.96/1.96, allocations: 194.9 MB / 208.4 MB, free: 3.168 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.162e-05/3.169e-05, allocations: 4 kB / 255.5 MB, free: 3.094 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09632/0.09637, allocations: 44.51 MB / 300 MB, free: 6.523 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9693/1.066, allocations: 319.6 MB / 0.6051 GB, free: 67.34 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002847/1.066, allocations: 87.83 kB / 0.6052 GB, free: 67.3 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.482/2.548, allocations: 279 MB / 0.8777 GB, free: 58.61 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.753e-06/2.548, allocations: 0.75 kB / 0.8777 GB, free: 58.61 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001514/2.549, allocations: 42.84 kB / 0.8777 GB, free: 58.61 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: 256 * Number of variables: 256 Notification: Performance of Generate backend data structure: time 0.006401/2.555, allocations: 1.784 MB / 0.8795 GB, free: 57.83 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.842e-05/2.555, allocations: 10.75 kB / 0.8795 GB, free: 57.83 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005129/2.556, allocations: 156.4 kB / 0.8796 GB, free: 57.79 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008897/2.557, allocations: 170.6 kB / 0.8798 GB, free: 57.71 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003586/2.56, allocations: 1.083 MB / 0.8808 GB, free: 57.43 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.832e-05/2.56, allocations: 88 kB / 0.8809 GB, free: 57.43 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002636/2.561, allocations: 94.64 kB / 0.881 GB, free: 57.43 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003601/2.564, allocations: 1.58 MB / 0.8826 GB, free: 57.18 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.583e-05/2.564, allocations: 6.531 kB / 0.8826 GB, free: 57.18 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002115/2.564, allocations: 47.28 kB / 0.8826 GB, free: 57.18 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001955/2.565, allocations: 98.81 kB / 0.8827 GB, free: 57.18 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003888/2.569, allocations: 1.572 MB / 0.8842 GB, free: 57.18 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0147/2.583, allocations: 6.516 MB / 0.8906 GB, free: 54.15 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002032/2.585, allocations: 0.8665 MB / 0.8914 GB, free: 54.12 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001175/2.587, allocations: 0.5233 MB / 0.892 GB, free: 54.11 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005529/2.592, allocations: 2.814 MB / 0.8947 GB, free: 52.66 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.776e-05/2.592, allocations: 48.03 kB / 0.8947 GB, free: 52.62 MB / 410.7 MB Notification: Performance of pre-optimization done (n=80): time 3.366e-06/2.592, allocations: 0 / 0.8947 GB, free: 52.62 MB / 410.7 MB Notification: Performance of matching and sorting (n=90): time 0.009159/2.601, allocations: 2.77 MB / 0.8975 GB, free: 52.05 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.306e-05/2.601, allocations: 195.9 kB / 0.8976 GB, free: 51.83 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001962/2.603, allocations: 1.03 MB / 0.8986 GB, free: 51.66 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001839/2.604, allocations: 56.84 kB / 0.8987 GB, free: 51.63 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004778/2.604, allocations: 0.6483 MB / 0.8993 GB, free: 51.26 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003236/2.605, allocations: 329.4 kB / 0.8996 GB, free: 51.06 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001241/2.605, allocations: 28.94 kB / 0.8997 GB, free: 51.06 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001111/2.605, allocations: 369.9 kB / 0.9 GB, free: 50.75 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001318/2.606, allocations: 0.5327 MB / 0.9005 GB, free: 50.75 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00159/2.608, allocations: 1.002 MB / 0.9015 GB, free: 50.19 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001529/2.609, allocations: 0.6619 MB / 0.9022 GB, free: 50.18 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.152e-05/2.609, allocations: 3.25 kB / 0.9022 GB, free: 50.18 MB / 410.7 MB Notification: Performance of matching and sorting (n=185) (initialization): time 0.004265/2.614, allocations: 1.733 MB / 0.9039 GB, free: 50.07 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001177/2.615, allocations: 5.58 MB / 0.9093 GB, free: 44.27 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.557e-05/2.615, allocations: 14.81 kB / 0.9093 GB, free: 44.27 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006354/2.621, allocations: 0.6448 MB / 0.91 GB, free: 44.25 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002222/2.623, allocations: 297.1 kB / 0.9102 GB, free: 44.25 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002432/2.626, allocations: 2.136 MB / 0.9123 GB, free: 42.68 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002322/2.628, allocations: 105.7 kB / 0.9124 GB, free: 42.68 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000187/2.628, allocations: 72.8 kB / 0.9125 GB, free: 42.68 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.447e-05/2.628, allocations: 9.219 kB / 0.9125 GB, free: 42.68 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004116/2.633, allocations: 1.598 MB / 0.9141 GB, free: 42.62 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.577e-05/2.633, allocations: 15.66 kB / 0.9141 GB, free: 42.62 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004977/2.638, allocations: 496.7 kB / 0.9146 GB, free: 42.6 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002225/2.64, allocations: 297.6 kB / 0.9148 GB, free: 42.6 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001865/2.642, allocations: 1.968 MB / 0.9168 GB, free: 41.05 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001689/2.644, allocations: 102.9 kB / 0.9169 GB, free: 41.04 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001663/2.644, allocations: 75.06 kB / 0.9169 GB, free: 41.04 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 64 * Number of states: 0 () * Number of discrete variables: 12 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[2],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[2],tank2.ports_m_flow_out[2],tank2.ports_m_flow_out[1],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 (171): * Single equations (assignments): 168 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 3,2 7,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0004752/2.644, allocations: 199.2 kB / 0.9171 GB, free: 40.93 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003858/2.645, allocations: 134.7 kB / 0.9173 GB, free: 40.86 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00434/2.649, allocations: 1.496 MB / 0.9187 GB, free: 40.73 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.261e-05/2.649, allocations: 11.66 kB / 0.9187 GB, free: 40.73 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.504e-06/2.649, allocations: 0 / 0.9187 GB, free: 40.73 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.443e-05/2.649, allocations: 7.891 kB / 0.9187 GB, free: 40.73 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006474/2.655, allocations: 2.729 MB / 0.9214 GB, free: 40.34 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.638e-06/2.656, allocations: 3.781 kB / 0.9214 GB, free: 40.34 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001267/2.657, allocations: 152 kB / 0.9215 GB, free: 40.34 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004525/2.661, allocations: 0.5997 MB / 0.9221 GB, free: 40.31 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001146/2.661, allocations: 26.83 kB / 0.9222 GB, free: 40.31 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002082/2.664, allocations: 2.108 MB / 0.9242 GB, free: 38.74 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.587e-06/2.664, allocations: 0 / 0.9242 GB, free: 38.74 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004452/2.668, allocations: 2.101 MB / 0.9263 GB, free: 38.38 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005631/2.669, allocations: 224.1 kB / 0.9265 GB, free: 38.21 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003193/2.669, allocations: 32.02 kB / 0.9265 GB, free: 38.21 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001396/2.67, allocations: 77.72 kB / 0.9266 GB, free: 38.21 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002828/2.671, allocations: 88.86 kB / 0.9267 GB, free: 38.21 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001199/2.671, allocations: 39.33 kB / 0.9267 GB, free: 38.21 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001486/2.672, allocations: 0.7876 MB / 0.9275 GB, free: 38.09 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.61e-07/2.672, allocations: 0 / 0.9275 GB, free: 38.09 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004545/2.677, allocations: 1.188 MB / 0.9286 GB, free: 37.89 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Number of discrete states: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * Single equations (assignments): 81 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {2 12,1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.007897/2.685, allocations: 3.934 MB / 0.9325 GB, free: 36.44 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.006211/2.691, allocations: 2.124 MB / 0.9346 GB, free: 35.75 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 9.878e-06/2.691, allocations: 3.125 kB / 0.9346 GB, free: 35.75 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002182/2.693, allocations: 0.6891 MB / 0.9352 GB, free: 35.54 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003945/2.697, allocations: 0.4951 MB / 0.9357 GB, free: 35.43 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008181/2.706, allocations: 2.851 MB / 0.9385 GB, free: 34.26 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008435/2.706, allocations: 1.273 MB / 0.9397 GB, free: 33.51 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001167/2.708, allocations: 0.5301 MB / 0.9403 GB, free: 33.12 MB / 410.7 MB Notification: Performance of SimCode: time 1.232e-06/2.708, allocations: 0 / 0.9403 GB, free: 33.12 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.419/6.127, allocations: 49.47 MB / 0.9886 GB, free: 3.184 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.TanksWithEmptyingPipe1_res.mat does not exist to compare? outputFormat=mat