Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1,fileNamePrefix="Modelica_3_2_2_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.066/2.066, allocations: 194.9 MB / 208 MB, free: 3.258 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.765e-05/3.778e-05, allocations: 4 kB / 255.5 MB, free: 2.629 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1028/0.1029, allocations: 44.5 MB / 300 MB, free: 6.066 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.04/1.143, allocations: 319.6 MB / 0.6051 GB, free: 67.69 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000278/1.144, allocations: 93.69 kB / 0.6052 GB, free: 67.64 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.628/2.772, allocations: 279 MB / 0.8777 GB, free: 58.7 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.344e-06/2.772, allocations: 0 / 0.8777 GB, free: 58.7 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002307/2.772, allocations: 40.84 kB / 0.8777 GB, free: 58.7 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.007937/2.78, allocations: 1.79 MB / 0.8795 GB, free: 57.93 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.159e-05/2.78, allocations: 6.594 kB / 0.8795 GB, free: 57.93 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007882/2.781, allocations: 159.3 kB / 0.8796 GB, free: 57.89 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001421/2.783, allocations: 171.2 kB / 0.8798 GB, free: 57.81 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004713/2.787, allocations: 1.088 MB / 0.8808 GB, free: 57.53 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001901/2.788, allocations: 79.92 kB / 0.8809 GB, free: 57.53 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005978/2.788, allocations: 95.19 kB / 0.881 GB, free: 57.53 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005007/2.793, allocations: 1.598 MB / 0.8826 GB, free: 57.27 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.955e-05/2.793, allocations: 4.594 kB / 0.8826 GB, free: 57.27 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003195/2.794, allocations: 48.97 kB / 0.8826 GB, free: 57.27 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002211/2.794, allocations: 98.88 kB / 0.8827 GB, free: 57.27 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005007/2.799, allocations: 1.587 MB / 0.8843 GB, free: 57.26 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01843/2.817, allocations: 6.511 MB / 0.8906 GB, free: 54.24 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002464/2.82, allocations: 0.8742 MB / 0.8915 GB, free: 54.21 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001441/2.821, allocations: 0.5269 MB / 0.892 GB, free: 54.2 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007073/2.829, allocations: 2.823 MB / 0.8947 GB, free: 52.74 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.01e-05/2.829, allocations: 42.59 kB / 0.8948 GB, free: 52.7 MB / 410.7 MB Notification: Performance of pre-optimization done (n=80): time 4.338e-06/2.829, allocations: 3.656 kB / 0.8948 GB, free: 52.7 MB / 410.7 MB Notification: Performance of matching and sorting (n=90): time 0.01068/2.839, allocations: 2.771 MB / 0.8975 GB, free: 52.12 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.485e-05/2.84, allocations: 192.8 kB / 0.8977 GB, free: 51.9 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00238/2.842, allocations: 1.033 MB / 0.8987 GB, free: 51.73 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003426/2.842, allocations: 52.28 kB / 0.8987 GB, free: 51.7 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007923/2.843, allocations: 0.6693 MB / 0.8994 GB, free: 51.4 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005882/2.844, allocations: 322.4 kB / 0.8997 GB, free: 51.2 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002071/2.844, allocations: 31.5 kB / 0.8997 GB, free: 51.2 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001519/2.844, allocations: 362.8 kB / 0.9001 GB, free: 50.9 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00165/2.846, allocations: 0.5328 MB / 0.9006 GB, free: 50.9 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002125/2.848, allocations: 1.009 MB / 0.9016 GB, free: 50.34 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001985/2.85, allocations: 0.6669 MB / 0.9022 GB, free: 50.33 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.253e-05/2.85, allocations: 3.719 kB / 0.9022 GB, free: 50.33 MB / 410.7 MB Notification: Performance of matching and sorting (n=185) (initialization): time 0.005975/2.856, allocations: 1.839 MB / 0.904 GB, free: 50.17 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001303/2.857, allocations: 5.583 MB / 0.9095 GB, free: 44.38 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.374e-05/2.858, allocations: 13.69 kB / 0.9095 GB, free: 44.38 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00681/2.864, allocations: 0.6464 MB / 0.9101 GB, free: 44.35 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003472/2.868, allocations: 298.8 kB / 0.9104 GB, free: 44.35 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00274/2.871, allocations: 2.141 MB / 0.9125 GB, free: 42.79 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002944/2.874, allocations: 111.4 kB / 0.9126 GB, free: 42.78 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004888/2.874, allocations: 70.66 kB / 0.9127 GB, free: 42.78 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.807e-05/2.874, allocations: 7.172 kB / 0.9127 GB, free: 42.78 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005259/2.88, allocations: 1.641 MB / 0.9143 GB, free: 42.73 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.719e-05/2.88, allocations: 13.41 kB / 0.9143 GB, free: 42.73 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005499/2.885, allocations: 0.5025 MB / 0.9148 GB, free: 42.7 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002347/2.888, allocations: 305 kB / 0.9151 GB, free: 42.7 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002127/2.89, allocations: 1.983 MB / 0.917 GB, free: 41.14 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002331/2.892, allocations: 105 kB / 0.9171 GB, free: 41.14 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003992/2.893, allocations: 77.89 kB / 0.9172 GB, free: 41.13 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.000558/2.893, allocations: 193.6 kB / 0.9174 GB, free: 41.01 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000443/2.894, allocations: 136.8 kB / 0.9175 GB, free: 40.94 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004842/2.899, allocations: 1.487 MB / 0.919 GB, free: 40.8 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.121e-05/2.899, allocations: 17.81 kB / 0.919 GB, free: 40.8 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.979e-06/2.899, allocations: 0 / 0.919 GB, free: 40.8 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.18e-05/2.899, allocations: 10.89 kB / 0.919 GB, free: 40.8 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009284/2.908, allocations: 2.725 MB / 0.9216 GB, free: 40.4 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.43e-05/2.908, allocations: 6.062 kB / 0.9217 GB, free: 40.39 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001518/2.91, allocations: 152.3 kB / 0.9218 GB, free: 40.39 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00502/2.915, allocations: 0.6061 MB / 0.9224 GB, free: 40.36 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000324/2.915, allocations: 19.75 kB / 0.9224 GB, free: 40.36 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002332/2.917, allocations: 2.113 MB / 0.9245 GB, free: 38.79 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.288e-06/2.917, allocations: 0 / 0.9245 GB, free: 38.79 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005569/2.923, allocations: 2.101 MB / 0.9265 GB, free: 38.42 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008364/2.924, allocations: 232.1 kB / 0.9267 GB, free: 38.25 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007066/2.925, allocations: 26.19 kB / 0.9268 GB, free: 38.25 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001908/2.927, allocations: 72.86 kB / 0.9268 GB, free: 38.25 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005101/2.927, allocations: 95.48 kB / 0.9269 GB, free: 38.25 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002122/2.927, allocations: 36.28 kB / 0.927 GB, free: 38.25 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002523/2.93, allocations: 0.787 MB / 0.9277 GB, free: 38.13 MB / 410.7 MB Notification: Performance of sort global known variables: time 7.81e-07/2.93, allocations: 0 / 0.9277 GB, free: 38.13 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.007541/2.938, allocations: 1.193 MB / 0.9289 GB, free: 37.93 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.01314/2.951, allocations: 3.907 MB / 0.9327 GB, free: 36.54 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.009831/2.961, allocations: 2.223 MB / 0.9349 GB, free: 35.83 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.358e-05/2.961, allocations: 0 / 0.9349 GB, free: 35.83 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003573/2.964, allocations: 0.6902 MB / 0.9356 GB, free: 35.63 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005658/2.97, allocations: 0.4973 MB / 0.936 GB, free: 35.52 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0128/2.983, allocations: 2.826 MB / 0.9388 GB, free: 34.39 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001322/2.984, allocations: 1.281 MB / 0.9401 GB, free: 33.63 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.005868/2.99, allocations: 0.6499 MB / 0.9407 GB, free: 33.6 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00168/2.992, allocations: 0.507 MB / 0.9412 GB, free: 33.21 MB / 410.7 MB Notification: Performance of SimCode: time 1.603e-06/2.992, allocations: 0 / 0.9412 GB, free: 33.21 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1368/3.129, allocations: 51.19 MB / 0.9912 GB, free: 0.7656 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00029/3.129, allocations: 232.1 kB / 0.9914 GB, free: 472 kB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.032/8.162, allocations: 0 / 0.9914 GB, free: 472 kB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1_res.mat does not exist to compare? outputFormat=mat