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.033/2.033, allocations: 194.9 MB / 208 MB, free: 3.184 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 4.012e-05/4.025e-05, allocations: 4 kB / 255.5 MB, free: 2.621 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0983/0.09838, allocations: 44.51 MB / 300 MB, free: 6.055 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9897/1.088, allocations: 317.2 MB / 0.6026 GB, free: 69.24 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003197/1.089, allocations: 85.45 kB / 0.6027 GB, free: 69.2 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7778/1.866, allocations: 135.7 MB / 0.7353 GB, free: 108.1 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.463e-06/1.866, allocations: 0 / 0.7353 GB, free: 108.1 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001063/1.867, allocations: 20 kB / 0.7353 GB, free: 108.1 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.002934/1.87, allocations: 1.031 MB / 0.7363 GB, free: 107 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.162e-05/1.87, allocations: 12.03 kB / 0.7363 GB, free: 107 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000183/1.87, allocations: 86.52 kB / 0.7364 GB, free: 106.9 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004361/1.87, allocations: 87.09 kB / 0.7365 GB, free: 106.9 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001673/1.872, allocations: 0.5832 MB / 0.7371 GB, free: 106.2 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.38e-05/1.872, allocations: 37.69 kB / 0.7371 GB, free: 106.2 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000124/1.872, allocations: 50.27 kB / 0.7371 GB, free: 106.2 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001652/1.874, allocations: 0.7226 MB / 0.7378 GB, free: 105.4 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.923e-05/1.874, allocations: 0 / 0.7378 GB, free: 105.4 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001008/1.874, allocations: 19.75 kB / 0.7379 GB, free: 105.4 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.891e-05/1.874, allocations: 44.97 kB / 0.7379 GB, free: 105.4 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001613/1.876, allocations: 0.6714 MB / 0.7386 GB, free: 104.7 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006239/1.882, allocations: 2.864 MB / 0.7414 GB, free: 101.7 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001059/1.883, allocations: 464.6 kB / 0.7418 GB, free: 101.2 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005361/1.884, allocations: 246.1 kB / 0.742 GB, free: 101 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003352/1.884, allocations: 344.8 kB / 0.7424 GB, free: 100.6 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.49e-05/1.884, allocations: 50.92 kB / 0.7424 GB, free: 100.5 MB / 410.7 MB Notification: Performance of pre-optimization done (n=48): time 3.336e-06/1.884, allocations: 0 / 0.7424 GB, free: 100.5 MB / 410.7 MB Notification: Performance of matching and sorting (n=58): time 0.006345/1.89, allocations: 1.818 MB / 0.7442 GB, free: 98.62 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.808e-05/1.89, allocations: 89.67 kB / 0.7443 GB, free: 98.51 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001029/1.892, allocations: 0.5384 MB / 0.7448 GB, free: 97.97 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001359/1.892, allocations: 37.7 kB / 0.7448 GB, free: 97.93 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002656/1.892, allocations: 331.4 kB / 0.7452 GB, free: 97.6 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001996/1.892, allocations: 202.5 kB / 0.7453 GB, free: 97.4 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.942e-05/1.892, allocations: 12 kB / 0.7454 GB, free: 97.39 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001261/1.892, allocations: 382.8 kB / 0.7457 GB, free: 97.01 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006858/1.893, allocations: 285.4 kB / 0.746 GB, free: 96.73 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007645/1.894, allocations: 439.1 kB / 0.7464 GB, free: 96.24 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007636/1.895, allocations: 329.9 kB / 0.7467 GB, free: 95.92 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.07e-06/1.895, allocations: 0 / 0.7467 GB, free: 95.92 MB / 410.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.0022/1.897, allocations: 0.922 MB / 0.7476 GB, free: 94.98 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003993/1.897, allocations: 1.749 MB / 0.7493 GB, free: 93.1 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.38e-05/1.897, allocations: 8 kB / 0.7493 GB, free: 93.09 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003316/1.901, allocations: 352.4 kB / 0.7497 GB, free: 92.75 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001201/1.902, allocations: 147.8 kB / 0.7498 GB, free: 92.6 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00122/1.903, allocations: 0.8126 MB / 0.7506 GB, free: 91.77 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001073/1.904, allocations: 55.88 kB / 0.7507 GB, free: 91.71 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.721e-05/1.904, allocations: 35.98 kB / 0.7507 GB, free: 91.68 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.421e-05/1.904, allocations: 4 kB / 0.7507 GB, free: 91.67 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001882/1.906, allocations: 0.7684 MB / 0.7515 GB, free: 90.89 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.204e-05/1.906, allocations: 8 kB / 0.7515 GB, free: 90.89 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002454/1.909, allocations: 225.2 kB / 0.7517 GB, free: 90.66 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001196/1.91, allocations: 159.7 kB / 0.7518 GB, free: 90.51 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008518/1.911, allocations: 0.689 MB / 0.7525 GB, free: 89.79 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001011/1.912, allocations: 51.89 kB / 0.7526 GB, free: 89.74 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001007/1.912, allocations: 39.94 kB / 0.7526 GB, free: 89.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.0002878/1.912, allocations: 140.9 kB / 0.7527 GB, free: 89.56 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001803/1.912, allocations: 75.16 kB / 0.7528 GB, free: 89.48 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002218/1.915, allocations: 0.836 MB / 0.7536 GB, free: 88.65 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.029e-05/1.915, allocations: 8 kB / 0.7536 GB, free: 88.64 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.023e-06/1.915, allocations: 0 / 0.7536 GB, free: 88.64 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.138e-05/1.915, allocations: 4.047 kB / 0.7536 GB, free: 88.64 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003815/1.919, allocations: 1.638 MB / 0.7552 GB, free: 86.95 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.742e-06/1.919, allocations: 0 / 0.7552 GB, free: 86.95 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009568/1.92, allocations: 107.9 kB / 0.7553 GB, free: 86.84 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002396/1.922, allocations: 336.5 kB / 0.7556 GB, free: 86.51 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001022/1.922, allocations: 19.98 kB / 0.7557 GB, free: 86.49 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001011/1.923, allocations: 0.802 MB / 0.7564 GB, free: 85.66 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.182e-06/1.923, allocations: 3.984 kB / 0.7565 GB, free: 85.66 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002656/1.926, allocations: 1.243 MB / 0.7577 GB, free: 84.38 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003272/1.926, allocations: 152.2 kB / 0.7578 GB, free: 84.21 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001704/1.926, allocations: 15.98 kB / 0.7578 GB, free: 84.2 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008829/1.927, allocations: 39.83 kB / 0.7579 GB, free: 84.16 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001621/1.928, allocations: 56.44 kB / 0.7579 GB, free: 84.1 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.399e-05/1.928, allocations: 35.91 kB / 0.758 GB, free: 84.07 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0007502/1.928, allocations: 431.2 kB / 0.7584 GB, free: 83.65 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.81e-07/1.928, allocations: 0 / 0.7584 GB, free: 83.65 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002381/1.931, allocations: 0.5932 MB / 0.7589 GB, free: 83.05 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.004485/1.935, allocations: 2.408 MB / 0.7613 GB, free: 80.64 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003178/1.939, allocations: 1.131 MB / 0.7624 GB, free: 79.51 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.474e-06/1.939, allocations: 0 / 0.7624 GB, free: 79.51 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009959/1.94, allocations: 363.1 kB / 0.7627 GB, free: 79.15 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003048/1.943, allocations: 338.2 kB / 0.7631 GB, free: 78.83 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004765/1.947, allocations: 1.517 MB / 0.7645 GB, free: 77.27 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005006/1.948, allocations: 0.984 MB / 0.7655 GB, free: 76.26 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.00191/1.95, allocations: 320.1 kB / 0.7658 GB, free: 75.95 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005068/1.95, allocations: 255.3 kB / 0.7661 GB, free: 75.7 MB / 410.7 MB Notification: Performance of SimCode: time 1.674e-06/1.95, allocations: 0 / 0.7661 GB, free: 75.7 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07942/2.03, allocations: 28.01 MB / 0.7934 GB, free: 47.7 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002032/2.03, allocations: 185.7 kB / 0.7936 GB, free: 47.47 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.915/5.945, allocations: 0 / 0.7936 GB, free: 47.47 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