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 1.899/1.899, allocations: 194.9 MB / 208 MB, free: 3.262 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.123e-05/3.111e-05, allocations: 4 kB / 255.5 MB, free: 2.621 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09889/0.09894, allocations: 44.5 MB / 300 MB, free: 6.062 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9727/1.072, allocations: 317.2 MB / 0.6027 GB, free: 70.1 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002969/1.072, allocations: 85.2 kB / 0.6028 GB, free: 70.06 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7487/1.821, allocations: 135.7 MB / 0.7353 GB, free: 108.7 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.455e-06/1.821, allocations: 0 / 0.7353 GB, free: 108.7 MB / 410.7 MB Notification: Performance of Transformations before backend: time 8.716e-05/1.821, allocations: 20 kB / 0.7353 GB, free: 108.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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.003194/1.824, allocations: 1.028 MB / 0.7363 GB, free: 107.7 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.511e-05/1.824, allocations: 11.97 kB / 0.7363 GB, free: 107.6 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002396/1.825, allocations: 97.78 kB / 0.7364 GB, free: 107.5 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004911/1.825, allocations: 83.11 kB / 0.7365 GB, free: 107.5 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001771/1.827, allocations: 0.5704 MB / 0.7371 GB, free: 106.9 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.54e-05/1.827, allocations: 46.78 kB / 0.7371 GB, free: 106.8 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001503/1.827, allocations: 50.33 kB / 0.7372 GB, free: 106.8 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001728/1.829, allocations: 0.7177 MB / 0.7379 GB, free: 106 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.147e-05/1.829, allocations: 0 / 0.7379 GB, free: 106 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001157/1.829, allocations: 22.5 kB / 0.7379 GB, free: 106 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001046/1.829, allocations: 44.97 kB / 0.7379 GB, free: 106 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001644/1.831, allocations: 0.6655 MB / 0.7386 GB, free: 105.3 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006532/1.837, allocations: 2.86 MB / 0.7414 GB, free: 102.3 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001508/1.839, allocations: 455.7 kB / 0.7418 GB, free: 101.8 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008836/1.84, allocations: 254.1 kB / 0.7421 GB, free: 101.6 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003674/1.84, allocations: 343.5 kB / 0.7424 GB, free: 101.2 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.41e-05/1.84, allocations: 39 kB / 0.7424 GB, free: 101.1 MB / 410.7 MB Notification: Performance of pre-optimization done (n=48): time 3.217e-06/1.84, allocations: 0 / 0.7424 GB, free: 101.1 MB / 410.7 MB Notification: Performance of matching and sorting (n=58): time 0.00635/1.847, allocations: 1.83 MB / 0.7442 GB, free: 99.24 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.624e-05/1.847, allocations: 81.67 kB / 0.7443 GB, free: 99.14 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009239/1.848, allocations: 0.5501 MB / 0.7448 GB, free: 98.58 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 8.775e-05/1.848, allocations: 37.7 kB / 0.7449 GB, free: 98.54 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002516/1.848, allocations: 324.1 kB / 0.7452 GB, free: 98.22 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001862/1.848, allocations: 204.2 kB / 0.7454 GB, free: 98.02 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.13e-05/1.848, allocations: 16 kB / 0.7454 GB, free: 98.01 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001216/1.848, allocations: 378.8 kB / 0.7457 GB, free: 97.63 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006925/1.849, allocations: 277.5 kB / 0.746 GB, free: 97.36 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007486/1.85, allocations: 439.1 kB / 0.7464 GB, free: 96.87 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007291/1.851, allocations: 334 kB / 0.7467 GB, free: 96.54 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.769e-06/1.851, allocations: 0 / 0.7467 GB, free: 96.54 MB / 410.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002195/1.853, allocations: 0.9059 MB / 0.7476 GB, free: 95.62 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003566/1.853, allocations: 1.746 MB / 0.7493 GB, free: 93.75 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.382e-05/1.853, allocations: 4 kB / 0.7493 GB, free: 93.74 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003272/1.857, allocations: 348.4 kB / 0.7497 GB, free: 93.4 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001265/1.858, allocations: 155.8 kB / 0.7498 GB, free: 93.25 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001225/1.859, allocations: 0.817 MB / 0.7506 GB, free: 92.41 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001213/1.86, allocations: 55.88 kB / 0.7507 GB, free: 92.35 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001011/1.861, allocations: 28 kB / 0.7507 GB, free: 92.32 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.545e-05/1.861, allocations: 4 kB / 0.7507 GB, free: 92.32 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001968/1.863, allocations: 0.7687 MB / 0.7514 GB, free: 91.55 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.351e-05/1.863, allocations: 4 kB / 0.7515 GB, free: 91.54 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002478/1.865, allocations: 220.9 kB / 0.7517 GB, free: 91.32 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001264/1.866, allocations: 151.8 kB / 0.7518 GB, free: 91.18 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008487/1.867, allocations: 0.6968 MB / 0.7525 GB, free: 90.45 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001044/1.868, allocations: 55.88 kB / 0.7525 GB, free: 90.4 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.43e-05/1.868, allocations: 31.94 kB / 0.7526 GB, free: 90.37 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.0002943/1.869, allocations: 148.9 kB / 0.7527 GB, free: 90.21 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002031/1.869, allocations: 75.09 kB / 0.7528 GB, free: 90.14 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002229/1.871, allocations: 0.8203 MB / 0.7536 GB, free: 89.32 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.061e-05/1.871, allocations: 12.06 kB / 0.7536 GB, free: 89.31 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.184e-06/1.871, allocations: 4 kB / 0.7536 GB, free: 89.3 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.148e-05/1.871, allocations: 3.984 kB / 0.7536 GB, free: 89.3 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003972/1.875, allocations: 1.638 MB / 0.7552 GB, free: 87.61 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.384e-06/1.875, allocations: 4 kB / 0.7552 GB, free: 87.6 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009565/1.876, allocations: 107.9 kB / 0.7553 GB, free: 87.5 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002383/1.879, allocations: 344.5 kB / 0.7556 GB, free: 87.16 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.562e-05/1.879, allocations: 12 kB / 0.7556 GB, free: 87.14 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009586/1.88, allocations: 0.7942 MB / 0.7564 GB, free: 86.32 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/1.88, allocations: 4.062 kB / 0.7564 GB, free: 86.32 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00252/1.882, allocations: 1.238 MB / 0.7576 GB, free: 85.05 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002721/1.883, allocations: 152.3 kB / 0.7578 GB, free: 84.88 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001645/1.883, allocations: 16 kB / 0.7578 GB, free: 84.86 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000852/1.884, allocations: 47.81 kB / 0.7578 GB, free: 84.82 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001494/1.884, allocations: 52.44 kB / 0.7579 GB, free: 84.77 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.228e-05/1.884, allocations: 31.92 kB / 0.7579 GB, free: 84.73 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0007119/1.885, allocations: 435.1 kB / 0.7583 GB, free: 84.32 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.71e-07/1.885, allocations: 4 kB / 0.7583 GB, free: 84.31 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002257/1.887, allocations: 0.5854 MB / 0.7589 GB, free: 83.73 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.004297/1.891, allocations: 2.428 MB / 0.7613 GB, free: 81.29 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003035/1.894, allocations: 1.102 MB / 0.7624 GB, free: 80.19 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.082e-06/1.894, allocations: 0 / 0.7624 GB, free: 80.19 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009127/1.895, allocations: 367.9 kB / 0.7627 GB, free: 79.83 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002552/1.898, allocations: 337.5 kB / 0.763 GB, free: 79.51 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004004/1.902, allocations: 1.513 MB / 0.7645 GB, free: 77.96 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000471/1.902, allocations: 0.984 MB / 0.7655 GB, free: 76.94 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001727/1.904, allocations: 323.3 kB / 0.7658 GB, free: 76.62 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004548/1.905, allocations: 247.3 kB / 0.766 GB, free: 76.38 MB / 410.7 MB Notification: Performance of SimCode: time 9.02e-07/1.905, allocations: 0 / 0.766 GB, free: 76.38 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07627/1.981, allocations: 27.99 MB / 0.7934 GB, free: 48.4 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002813/1.981, allocations: 180.5 kB / 0.7935 GB, free: 48.18 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.93/5.911, allocations: 0 / 0.7935 GB, free: 48.18 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