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.828/1.828, allocations: 171.3 MB / 178.8 MB, free: 168 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.254e-05/2.256e-05, allocations: 4 kB / 219.6 MB, free: 7.32 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2918/0.2919, allocations: 38.76 MB / 258.3 MB, free: 12.05 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9101/1.202, allocations: 315.4 MB / 0.5602 GB, free: 78.66 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003103/1.202, allocations: 83.52 kB / 0.5603 GB, free: 78.62 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7462/1.949, allocations: 140.4 MB / 0.6974 GB, free: 89.25 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.114e-06/1.949, allocations: 0 / 0.6974 GB, free: 89.25 MB / 362.7 MB Notification: Performance of Transformations before backend: time 8.672e-05/1.949, allocations: 20.58 kB / 0.6974 GB, free: 89.25 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.003489/1.952, allocations: 1.072 MB / 0.6985 GB, free: 88.49 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.743e-05/1.952, allocations: 10.31 kB / 0.6985 GB, free: 88.49 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007082/1.953, allocations: 87.59 kB / 0.6986 GB, free: 88.45 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002145/1.955, allocations: 0.641 MB / 0.6992 GB, free: 88.07 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000107/1.955, allocations: 79.88 kB / 0.6993 GB, free: 88 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001285/1.955, allocations: 29.92 kB / 0.6993 GB, free: 87.99 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001468/1.957, allocations: 0.5816 MB / 0.6999 GB, free: 87.8 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001525/1.958, allocations: 0.7221 MB / 0.7006 GB, free: 87.45 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.185e-05/1.959, allocations: 7.844 kB / 0.7006 GB, free: 87.45 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.991e-05/1.959, allocations: 9.969 kB / 0.7006 GB, free: 87.45 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.938e-05/1.959, allocations: 35.88 kB / 0.7006 GB, free: 87.44 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006486/1.965, allocations: 3.301 MB / 0.7039 GB, free: 84.78 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008292/1.966, allocations: 373.3 kB / 0.7042 GB, free: 84.59 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000439/1.967, allocations: 229.8 kB / 0.7044 GB, free: 84.48 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002409/1.969, allocations: 1.319 MB / 0.7057 GB, free: 83.3 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005343/1.97, allocations: 275 kB / 0.706 GB, free: 83.11 MB / 362.7 MB Notification: Performance of pre-optimization done (n=33): time 4.168e-06/1.97, allocations: 0 / 0.706 GB, free: 83.11 MB / 362.7 MB Notification: Performance of matching and sorting (n=38): time 0.004734/1.974, allocations: 1.372 MB / 0.7073 GB, free: 82.31 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.038e-05/1.974, allocations: 162.1 kB / 0.7075 GB, free: 82.12 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008982/1.975, allocations: 0.5398 MB / 0.708 GB, free: 81.8 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.921e-05/1.975, allocations: 28.95 kB / 0.708 GB, free: 81.77 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003306/1.976, allocations: 443.4 kB / 0.7085 GB, free: 81.37 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001373/1.976, allocations: 125.6 kB / 0.7086 GB, free: 81.27 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.978e-05/1.976, allocations: 0 / 0.7086 GB, free: 81.27 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.571e-05/1.976, allocations: 342.5 kB / 0.7089 GB, free: 80.93 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005206/1.977, allocations: 230.9 kB / 0.7091 GB, free: 80.83 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006399/1.977, allocations: 0.51 MB / 0.7096 GB, free: 80.34 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005356/1.983, allocations: 0.7601 MB / 0.7104 GB, free: 79.98 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.182e-05/1.983, allocations: 0 / 0.7104 GB, free: 79.98 MB / 362.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.007078/1.99, allocations: 1.289 MB / 0.7116 GB, free: 78.71 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007675/1.991, allocations: 3.519 MB / 0.7151 GB, free: 74.91 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.162e-05/1.991, allocations: 8 kB / 0.7151 GB, free: 74.9 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006269/1.991, allocations: 108 kB / 0.7152 GB, free: 74.8 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001026/1.992, allocations: 155.7 kB / 0.7153 GB, free: 74.64 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009154/1.993, allocations: 0.6967 MB / 0.716 GB, free: 73.92 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001005/1.994, allocations: 43.88 kB / 0.716 GB, free: 73.88 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.882e-05/1.994, allocations: 40 kB / 0.7161 GB, free: 73.84 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.266e-05/1.994, allocations: 4 kB / 0.7161 GB, free: 73.84 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0069/2.001, allocations: 1.236 MB / 0.7173 GB, free: 72.6 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.68e-05/2.001, allocations: 8 kB / 0.7173 GB, free: 72.59 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004775/2.002, allocations: 104 kB / 0.7174 GB, free: 72.49 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008885/2.003, allocations: 155.7 kB / 0.7175 GB, free: 72.34 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006103/2.003, allocations: 0.6499 MB / 0.7182 GB, free: 71.66 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007383/2.004, allocations: 31.97 kB / 0.7182 GB, free: 71.63 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.636e-05/2.004, allocations: 40 kB / 0.7182 GB, free: 71.59 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.0003641/2.005, allocations: 188.5 kB / 0.7184 GB, free: 71.4 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001804/2.007, allocations: 0.5753 MB / 0.719 GB, free: 70.81 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001178/2.007, allocations: 74.44 kB / 0.7191 GB, free: 70.74 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002037/2.009, allocations: 0.634 MB / 0.7197 GB, free: 70.09 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.167e-06/2.009, allocations: 7.953 kB / 0.7197 GB, free: 70.08 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.054e-06/2.009, allocations: 4 kB / 0.7197 GB, free: 70.08 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.488e-06/2.009, allocations: 3.984 kB / 0.7197 GB, free: 70.07 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002977/2.012, allocations: 1.251 MB / 0.7209 GB, free: 68.79 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.46e-06/2.012, allocations: 4 kB / 0.7209 GB, free: 68.78 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005077/2.012, allocations: 60 kB / 0.721 GB, free: 68.72 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005041/2.013, allocations: 96.75 kB / 0.7211 GB, free: 68.62 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.878e-05/2.013, allocations: 7.984 kB / 0.7211 GB, free: 68.62 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007621/2.014, allocations: 0.685 MB / 0.7217 GB, free: 67.91 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.14e-06/2.014, allocations: 8 kB / 0.7218 GB, free: 67.9 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002112/2.016, allocations: 0.9695 MB / 0.7227 GB, free: 66.9 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002281/2.016, allocations: 140.3 kB / 0.7228 GB, free: 66.75 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001979/2.016, allocations: 16.12 kB / 0.7228 GB, free: 66.73 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006495/2.017, allocations: 31.81 kB / 0.7229 GB, free: 66.7 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001195/2.017, allocations: 27.95 kB / 0.7229 GB, free: 66.67 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.532e-05/2.017, allocations: 23.98 kB / 0.7229 GB, free: 66.65 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0006271/2.018, allocations: 399.1 kB / 0.7233 GB, free: 66.27 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.31e-07/2.018, allocations: 0 / 0.7233 GB, free: 66.27 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002287/2.02, allocations: 0.5229 MB / 0.7238 GB, free: 65.74 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.003831/2.024, allocations: 1.981 MB / 0.7258 GB, free: 63.79 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002415/2.026, allocations: 1.001 MB / 0.7267 GB, free: 62.76 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.35e-06/2.026, allocations: 0 / 0.7267 GB, free: 62.76 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006065/2.027, allocations: 283.2 kB / 0.727 GB, free: 62.47 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001892/2.029, allocations: 242.8 kB / 0.7272 GB, free: 62.23 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004347/2.033, allocations: 1.37 MB / 0.7286 GB, free: 60.82 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005125/2.034, allocations: 0.9731 MB / 0.7295 GB, free: 59.82 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005516/2.035, allocations: 255.3 kB / 0.7298 GB, free: 59.58 MB / 362.7 MB Notification: Performance of SimCode: time 1.152e-06/2.035, allocations: 0 / 0.7298 GB, free: 59.58 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.161/5.195, allocations: 19.46 MB / 0.7488 GB, free: 40.12 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