Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.EmptyTanks,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Fluid_Examples_Tanks_EmptyTanks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.031/2.031, allocations: 194.9 MB / 208.4 MB, free: 3.246 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.204e-05/3.209e-05, allocations: 8 kB / 255.4 MB, free: 3.105 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1018/0.1018, allocations: 44.5 MB / 300 MB, free: 6.543 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.024/1.126, allocations: 316.4 MB / 0.6019 GB, free: 70.41 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000274/1.126, allocations: 74.06 kB / 0.602 GB, free: 70.38 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7402/1.867, allocations: 130.2 MB / 0.7292 GB, free: 110.7 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.984e-06/1.867, allocations: 0 / 0.7292 GB, free: 110.7 MB / 410.7 MB Notification: Performance of Transformations before backend: time 8.394e-05/1.867, allocations: 27.53 kB / 0.7292 GB, free: 110.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: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.003845/1.871, allocations: 1.084 MB / 0.7303 GB, free: 109.9 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.051e-05/1.871, allocations: 7.625 kB / 0.7303 GB, free: 109.9 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002961/1.871, allocations: 98.92 kB / 0.7304 GB, free: 109.9 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005373/1.872, allocations: 101 kB / 0.7305 GB, free: 109.8 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002083/1.874, allocations: 0.653 MB / 0.7311 GB, free: 109.4 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001277/1.874, allocations: 105.5 kB / 0.7312 GB, free: 109.3 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000163/1.874, allocations: 56.52 kB / 0.7312 GB, free: 109.3 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002129/1.876, allocations: 0.877 MB / 0.7321 GB, free: 108.9 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.224e-05/1.876, allocations: 0 / 0.7321 GB, free: 108.9 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001245/1.876, allocations: 23.19 kB / 0.7321 GB, free: 108.9 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001217/1.876, allocations: 51.02 kB / 0.7322 GB, free: 108.9 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001998/1.879, allocations: 0.8038 MB / 0.733 GB, free: 108.7 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008758/1.887, allocations: 3.311 MB / 0.7362 GB, free: 106.4 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001482/1.889, allocations: 0.6312 MB / 0.7368 GB, free: 105.9 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007825/1.89, allocations: 366.3 kB / 0.7372 GB, free: 105.6 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00428/1.894, allocations: 2.067 MB / 0.7392 GB, free: 103.3 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.085e-05/1.894, allocations: 43.12 kB / 0.7392 GB, free: 103.3 MB / 410.7 MB Notification: Performance of pre-optimization done (n=56): time 3.917e-06/1.894, allocations: 0 / 0.7392 GB, free: 103.3 MB / 410.7 MB Notification: Performance of matching and sorting (n=66): time 0.007227/1.901, allocations: 2.214 MB / 0.7414 GB, free: 101 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.905e-05/1.901, allocations: 85.66 kB / 0.7415 GB, free: 100.9 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00111/1.903, allocations: 0.5894 MB / 0.742 GB, free: 100.3 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000148/1.903, allocations: 37.7 kB / 0.7421 GB, free: 100.3 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002217/1.903, allocations: 362 kB / 0.7424 GB, free: 99.93 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002413/1.903, allocations: 233.9 kB / 0.7426 GB, free: 99.7 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.564e-05/1.903, allocations: 16 kB / 0.7427 GB, free: 99.68 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 9.092e-05/1.903, allocations: 338.8 kB / 0.743 GB, free: 99.34 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008476/1.904, allocations: 345.4 kB / 0.7433 GB, free: 99.01 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009329/1.905, allocations: 0.4917 MB / 0.7438 GB, free: 98.46 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009167/1.906, allocations: 405.9 kB / 0.7442 GB, free: 98.06 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.861e-06/1.906, allocations: 4 kB / 0.7442 GB, free: 98.06 MB / 410.7 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.002756/1.909, allocations: 1.078 MB / 0.7452 GB, free: 96.97 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000344/1.909, allocations: 1.564 MB / 0.7468 GB, free: 95.29 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.594e-05/1.909, allocations: 7.984 kB / 0.7468 GB, free: 95.28 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001953/1.911, allocations: 440.2 kB / 0.7472 GB, free: 94.86 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001316/1.913, allocations: 155.7 kB / 0.7473 GB, free: 94.7 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001737/1.914, allocations: 1.028 MB / 0.7483 GB, free: 93.65 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001276/1.916, allocations: 47.92 kB / 0.7484 GB, free: 93.6 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001165/1.916, allocations: 31.98 kB / 0.7484 GB, free: 93.57 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.413e-05/1.916, allocations: 4 kB / 0.7484 GB, free: 93.57 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002349/1.918, allocations: 0.9016 MB / 0.7493 GB, free: 92.66 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.113e-05/1.918, allocations: 4 kB / 0.7493 GB, free: 92.65 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008931/1.919, allocations: 252.6 kB / 0.7495 GB, free: 92.41 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001259/1.92, allocations: 163.8 kB / 0.7497 GB, free: 92.25 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009675/1.921, allocations: 0.802 MB / 0.7505 GB, free: 91.42 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008228/1.922, allocations: 43.97 kB / 0.7505 GB, free: 91.38 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.474e-05/1.922, allocations: 27.98 kB / 0.7506 GB, free: 91.35 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 4 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[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 {4 9} Notification: Performance of prepare postOptimizeDAE: time 0.000335/1.923, allocations: 156.7 kB / 0.7507 GB, free: 91.19 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002645/1.923, allocations: 79.06 kB / 0.7508 GB, free: 91.11 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002853/1.926, allocations: 1.082 MB / 0.7518 GB, free: 90.01 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.121e-05/1.926, allocations: 8 kB / 0.7518 GB, free: 90 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.548e-06/1.926, allocations: 7.953 kB / 0.7519 GB, free: 90 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.103e-05/1.926, allocations: 3.984 kB / 0.7519 GB, free: 89.99 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004508/1.93, allocations: 1.991 MB / 0.7538 GB, free: 87.96 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.043e-06/1.931, allocations: 0 / 0.7538 GB, free: 87.96 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001092/1.932, allocations: 119.9 kB / 0.7539 GB, free: 87.84 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001889/1.934, allocations: 440.5 kB / 0.7543 GB, free: 87.41 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000127/1.934, allocations: 15.98 kB / 0.7543 GB, free: 87.39 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001572/1.935, allocations: 1.03 MB / 0.7554 GB, free: 86.34 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.474e-06/1.935, allocations: 0 / 0.7554 GB, free: 86.34 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003491/1.939, allocations: 1.58 MB / 0.7569 GB, free: 84.74 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007204/1.94, allocations: 248 kB / 0.7571 GB, free: 84.48 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001835/1.94, allocations: 16 kB / 0.7572 GB, free: 84.46 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001107/1.941, allocations: 51.86 kB / 0.7572 GB, free: 84.41 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001898/1.941, allocations: 60.69 kB / 0.7573 GB, free: 84.36 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001052/1.941, allocations: 27.97 kB / 0.7573 GB, free: 84.33 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.000817/1.942, allocations: 467.1 kB / 0.7577 GB, free: 83.88 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.41e-07/1.942, allocations: 0 / 0.7577 GB, free: 83.88 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002595/1.945, allocations: 0.6362 MB / 0.7584 GB, free: 83.24 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 4 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 57 * 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 {4 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.005403/1.95, allocations: 2.616 MB / 0.7609 GB, free: 80.63 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003954/1.954, allocations: 1.321 MB / 0.7622 GB, free: 79.31 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.863e-06/1.954, allocations: 0 / 0.7622 GB, free: 79.31 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001454/1.956, allocations: 454.6 kB / 0.7626 GB, free: 78.87 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002922/1.959, allocations: 350.2 kB / 0.763 GB, free: 78.53 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006633/1.965, allocations: 1.733 MB / 0.7647 GB, free: 76.75 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000602/1.966, allocations: 1.007 MB / 0.7656 GB, free: 75.71 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008361/1.967, allocations: 299.2 kB / 0.7659 GB, free: 75.42 MB / 410.7 MB Notification: Performance of SimCode: time 1.903e-06/1.967, allocations: 0 / 0.7659 GB, free: 75.42 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.134/5.101, allocations: 22.57 MB / 0.788 GB, free: 52.9 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Fluid.Examples.Tanks.EmptyTanks_res.mat does not exist to compare? outputFormat=mat