Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.TanksWithOverflow,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_Tanks_TanksWithOverflow",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.107/2.107, allocations: 225.8 MB / 239.3 MB, free: 11.2 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.445e-05/3.46e-05, allocations: 4 kB / 292.7 MB, free: 8.254 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1168/0.1169, allocations: 50.4 MB / 343.1 MB, free: 5.828 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.495/1.612, allocations: 412.3 MB / 0.7377 GB, free: 126 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002483/1.612, allocations: 86.83 kB / 0.7378 GB, free: 126 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.087/2.7, allocations: 216.8 MB / 0.9496 GB, free: 100.2 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.204e-06/2.7, allocations: 0 / 0.9496 GB, free: 100.2 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001556/2.7, allocations: 35.66 kB / 0.9496 GB, free: 100.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: 271 * Number of variables: 271 Notification: Performance of Generate backend data structure: time 0.008096/2.708, allocations: 1.799 MB / 0.9514 GB, free: 99.22 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.251e-05/2.708, allocations: 11.59 kB / 0.9514 GB, free: 99.22 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007751/2.709, allocations: 169.5 kB / 0.9515 GB, free: 99.16 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009774/2.71, allocations: 167.3 kB / 0.9517 GB, free: 99.09 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003724/2.714, allocations: 0.9889 MB / 0.9527 GB, free: 98.54 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002637/2.714, allocations: 243.1 kB / 0.9529 GB, free: 98.35 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000451/2.715, allocations: 96.53 kB / 0.953 GB, free: 98.32 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004938/2.72, allocations: 1.764 MB / 0.9547 GB, free: 97.59 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.57e-05/2.72, allocations: 3.938 kB / 0.9547 GB, free: 97.58 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002566/2.72, allocations: 44.14 kB / 0.9547 GB, free: 97.55 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002034/2.72, allocations: 98.3 kB / 0.9548 GB, free: 97.54 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00487/2.725, allocations: 1.708 MB / 0.9565 GB, free: 96.96 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02027/2.745, allocations: 6.814 MB / 0.9632 GB, free: 92.13 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004036/2.749, allocations: 1.402 MB / 0.9645 GB, free: 91.44 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002113/2.752, allocations: 0.8317 MB / 0.9653 GB, free: 91.02 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009713/2.761, allocations: 3.944 MB / 0.9692 GB, free: 87.91 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.053e-05/2.761, allocations: 51.03 kB / 0.9692 GB, free: 87.86 MB / 458.7 MB Notification: Performance of pre-optimization done (n=110): time 4.278e-06/2.761, allocations: 0 / 0.9692 GB, free: 87.86 MB / 458.7 MB Notification: Performance of matching and sorting (n=122): time 0.01669/2.778, allocations: 4.594 MB / 0.9737 GB, free: 85.1 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.528e-05/2.778, allocations: 171.2 kB / 0.9739 GB, free: 84.89 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001979/2.78, allocations: 0.9891 MB / 0.9749 GB, free: 83.89 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004157/2.781, allocations: 45.7 kB / 0.9749 GB, free: 83.84 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004841/2.781, allocations: 0.5119 MB / 0.9754 GB, free: 83.32 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005773/2.782, allocations: 417.6 kB / 0.9758 GB, free: 82.92 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001682/2.782, allocations: 28 kB / 0.9758 GB, free: 82.89 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001116/2.782, allocations: 353.9 kB / 0.9762 GB, free: 82.54 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001958/2.784, allocations: 0.7448 MB / 0.9769 GB, free: 81.8 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002089/2.786, allocations: 0.9841 MB / 0.9779 GB, free: 80.73 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002071/2.788, allocations: 0.7996 MB / 0.9786 GB, free: 79.94 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.624e-06/2.788, allocations: 3.875 kB / 0.9786 GB, free: 79.94 MB / 458.7 MB Notification: Performance of matching and sorting (n=168) (initialization): time 0.006856/2.795, allocations: 2.38 MB / 0.981 GB, free: 77.54 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005306/2.796, allocations: 2.188 MB / 0.9831 GB, free: 75.21 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.843e-05/2.796, allocations: 8 kB / 0.9831 GB, free: 75.2 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006013/2.802, allocations: 1.188 MB / 0.9843 GB, free: 74.05 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00205/2.804, allocations: 215.7 kB / 0.9845 GB, free: 73.84 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008235/2.812, allocations: 6.171 MB / 0.9905 GB, free: 67.35 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002848/2.815, allocations: 97.16 kB / 0.9906 GB, free: 67.26 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004086/2.816, allocations: 63.91 kB / 0.9907 GB, free: 67.2 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.303e-05/2.816, allocations: 4 kB / 0.9907 GB, free: 67.19 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00628/2.822, allocations: 2.193 MB / 0.9928 GB, free: 64.99 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.088e-05/2.822, allocations: 4 kB / 0.9928 GB, free: 64.99 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004315/2.826, allocations: 1.012 MB / 0.9938 GB, free: 64 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002134/2.828, allocations: 223.6 kB / 0.994 GB, free: 63.78 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007636/2.836, allocations: 6.025 MB / 0.9999 GB, free: 57.42 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002617/2.839, allocations: 95.84 kB / 1 GB, free: 57.33 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000225/2.839, allocations: 59.97 kB / 1 GB, free: 57.27 MB / 458.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.0005809/2.84, allocations: 180.7 kB / 1 GB, free: 57.09 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003924/2.84, allocations: 138.4 kB / 1 GB, free: 56.95 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007239/2.847, allocations: 2.561 MB / 1.003 GB, free: 54.36 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.011e-05/2.847, allocations: 19.98 kB / 1.003 GB, free: 54.34 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.494e-06/2.847, allocations: 0 / 1.003 GB, free: 54.34 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.706e-05/2.847, allocations: 11.88 kB / 1.003 GB, free: 54.33 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01029/2.858, allocations: 4.16 MB / 1.007 GB, free: 50.13 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.328e-05/2.858, allocations: 3.953 kB / 1.007 GB, free: 50.13 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001518/2.859, allocations: 151.8 kB / 1.007 GB, free: 49.98 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005496/2.865, allocations: 1.189 MB / 1.008 GB, free: 48.8 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003127/2.865, allocations: 39.97 kB / 1.008 GB, free: 48.76 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007989/2.873, allocations: 6.209 MB / 1.014 GB, free: 42.22 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.484e-06/2.873, allocations: 0 / 1.014 GB, free: 42.22 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008942/2.882, allocations: 3.538 MB / 1.018 GB, free: 38.65 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001363/2.884, allocations: 439.1 kB / 1.018 GB, free: 38.2 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004013/2.884, allocations: 24 kB / 1.018 GB, free: 38.18 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002038/2.886, allocations: 95.92 kB / 1.018 GB, free: 38.09 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000468/2.887, allocations: 137.1 kB / 1.018 GB, free: 37.95 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002031/2.887, allocations: 51.97 kB / 1.019 GB, free: 37.9 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001475/2.888, allocations: 0.7431 MB / 1.019 GB, free: 37.14 MB / 458.7 MB Notification: Performance of sort global known variables: time 5.21e-07/2.888, allocations: 0 / 1.019 GB, free: 37.14 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.005119/2.893, allocations: 1.124 MB / 1.02 GB, free: 36.02 MB / 458.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.01206/2.906, allocations: 4.837 MB / 1.025 GB, free: 31.2 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01092/2.916, allocations: 3.48 MB / 1.028 GB, free: 27.69 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.416e-06/2.917, allocations: 0 / 1.028 GB, free: 27.69 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004203/2.921, allocations: 1.297 MB / 1.03 GB, free: 26.37 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004641/2.925, allocations: 0.5555 MB / 1.03 GB, free: 25.83 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01242/2.938, allocations: 3.102 MB / 1.033 GB, free: 22.69 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009083/2.939, allocations: 1.297 MB / 1.035 GB, free: 21.37 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.003748/2.943, allocations: 0.7001 MB / 1.035 GB, free: 20.68 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00102/2.944, allocations: 0.4953 MB / 1.036 GB, free: 20.18 MB / 458.7 MB Notification: Performance of SimCode: time 1.252e-06/2.944, allocations: 0 / 1.036 GB, free: 20.18 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4663/3.41, allocations: 55.09 MB / 1.09 GB, free: 86 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002/3.41, allocations: 228.9 kB / 1.09 GB, free: 85.78 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.555/8.965, allocations: 0 / 1.09 GB, free: 85.78 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow_res.mat does not exist to compare? outputFormat=mat