Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.TanksWithOverflow,fileNamePrefix="Modelica_3_2_2_Modelica_Fluid_Examples_Tanks_TanksWithOverflow",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.129/2.129, allocations: 194.9 MB / 208 MB, free: 3.191 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.275e-05/3.291e-05, allocations: 4 kB / 255.5 MB, free: 2.641 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09828/0.09834, allocations: 44.5 MB / 300 MB, free: 6.078 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.38/1.478, allocations: 404.9 MB / 0.6883 GB, free: 106.6 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00029/1.479, allocations: 83.12 kB / 0.6884 GB, free: 106.6 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.036/2.514, allocations: 210.1 MB / 0.8936 GB, free: 82.71 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.384e-06/2.514, allocations: 2.812 kB / 0.8936 GB, free: 82.71 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001571/2.515, allocations: 31 kB / 0.8936 GB, free: 82.7 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: 271 * Number of variables: 271 Notification: Performance of Generate backend data structure: time 0.008066/2.523, allocations: 1.797 MB / 0.8954 GB, free: 81.76 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.898e-05/2.523, allocations: 11.09 kB / 0.8954 GB, free: 81.76 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008169/2.523, allocations: 166.8 kB / 0.8955 GB, free: 81.71 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001028/2.525, allocations: 171.6 kB / 0.8957 GB, free: 81.64 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003833/2.528, allocations: 0.9901 MB / 0.8967 GB, free: 81.32 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002926/2.529, allocations: 237.4 kB / 0.8969 GB, free: 81.16 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006351/2.529, allocations: 98.2 kB / 0.897 GB, free: 81.16 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005487/2.535, allocations: 1.78 MB / 0.8987 GB, free: 80.96 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.904e-05/2.535, allocations: 3.469 kB / 0.8987 GB, free: 80.96 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003161/2.535, allocations: 44.56 kB / 0.8988 GB, free: 80.96 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002118/2.536, allocations: 101.4 kB / 0.8989 GB, free: 80.96 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005208/2.541, allocations: 1.72 MB / 0.9005 GB, free: 80.8 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02241/2.563, allocations: 6.835 MB / 0.9072 GB, free: 77.11 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004483/2.568, allocations: 1.418 MB / 0.9086 GB, free: 76.56 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002403/2.57, allocations: 0.8217 MB / 0.9094 GB, free: 76.24 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01021/2.58, allocations: 3.988 MB / 0.9133 GB, free: 73.66 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.247e-05/2.581, allocations: 54.83 kB / 0.9133 GB, free: 73.61 MB / 410.7 MB Notification: Performance of pre-optimization done (n=110): time 4.248e-06/2.581, allocations: 0 / 0.9133 GB, free: 73.61 MB / 410.7 MB Notification: Performance of matching and sorting (n=122): time 0.0193/2.6, allocations: 4.615 MB / 0.9179 GB, free: 71.15 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.322e-05/2.6, allocations: 165.2 kB / 0.918 GB, free: 70.96 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002204/2.602, allocations: 0.9684 MB / 0.919 GB, free: 70.46 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005077/2.603, allocations: 49.58 kB / 0.919 GB, free: 70.41 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005632/2.603, allocations: 0.5217 MB / 0.9195 GB, free: 69.96 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008045/2.604, allocations: 420 kB / 0.9199 GB, free: 69.61 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002122/2.604, allocations: 26.38 kB / 0.9199 GB, free: 69.59 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001534/2.605, allocations: 362.5 kB / 0.9203 GB, free: 69.25 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002278/2.607, allocations: 0.7411 MB / 0.921 GB, free: 68.89 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002641/2.61, allocations: 1.006 MB / 0.922 GB, free: 67.84 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002424/2.612, allocations: 0.8072 MB / 0.9228 GB, free: 67.04 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.699e-06/2.612, allocations: 4 kB / 0.9228 GB, free: 67.04 MB / 410.7 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.007527/2.62, allocations: 2.405 MB / 0.9251 GB, free: 64.62 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005304/2.62, allocations: 2.354 MB / 0.9274 GB, free: 62.1 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.908e-05/2.62, allocations: 8 kB / 0.9274 GB, free: 62.09 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00609/2.626, allocations: 1.197 MB / 0.9286 GB, free: 60.93 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002018/2.628, allocations: 219.6 kB / 0.9288 GB, free: 60.71 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008269/2.637, allocations: 6.175 MB / 0.9348 GB, free: 54.22 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002773/2.64, allocations: 98.75 kB / 0.9349 GB, free: 54.13 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004264/2.64, allocations: 59.97 kB / 0.935 GB, free: 54.07 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.224e-05/2.64, allocations: 7.188 kB / 0.935 GB, free: 54.07 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006072/2.646, allocations: 2.017 MB / 0.937 GB, free: 52.04 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.796e-05/2.646, allocations: 11.25 kB / 0.937 GB, free: 52.03 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003675/2.65, allocations: 0.7822 MB / 0.9377 GB, free: 51.27 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002774/2.653, allocations: 231.6 kB / 0.938 GB, free: 51.04 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01166/2.664, allocations: 6.723 MB / 0.9445 GB, free: 43.89 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003486/2.668, allocations: 93.06 kB / 0.9446 GB, free: 43.81 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003657/2.668, allocations: 59.97 kB / 0.9447 GB, free: 43.75 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * 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 (130): * Single equations (assignments): 125 * 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.0008696/2.669, allocations: 188.5 kB / 0.9449 GB, free: 43.56 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006647/2.67, allocations: 134.4 kB / 0.945 GB, free: 43.43 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01114/2.681, allocations: 2.562 MB / 0.9475 GB, free: 40.86 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.014e-05/2.681, allocations: 12 kB / 0.9475 GB, free: 40.85 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.213e-05/2.681, allocations: 4 kB / 0.9475 GB, free: 40.84 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.775e-05/2.681, allocations: 11.92 kB / 0.9475 GB, free: 40.83 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01561/2.697, allocations: 4.153 MB / 0.9516 GB, free: 36.64 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.828e-05/2.697, allocations: 1.375 kB / 0.9516 GB, free: 36.64 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002135/2.699, allocations: 151.6 kB / 0.9517 GB, free: 36.5 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007815/2.707, allocations: 1.198 MB / 0.9529 GB, free: 35.33 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005122/2.708, allocations: 35.97 kB / 0.9529 GB, free: 35.3 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01146/2.719, allocations: 6.205 MB / 0.959 GB, free: 28.78 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/2.719, allocations: 0 / 0.959 GB, free: 28.78 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01253/2.732, allocations: 3.543 MB / 0.9624 GB, free: 25.21 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001635/2.733, allocations: 431.1 kB / 0.9629 GB, free: 24.77 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004829/2.734, allocations: 24 kB / 0.9629 GB, free: 24.75 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002194/2.736, allocations: 92.88 kB / 0.963 GB, free: 24.66 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005264/2.737, allocations: 145 kB / 0.9631 GB, free: 24.52 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002158/2.737, allocations: 55.95 kB / 0.9632 GB, free: 24.46 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001424/2.738, allocations: 0.738 MB / 0.9639 GB, free: 23.72 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.333e-06/2.738, allocations: 0 / 0.9639 GB, free: 23.72 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004713/2.743, allocations: 1.124 MB / 0.965 GB, free: 22.59 MB / 410.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.01152/2.755, allocations: 4.813 MB / 0.9697 GB, free: 17.81 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00981/2.764, allocations: 3.569 MB / 0.9732 GB, free: 14.18 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.534e-06/2.765, allocations: 0 / 0.9732 GB, free: 14.18 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004415/2.769, allocations: 1.316 MB / 0.9744 GB, free: 12.84 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004727/2.774, allocations: 0.5346 MB / 0.975 GB, free: 12.31 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0166/2.79, allocations: 3.123 MB / 0.978 GB, free: 9.172 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001515/2.792, allocations: 1.301 MB / 0.9793 GB, free: 7.84 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.006059/2.798, allocations: 0.6959 MB / 0.98 GB, free: 7.164 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001622/2.8, allocations: 0.5031 MB / 0.9805 GB, free: 6.66 MB / 410.7 MB Notification: Performance of SimCode: time 1.693e-06/2.8, allocations: 0 / 0.9805 GB, free: 6.66 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4425/3.242, allocations: 54.47 MB / 1.034 GB, free: 70.86 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002322/3.243, allocations: 226.4 kB / 1.034 GB, free: 70.63 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.433/8.676, allocations: 3.938 kB / 1.034 GB, free: 70.63 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.TanksWithOverflow_res.mat does not exist to compare? outputFormat=mat