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.713/1.713, allocations: 171.2 MB / 183.8 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.343e-05/3.354e-05, allocations: 4 kB / 225.1 MB, free: 2.621 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2674/0.2674, allocations: 38.78 MB / 263.8 MB, free: 9.863 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9085/1.176, allocations: 311.8 MB / 0.5622 GB, free: 72.2 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003002/1.176, allocations: 87.5 kB / 0.5623 GB, free: 72.17 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7447/1.921, allocations: 135.7 MB / 0.6948 GB, free: 89.88 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.783e-06/1.921, allocations: 4 kB / 0.6948 GB, free: 89.88 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.568e-05/1.921, allocations: 19.94 kB / 0.6948 GB, free: 89.86 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.002938/1.924, allocations: 1.029 MB / 0.6958 GB, free: 88.8 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.855e-05/1.924, allocations: 8.031 kB / 0.6959 GB, free: 88.79 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002218/1.925, allocations: 90.42 kB / 0.6959 GB, free: 88.7 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004624/1.925, allocations: 91.05 kB / 0.696 GB, free: 88.61 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001765/1.927, allocations: 0.5724 MB / 0.6966 GB, free: 88 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.538e-05/1.927, allocations: 44.84 kB / 0.6966 GB, free: 87.96 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001338/1.927, allocations: 51.81 kB / 0.6967 GB, free: 87.92 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001686/1.929, allocations: 0.7252 MB / 0.6974 GB, free: 87.17 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.986e-05/1.929, allocations: 0 / 0.6974 GB, free: 87.17 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001009/1.929, allocations: 23.83 kB / 0.6974 GB, free: 87.15 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.733e-05/1.929, allocations: 44.97 kB / 0.6975 GB, free: 87.1 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001638/1.931, allocations: 0.6715 MB / 0.6981 GB, free: 86.43 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006522/1.937, allocations: 2.852 MB / 0.7009 GB, free: 83.43 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001064/1.938, allocations: 460.6 kB / 0.7013 GB, free: 82.96 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005792/1.939, allocations: 254.1 kB / 0.7016 GB, free: 82.71 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003236/1.939, allocations: 344.1 kB / 0.7019 GB, free: 82.3 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.88e-05/1.939, allocations: 38.98 kB / 0.7019 GB, free: 82.26 MB / 362.7 MB Notification: Performance of pre-optimization done (n=48): time 3.757e-06/1.939, allocations: 4 kB / 0.7019 GB, free: 82.25 MB / 362.7 MB Notification: Performance of matching and sorting (n=58): time 0.00653/1.946, allocations: 1.818 MB / 0.7037 GB, free: 80.38 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.341e-05/1.946, allocations: 85.67 kB / 0.7038 GB, free: 80.28 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009796/1.947, allocations: 0.55 MB / 0.7043 GB, free: 79.72 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001412/1.947, allocations: 41.7 kB / 0.7044 GB, free: 79.68 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002226/1.947, allocations: 344.2 kB / 0.7047 GB, free: 79.34 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002102/1.948, allocations: 212.3 kB / 0.7049 GB, free: 79.14 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.019e-05/1.948, allocations: 16 kB / 0.7049 GB, free: 79.12 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.491e-05/1.948, allocations: 342.8 kB / 0.7053 GB, free: 78.78 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006878/1.948, allocations: 277.5 kB / 0.7055 GB, free: 78.51 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007523/1.949, allocations: 450.9 kB / 0.7059 GB, free: 78 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007401/1.95, allocations: 334 kB / 0.7063 GB, free: 77.68 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.39e-06/1.95, allocations: 4 kB / 0.7063 GB, free: 77.67 MB / 362.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002077/1.952, allocations: 0.8712 MB / 0.7071 GB, free: 76.79 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003659/1.952, allocations: 1.746 MB / 0.7088 GB, free: 74.91 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.293e-05/1.953, allocations: 4 kB / 0.7088 GB, free: 74.91 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003293/1.956, allocations: 356.4 kB / 0.7092 GB, free: 74.55 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001196/1.957, allocations: 147.8 kB / 0.7093 GB, free: 74.41 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001209/1.958, allocations: 0.8138 MB / 0.7101 GB, free: 73.57 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001132/1.959, allocations: 55.94 kB / 0.7102 GB, free: 73.52 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000101/1.96, allocations: 24 kB / 0.7102 GB, free: 73.49 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.407e-05/1.96, allocations: 4 kB / 0.7102 GB, free: 73.49 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001865/1.961, allocations: 0.7765 MB / 0.7109 GB, free: 72.71 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.033e-05/1.962, allocations: 4 kB / 0.7109 GB, free: 72.7 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00237/1.964, allocations: 224.8 kB / 0.7112 GB, free: 72.48 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001189/1.965, allocations: 159.8 kB / 0.7113 GB, free: 72.32 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007717/1.966, allocations: 0.6851 MB / 0.712 GB, free: 71.61 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007589/1.967, allocations: 48.03 kB / 0.712 GB, free: 71.57 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001119/1.967, allocations: 27.98 kB / 0.7121 GB, free: 71.54 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.0002784/1.967, allocations: 153.8 kB / 0.7122 GB, free: 71.38 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002321/1.967, allocations: 71.16 kB / 0.7123 GB, free: 71.31 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002157/1.97, allocations: 0.8335 MB / 0.7131 GB, free: 70.47 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.031e-05/1.97, allocations: 8 kB / 0.7131 GB, free: 70.46 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.855e-06/1.97, allocations: 7.922 kB / 0.7131 GB, free: 70.45 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.969e-06/1.97, allocations: 0 / 0.7131 GB, free: 70.45 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003819/1.973, allocations: 1.639 MB / 0.7147 GB, free: 68.76 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.723e-06/1.974, allocations: 8.062 kB / 0.7147 GB, free: 68.75 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009288/1.974, allocations: 107.9 kB / 0.7148 GB, free: 68.65 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002402/1.977, allocations: 332.6 kB / 0.7151 GB, free: 68.32 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001263/1.977, allocations: 23.86 kB / 0.7151 GB, free: 68.3 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009775/1.978, allocations: 0.8059 MB / 0.7159 GB, free: 67.46 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/1.978, allocations: 4.031 kB / 0.7159 GB, free: 67.46 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002559/1.981, allocations: 1.236 MB / 0.7171 GB, free: 66.18 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002949/1.981, allocations: 152.2 kB / 0.7173 GB, free: 66.02 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001677/1.981, allocations: 16 kB / 0.7173 GB, free: 66 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008429/1.982, allocations: 43.97 kB / 0.7173 GB, free: 65.96 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001641/1.982, allocations: 52.42 kB / 0.7174 GB, free: 65.91 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.511e-05/1.982, allocations: 27.98 kB / 0.7174 GB, free: 65.88 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0007372/1.983, allocations: 435.1 kB / 0.7178 GB, free: 65.46 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.21e-07/1.983, allocations: 0 / 0.7178 GB, free: 65.46 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002321/1.985, allocations: 0.5815 MB / 0.7184 GB, free: 64.88 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.004475/1.99, allocations: 2.42 MB / 0.7208 GB, free: 62.45 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003087/1.993, allocations: 1.104 MB / 0.7219 GB, free: 61.36 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.523e-06/1.993, allocations: 0 / 0.7219 GB, free: 61.36 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009476/1.994, allocations: 375.2 kB / 0.7222 GB, free: 60.99 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002719/1.997, allocations: 333.9 kB / 0.7225 GB, free: 60.67 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004258/2.001, allocations: 1.54 MB / 0.724 GB, free: 59.08 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000473/2.002, allocations: 0.9791 MB / 0.725 GB, free: 58.07 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006244/2.002, allocations: 259.3 kB / 0.7252 GB, free: 57.82 MB / 362.7 MB Notification: Performance of SimCode: time 1.493e-06/2.002, allocations: 4 kB / 0.7252 GB, free: 57.81 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.012/5.014, allocations: 21.01 MB / 0.7458 GB, free: 36.81 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