Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks,fileNamePrefix="Modelica_trunk_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.958/1.958, allocations: 225.8 MB / 239.3 MB, free: 11.2 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.705e-05/2.709e-05, allocations: 0 / 292.2 MB, free: 8.742 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1079/0.108, allocations: 50.41 MB / 342.6 MB, free: 6.309 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.053/1.161, allocations: 322.5 MB / 0.6496 GB, free: 33.28 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003103/1.162, allocations: 87.2 kB / 0.6497 GB, free: 33.23 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7806/1.942, allocations: 140.2 MB / 0.7866 GB, free: 101.7 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.046e-06/1.942, allocations: 4 kB / 0.7866 GB, free: 101.7 MB / 458.7 MB Notification: Performance of Transformations before backend: time 8.773e-05/1.942, allocations: 18.81 kB / 0.7866 GB, free: 101.7 MB / 458.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.00353/1.946, allocations: 1.029 MB / 0.7876 GB, free: 100.6 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.564e-05/1.946, allocations: 12.03 kB / 0.7876 GB, free: 100.6 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002912/1.946, allocations: 92.7 kB / 0.7877 GB, free: 100.5 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005041/1.947, allocations: 83.06 kB / 0.7878 GB, free: 100.4 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001967/1.949, allocations: 0.5806 MB / 0.7883 GB, free: 99.8 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.974e-05/1.949, allocations: 50.56 kB / 0.7884 GB, free: 99.75 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001673/1.949, allocations: 47.91 kB / 0.7884 GB, free: 99.71 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001774/1.951, allocations: 0.7155 MB / 0.7891 GB, free: 98.97 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.389e-05/1.951, allocations: 4 kB / 0.7891 GB, free: 98.96 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001125/1.951, allocations: 20 kB / 0.7891 GB, free: 98.95 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001321/1.951, allocations: 44.97 kB / 0.7892 GB, free: 98.9 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001709/1.953, allocations: 0.6617 MB / 0.7898 GB, free: 98.24 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006707/1.96, allocations: 2.853 MB / 0.7926 GB, free: 95.23 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001073/1.961, allocations: 467.7 kB / 0.7931 GB, free: 94.77 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005395/1.961, allocations: 250 kB / 0.7933 GB, free: 94.52 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003566/1.962, allocations: 344.3 kB / 0.7936 GB, free: 94.11 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.299e-05/1.962, allocations: 39 kB / 0.7937 GB, free: 94.06 MB / 458.7 MB Notification: Performance of pre-optimization done (n=48): time 4.719e-06/1.962, allocations: 0 / 0.7937 GB, free: 94.06 MB / 458.7 MB Notification: Performance of matching and sorting (n=58): time 0.006847/1.969, allocations: 1.834 MB / 0.7955 GB, free: 92.18 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.919e-05/1.969, allocations: 81.67 kB / 0.7955 GB, free: 92.08 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001011/1.97, allocations: 0.5385 MB / 0.7961 GB, free: 91.54 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001914/1.97, allocations: 41.7 kB / 0.7961 GB, free: 91.49 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002378/1.97, allocations: 348.9 kB / 0.7964 GB, free: 91.14 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002227/1.97, allocations: 206.8 kB / 0.7966 GB, free: 90.95 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.27e-05/1.971, allocations: 16 kB / 0.7966 GB, free: 90.93 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 8.412e-05/1.971, allocations: 346.8 kB / 0.797 GB, free: 90.58 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007204/1.971, allocations: 285.4 kB / 0.7973 GB, free: 90.3 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007415/1.972, allocations: 433.5 kB / 0.7977 GB, free: 89.81 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007409/1.973, allocations: 333.9 kB / 0.798 GB, free: 89.49 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.7e-06/1.973, allocations: 0 / 0.798 GB, free: 89.49 MB / 458.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002057/1.975, allocations: 0.8596 MB / 0.7988 GB, free: 88.62 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003889/1.975, allocations: 1.746 MB / 0.8005 GB, free: 86.73 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.415e-05/1.975, allocations: 8 kB / 0.8005 GB, free: 86.73 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003289/1.979, allocations: 352.4 kB / 0.8009 GB, free: 86.38 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00124/1.98, allocations: 151.7 kB / 0.801 GB, free: 86.23 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001214/1.981, allocations: 0.8098 MB / 0.8018 GB, free: 85.39 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001129/1.982, allocations: 48.03 kB / 0.8019 GB, free: 85.35 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.912e-05/1.983, allocations: 35.97 kB / 0.8019 GB, free: 85.31 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.319e-05/1.983, allocations: 4 kB / 0.8019 GB, free: 85.31 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001932/1.985, allocations: 0.7607 MB / 0.8026 GB, free: 84.55 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.055e-05/1.985, allocations: 4 kB / 0.8026 GB, free: 84.54 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002387/1.987, allocations: 225.3 kB / 0.8029 GB, free: 84.32 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001286/1.988, allocations: 159.7 kB / 0.803 GB, free: 84.16 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000802/1.989, allocations: 0.6927 MB / 0.8037 GB, free: 83.45 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008265/1.99, allocations: 48.03 kB / 0.8037 GB, free: 83.4 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.751e-05/1.99, allocations: 32.06 kB / 0.8038 GB, free: 83.37 MB / 458.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.0002859/1.99, allocations: 151.5 kB / 0.8039 GB, free: 83.21 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002346/1.991, allocations: 75.11 kB / 0.804 GB, free: 83.14 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002272/1.993, allocations: 0.8304 MB / 0.8048 GB, free: 82.3 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.156e-05/1.993, allocations: 12 kB / 0.8048 GB, free: 82.29 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.943e-06/1.993, allocations: 0 / 0.8048 GB, free: 82.29 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.079e-05/1.993, allocations: 3.984 kB / 0.8048 GB, free: 82.29 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003941/1.997, allocations: 1.641 MB / 0.8064 GB, free: 80.6 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.524e-06/1.997, allocations: 0 / 0.8064 GB, free: 80.6 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009687/1.998, allocations: 111.9 kB / 0.8065 GB, free: 80.49 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002425/2, allocations: 320.6 kB / 0.8068 GB, free: 80.17 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001372/2.001, allocations: 19.98 kB / 0.8068 GB, free: 80.15 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009882/2.002, allocations: 0.8059 MB / 0.8076 GB, free: 79.32 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.917e-06/2.002, allocations: 8 kB / 0.8076 GB, free: 79.31 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002615/2.004, allocations: 1.232 MB / 0.8088 GB, free: 78.04 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003504/2.005, allocations: 156.3 kB / 0.809 GB, free: 77.87 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001751/2.005, allocations: 16 kB / 0.809 GB, free: 77.85 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008939/2.006, allocations: 39.88 kB / 0.809 GB, free: 77.81 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001704/2.006, allocations: 52.48 kB / 0.8091 GB, free: 77.76 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.645e-05/2.006, allocations: 27.92 kB / 0.8091 GB, free: 77.73 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0007535/2.007, allocations: 435.2 kB / 0.8095 GB, free: 77.31 MB / 458.7 MB Notification: Performance of sort global known variables: time 5.01e-07/2.007, allocations: 3.938 kB / 0.8095 GB, free: 77.31 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002508/2.009, allocations: 0.5893 MB / 0.8101 GB, free: 76.72 MB / 458.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.004525/2.014, allocations: 2.429 MB / 0.8125 GB, free: 74.29 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.003164/2.017, allocations: 1.079 MB / 0.8135 GB, free: 73.21 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.125e-06/2.017, allocations: 0 / 0.8135 GB, free: 73.21 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009806/2.018, allocations: 367.9 kB / 0.8139 GB, free: 72.86 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00282/2.021, allocations: 333.1 kB / 0.8142 GB, free: 72.54 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004563/2.026, allocations: 1.551 MB / 0.8157 GB, free: 70.93 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004665/2.026, allocations: 0.9752 MB / 0.8167 GB, free: 69.93 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006259/2.027, allocations: 255.3 kB / 0.8169 GB, free: 69.68 MB / 458.7 MB Notification: Performance of SimCode: time 1.272e-06/2.027, allocations: 0 / 0.8169 GB, free: 69.68 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.094/5.121, allocations: 21.05 MB / 0.8375 GB, free: 48.73 MB / 458.7 MB