Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_OneTank",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.745/1.745, allocations: 171.2 MB / 183.8 MB, free: 12.04 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.463e-05/3.486e-05, allocations: 4 kB / 225.1 MB, free: 2.703 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.269/0.2691, allocations: 38.77 MB / 263.8 MB, free: 9.871 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9145/1.184, allocations: 316 MB / 0.5663 GB, free: 68.23 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003059/1.184, allocations: 86.02 kB / 0.5664 GB, free: 68.19 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7634/1.947, allocations: 141.3 MB / 0.7044 GB, free: 80.34 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.703e-06/1.948, allocations: 0 / 0.7044 GB, free: 80.34 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.789e-05/1.948, allocations: 20 kB / 0.7044 GB, free: 80.32 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 124 * Number of variables: 124 Notification: Performance of Generate backend data structure: time 0.00306/1.951, allocations: 1.074 MB / 0.7055 GB, free: 79.2 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.868e-05/1.951, allocations: 12.03 kB / 0.7055 GB, free: 79.19 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002057/1.951, allocations: 94.28 kB / 0.7056 GB, free: 79.09 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005351/1.952, allocations: 91.06 kB / 0.7056 GB, free: 79 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002063/1.954, allocations: 0.6355 MB / 0.7063 GB, free: 78.34 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000101/1.954, allocations: 92.31 kB / 0.7064 GB, free: 78.24 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001327/1.954, allocations: 51.81 kB / 0.7064 GB, free: 78.2 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001777/1.956, allocations: 0.7922 MB / 0.7072 GB, free: 77.36 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.162e-05/1.956, allocations: 0 / 0.7072 GB, free: 77.36 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000108/1.956, allocations: 24 kB / 0.7072 GB, free: 77.34 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.77e-05/1.956, allocations: 44.97 kB / 0.7072 GB, free: 77.29 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001529/1.958, allocations: 0.6519 MB / 0.7079 GB, free: 76.64 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006713/1.964, allocations: 3.405 MB / 0.7112 GB, free: 73.05 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008938/1.965, allocations: 394.7 kB / 0.7116 GB, free: 72.65 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004788/1.966, allocations: 232.8 kB / 0.7118 GB, free: 72.42 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002309/1.968, allocations: 1.341 MB / 0.7131 GB, free: 70.95 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005557/1.969, allocations: 296 kB / 0.7134 GB, free: 70.64 MB / 362.7 MB Notification: Performance of pre-optimization done (n=33): time 2.986e-06/1.969, allocations: 0 / 0.7134 GB, free: 70.64 MB / 362.7 MB Notification: Performance of matching and sorting (n=38): time 0.004218/1.973, allocations: 1.474 MB / 0.7148 GB, free: 69.1 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.132e-05/1.973, allocations: 166.2 kB / 0.715 GB, free: 68.9 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001017/1.974, allocations: 0.6129 MB / 0.7156 GB, free: 68.28 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.079e-05/1.974, allocations: 33.7 kB / 0.7156 GB, free: 68.24 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003082/1.974, allocations: 440.9 kB / 0.716 GB, free: 67.81 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001355/1.975, allocations: 130.2 kB / 0.7162 GB, free: 67.69 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.598e-05/1.975, allocations: 19.94 kB / 0.7162 GB, free: 67.67 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.674e-05/1.975, allocations: 338.8 kB / 0.7165 GB, free: 67.33 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005674/1.975, allocations: 245.5 kB / 0.7167 GB, free: 67.09 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006886/1.976, allocations: 0.5204 MB / 0.7172 GB, free: 66.43 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007041/1.977, allocations: 356 kB / 0.7176 GB, free: 66.08 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.456e-06/1.977, allocations: 4 kB / 0.7176 GB, free: 66.07 MB / 362.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002384/1.979, allocations: 0.9277 MB / 0.7185 GB, free: 65.13 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006831/1.98, allocations: 3.507 MB / 0.7219 GB, free: 61.34 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.642e-05/1.98, allocations: 8 kB / 0.7219 GB, free: 61.34 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000857/1.981, allocations: 136.8 kB / 0.7221 GB, free: 61.2 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000983/1.982, allocations: 143.8 kB / 0.7222 GB, free: 61.06 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000713/1.983, allocations: 0.681 MB / 0.7229 GB, free: 60.35 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001077/1.984, allocations: 48.05 kB / 0.7229 GB, free: 60.3 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.994e-05/1.984, allocations: 39.98 kB / 0.7229 GB, free: 60.27 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.253e-05/1.984, allocations: 4 kB / 0.723 GB, free: 60.26 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002497/1.986, allocations: 0.9029 MB / 0.7238 GB, free: 59.35 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.309e-05/1.986, allocations: 8 kB / 0.7238 GB, free: 59.34 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005512/1.987, allocations: 101.2 kB / 0.7239 GB, free: 59.24 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009024/1.988, allocations: 151.8 kB / 0.7241 GB, free: 59.09 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005745/1.988, allocations: 0.6498 MB / 0.7247 GB, free: 58.42 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007769/1.989, allocations: 47.88 kB / 0.7248 GB, free: 58.37 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.85e-05/1.989, allocations: 44.06 kB / 0.7248 GB, free: 58.33 MB / 362.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: 10 ($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) * 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.0003795/1.99, allocations: 210.2 kB / 0.725 GB, free: 58.11 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001896/1.99, allocations: 71.16 kB / 0.7251 GB, free: 58.04 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001963/1.992, allocations: 0.6982 MB / 0.7258 GB, free: 57.32 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.704e-06/1.992, allocations: 4 kB / 0.7258 GB, free: 57.32 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/1.992, allocations: 0 / 0.7258 GB, free: 57.32 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.905e-06/1.992, allocations: 3.984 kB / 0.7258 GB, free: 57.32 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003007/1.995, allocations: 1.363 MB / 0.7271 GB, free: 55.89 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.989e-06/1.995, allocations: 0 / 0.7271 GB, free: 55.89 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005158/1.996, allocations: 59.91 kB / 0.7272 GB, free: 55.84 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000717/1.996, allocations: 124.8 kB / 0.7273 GB, free: 55.71 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.699e-05/1.996, allocations: 15.98 kB / 0.7273 GB, free: 55.7 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006186/1.997, allocations: 0.6577 MB / 0.7279 GB, free: 55.01 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.454e-06/1.997, allocations: 0 / 0.7279 GB, free: 55.01 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002086/1.999, allocations: 1.034 MB / 0.7289 GB, free: 53.95 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002508/1.999, allocations: 144.2 kB / 0.7291 GB, free: 53.79 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001674/2, allocations: 19.98 kB / 0.7291 GB, free: 53.77 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006896/2, allocations: 31.98 kB / 0.7291 GB, free: 53.73 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001349/2, allocations: 39.89 kB / 0.7292 GB, free: 53.7 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.677e-05/2, allocations: 23.98 kB / 0.7292 GB, free: 53.67 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0007818/2.001, allocations: 471.1 kB / 0.7296 GB, free: 53.22 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.61e-07/2.001, allocations: 0 / 0.7296 GB, free: 53.22 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002278/2.004, allocations: 0.5465 MB / 0.7302 GB, free: 52.67 MB / 362.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: 7 ($whenCondition1,tank.ports_m_flow_out[1],tank.aboveLevel[1],timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent) * Number of discrete states: 7 (tank.aboveLevel[1],tank.ports_m_flow_out[1],timeTable.last,timeTable.nextEvent,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.003674/2.007, allocations: 2.026 MB / 0.7321 GB, free: 50.65 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002782/2.01, allocations: 1.092 MB / 0.7332 GB, free: 49.54 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.282e-06/2.01, allocations: 0 / 0.7332 GB, free: 49.54 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008787/2.011, allocations: 312.8 kB / 0.7335 GB, free: 49.22 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001994/2.013, allocations: 251.9 kB / 0.7338 GB, free: 48.98 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004063/2.017, allocations: 1.436 MB / 0.7352 GB, free: 47.48 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004894/2.018, allocations: 0.9732 MB / 0.7361 GB, free: 46.48 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000514/2.018, allocations: 255.4 kB / 0.7363 GB, free: 46.23 MB / 362.7 MB Notification: Performance of SimCode: time 1.142e-06/2.018, allocations: 0 / 0.7363 GB, free: 46.23 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.006/5.025, allocations: 19.63 MB / 0.7555 GB, free: 26.6 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank_res.mat does not exist to compare? outputFormat=mat