Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks,fileNamePrefix="Modelica_3_2_1_Modelica_Fluid_Examples_AST_BatchPlant_Test_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.822/1.822, allocations: 171.2 MB / 183.3 MB, free: 12.08 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.361e-05/3.374e-05, allocations: 0 / 225.1 MB, free: 2.246 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2876/0.2877, allocations: 38.77 MB / 263.9 MB, free: 9.707 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9487/1.236, allocations: 311.9 MB / 0.5622 GB, free: 71.8 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003276/1.237, allocations: 82.22 kB / 0.5623 GB, free: 71.77 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7305/1.967, allocations: 135.7 MB / 0.6949 GB, free: 89.45 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.394e-06/1.967, allocations: 0 / 0.6949 GB, free: 89.45 MB / 362.7 MB Notification: Performance of Transformations before backend: time 8.756e-05/1.968, allocations: 20 kB / 0.6949 GB, free: 89.43 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.003527/1.971, allocations: 1.032 MB / 0.6959 GB, free: 88.37 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.909e-05/1.971, allocations: 12.03 kB / 0.6959 GB, free: 88.36 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002453/1.971, allocations: 85.95 kB / 0.696 GB, free: 88.27 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004934/1.972, allocations: 83.06 kB / 0.6961 GB, free: 88.18 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001929/1.974, allocations: 0.583 MB / 0.6966 GB, free: 87.57 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.227e-05/1.974, allocations: 39.41 kB / 0.6967 GB, free: 87.54 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001296/1.974, allocations: 51.73 kB / 0.6967 GB, free: 87.49 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001722/1.976, allocations: 0.7213 MB / 0.6974 GB, free: 86.74 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.063e-05/1.976, allocations: 3.938 kB / 0.6974 GB, free: 86.74 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001005/1.976, allocations: 18.89 kB / 0.6975 GB, free: 86.72 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001242/1.976, allocations: 44.97 kB / 0.6975 GB, free: 86.68 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001627/1.978, allocations: 0.6578 MB / 0.6981 GB, free: 86.02 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006797/1.985, allocations: 2.861 MB / 0.7009 GB, free: 83 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001054/1.986, allocations: 458.8 kB / 0.7014 GB, free: 82.54 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000542/1.986, allocations: 254.1 kB / 0.7016 GB, free: 82.29 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003453/1.987, allocations: 340 kB / 0.7019 GB, free: 81.89 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.423e-05/1.987, allocations: 39 kB / 0.702 GB, free: 81.84 MB / 362.7 MB Notification: Performance of pre-optimization done (n=48): time 2.966e-06/1.987, allocations: 0 / 0.702 GB, free: 81.84 MB / 362.7 MB Notification: Performance of matching and sorting (n=58): time 0.006543/1.993, allocations: 1.831 MB / 0.7038 GB, free: 79.96 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.542e-05/1.993, allocations: 81.67 kB / 0.7038 GB, free: 79.86 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000938/1.994, allocations: 0.5461 MB / 0.7044 GB, free: 79.31 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001289/1.994, allocations: 41.7 kB / 0.7044 GB, free: 79.26 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002522/1.995, allocations: 316.6 kB / 0.7047 GB, free: 78.95 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002023/1.995, allocations: 212.7 kB / 0.7049 GB, free: 78.75 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.103e-05/1.995, allocations: 16 kB / 0.7049 GB, free: 78.73 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001243/1.995, allocations: 378.7 kB / 0.7053 GB, free: 78.35 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006657/1.996, allocations: 281.4 kB / 0.7056 GB, free: 78.08 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007484/1.997, allocations: 445.4 kB / 0.706 GB, free: 77.58 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007207/1.997, allocations: 333.9 kB / 0.7063 GB, free: 77.25 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.518e-06/1.997, allocations: 0 / 0.7063 GB, free: 77.25 MB / 362.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002111/1.999, allocations: 0.9059 MB / 0.7072 GB, free: 76.34 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003606/2, allocations: 1.749 MB / 0.7089 GB, free: 74.45 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.395e-05/2, allocations: 8 kB / 0.7089 GB, free: 74.44 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00323/2.003, allocations: 348.5 kB / 0.7092 GB, free: 74.1 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001219/2.004, allocations: 147.7 kB / 0.7094 GB, free: 73.95 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001163/2.006, allocations: 0.8099 MB / 0.7102 GB, free: 73.12 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001076/2.007, allocations: 48.03 kB / 0.7102 GB, free: 73.07 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.163e-05/2.007, allocations: 31.98 kB / 0.7103 GB, free: 73.04 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.293e-05/2.007, allocations: 4 kB / 0.7103 GB, free: 73.04 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001838/2.009, allocations: 0.7607 MB / 0.711 GB, free: 72.27 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.238e-06/2.009, allocations: 4 kB / 0.711 GB, free: 72.27 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002409/2.011, allocations: 229.1 kB / 0.7112 GB, free: 72.04 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001209/2.012, allocations: 151.8 kB / 0.7114 GB, free: 71.89 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007859/2.013, allocations: 0.7006 MB / 0.7121 GB, free: 71.17 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009629/2.014, allocations: 51.88 kB / 0.7121 GB, free: 71.12 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.982e-05/2.014, allocations: 31.98 kB / 0.7121 GB, free: 71.09 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 82 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 7} Notification: Performance of prepare postOptimizeDAE: time 0.0002781/2.015, allocations: 150.4 kB / 0.7123 GB, free: 70.93 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001641/2.015, allocations: 71.16 kB / 0.7123 GB, free: 70.86 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002125/2.017, allocations: 0.8343 MB / 0.7132 GB, free: 70.02 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.598e-06/2.017, allocations: 8 kB / 0.7132 GB, free: 70.01 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.414e-06/2.017, allocations: 3.984 kB / 0.7132 GB, free: 70.01 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.367e-06/2.017, allocations: 0 / 0.7132 GB, free: 70.01 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003704/2.021, allocations: 1.645 MB / 0.7148 GB, free: 68.31 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.985e-06/2.021, allocations: 4 kB / 0.7148 GB, free: 68.3 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009452/2.022, allocations: 111.8 kB / 0.7149 GB, free: 68.2 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002367/2.024, allocations: 332.5 kB / 0.7152 GB, free: 67.87 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001335/2.024, allocations: 12 kB / 0.7152 GB, free: 67.86 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009627/2.025, allocations: 0.806 MB / 0.716 GB, free: 67.02 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.789e-06/2.025, allocations: 4.031 kB / 0.716 GB, free: 67.02 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002508/2.028, allocations: 1.235 MB / 0.7172 GB, free: 65.75 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002713/2.028, allocations: 160.2 kB / 0.7174 GB, free: 65.57 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001803/2.028, allocations: 12 kB / 0.7174 GB, free: 65.56 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008594/2.029, allocations: 35.97 kB / 0.7174 GB, free: 65.53 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001454/2.029, allocations: 52.48 kB / 0.7175 GB, free: 65.48 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.135e-05/2.029, allocations: 31.98 kB / 0.7175 GB, free: 65.45 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0007183/2.03, allocations: 435.1 kB / 0.7179 GB, free: 65.03 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.01e-07/2.03, allocations: 0 / 0.7179 GB, free: 65.03 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002422/2.032, allocations: 0.5815 MB / 0.7185 GB, free: 64.45 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank2.aboveLevel[1]) * Number of discrete states: 2 (tank2.aboveLevel[1],tank1.aboveLevel[1]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 53 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.004356/2.037, allocations: 2.429 MB / 0.7208 GB, free: 62.01 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003062/2.04, allocations: 1.104 MB / 0.7219 GB, free: 60.91 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.043e-06/2.04, allocations: 0 / 0.7219 GB, free: 60.91 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009569/2.041, allocations: 369.5 kB / 0.7223 GB, free: 60.55 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002678/2.044, allocations: 334.5 kB / 0.7226 GB, free: 60.23 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004264/2.048, allocations: 1.51 MB / 0.7241 GB, free: 58.67 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005424/2.049, allocations: 0.9879 MB / 0.725 GB, free: 57.66 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.001854/2.05, allocations: 321.7 kB / 0.7253 GB, free: 57.34 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004931/2.051, allocations: 243.3 kB / 0.7256 GB, free: 57.1 MB / 362.7 MB Notification: Performance of SimCode: time 1.613e-06/2.051, allocations: 0 / 0.7256 GB, free: 57.1 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06941/2.12, allocations: 28.01 MB / 0.7529 GB, free: 29.1 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001564/2.121, allocations: 180.2 kB / 0.7531 GB, free: 28.88 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.798/5.919, allocations: 0 / 0.7531 GB, free: 28.88 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks_res.mat does not exist to compare? outputFormat=mat