Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.EmptyTanks,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_Tanks_EmptyTanks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.163/2.163, allocations: 225.8 MB / 239.3 MB, free: 11.2 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.608e-05/3.623e-05, allocations: 2.188 kB / 292.7 MB, free: 8.266 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1539/0.154, allocations: 50.42 MB / 343.2 MB, free: 5.828 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.099/1.253, allocations: 321.7 MB / 0.6493 GB, free: 34.48 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002811/1.254, allocations: 82.33 kB / 0.6494 GB, free: 34.44 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7924/2.046, allocations: 134.3 MB / 0.7805 GB, free: 108.4 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.974e-06/2.046, allocations: 0 / 0.7805 GB, free: 108.4 MB / 458.7 MB Notification: Performance of Transformations before backend: time 7.234e-05/2.046, allocations: 22.89 kB / 0.7806 GB, free: 108.4 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.003482/2.05, allocations: 1.091 MB / 0.7816 GB, free: 107.3 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.067e-05/2.05, allocations: 8.031 kB / 0.7816 GB, free: 107.3 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002002/2.05, allocations: 101.9 kB / 0.7817 GB, free: 107.1 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005109/2.051, allocations: 95.06 kB / 0.7818 GB, free: 107.1 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001911/2.053, allocations: 0.6567 MB / 0.7825 GB, free: 106.4 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001218/2.053, allocations: 106.6 kB / 0.7826 GB, free: 106.3 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001518/2.053, allocations: 54.95 kB / 0.7826 GB, free: 106.2 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002082/2.055, allocations: 0.8748 MB / 0.7835 GB, free: 105.3 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.046e-05/2.055, allocations: 4 kB / 0.7835 GB, free: 105.3 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001182/2.055, allocations: 22.66 kB / 0.7835 GB, free: 105.3 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001148/2.055, allocations: 49.28 kB / 0.7835 GB, free: 105.2 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001938/2.057, allocations: 0.8029 MB / 0.7843 GB, free: 104.4 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009582/2.067, allocations: 3.298 MB / 0.7875 GB, free: 101 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001506/2.068, allocations: 0.6465 MB / 0.7882 GB, free: 100.4 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007687/2.069, allocations: 366.4 kB / 0.7885 GB, free: 100 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004207/2.073, allocations: 2.059 MB / 0.7905 GB, free: 97.77 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.116e-05/2.074, allocations: 43.06 kB / 0.7906 GB, free: 97.71 MB / 458.7 MB Notification: Performance of pre-optimization done (n=56): time 3.927e-06/2.074, allocations: 0 / 0.7906 GB, free: 97.71 MB / 458.7 MB Notification: Performance of matching and sorting (n=66): time 0.007128/2.081, allocations: 2.217 MB / 0.7927 GB, free: 95.45 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.537e-05/2.081, allocations: 85.67 kB / 0.7928 GB, free: 95.35 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001058/2.082, allocations: 0.5933 MB / 0.7934 GB, free: 94.75 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001119/2.082, allocations: 37.7 kB / 0.7934 GB, free: 94.7 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002536/2.082, allocations: 343.1 kB / 0.7938 GB, free: 94.37 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002319/2.082, allocations: 229.3 kB / 0.794 GB, free: 94.14 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001086/2.083, allocations: 12 kB / 0.794 GB, free: 94.13 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001374/2.083, allocations: 386.8 kB / 0.7944 GB, free: 93.75 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008492/2.084, allocations: 345.4 kB / 0.7947 GB, free: 93.41 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009143/2.085, allocations: 499.1 kB / 0.7952 GB, free: 92.86 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009131/2.085, allocations: 401.9 kB / 0.7956 GB, free: 92.47 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.5e-06/2.085, allocations: 4 kB / 0.7956 GB, free: 92.47 MB / 458.7 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.002869/2.088, allocations: 1.117 MB / 0.7966 GB, free: 91.34 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003439/2.089, allocations: 1.572 MB / 0.7982 GB, free: 89.64 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.347e-05/2.089, allocations: 7.984 kB / 0.7982 GB, free: 89.64 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001972/2.091, allocations: 432.5 kB / 0.7986 GB, free: 89.21 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001277/2.092, allocations: 163.7 kB / 0.7988 GB, free: 89.05 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001642/2.094, allocations: 1.009 MB / 0.7997 GB, free: 88.02 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001256/2.095, allocations: 47.95 kB / 0.7998 GB, free: 87.97 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001111/2.095, allocations: 35.98 kB / 0.7998 GB, free: 87.93 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.576e-05/2.095, allocations: 11.55 kB / 0.7998 GB, free: 87.93 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002507/2.098, allocations: 0.9676 MB / 0.8008 GB, free: 86.95 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.658e-06/2.098, allocations: 4 kB / 0.8008 GB, free: 86.95 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001111/2.099, allocations: 317.1 kB / 0.8011 GB, free: 86.64 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001202/2.1, allocations: 163.7 kB / 0.8012 GB, free: 86.48 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001314/2.101, allocations: 0.9035 MB / 0.8021 GB, free: 85.55 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001106/2.102, allocations: 44.02 kB / 0.8022 GB, free: 85.5 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001319/2.103, allocations: 35.92 kB / 0.8022 GB, free: 85.47 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.0003064/2.103, allocations: 161.4 kB / 0.8024 GB, free: 85.3 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001887/2.103, allocations: 75.06 kB / 0.8024 GB, free: 85.23 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002814/2.106, allocations: 1.079 MB / 0.8035 GB, free: 84.14 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.107e-05/2.106, allocations: 11.94 kB / 0.8035 GB, free: 84.12 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.853e-06/2.106, allocations: 0 / 0.8035 GB, free: 84.12 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.143e-05/2.106, allocations: 3.984 kB / 0.8035 GB, free: 84.12 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004464/2.111, allocations: 1.993 MB / 0.8054 GB, free: 82.09 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.382e-06/2.111, allocations: 4 kB / 0.8054 GB, free: 82.08 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001079/2.112, allocations: 111.9 kB / 0.8056 GB, free: 81.97 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001897/2.114, allocations: 452.4 kB / 0.806 GB, free: 81.53 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.606e-05/2.114, allocations: 19.98 kB / 0.806 GB, free: 81.51 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001603/2.115, allocations: 1.021 MB / 0.807 GB, free: 80.46 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.947e-06/2.115, allocations: 3.938 kB / 0.807 GB, free: 80.46 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003474/2.119, allocations: 1.583 MB / 0.8085 GB, free: 78.86 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006353/2.12, allocations: 256 kB / 0.8088 GB, free: 78.59 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001844/2.12, allocations: 12 kB / 0.8088 GB, free: 78.57 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001091/2.121, allocations: 47.88 kB / 0.8088 GB, free: 78.53 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001902/2.121, allocations: 56.69 kB / 0.8089 GB, free: 78.47 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001008/2.121, allocations: 31.98 kB / 0.8089 GB, free: 78.44 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0008103/2.122, allocations: 475.1 kB / 0.8094 GB, free: 77.98 MB / 458.7 MB Notification: Performance of sort global known variables: time 5.41e-07/2.122, allocations: 0 / 0.8094 GB, free: 77.98 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002504/2.124, allocations: 0.6284 MB / 0.81 GB, free: 77.35 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.005367/2.13, allocations: 2.618 MB / 0.8126 GB, free: 74.75 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.004225/2.134, allocations: 1.36 MB / 0.8139 GB, free: 73.39 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 6.632e-06/2.134, allocations: 0.75 kB / 0.8139 GB, free: 73.39 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001465/2.136, allocations: 462.7 kB / 0.8143 GB, free: 72.94 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002878/2.139, allocations: 357.3 kB / 0.8147 GB, free: 72.59 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006365/2.145, allocations: 1.697 MB / 0.8163 GB, free: 70.85 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005575/2.146, allocations: 1.008 MB / 0.8173 GB, free: 69.81 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002271/2.148, allocations: 362.5 kB / 0.8177 GB, free: 69.45 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005916/2.149, allocations: 283.3 kB / 0.8179 GB, free: 69.17 MB / 458.7 MB Notification: Performance of SimCode: time 1.422e-06/2.149, allocations: 0 / 0.8179 GB, free: 69.17 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07635/2.225, allocations: 30.46 MB / 0.8477 GB, free: 38.93 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002219/2.225, allocations: 177.3 kB / 0.8478 GB, free: 38.7 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.075/6.3, allocations: 0 / 0.8478 GB, free: 38.7 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks_res.mat does not exist to compare? outputFormat=mat