Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks,fileNamePrefix="Modelica_3_2_2_Modelica_Fluid_Examples_AST_BatchPlant_Test_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.365/2.365, allocations: 195 MB / 202.8 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.857e-05/2.858e-05, allocations: 4 kB / 249.7 MB, free: 14.81 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3226/0.3226, allocations: 44.49 MB / 294.2 MB, free: 14.35 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.027/1.349, allocations: 316.5 MB / 0.5964 GB, free: 113.2 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003116/1.35, allocations: 88.89 kB / 0.5965 GB, free: 113.2 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.521/1.871, allocations: 135 MB / 0.7283 GB, free: 5.512 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.216e-06/1.871, allocations: 7.984 kB / 0.7283 GB, free: 5.504 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001004/1.871, allocations: 16 kB / 0.7284 GB, free: 5.488 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.003701/1.875, allocations: 1.025 MB / 0.7294 GB, free: 4.414 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.374e-05/1.875, allocations: 12.03 kB / 0.7294 GB, free: 4.402 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000714/1.876, allocations: 87.05 kB / 0.7294 GB, free: 4.316 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002028/1.878, allocations: 0.5818 MB / 0.73 GB, free: 3.695 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.494e-05/1.878, allocations: 16 kB / 0.73 GB, free: 3.68 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002923/1.878, allocations: 27.98 kB / 0.7301 GB, free: 3.652 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001888/1.88, allocations: 0.6039 MB / 0.7306 GB, free: 3.047 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001806/1.882, allocations: 0.6621 MB / 0.7313 GB, free: 2.352 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.434e-05/1.882, allocations: 3.953 kB / 0.7313 GB, free: 2.348 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001122/1.882, allocations: 4 kB / 0.7313 GB, free: 2.344 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001142/1.882, allocations: 41.28 kB / 0.7313 GB, free: 2.301 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3349/2.217, allocations: 2.747 MB / 0.734 GB, free: 95.46 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001513/2.219, allocations: 441.4 kB / 0.7344 GB, free: 95.43 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007106/2.219, allocations: 240.5 kB / 0.7347 GB, free: 95.42 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004048/2.22, allocations: 340.7 kB / 0.735 GB, free: 95.04 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.011e-05/2.22, allocations: 45 kB / 0.735 GB, free: 95 MB / 410.7 MB Notification: Performance of pre-optimization done (n=48): time 4.479e-06/2.22, allocations: 0 / 0.735 GB, free: 95 MB / 410.7 MB Notification: Performance of matching and sorting (n=58): time 0.01003/2.23, allocations: 1.816 MB / 0.7368 GB, free: 94.66 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.52e-05/2.23, allocations: 83.86 kB / 0.7369 GB, free: 94.57 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001009/2.231, allocations: 449 kB / 0.7373 GB, free: 94.46 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002204/2.231, allocations: 31.94 kB / 0.7374 GB, free: 94.43 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003335/2.232, allocations: 327.1 kB / 0.7377 GB, free: 94.28 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003126/2.232, allocations: 202.3 kB / 0.7379 GB, free: 94.18 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.363e-05/2.232, allocations: 1 kB / 0.7379 GB, free: 94.18 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000164/2.232, allocations: 373.4 kB / 0.7382 GB, free: 93.87 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000764/2.233, allocations: 269.3 kB / 0.7385 GB, free: 93.87 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008883/2.234, allocations: 424.1 kB / 0.7389 GB, free: 93.7 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006971/2.241, allocations: 0.8455 MB / 0.7397 GB, free: 93.69 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.85e-05/2.241, allocations: 2.344 kB / 0.7397 GB, free: 93.69 MB / 410.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.008999/2.25, allocations: 1.38 MB / 0.7411 GB, free: 93.6 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004833/2.251, allocations: 1.744 MB / 0.7428 GB, free: 91.79 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.369e-05/2.251, allocations: 4.875 kB / 0.7428 GB, free: 91.79 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009949/2.252, allocations: 168.7 kB / 0.7429 GB, free: 91.78 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001341/2.253, allocations: 151.4 kB / 0.7431 GB, free: 91.78 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002732/2.256, allocations: 0.9537 MB / 0.744 GB, free: 91.26 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001219/2.257, allocations: 34.25 kB / 0.744 GB, free: 91.25 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000163/2.257, allocations: 30.34 kB / 0.7441 GB, free: 91.25 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.636e-05/2.257, allocations: 3.75 kB / 0.7441 GB, free: 91.25 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008015/2.265, allocations: 1.211 MB / 0.7452 GB, free: 91.23 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.29e-05/2.266, allocations: 3.812 kB / 0.7452 GB, free: 91.23 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006717/2.266, allocations: 106 kB / 0.7453 GB, free: 91.22 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001264/2.268, allocations: 161.1 kB / 0.7455 GB, free: 91.22 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001856/2.269, allocations: 0.8009 MB / 0.7463 GB, free: 90.7 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001145/2.271, allocations: 32.78 kB / 0.7463 GB, free: 90.7 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001296/2.271, allocations: 31.86 kB / 0.7463 GB, free: 90.7 MB / 410.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.0003456/2.271, allocations: 129.1 kB / 0.7465 GB, free: 90.59 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003312/2.274, allocations: 0.7374 MB / 0.7472 GB, free: 90.51 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003202/2.275, allocations: 69.41 kB / 0.7473 GB, free: 90.47 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00321/2.278, allocations: 0.8128 MB / 0.7481 GB, free: 90.4 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.469e-05/2.278, allocations: 7.094 kB / 0.7481 GB, free: 90.4 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.686e-06/2.278, allocations: 0 / 0.7481 GB, free: 90.4 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.351e-05/2.278, allocations: 3.469 kB / 0.7481 GB, free: 90.4 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005218/2.283, allocations: 1.574 MB / 0.7496 GB, free: 90.09 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.838e-06/2.284, allocations: 0 / 0.7496 GB, free: 90.09 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001008/2.285, allocations: 113.5 kB / 0.7497 GB, free: 90.09 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008484/2.285, allocations: 162.3 kB / 0.7499 GB, free: 90.08 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001323/2.286, allocations: 6.5 kB / 0.7499 GB, free: 90.08 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001803/2.287, allocations: 0.8772 MB / 0.7507 GB, free: 89.55 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.764e-06/2.287, allocations: 3.188 kB / 0.7507 GB, free: 89.55 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003832/2.291, allocations: 1.244 MB / 0.7519 GB, free: 89.3 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003579/2.292, allocations: 149.4 kB / 0.7521 GB, free: 89.18 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000232/2.292, allocations: 7.266 kB / 0.7521 GB, free: 89.18 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009012/2.293, allocations: 26.06 kB / 0.7521 GB, free: 89.18 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002001/2.293, allocations: 55.83 kB / 0.7522 GB, free: 89.17 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.649e-05/2.293, allocations: 26.02 kB / 0.7522 GB, free: 89.17 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0005853/2.294, allocations: 346.7 kB / 0.7525 GB, free: 89.09 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.52e-07/2.294, allocations: 0 / 0.7525 GB, free: 89.09 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002753/2.297, allocations: 0.5428 MB / 0.7531 GB, free: 89.09 MB / 410.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.006303/2.303, allocations: 2.402 MB / 0.7554 GB, free: 88.18 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003249/2.306, allocations: 1.069 MB / 0.7564 GB, free: 88.17 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.927e-06/2.306, allocations: 0 / 0.7564 GB, free: 88.17 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009783/2.307, allocations: 356.1 kB / 0.7568 GB, free: 88.16 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002827/2.31, allocations: 287.3 kB / 0.7571 GB, free: 88.16 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004923/2.315, allocations: 1.443 MB / 0.7585 GB, free: 87.82 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005373/2.316, allocations: 0.9874 MB / 0.7594 GB, free: 87.12 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001944/2.318, allocations: 296.8 kB / 0.7597 GB, free: 87.11 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006146/2.318, allocations: 253.3 kB / 0.76 GB, free: 87.1 MB / 410.7 MB Notification: Performance of SimCode: time 1.262e-06/2.318, allocations: 2.625 kB / 0.76 GB, free: 87.1 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08697/2.405, allocations: 24.56 MB / 0.7839 GB, free: 85.97 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002219/2.406, allocations: 139.6 kB / 0.7841 GB, free: 85.79 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.012/6.418, allocations: 0 / 0.7841 GB, free: 85.79 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks_res.mat does not exist to compare? outputFormat=mat