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.714/1.714, allocations: 171.2 MB / 183.8 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.783e-05/3.793e-05, allocations: 7.438 kB / 225.1 MB, free: 2.609 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2647/0.2647, allocations: 38.76 MB / 263.9 MB, free: 9.762 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9965/1.261, allocations: 316 MB / 0.5663 GB, free: 67.91 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003231/1.262, allocations: 84.83 kB / 0.5664 GB, free: 67.87 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7937/2.055, allocations: 141.4 MB / 0.7044 GB, free: 79.95 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.044e-06/2.055, allocations: 4 kB / 0.7044 GB, free: 79.95 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.673e-05/2.055, allocations: 23.91 kB / 0.7045 GB, free: 79.93 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.003045/2.059, allocations: 1.07 MB / 0.7055 GB, free: 78.82 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.692e-05/2.059, allocations: 8.031 kB / 0.7055 GB, free: 78.81 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001991/2.059, allocations: 98.42 kB / 0.7056 GB, free: 78.71 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005187/2.059, allocations: 91.05 kB / 0.7057 GB, free: 78.62 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001985/2.061, allocations: 0.6279 MB / 0.7063 GB, free: 77.96 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.752e-05/2.061, allocations: 96.31 kB / 0.7064 GB, free: 77.86 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001252/2.062, allocations: 51.91 kB / 0.7064 GB, free: 77.81 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001843/2.063, allocations: 0.784 MB / 0.7072 GB, free: 76.98 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.56e-05/2.064, allocations: 0 / 0.7072 GB, free: 76.98 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001091/2.064, allocations: 27.83 kB / 0.7072 GB, free: 76.96 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.322e-05/2.064, allocations: 40.97 kB / 0.7073 GB, free: 76.92 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001588/2.065, allocations: 0.646 MB / 0.7079 GB, free: 76.27 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006684/2.072, allocations: 3.393 MB / 0.7112 GB, free: 72.68 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008664/2.073, allocations: 395.2 kB / 0.7116 GB, free: 72.29 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000469/2.073, allocations: 228.8 kB / 0.7118 GB, free: 72.06 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002207/2.076, allocations: 1.342 MB / 0.7131 GB, free: 70.59 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005488/2.076, allocations: 289.7 kB / 0.7134 GB, free: 70.29 MB / 362.7 MB Notification: Performance of pre-optimization done (n=33): time 2.755e-06/2.076, allocations: 0 / 0.7134 GB, free: 70.29 MB / 362.7 MB Notification: Performance of matching and sorting (n=38): time 0.004081/2.08, allocations: 1.465 MB / 0.7148 GB, free: 68.75 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.745e-05/2.08, allocations: 170.2 kB / 0.715 GB, free: 68.55 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009735/2.081, allocations: 0.6089 MB / 0.7156 GB, free: 67.93 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.562e-05/2.082, allocations: 37.7 kB / 0.7156 GB, free: 67.89 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002763/2.082, allocations: 444.4 kB / 0.716 GB, free: 67.46 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000126/2.082, allocations: 130.2 kB / 0.7162 GB, free: 67.33 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.685e-05/2.082, allocations: 19.94 kB / 0.7162 GB, free: 67.31 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.117e-05/2.082, allocations: 342.8 kB / 0.7165 GB, free: 66.97 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005455/2.083, allocations: 241.5 kB / 0.7167 GB, free: 66.73 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006726/2.083, allocations: 0.515 MB / 0.7172 GB, free: 66.08 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007112/2.084, allocations: 352.1 kB / 0.7176 GB, free: 65.73 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.364e-06/2.084, allocations: 4 kB / 0.7176 GB, free: 65.73 MB / 362.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002262/2.086, allocations: 0.9005 MB / 0.7185 GB, free: 64.81 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006755/2.087, allocations: 3.515 MB / 0.7219 GB, free: 61.02 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.726e-05/2.087, allocations: 8 kB / 0.7219 GB, free: 61.01 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008466/2.088, allocations: 136.7 kB / 0.722 GB, free: 60.87 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009861/2.089, allocations: 143.8 kB / 0.7222 GB, free: 60.73 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006782/2.09, allocations: 0.6771 MB / 0.7228 GB, free: 60.03 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001012/2.091, allocations: 40.05 kB / 0.7229 GB, free: 59.99 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.544e-05/2.091, allocations: 47.98 kB / 0.7229 GB, free: 59.94 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.129e-05/2.091, allocations: 4.938 kB / 0.7229 GB, free: 59.94 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002419/2.093, allocations: 0.8795 MB / 0.7238 GB, free: 59.05 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.214e-05/2.093, allocations: 8 kB / 0.7238 GB, free: 59.04 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005376/2.094, allocations: 109.2 kB / 0.7239 GB, free: 58.93 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008842/2.095, allocations: 151.7 kB / 0.724 GB, free: 58.79 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005509/2.095, allocations: 0.6421 MB / 0.7247 GB, free: 58.12 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000761/2.096, allocations: 51.94 kB / 0.7247 GB, free: 58.07 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.748e-05/2.096, allocations: 40 kB / 0.7248 GB, free: 58.03 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.0003422/2.097, allocations: 206.6 kB / 0.725 GB, free: 57.82 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001874/2.097, allocations: 71.16 kB / 0.725 GB, free: 57.75 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0019/2.099, allocations: 0.6948 MB / 0.7257 GB, free: 57.03 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.725e-06/2.099, allocations: 4 kB / 0.7257 GB, free: 57.03 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/2.099, allocations: 0 / 0.7257 GB, free: 57.03 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.076e-06/2.099, allocations: 7.984 kB / 0.7257 GB, free: 57.02 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002967/2.102, allocations: 1.371 MB / 0.727 GB, free: 55.59 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.34e-06/2.102, allocations: 0 / 0.727 GB, free: 55.59 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000535/2.102, allocations: 59.91 kB / 0.7271 GB, free: 55.53 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007219/2.103, allocations: 124.8 kB / 0.7272 GB, free: 55.41 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.165e-05/2.103, allocations: 19.98 kB / 0.7272 GB, free: 55.39 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006244/2.104, allocations: 0.65 MB / 0.7279 GB, free: 54.71 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/2.104, allocations: 4.062 kB / 0.7279 GB, free: 54.71 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002086/2.106, allocations: 1.022 MB / 0.7289 GB, free: 53.65 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002516/2.106, allocations: 152.2 kB / 0.729 GB, free: 53.48 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001755/2.106, allocations: 16 kB / 0.729 GB, free: 53.46 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007004/2.107, allocations: 35.97 kB / 0.7291 GB, free: 53.43 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00013/2.107, allocations: 35.91 kB / 0.7291 GB, free: 53.39 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.553e-05/2.107, allocations: 23.98 kB / 0.7291 GB, free: 53.37 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0008263/2.108, allocations: 467.1 kB / 0.7296 GB, free: 52.92 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.41e-07/2.108, allocations: 0 / 0.7296 GB, free: 52.92 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002775/2.111, allocations: 0.5465 MB / 0.7301 GB, free: 52.38 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.003992/2.115, allocations: 2.041 MB / 0.7321 GB, free: 50.34 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002872/2.118, allocations: 1.06 MB / 0.7331 GB, free: 49.25 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.641e-06/2.118, allocations: 0 / 0.7331 GB, free: 49.25 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000866/2.119, allocations: 315.8 kB / 0.7334 GB, free: 48.93 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002015/2.121, allocations: 258.4 kB / 0.7337 GB, free: 48.68 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004064/2.125, allocations: 1.42 MB / 0.7351 GB, free: 47.21 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004876/2.125, allocations: 0.9771 MB / 0.736 GB, free: 46.2 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004785/2.126, allocations: 255.3 kB / 0.7363 GB, free: 45.95 MB / 362.7 MB Notification: Performance of SimCode: time 1.242e-06/2.126, allocations: 0 / 0.7363 GB, free: 45.95 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.118/5.244, allocations: 19.61 MB / 0.7554 GB, free: 26.34 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