Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.EmptyTanks,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Fluid_Examples_Tanks_EmptyTanks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.699/1.699, allocations: 171.2 MB / 183.8 MB, free: 12.04 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.494e-05/3.501e-05, allocations: 4 kB / 225.1 MB, free: 2.707 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2645/0.2646, allocations: 38.77 MB / 263.8 MB, free: 9.766 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9286/1.193, allocations: 311.1 MB / 0.5615 GB, free: 72.45 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002727/1.194, allocations: 71.97 kB / 0.5615 GB, free: 72.42 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7434/1.937, allocations: 130.2 MB / 0.6887 GB, free: 94.13 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.074e-06/1.937, allocations: 0 / 0.6887 GB, free: 94.13 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.486e-05/1.937, allocations: 17.03 kB / 0.6888 GB, free: 94.12 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: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.003417/1.941, allocations: 1.078 MB / 0.6898 GB, free: 93.29 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.656e-05/1.941, allocations: 15.67 kB / 0.6898 GB, free: 93.29 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000217/1.941, allocations: 98.02 kB / 0.6899 GB, free: 93.2 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004839/1.941, allocations: 97.28 kB / 0.69 GB, free: 93.16 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001863/1.943, allocations: 0.6519 MB / 0.6906 GB, free: 92.66 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001188/1.943, allocations: 111.3 kB / 0.6907 GB, free: 92.57 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001455/1.944, allocations: 55.28 kB / 0.6908 GB, free: 92.56 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002058/1.946, allocations: 0.8733 MB / 0.6917 GB, free: 91.79 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.932e-05/1.946, allocations: 4 kB / 0.6917 GB, free: 91.79 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001192/1.946, allocations: 19.83 kB / 0.6917 GB, free: 91.77 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001206/1.946, allocations: 61.22 kB / 0.6917 GB, free: 91.71 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001965/1.948, allocations: 0.8068 MB / 0.6925 GB, free: 90.9 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008331/1.956, allocations: 3.307 MB / 0.6958 GB, free: 87.48 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001423/1.958, allocations: 0.6404 MB / 0.6964 GB, free: 86.83 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007626/1.958, allocations: 358.4 kB / 0.6967 GB, free: 86.48 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004199/1.963, allocations: 2.075 MB / 0.6987 GB, free: 84.23 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.884e-05/1.963, allocations: 39.12 kB / 0.6988 GB, free: 84.18 MB / 362.7 MB Notification: Performance of pre-optimization done (n=56): time 3.307e-06/1.963, allocations: 0 / 0.6988 GB, free: 84.18 MB / 362.7 MB Notification: Performance of matching and sorting (n=66): time 0.007089/1.97, allocations: 2.217 MB / 0.7009 GB, free: 81.91 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.146e-05/1.97, allocations: 85.67 kB / 0.701 GB, free: 81.81 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001061/1.971, allocations: 0.5932 MB / 0.7016 GB, free: 81.21 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001455/1.971, allocations: 41.7 kB / 0.7017 GB, free: 81.16 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002168/1.971, allocations: 354.3 kB / 0.702 GB, free: 80.82 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002309/1.972, allocations: 227.9 kB / 0.7022 GB, free: 80.59 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.281e-05/1.972, allocations: 15.94 kB / 0.7022 GB, free: 80.58 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.817e-05/1.972, allocations: 342.8 kB / 0.7025 GB, free: 80.23 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009043/1.973, allocations: 353.4 kB / 0.7029 GB, free: 79.89 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009474/1.974, allocations: 495.2 kB / 0.7034 GB, free: 79.35 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009295/1.975, allocations: 401.9 kB / 0.7037 GB, free: 78.96 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.529e-06/1.975, allocations: 0 / 0.7037 GB, free: 78.96 MB / 362.7 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.002698/1.977, allocations: 1.07 MB / 0.7048 GB, free: 77.88 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003377/1.978, allocations: 1.576 MB / 0.7063 GB, free: 76.18 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.351e-05/1.978, allocations: 7.938 kB / 0.7063 GB, free: 76.17 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001972/1.98, allocations: 439.5 kB / 0.7068 GB, free: 75.75 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001382/1.981, allocations: 159.6 kB / 0.7069 GB, free: 75.59 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001896/1.983, allocations: 1.021 MB / 0.7079 GB, free: 74.55 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001464/1.985, allocations: 47.86 kB / 0.7079 GB, free: 74.5 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001604/1.985, allocations: 35.98 kB / 0.708 GB, free: 74.46 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.699e-05/1.985, allocations: 4 kB / 0.708 GB, free: 74.46 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00239/1.987, allocations: 0.9133 MB / 0.7089 GB, free: 73.55 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.294e-05/1.987, allocations: 4 kB / 0.7089 GB, free: 73.54 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009461/1.988, allocations: 240.2 kB / 0.7091 GB, free: 73.31 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001307/1.99, allocations: 159.8 kB / 0.7093 GB, free: 73.15 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009295/1.991, allocations: 0.81 MB / 0.7101 GB, free: 72.32 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007861/1.992, allocations: 40.02 kB / 0.7101 GB, free: 72.28 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.462e-05/1.992, allocations: 35.98 kB / 0.7101 GB, free: 72.24 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 4 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[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 {4 9} Notification: Performance of prepare postOptimizeDAE: time 0.0003551/1.992, allocations: 152.8 kB / 0.7103 GB, free: 72.09 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002646/1.992, allocations: 79.06 kB / 0.7103 GB, free: 72.01 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00283/1.995, allocations: 1.075 MB / 0.7114 GB, free: 70.92 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.094e-05/1.995, allocations: 10.91 kB / 0.7114 GB, free: 70.91 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.164e-06/1.995, allocations: 0 / 0.7114 GB, free: 70.91 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.253e-05/1.995, allocations: 3.984 kB / 0.7114 GB, free: 70.91 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004478/2, allocations: 1.991 MB / 0.7134 GB, free: 68.87 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.944e-06/2, allocations: 0 / 0.7134 GB, free: 68.87 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001112/2.001, allocations: 115.9 kB / 0.7135 GB, free: 68.76 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001871/2.003, allocations: 439.3 kB / 0.7139 GB, free: 68.33 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001005/2.003, allocations: 24 kB / 0.7139 GB, free: 68.31 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001585/2.004, allocations: 1.035 MB / 0.7149 GB, free: 67.25 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/2.004, allocations: 0 / 0.7149 GB, free: 67.25 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003387/2.008, allocations: 1.572 MB / 0.7165 GB, free: 65.66 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006547/2.009, allocations: 248.1 kB / 0.7167 GB, free: 65.39 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000183/2.009, allocations: 19.88 kB / 0.7167 GB, free: 65.38 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001087/2.01, allocations: 47.89 kB / 0.7168 GB, free: 65.33 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001889/2.01, allocations: 52.7 kB / 0.7168 GB, free: 65.28 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001016/2.01, allocations: 35.97 kB / 0.7168 GB, free: 65.25 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000788/2.011, allocations: 471.1 kB / 0.7173 GB, free: 64.79 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.71e-07/2.011, allocations: 0 / 0.7173 GB, free: 64.79 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002477/2.013, allocations: 0.6401 MB / 0.7179 GB, free: 64.15 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 4 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 57 * 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 {4 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.005351/2.019, allocations: 2.63 MB / 0.7205 GB, free: 61.54 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003781/2.023, allocations: 1.306 MB / 0.7218 GB, free: 60.23 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.873e-06/2.023, allocations: 4 kB / 0.7218 GB, free: 60.23 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001457/2.024, allocations: 455.8 kB / 0.7222 GB, free: 59.79 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002819/2.027, allocations: 348.4 kB / 0.7225 GB, free: 59.46 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005548/2.033, allocations: 1.726 MB / 0.7242 GB, free: 57.7 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004927/2.033, allocations: 1.007 MB / 0.7252 GB, free: 56.66 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006423/2.034, allocations: 295.3 kB / 0.7255 GB, free: 56.37 MB / 362.7 MB Notification: Performance of SimCode: time 1.092e-06/2.034, allocations: 4 kB / 0.7255 GB, free: 56.37 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.336/5.37, allocations: 22.57 MB / 0.7475 GB, free: 33.83 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Fluid.Examples.Tanks.EmptyTanks_res.mat does not exist to compare? outputFormat=mat