Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.722/1.722, allocations: 171.2 MB / 183.8 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.901e-05/3.908e-05, allocations: 4 kB / 225.1 MB, free: 2.73 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2765/0.2766, allocations: 38.77 MB / 263.9 MB, free: 9.871 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9982/1.275, allocations: 311.9 MB / 0.5622 GB, free: 72.3 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003456/1.275, allocations: 82.53 kB / 0.5623 GB, free: 72.27 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7226/1.998, allocations: 135.7 MB / 0.6948 GB, free: 89.96 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.954e-06/1.998, allocations: 0 / 0.6948 GB, free: 89.96 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.602e-05/1.998, allocations: 16 kB / 0.6949 GB, free: 89.95 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.003046/2.001, allocations: 1.037 MB / 0.6959 GB, free: 88.88 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.178e-05/2.001, allocations: 8.031 kB / 0.6959 GB, free: 88.88 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001815/2.001, allocations: 90.52 kB / 0.696 GB, free: 88.78 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004424/2.002, allocations: 83.06 kB / 0.696 GB, free: 88.7 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001625/2.004, allocations: 0.584 MB / 0.6966 GB, free: 88.09 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.89e-05/2.004, allocations: 37 kB / 0.6967 GB, free: 88.05 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001265/2.004, allocations: 51.81 kB / 0.6967 GB, free: 88 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00172/2.005, allocations: 0.7198 MB / 0.6974 GB, free: 87.26 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.183e-05/2.006, allocations: 4 kB / 0.6974 GB, free: 87.25 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001012/2.006, allocations: 19.75 kB / 0.6974 GB, free: 87.24 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001037/2.006, allocations: 48.91 kB / 0.6975 GB, free: 87.19 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001643/2.007, allocations: 0.6617 MB / 0.6981 GB, free: 86.53 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006548/2.014, allocations: 2.848 MB / 0.7009 GB, free: 83.53 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00104/2.015, allocations: 459.7 kB / 0.7013 GB, free: 83.06 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000539/2.016, allocations: 246.1 kB / 0.7016 GB, free: 82.82 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003386/2.016, allocations: 344.7 kB / 0.7019 GB, free: 82.41 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.034e-05/2.016, allocations: 43 kB / 0.7019 GB, free: 82.36 MB / 362.7 MB Notification: Performance of pre-optimization done (n=48): time 3.136e-06/2.016, allocations: 0 / 0.7019 GB, free: 82.36 MB / 362.7 MB Notification: Performance of matching and sorting (n=58): time 0.006635/2.023, allocations: 1.83 MB / 0.7037 GB, free: 80.48 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.922e-05/2.023, allocations: 81.67 kB / 0.7038 GB, free: 80.38 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009864/2.024, allocations: 0.5461 MB / 0.7043 GB, free: 79.83 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001521/2.024, allocations: 37.7 kB / 0.7044 GB, free: 79.79 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002308/2.024, allocations: 349.5 kB / 0.7047 GB, free: 79.45 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002087/2.024, allocations: 207.9 kB / 0.7049 GB, free: 79.24 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.143e-05/2.025, allocations: 16 kB / 0.7049 GB, free: 79.23 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.687e-05/2.025, allocations: 342.8 kB / 0.7053 GB, free: 78.88 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000714/2.025, allocations: 285.4 kB / 0.7055 GB, free: 78.61 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007635/2.026, allocations: 445.4 kB / 0.706 GB, free: 78.11 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007558/2.027, allocations: 329.9 kB / 0.7063 GB, free: 77.78 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.911e-06/2.027, allocations: 0 / 0.7063 GB, free: 77.78 MB / 362.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002133/2.029, allocations: 0.8641 MB / 0.7071 GB, free: 76.91 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003958/2.029, allocations: 1.753 MB / 0.7088 GB, free: 75.02 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.519e-05/2.03, allocations: 4 kB / 0.7088 GB, free: 75.02 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003323/2.033, allocations: 344.5 kB / 0.7092 GB, free: 74.68 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001258/2.034, allocations: 147.8 kB / 0.7093 GB, free: 74.53 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001271/2.035, allocations: 0.8099 MB / 0.7101 GB, free: 73.7 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001144/2.037, allocations: 51.94 kB / 0.7101 GB, free: 73.64 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001059/2.037, allocations: 32 kB / 0.7102 GB, free: 73.61 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.551e-05/2.037, allocations: 4 kB / 0.7102 GB, free: 73.61 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001946/2.039, allocations: 0.7677 MB / 0.7109 GB, free: 72.84 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.036e-05/2.039, allocations: 4 kB / 0.7109 GB, free: 72.84 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002409/2.041, allocations: 225.2 kB / 0.7111 GB, free: 72.62 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001208/2.042, allocations: 159.7 kB / 0.7113 GB, free: 72.46 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007999/2.043, allocations: 0.6812 MB / 0.712 GB, free: 71.75 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007733/2.044, allocations: 48.03 kB / 0.712 GB, free: 71.71 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.632e-05/2.044, allocations: 35.98 kB / 0.712 GB, free: 71.67 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 0 * 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 {2 7} Notification: Performance of prepare postOptimizeDAE: time 0.0002812/2.044, allocations: 154.3 kB / 0.7122 GB, free: 71.52 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002332/2.045, allocations: 71.16 kB / 0.7123 GB, free: 71.45 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002187/2.047, allocations: 0.8306 MB / 0.7131 GB, free: 70.61 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.038e-05/2.047, allocations: 8 kB / 0.7131 GB, free: 70.6 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.653e-06/2.047, allocations: 0 / 0.7131 GB, free: 70.6 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.027e-05/2.047, allocations: 3.984 kB / 0.7131 GB, free: 70.59 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003807/2.051, allocations: 1.645 MB / 0.7147 GB, free: 68.9 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.061e-06/2.051, allocations: 0 / 0.7147 GB, free: 68.9 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009706/2.052, allocations: 111.9 kB / 0.7148 GB, free: 68.79 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002422/2.054, allocations: 328.5 kB / 0.7151 GB, free: 68.46 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001303/2.054, allocations: 23.92 kB / 0.7151 GB, free: 68.44 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009872/2.055, allocations: 0.8021 MB / 0.7159 GB, free: 67.61 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/2.055, allocations: 0 / 0.7159 GB, free: 67.61 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002629/2.058, allocations: 1.232 MB / 0.7171 GB, free: 66.34 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003279/2.058, allocations: 164.1 kB / 0.7173 GB, free: 66.16 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001714/2.059, allocations: 16.06 kB / 0.7173 GB, free: 66.15 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008694/2.06, allocations: 35.97 kB / 0.7173 GB, free: 66.11 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001543/2.06, allocations: 52.48 kB / 0.7174 GB, free: 66.06 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.432e-05/2.06, allocations: 23.98 kB / 0.7174 GB, free: 66.04 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0007234/2.061, allocations: 439.1 kB / 0.7178 GB, free: 65.62 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.51e-07/2.061, allocations: 3.938 kB / 0.7178 GB, free: 65.61 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002332/2.063, allocations: 0.5893 MB / 0.7184 GB, free: 65.02 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank2.aboveLevel[1]) * Number of discrete states: 2 (tank2.aboveLevel[1],tank1.aboveLevel[1]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 0 * 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 {2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.004463/2.067, allocations: 2.422 MB / 0.7208 GB, free: 62.6 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003177/2.071, allocations: 1.087 MB / 0.7218 GB, free: 61.52 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 8.416e-06/2.071, allocations: 2 kB / 0.7218 GB, free: 61.52 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009749/2.072, allocations: 365.5 kB / 0.7222 GB, free: 61.16 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00282/2.075, allocations: 334.2 kB / 0.7225 GB, free: 60.84 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004618/2.079, allocations: 1.531 MB / 0.724 GB, free: 59.25 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004924/2.08, allocations: 0.9791 MB / 0.7249 GB, free: 58.25 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006774/2.08, allocations: 259.3 kB / 0.7252 GB, free: 58 MB / 362.7 MB Notification: Performance of SimCode: time 1.312e-06/2.08, allocations: 0 / 0.7252 GB, free: 58 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.078/5.158, allocations: 21.01 MB / 0.7457 GB, free: 36.99 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.TwoTanks_res.mat does not exist to compare? outputFormat=mat