Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.TanksWithOverflow,fileNamePrefix="Modelica_3_2_3_Modelica_Fluid_Examples_Tanks_TanksWithOverflow",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.094/2.094, allocations: 205.8 MB / 218.9 MB, free: 9.352 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.581e-05/3.582e-05, allocations: 4 kB / 269.4 MB, free: 6.312 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1133/0.1133, allocations: 47.58 MB / 317 MB, free: 6.652 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.444/1.557, allocations: 409.8 MB / 0.7098 GB, free: 111.7 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002819/1.557, allocations: 80.36 kB / 0.7099 GB, free: 111.7 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.088/2.645, allocations: 212.7 MB / 0.9176 GB, free: 75.89 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.004e-06/2.645, allocations: 0 / 0.9176 GB, free: 75.89 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001408/2.646, allocations: 35.91 kB / 0.9176 GB, free: 75.86 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 271 * Number of variables: 271 Notification: Performance of Generate backend data structure: time 0.007923/2.653, allocations: 1.799 MB / 0.9194 GB, free: 74.02 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.18e-05/2.654, allocations: 12.03 kB / 0.9194 GB, free: 74.01 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007041/2.654, allocations: 172.6 kB / 0.9196 GB, free: 73.84 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001014/2.655, allocations: 170.2 kB / 0.9197 GB, free: 73.67 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003765/2.659, allocations: 0.9757 MB / 0.9207 GB, free: 72.67 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002609/2.659, allocations: 242.3 kB / 0.9209 GB, free: 72.41 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004691/2.66, allocations: 95.83 kB / 0.921 GB, free: 72.32 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004571/2.664, allocations: 1.771 MB / 0.9227 GB, free: 70.49 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.012e-05/2.665, allocations: 3.906 kB / 0.9227 GB, free: 70.49 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002688/2.665, allocations: 47.52 kB / 0.9228 GB, free: 70.45 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002007/2.665, allocations: 109.9 kB / 0.9229 GB, free: 70.34 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004713/2.67, allocations: 1.706 MB / 0.9245 GB, free: 68.62 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01968/2.69, allocations: 6.792 MB / 0.9312 GB, free: 61.64 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004053/2.694, allocations: 1.415 MB / 0.9326 GB, free: 60.21 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002118/2.696, allocations: 0.8317 MB / 0.9334 GB, free: 59.38 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009575/2.705, allocations: 3.964 MB / 0.9372 GB, free: 55.18 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.989e-05/2.705, allocations: 47.56 kB / 0.9373 GB, free: 55.12 MB / 426.7 MB Notification: Performance of pre-optimization done (n=110): time 4.418e-06/2.705, allocations: 0 / 0.9373 GB, free: 55.12 MB / 426.7 MB Notification: Performance of matching and sorting (n=122): time 0.01688/2.722, allocations: 4.596 MB / 0.9418 GB, free: 50.47 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.206e-05/2.722, allocations: 171.2 kB / 0.9419 GB, free: 50.27 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002042/2.725, allocations: 0.9827 MB / 0.9429 GB, free: 49.27 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004568/2.725, allocations: 49.7 kB / 0.9429 GB, free: 49.21 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005118/2.726, allocations: 0.5191 MB / 0.9435 GB, free: 48.69 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006559/2.726, allocations: 413.9 kB / 0.9439 GB, free: 48.29 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001909/2.726, allocations: 28 kB / 0.9439 GB, free: 48.26 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001224/2.727, allocations: 353.9 kB / 0.9442 GB, free: 47.91 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001983/2.729, allocations: 0.7419 MB / 0.9449 GB, free: 47.17 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002167/2.731, allocations: 0.9822 MB / 0.9459 GB, free: 46.1 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002202/2.733, allocations: 0.8094 MB / 0.9467 GB, free: 45.29 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.474e-06/2.733, allocations: 0 / 0.9467 GB, free: 45.29 MB / 426.7 MB Notification: Performance of matching and sorting (n=168) (initialization): time 0.007021/2.74, allocations: 2.373 MB / 0.949 GB, free: 42.89 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004662/2.741, allocations: 2.185 MB / 0.9511 GB, free: 40.54 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.774e-05/2.741, allocations: 11.95 kB / 0.9512 GB, free: 40.53 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005959/2.747, allocations: 1.198 MB / 0.9523 GB, free: 39.32 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002092/2.749, allocations: 215.7 kB / 0.9525 GB, free: 39.11 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008126/2.757, allocations: 6.161 MB / 0.9585 GB, free: 32.61 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002736/2.76, allocations: 99.8 kB / 0.9586 GB, free: 32.51 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000302/2.76, allocations: 63.97 kB / 0.9587 GB, free: 32.45 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.284e-05/2.76, allocations: 4 kB / 0.9587 GB, free: 32.45 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006314/2.766, allocations: 2.178 MB / 0.9608 GB, free: 30.25 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.969e-05/2.766, allocations: 8 kB / 0.9608 GB, free: 30.24 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004151/2.771, allocations: 1.004 MB / 0.9618 GB, free: 29.22 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002053/2.773, allocations: 227.6 kB / 0.962 GB, free: 29 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007468/2.78, allocations: 6.014 MB / 0.9679 GB, free: 22.64 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002575/2.783, allocations: 99.78 kB / 0.968 GB, free: 22.55 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003048/2.783, allocations: 59.97 kB / 0.9681 GB, free: 22.49 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 12 (upperTank.regularFlow[1],upperTank.regularFlow[2],upperTank.regularFlow[3],upperTank.inFlow[1],upperTank.inFlow[2],upperTank.inFlow[3],lowerTank.regularFlow[1],lowerTank.regularFlow[2],lowerTank.inFlow[1],lowerTank.inFlow[2],$PRE.hysteresis.y,hysteresis.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (128): * Single equations (assignments): 123 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(1,100.0%) 6} * Non-linear torn systems: 3 {4 9,2 3,4 9} Notification: Performance of prepare postOptimizeDAE: time 0.0005499/2.784, allocations: 192.6 kB / 0.9682 GB, free: 22.29 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004487/2.784, allocations: 134.4 kB / 0.9684 GB, free: 22.16 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0074/2.792, allocations: 2.568 MB / 0.9709 GB, free: 19.57 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.795e-05/2.792, allocations: 15.98 kB / 0.9709 GB, free: 19.55 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.586e-06/2.792, allocations: 8 kB / 0.9709 GB, free: 19.54 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.551e-05/2.792, allocations: 3.984 kB / 0.9709 GB, free: 19.54 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01062/2.802, allocations: 4.168 MB / 0.975 GB, free: 15.33 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.213e-05/2.802, allocations: 7.938 kB / 0.975 GB, free: 15.32 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001514/2.804, allocations: 151.8 kB / 0.9751 GB, free: 15.17 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005557/2.81, allocations: 1.194 MB / 0.9763 GB, free: 13.97 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003868/2.81, allocations: 43.91 kB / 0.9763 GB, free: 13.93 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007883/2.818, allocations: 6.194 MB / 0.9824 GB, free: 7.398 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/2.818, allocations: 0 / 0.9824 GB, free: 7.398 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009058/2.827, allocations: 3.545 MB / 0.9858 GB, free: 3.828 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001459/2.829, allocations: 435.1 kB / 0.9863 GB, free: 3.383 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003968/2.829, allocations: 20 kB / 0.9863 GB, free: 3.363 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002042/2.831, allocations: 99.77 kB / 0.9864 GB, free: 3.266 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005079/2.832, allocations: 149 kB / 0.9865 GB, free: 3.117 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000213/2.832, allocations: 51.97 kB / 0.9866 GB, free: 3.066 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001513/2.833, allocations: 0.747 MB / 0.9873 GB, free: 2.309 MB / 426.7 MB Notification: Performance of sort global known variables: time 5.51e-07/2.833, allocations: 0 / 0.9873 GB, free: 2.309 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005171/2.838, allocations: 1.116 MB / 0.9884 GB, free: 1.191 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (upperTank.medium.T,upperTank.level,lowerTank.medium.T,lowerTank.level) * Number of discrete variables: 11 (upperTank.regularFlow[1],upperTank.regularFlow[2],upperTank.regularFlow[3],upperTank.inFlow[1],upperTank.inFlow[2],upperTank.inFlow[3],lowerTank.regularFlow[1],lowerTank.regularFlow[2],lowerTank.inFlow[1],lowerTank.inFlow[2],hysteresis.y) * Number of discrete states: 1 (hysteresis.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (95): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(1,100.0%) 6} * Non-linear torn systems: 3 {4 12,2 4,4 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.3289/3.167, allocations: 4.808 MB / 0.9931 GB, free: 77.18 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01243/3.18, allocations: 3.478 MB / 0.9965 GB, free: 76.73 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.119e-05/3.18, allocations: 1.312 kB / 0.9965 GB, free: 76.73 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00495/3.185, allocations: 1.294 MB / 0.9977 GB, free: 76.51 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004931/3.19, allocations: 0.5512 MB / 0.9983 GB, free: 76.51 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01427/3.204, allocations: 3.116 MB / 1.001 GB, free: 76.01 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001112/3.205, allocations: 1.285 MB / 1.003 GB, free: 75.29 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.004173/3.21, allocations: 0.7014 MB / 1.003 GB, free: 75.27 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001119/3.211, allocations: 0.4967 MB / 1.004 GB, free: 75.27 MB / 426.7 MB Notification: Performance of SimCode: time 1.693e-06/3.211, allocations: 1.406 kB / 1.004 GB, free: 75.27 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1472/3.358, allocations: 55.13 MB / 1.058 GB, free: 71.39 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002677/3.358, allocations: 214 kB / 1.058 GB, free: 71.18 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.362/8.721, allocations: 0 / 1.058 GB, free: 71.18 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflow_res.mat does not exist to compare? outputFormat=mat