Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.EmptyTanks,fileNamePrefix="Modelica_trunk_cpp_Modelica_Fluid_Examples_Tanks_EmptyTanks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.071/2.071, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.047e-05/3.054e-05, allocations: 4 kB / 292.2 MB, free: 8.758 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.109/0.1091, allocations: 50.41 MB / 342.6 MB, free: 6.328 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.045/1.154, allocations: 321.8 MB / 0.6488 GB, free: 34.06 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002391/1.154, allocations: 78.14 kB / 0.6489 GB, free: 34.02 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7699/1.924, allocations: 134.3 MB / 0.7801 GB, free: 108.3 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.623e-06/1.924, allocations: 0 / 0.7801 GB, free: 108.3 MB / 458.7 MB Notification: Performance of Transformations before backend: time 7.07e-05/1.924, allocations: 26.75 kB / 0.7801 GB, free: 108.2 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: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.003248/1.928, allocations: 1.088 MB / 0.7812 GB, free: 107.1 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.803e-05/1.928, allocations: 12.03 kB / 0.7812 GB, free: 107.1 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001858/1.928, allocations: 97.95 kB / 0.7813 GB, free: 107 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004444/1.928, allocations: 95.05 kB / 0.7814 GB, free: 106.9 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001809/1.93, allocations: 0.6563 MB / 0.782 GB, free: 106.2 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001165/1.93, allocations: 111.5 kB / 0.7821 GB, free: 106.1 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001479/1.93, allocations: 55.81 kB / 0.7822 GB, free: 106.1 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002/1.932, allocations: 0.8729 MB / 0.783 GB, free: 105.2 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.742e-05/1.932, allocations: 4 kB / 0.783 GB, free: 105.2 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001181/1.933, allocations: 25.39 kB / 0.783 GB, free: 105.1 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000114/1.933, allocations: 53.27 kB / 0.7831 GB, free: 105.1 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001891/1.935, allocations: 0.8067 MB / 0.7839 GB, free: 104.3 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008/1.943, allocations: 3.285 MB / 0.7871 GB, free: 100.9 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001405/1.944, allocations: 0.648 MB / 0.7877 GB, free: 100.2 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007616/1.945, allocations: 358.4 kB / 0.7881 GB, free: 99.87 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004015/1.949, allocations: 2.064 MB / 0.7901 GB, free: 97.62 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.076e-05/1.949, allocations: 47.06 kB / 0.7901 GB, free: 97.57 MB / 458.7 MB Notification: Performance of pre-optimization done (n=56): time 2.685e-06/1.949, allocations: 4 kB / 0.7901 GB, free: 97.57 MB / 458.7 MB Notification: Performance of matching and sorting (n=66): time 0.006872/1.956, allocations: 2.206 MB / 0.7923 GB, free: 95.32 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.651e-05/1.956, allocations: 85.67 kB / 0.7924 GB, free: 95.21 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001033/1.957, allocations: 0.5972 MB / 0.793 GB, free: 94.61 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 9.009e-05/1.957, allocations: 37.7 kB / 0.793 GB, free: 94.56 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002156/1.957, allocations: 358.9 kB / 0.7933 GB, free: 94.21 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000214/1.958, allocations: 222.9 kB / 0.7935 GB, free: 94 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.536e-05/1.958, allocations: 16 kB / 0.7936 GB, free: 93.98 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 8.634e-05/1.958, allocations: 342.8 kB / 0.7939 GB, free: 93.64 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008299/1.959, allocations: 349.4 kB / 0.7942 GB, free: 93.29 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009072/1.959, allocations: 499.1 kB / 0.7947 GB, free: 92.75 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009346/1.96, allocations: 401.9 kB / 0.7951 GB, free: 92.36 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.639e-06/1.96, allocations: 0 / 0.7951 GB, free: 92.36 MB / 458.7 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.002702/1.963, allocations: 1.067 MB / 0.7961 GB, free: 91.28 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000332/1.964, allocations: 1.579 MB / 0.7977 GB, free: 89.58 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.181e-05/1.964, allocations: 4 kB / 0.7977 GB, free: 89.57 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001954/1.966, allocations: 436.5 kB / 0.7981 GB, free: 89.14 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001258/1.967, allocations: 163.7 kB / 0.7982 GB, free: 88.98 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001619/1.968, allocations: 1.013 MB / 0.7992 GB, free: 87.95 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001166/1.97, allocations: 39.92 kB / 0.7993 GB, free: 87.91 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001081/1.97, allocations: 39.98 kB / 0.7993 GB, free: 87.87 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.428e-05/1.97, allocations: 8.578 kB / 0.7993 GB, free: 87.86 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002494/1.972, allocations: 0.9718 MB / 0.8003 GB, free: 86.88 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.421e-05/1.972, allocations: 4 kB / 0.8003 GB, free: 86.88 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001085/1.973, allocations: 308.7 kB / 0.8006 GB, free: 86.57 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001395/1.975, allocations: 167.7 kB / 0.8007 GB, free: 86.41 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001417/1.976, allocations: 0.8879 MB / 0.8016 GB, free: 85.5 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001049/1.977, allocations: 47.92 kB / 0.8016 GB, free: 85.45 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001119/1.978, allocations: 35.98 kB / 0.8017 GB, free: 85.41 MB / 458.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.0003425/1.978, allocations: 152.7 kB / 0.8018 GB, free: 85.26 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002877/1.978, allocations: 79.06 kB / 0.8019 GB, free: 85.18 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00293/1.981, allocations: 1.082 MB / 0.8029 GB, free: 84.08 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.118e-05/1.981, allocations: 4 kB / 0.8029 GB, free: 84.08 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.624e-06/1.981, allocations: 4 kB / 0.803 GB, free: 84.07 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.136e-05/1.981, allocations: 7.984 kB / 0.803 GB, free: 84.07 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004423/1.986, allocations: 1.991 MB / 0.8049 GB, free: 82.04 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.701e-06/1.986, allocations: 0 / 0.8049 GB, free: 82.04 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00108/1.987, allocations: 119.8 kB / 0.805 GB, free: 81.92 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001882/1.989, allocations: 448.5 kB / 0.8054 GB, free: 81.48 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.946e-05/1.989, allocations: 15.98 kB / 0.8055 GB, free: 81.46 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001531/1.99, allocations: 1.025 MB / 0.8065 GB, free: 80.41 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.854e-06/1.99, allocations: 3.938 kB / 0.8065 GB, free: 80.41 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003314/1.994, allocations: 1.58 MB / 0.808 GB, free: 78.8 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005451/1.994, allocations: 256 kB / 0.8083 GB, free: 78.54 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00018/1.994, allocations: 12 kB / 0.8083 GB, free: 78.52 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00107/1.995, allocations: 51.88 kB / 0.8083 GB, free: 78.47 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001805/1.996, allocations: 56.69 kB / 0.8084 GB, free: 78.42 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001013/1.996, allocations: 27.98 kB / 0.8084 GB, free: 78.39 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.000783/1.997, allocations: 475.1 kB / 0.8088 GB, free: 77.93 MB / 458.7 MB Notification: Performance of sort global known variables: time 4.9e-07/1.997, allocations: 0 / 0.8088 GB, free: 77.93 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002275/1.999, allocations: 0.6323 MB / 0.8095 GB, free: 77.3 MB / 458.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.005137/2.004, allocations: 2.622 MB / 0.812 GB, free: 74.7 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.004082/2.008, allocations: 1.337 MB / 0.8133 GB, free: 73.36 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 6.602e-06/2.008, allocations: 4.062 kB / 0.8133 GB, free: 73.36 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001415/2.01, allocations: 450.7 kB / 0.8138 GB, free: 72.91 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002737/2.012, allocations: 356.5 kB / 0.8141 GB, free: 72.57 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00532/2.018, allocations: 1.726 MB / 0.8158 GB, free: 70.79 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004922/2.018, allocations: 1.011 MB / 0.8168 GB, free: 69.75 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006408/2.019, allocations: 291.3 kB / 0.8171 GB, free: 69.46 MB / 458.7 MB Notification: Performance of SimCode: time 1.352e-06/2.019, allocations: 4 kB / 0.8171 GB, free: 69.46 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.965/4.984, allocations: 22.61 MB / 0.8391 GB, free: 46.95 MB / 458.7 MB