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.953/1.953, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.773e-05/2.786e-05, allocations: 8 kB / 249.7 MB, free: 15.19 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3151/0.3152, allocations: 44.49 MB / 294.2 MB, free: 14.21 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9716/1.287, allocations: 320.8 MB / 0.6005 GB, free: 110.9 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003067/1.287, allocations: 85.64 kB / 0.6006 GB, free: 110.9 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7478/2.035, allocations: 140.5 MB / 0.7378 GB, free: 97.27 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.953e-06/2.035, allocations: 0 / 0.7378 GB, free: 97.27 MB / 410.7 MB Notification: Performance of Transformations before backend: time 8.406e-05/2.035, allocations: 19.7 kB / 0.7378 GB, free: 97.27 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.002929/2.038, allocations: 1.075 MB / 0.7389 GB, free: 96.77 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.067e-05/2.038, allocations: 9.812 kB / 0.7389 GB, free: 96.77 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005339/2.039, allocations: 101.9 kB / 0.739 GB, free: 96.73 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001972/2.041, allocations: 0.6401 MB / 0.7396 GB, free: 96.48 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.448e-05/2.041, allocations: 82.41 kB / 0.7397 GB, free: 96.42 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001158/2.041, allocations: 27.09 kB / 0.7397 GB, free: 96.42 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001512/2.043, allocations: 0.5928 MB / 0.7403 GB, free: 96.42 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00158/2.044, allocations: 0.7264 MB / 0.741 GB, free: 96.25 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.745e-05/2.044, allocations: 1.281 kB / 0.741 GB, free: 96.25 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.762e-05/2.044, allocations: 4.031 kB / 0.741 GB, free: 96.25 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.723e-05/2.044, allocations: 45.41 kB / 0.741 GB, free: 96.25 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006555/2.051, allocations: 3.309 MB / 0.7443 GB, free: 94.37 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008866/2.052, allocations: 377.6 kB / 0.7446 GB, free: 94.34 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005009/2.052, allocations: 238.1 kB / 0.7449 GB, free: 94.33 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002438/2.055, allocations: 1.329 MB / 0.7462 GB, free: 93.48 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000561/2.055, allocations: 286.2 kB / 0.7464 GB, free: 93.39 MB / 410.7 MB Notification: Performance of pre-optimization done (n=35): time 2.885e-06/2.055, allocations: 0 / 0.7464 GB, free: 93.39 MB / 410.7 MB Notification: Performance of matching and sorting (n=40): time 0.004223/2.06, allocations: 1.303 MB / 0.7477 GB, free: 93.01 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.447e-05/2.06, allocations: 158.5 kB / 0.7479 GB, free: 92.82 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008693/2.061, allocations: 0.5352 MB / 0.7484 GB, free: 92.7 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 6.632e-05/2.061, allocations: 35.98 kB / 0.7484 GB, free: 92.66 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002855/2.061, allocations: 443.7 kB / 0.7488 GB, free: 92.41 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001329/2.061, allocations: 133.9 kB / 0.749 GB, free: 92.35 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.887e-05/2.061, allocations: 0 / 0.749 GB, free: 92.35 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 8.118e-05/2.061, allocations: 343 kB / 0.7493 GB, free: 92.04 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005153/2.062, allocations: 230.5 kB / 0.7495 GB, free: 92.04 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006627/2.063, allocations: 0.5186 MB / 0.75 GB, free: 91.69 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005351/2.068, allocations: 0.7558 MB / 0.7508 GB, free: 91.68 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.212e-05/2.068, allocations: 6.766 kB / 0.7508 GB, free: 91.68 MB / 410.7 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.006977/2.075, allocations: 1.247 MB / 0.752 GB, free: 91.62 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000735/2.076, allocations: 3.522 MB / 0.7554 GB, free: 87.96 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.994e-05/2.076, allocations: 9.125 kB / 0.7554 GB, free: 87.96 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005956/2.076, allocations: 111.1 kB / 0.7555 GB, free: 87.95 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009999/2.077, allocations: 149.2 kB / 0.7557 GB, free: 87.95 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009281/2.078, allocations: 0.7067 MB / 0.7564 GB, free: 87.43 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001019/2.079, allocations: 33.77 kB / 0.7564 GB, free: 87.43 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001025/2.079, allocations: 48.7 kB / 0.7564 GB, free: 87.43 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.143e-05/2.079, allocations: 3.875 kB / 0.7564 GB, free: 87.43 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006778/2.086, allocations: 1.182 MB / 0.7576 GB, free: 87.4 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.443e-05/2.086, allocations: 10.84 kB / 0.7576 GB, free: 87.4 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004772/2.087, allocations: 102.7 kB / 0.7577 GB, free: 87.39 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000876/2.088, allocations: 153.6 kB / 0.7579 GB, free: 87.39 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006132/2.088, allocations: 0.657 MB / 0.7585 GB, free: 86.88 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000751/2.089, allocations: 32 kB / 0.7585 GB, free: 86.88 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.929e-05/2.089, allocations: 44.7 kB / 0.7586 GB, free: 86.88 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.0003699/2.09, allocations: 182 kB / 0.7587 GB, free: 86.73 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001783/2.091, allocations: 0.5369 MB / 0.7593 GB, free: 86.65 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001263/2.092, allocations: 73.59 kB / 0.7593 GB, free: 86.62 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002021/2.094, allocations: 0.6069 MB / 0.7599 GB, free: 86.55 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.018e-05/2.094, allocations: 7.328 kB / 0.7599 GB, free: 86.55 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.184e-06/2.094, allocations: 0 / 0.7599 GB, free: 86.55 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.774e-06/2.094, allocations: 0 / 0.7599 GB, free: 86.55 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003201/2.097, allocations: 1.226 MB / 0.7611 GB, free: 86.26 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.61e-06/2.097, allocations: 0 / 0.7611 GB, free: 86.26 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005146/2.097, allocations: 58.41 kB / 0.7612 GB, free: 86.26 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005175/2.098, allocations: 108.2 kB / 0.7613 GB, free: 86.25 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.512e-05/2.098, allocations: 7.734 kB / 0.7613 GB, free: 86.25 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008175/2.099, allocations: 0.6758 MB / 0.762 GB, free: 85.73 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.08e-06/2.099, allocations: 0 / 0.762 GB, free: 85.73 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002179/2.101, allocations: 0.9418 MB / 0.7629 GB, free: 85.52 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002539/2.101, allocations: 142.3 kB / 0.763 GB, free: 85.39 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001927/2.102, allocations: 11.02 kB / 0.763 GB, free: 85.39 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006559/2.102, allocations: 22.7 kB / 0.7631 GB, free: 85.39 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001382/2.102, allocations: 37.55 kB / 0.7631 GB, free: 85.39 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.66e-05/2.103, allocations: 24.67 kB / 0.7631 GB, free: 85.39 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0006523/2.103, allocations: 405.5 kB / 0.7635 GB, free: 85.3 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.753e-06/2.103, allocations: 0 / 0.7635 GB, free: 85.3 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002456/2.106, allocations: 0.5333 MB / 0.764 GB, free: 85.22 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.003967/2.11, allocations: 1.964 MB / 0.7659 GB, free: 84.32 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002515/2.112, allocations: 1.064 MB / 0.767 GB, free: 84.19 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.152e-06/2.112, allocations: 5.75 kB / 0.767 GB, free: 84.19 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006676/2.113, allocations: 305.1 kB / 0.7673 GB, free: 84.13 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001956/2.115, allocations: 228 kB / 0.7675 GB, free: 84.12 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004176/2.119, allocations: 1.391 MB / 0.7688 GB, free: 83.68 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005034/2.12, allocations: 0.9802 MB / 0.7698 GB, free: 82.98 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004933/2.12, allocations: 258.7 kB / 0.7701 GB, free: 82.98 MB / 410.7 MB Notification: Performance of SimCode: time 1.142e-06/2.12, allocations: 4.375 kB / 0.7701 GB, free: 82.98 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.089/5.209, allocations: 19.61 MB / 0.7892 GB, free: 81.96 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