Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.EmptyTanks,fileNamePrefix="Modelica_3_2_2_Modelica_Fluid_Examples_Tanks_EmptyTanks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.376/2.376, allocations: 195 MB / 202.8 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.679e-05/2.689e-05, allocations: 4 kB / 249.7 MB, free: 14.82 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3341/0.3342, allocations: 44.5 MB / 294.2 MB, free: 14.29 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.115/1.449, allocations: 315.8 MB / 0.5957 GB, free: 112.8 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003299/1.45, allocations: 81.22 kB / 0.5958 GB, free: 112.8 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5578/2.008, allocations: 129.3 MB / 0.7221 GB, free: 11.93 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.405e-06/2.008, allocations: 0 / 0.7221 GB, free: 11.93 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000104/2.008, allocations: 24 kB / 0.7221 GB, free: 11.9 MB / 410.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.004516/2.012, allocations: 1.079 MB / 0.7231 GB, free: 10.77 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.091e-05/2.012, allocations: 12.03 kB / 0.7232 GB, free: 10.76 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008825/2.013, allocations: 90.97 kB / 0.7232 GB, free: 10.67 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002444/2.016, allocations: 0.6635 MB / 0.7239 GB, free: 9.969 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001435/2.016, allocations: 80.72 kB / 0.724 GB, free: 9.879 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002024/2.016, allocations: 32 kB / 0.724 GB, free: 9.848 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001997/2.018, allocations: 0.7483 MB / 0.7247 GB, free: 9.098 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001987/2.02, allocations: 0.8009 MB / 0.7255 GB, free: 8.266 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.38e-05/2.02, allocations: 11.94 kB / 0.7255 GB, free: 8.254 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001124/2.021, allocations: 0 / 0.7255 GB, free: 8.254 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001375/2.021, allocations: 53.28 kB / 0.7256 GB, free: 8.203 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009293/2.03, allocations: 3.155 MB / 0.7287 GB, free: 4.906 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001443/2.031, allocations: 0.6209 MB / 0.7293 GB, free: 4.277 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007335/2.032, allocations: 346.4 kB / 0.7296 GB, free: 3.934 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004717/2.037, allocations: 2.031 MB / 0.7316 GB, free: 1.707 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.268e-05/2.037, allocations: 39.12 kB / 0.7316 GB, free: 1.66 MB / 410.7 MB Notification: Performance of pre-optimization done (n=56): time 4.358e-06/2.037, allocations: 0 / 0.7316 GB, free: 1.66 MB / 410.7 MB Notification: Performance of matching and sorting (n=66): time 0.3052/2.342, allocations: 2.475 MB / 0.734 GB, free: 98 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.757e-05/2.343, allocations: 88.09 kB / 0.7341 GB, free: 97.91 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001085/2.344, allocations: 454.4 kB / 0.7345 GB, free: 97.8 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002472/2.344, allocations: 27.3 kB / 0.7346 GB, free: 97.77 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003065/2.344, allocations: 343.4 kB / 0.7349 GB, free: 97.62 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002969/2.345, allocations: 220 kB / 0.7351 GB, free: 97.5 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.802e-05/2.345, allocations: 0 / 0.7351 GB, free: 97.5 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001363/2.345, allocations: 376.6 kB / 0.7355 GB, free: 97.19 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009339/2.346, allocations: 342.2 kB / 0.7358 GB, free: 97.19 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001015/2.347, allocations: 488.7 kB / 0.7363 GB, free: 97.04 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00801/2.355, allocations: 0.9926 MB / 0.7372 GB, free: 97.04 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.966e-05/2.355, allocations: 1.156 kB / 0.7372 GB, free: 97.04 MB / 410.7 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.01042/2.365, allocations: 1.678 MB / 0.7389 GB, free: 96.95 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003939/2.366, allocations: 1.574 MB / 0.7404 GB, free: 95.32 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.85e-05/2.366, allocations: 6.938 kB / 0.7404 GB, free: 95.32 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001577/2.367, allocations: 372.1 kB / 0.7408 GB, free: 95.31 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001453/2.369, allocations: 159.3 kB / 0.7409 GB, free: 95.31 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003591/2.373, allocations: 1.227 MB / 0.7421 GB, free: 94.79 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001447/2.374, allocations: 38.64 kB / 0.7422 GB, free: 94.78 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001731/2.374, allocations: 34.38 kB / 0.7422 GB, free: 94.78 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.962e-05/2.374, allocations: 4.312 kB / 0.7422 GB, free: 94.78 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008214/2.382, allocations: 1.311 MB / 0.7435 GB, free: 94.75 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.381e-05/2.383, allocations: 4.969 kB / 0.7435 GB, free: 94.75 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001038/2.384, allocations: 243.2 kB / 0.7437 GB, free: 94.74 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001414/2.385, allocations: 169.6 kB / 0.7439 GB, free: 94.74 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001156/2.386, allocations: 0.8245 MB / 0.7447 GB, free: 94.22 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001205/2.388, allocations: 29.77 kB / 0.7447 GB, free: 94.22 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001327/2.388, allocations: 35.41 kB / 0.7447 GB, free: 94.22 MB / 410.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.0004003/2.388, allocations: 131.3 kB / 0.7449 GB, free: 94.11 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004584/2.393, allocations: 1.041 MB / 0.7459 GB, free: 94.03 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003197/2.393, allocations: 73.88 kB / 0.746 GB, free: 94 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004952/2.398, allocations: 1.189 MB / 0.7471 GB, free: 93.92 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.517e-05/2.398, allocations: 10.16 kB / 0.7471 GB, free: 93.92 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.937e-06/2.398, allocations: 0 / 0.7471 GB, free: 93.92 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.356e-05/2.398, allocations: 3.562 kB / 0.7471 GB, free: 93.92 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006926/2.405, allocations: 2.024 MB / 0.7491 GB, free: 93.61 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.799e-06/2.405, allocations: 0 / 0.7491 GB, free: 93.61 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001153/2.406, allocations: 123.2 kB / 0.7492 GB, free: 93.61 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001355/2.408, allocations: 368.8 kB / 0.7496 GB, free: 93.6 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001647/2.408, allocations: 20.16 kB / 0.7496 GB, free: 93.6 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003219/2.411, allocations: 1.211 MB / 0.7508 GB, free: 93.08 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.214e-06/2.411, allocations: 3.625 kB / 0.7508 GB, free: 93.08 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005512/2.417, allocations: 1.691 MB / 0.7524 GB, free: 92.87 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007633/2.418, allocations: 239.2 kB / 0.7527 GB, free: 92.74 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002193/2.418, allocations: 0 / 0.7527 GB, free: 92.74 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00111/2.419, allocations: 37.41 kB / 0.7527 GB, free: 92.74 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002053/2.419, allocations: 57.59 kB / 0.7527 GB, free: 92.74 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001105/2.419, allocations: 29.5 kB / 0.7528 GB, free: 92.74 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0005986/2.42, allocations: 336.4 kB / 0.7531 GB, free: 92.66 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.21e-07/2.42, allocations: 0 / 0.7531 GB, free: 92.66 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003055/2.423, allocations: 0.5957 MB / 0.7537 GB, free: 92.66 MB / 410.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.007984/2.431, allocations: 2.695 MB / 0.7563 GB, free: 91.93 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00427/2.435, allocations: 1.291 MB / 0.7576 GB, free: 91.91 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.097e-05/2.435, allocations: 4.781 kB / 0.7576 GB, free: 91.91 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001537/2.437, allocations: 446.8 kB / 0.758 GB, free: 91.9 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00299/2.44, allocations: 309 kB / 0.7583 GB, free: 91.9 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006659/2.447, allocations: 1.618 MB / 0.7599 GB, free: 91.56 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005752/2.447, allocations: 1.01 MB / 0.7609 GB, free: 90.86 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.002138/2.45, allocations: 316.8 kB / 0.7612 GB, free: 90.84 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006373/2.45, allocations: 272 kB / 0.7614 GB, free: 90.84 MB / 410.7 MB Notification: Performance of SimCode: time 1.313e-06/2.45, allocations: 0 / 0.7614 GB, free: 90.84 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1018/2.552, allocations: 26.45 MB / 0.7873 GB, free: 89.6 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002572/2.552, allocations: 129.4 kB / 0.7874 GB, free: 89.4 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.896/6.449, allocations: 0 / 0.7874 GB, free: 89.4 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.EmptyTanks_res.mat does not exist to compare? outputFormat=mat