Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_OneTank",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.929/1.929, allocations: 194.9 MB / 208.4 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.117e-05/3.135e-05, allocations: 4 kB / 255.5 MB, free: 3.098 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09558/0.09564, allocations: 44.5 MB / 300 MB, free: 6.527 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.994/1.09, allocations: 321.4 MB / 0.6068 GB, free: 66.02 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002933/1.09, allocations: 86.27 kB / 0.6069 GB, free: 65.98 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7606/1.851, allocations: 141.4 MB / 0.745 GB, free: 98.79 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.873e-06/1.851, allocations: 0 / 0.745 GB, free: 98.79 MB / 410.7 MB Notification: Performance of Transformations before backend: time 8.466e-05/1.851, allocations: 26.98 kB / 0.745 GB, free: 98.77 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: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.003301/1.854, allocations: 1.07 MB / 0.7461 GB, free: 97.65 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.062e-05/1.854, allocations: 12.02 kB / 0.7461 GB, free: 97.64 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002609/1.855, allocations: 98.11 kB / 0.7462 GB, free: 97.54 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005797/1.855, allocations: 98.92 kB / 0.7463 GB, free: 97.44 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002126/1.857, allocations: 0.6454 MB / 0.7469 GB, free: 96.77 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001051/1.857, allocations: 92.34 kB / 0.747 GB, free: 96.66 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001361/1.858, allocations: 49.56 kB / 0.7471 GB, free: 96.62 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001793/1.859, allocations: 0.7854 MB / 0.7478 GB, free: 95.79 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.105e-05/1.859, allocations: 7.938 kB / 0.7478 GB, free: 95.78 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001114/1.86, allocations: 16 kB / 0.7478 GB, free: 95.76 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.219e-05/1.86, allocations: 40.97 kB / 0.7479 GB, free: 95.72 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001544/1.861, allocations: 0.6557 MB / 0.7485 GB, free: 95.07 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006807/1.868, allocations: 3.427 MB / 0.7519 GB, free: 91.45 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000886/1.869, allocations: 381 kB / 0.7522 GB, free: 91.07 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004878/1.869, allocations: 245.1 kB / 0.7525 GB, free: 90.82 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002417/1.872, allocations: 1.342 MB / 0.7538 GB, free: 89.36 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005803/1.873, allocations: 292.9 kB / 0.7541 GB, free: 89.05 MB / 410.7 MB Notification: Performance of pre-optimization done (n=35): time 2.916e-06/1.873, allocations: 0 / 0.7541 GB, free: 89.05 MB / 410.7 MB Notification: Performance of matching and sorting (n=40): time 0.004185/1.877, allocations: 1.399 MB / 0.7554 GB, free: 87.58 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.943e-05/1.877, allocations: 174.4 kB / 0.7556 GB, free: 87.37 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00106/1.878, allocations: 0.6012 MB / 0.7562 GB, free: 86.77 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001202/1.878, allocations: 37.7 kB / 0.7562 GB, free: 86.72 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002965/1.878, allocations: 441 kB / 0.7566 GB, free: 86.29 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001565/1.879, allocations: 139.5 kB / 0.7568 GB, free: 86.16 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.822e-05/1.879, allocations: 16 kB / 0.7568 GB, free: 86.14 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 8.546e-05/1.879, allocations: 338.8 kB / 0.7571 GB, free: 85.8 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005903/1.879, allocations: 245.5 kB / 0.7573 GB, free: 85.56 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007329/1.88, allocations: 0.5282 MB / 0.7579 GB, free: 84.9 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007309/1.881, allocations: 347.9 kB / 0.7582 GB, free: 84.55 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.363e-06/1.881, allocations: 4 kB / 0.7582 GB, free: 84.55 MB / 410.7 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.002308/1.883, allocations: 0.8652 MB / 0.759 GB, free: 83.67 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007706/1.884, allocations: 3.518 MB / 0.7625 GB, free: 79.88 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.248e-05/1.884, allocations: 12 kB / 0.7625 GB, free: 79.86 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009096/1.885, allocations: 128.8 kB / 0.7626 GB, free: 79.73 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001042/1.886, allocations: 147.7 kB / 0.7627 GB, free: 79.59 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007295/1.887, allocations: 0.6733 MB / 0.7634 GB, free: 78.89 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001181/1.888, allocations: 51.97 kB / 0.7635 GB, free: 78.84 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001178/1.888, allocations: 40 kB / 0.7635 GB, free: 78.8 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.445e-05/1.888, allocations: 11.89 kB / 0.7635 GB, free: 78.79 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002467/1.891, allocations: 0.8444 MB / 0.7643 GB, free: 77.94 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.008e-05/1.891, allocations: 8 kB / 0.7643 GB, free: 77.93 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005642/1.891, allocations: 109.2 kB / 0.7644 GB, free: 77.82 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009997/1.892, allocations: 155.8 kB / 0.7646 GB, free: 77.67 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005991/1.893, allocations: 0.6421 MB / 0.7652 GB, free: 77 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008276/1.894, allocations: 47.95 kB / 0.7653 GB, free: 76.95 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.631e-05/1.894, allocations: 43.98 kB / 0.7653 GB, free: 76.91 MB / 410.7 MB Warning: Assuming fixed start value for the following 2 variables: tank.level:VARIABLE(start = tank.level_start unit = "m" stateSelect=StateSelect.prefer ) "Fluid level in the tank" type: Real tank.medium.T:VARIABLE(min = max(1.0, max(1.0, 1.0)) max = min(10000.0, min(10000.0, 10000.0)) start = 293.15 unit = "K" nominal = 300.0 stateSelect=StateSelect.prefer ) "Temperature of medium" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.tank.ports_m_flow_out[1],tank.ports_m_flow_out[1],$PRE.tank.aboveLevel[1],tank.aboveLevel[1],timeTable.a,timeTable.b,timeTable.last,$PRE.timeTable.nextEvent,timeTable.nextEvent,timeTable.nextEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 1 * 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 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0003763/1.894, allocations: 198.8 kB / 0.7655 GB, free: 76.7 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002059/1.894, allocations: 71.16 kB / 0.7656 GB, free: 76.63 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001972/1.896, allocations: 0.6546 MB / 0.7662 GB, free: 75.96 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.576e-06/1.896, allocations: 0 / 0.7662 GB, free: 75.96 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.053e-06/1.897, allocations: 4 kB / 0.7662 GB, free: 75.95 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.066e-06/1.897, allocations: 7.984 kB / 0.7662 GB, free: 75.95 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003078/1.9, allocations: 1.332 MB / 0.7675 GB, free: 74.55 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.063e-06/1.9, allocations: 3.984 kB / 0.7675 GB, free: 74.55 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005577/1.9, allocations: 59.86 kB / 0.7676 GB, free: 74.49 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007495/1.901, allocations: 128.8 kB / 0.7677 GB, free: 74.36 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.073e-05/1.901, allocations: 12 kB / 0.7677 GB, free: 74.35 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006547/1.902, allocations: 0.6578 MB / 0.7683 GB, free: 73.67 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.907e-06/1.902, allocations: 3.938 kB / 0.7684 GB, free: 73.66 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00215/1.904, allocations: 0.9933 MB / 0.7693 GB, free: 72.63 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000272/1.904, allocations: 152.2 kB / 0.7695 GB, free: 72.46 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000179/1.904, allocations: 16 kB / 0.7695 GB, free: 72.45 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007171/1.905, allocations: 32.09 kB / 0.7695 GB, free: 72.42 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001253/1.905, allocations: 35.91 kB / 0.7695 GB, free: 72.38 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.884e-05/1.905, allocations: 19.98 kB / 0.7696 GB, free: 72.36 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0008096/1.906, allocations: 471.1 kB / 0.77 GB, free: 71.91 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.6e-07/1.906, allocations: 0 / 0.77 GB, free: 71.91 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002563/1.909, allocations: 0.562 MB / 0.7706 GB, free: 71.35 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (tank.medium.T,tank.level) * Number of discrete variables: 8 ($whenCondition1,tank.ports_m_flow_out[1],tank.aboveLevel[1],timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent,timeTable.nextEventScaled) * Number of discrete states: 8 (tank.aboveLevel[1],tank.ports_m_flow_out[1],timeTable.nextEvent,timeTable.last,timeTable.nextEventScaled,timeTable.b,timeTable.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 1 * 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 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.003848/1.913, allocations: 2.032 MB / 0.7726 GB, free: 69.31 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003114/1.916, allocations: 1.13 MB / 0.7737 GB, free: 68.16 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.916e-06/1.916, allocations: 1 kB / 0.7737 GB, free: 68.16 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009841/1.917, allocations: 346 kB / 0.774 GB, free: 67.81 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002144/1.919, allocations: 253.6 kB / 0.7742 GB, free: 67.56 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004582/1.924, allocations: 1.426 MB / 0.7756 GB, free: 66.09 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005057/1.924, allocations: 0.9772 MB / 0.7766 GB, free: 65.08 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005406/1.925, allocations: 263.3 kB / 0.7768 GB, free: 64.82 MB / 410.7 MB Notification: Performance of SimCode: time 1.222e-06/1.925, allocations: 0 / 0.7768 GB, free: 64.82 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.267/5.192, allocations: 19.78 MB / 0.7961 GB, free: 45.07 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank_res.mat does not exist to compare? outputFormat=mat