Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.TanksWithOverflow,fileNamePrefix="Modelica_3_2_1_Modelica_Fluid_Examples_Tanks_TanksWithOverflow",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.733/1.733, allocations: 171.2 MB / 183.3 MB, free: 12.08 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.573e-05/3.583e-05, allocations: 4 kB / 225.1 MB, free: 2.258 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3076/0.3077, allocations: 38.76 MB / 263.8 MB, free: 9.727 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.364/1.672, allocations: 399.6 MB / 0.6479 GB, free: 101.6 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003017/1.672, allocations: 83.78 kB / 0.6479 GB, free: 101.5 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.096/2.768, allocations: 210.1 MB / 0.8531 GB, free: 62.61 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.825e-06/2.768, allocations: 3.344 kB / 0.8531 GB, free: 62.61 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001679/2.768, allocations: 36.16 kB / 0.8531 GB, free: 62.57 MB / 362.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.008613/2.776, allocations: 1.784 MB / 0.8548 GB, free: 60.76 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.822e-05/2.776, allocations: 11.88 kB / 0.8549 GB, free: 60.75 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009856/2.777, allocations: 168.3 kB / 0.855 GB, free: 60.59 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00125/2.779, allocations: 162.3 kB / 0.8552 GB, free: 60.43 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003981/2.783, allocations: 0.9952 MB / 0.8561 GB, free: 59.41 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003039/2.783, allocations: 234.3 kB / 0.8564 GB, free: 59.15 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006533/2.784, allocations: 99.66 kB / 0.8565 GB, free: 59.06 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005396/2.789, allocations: 1.772 MB / 0.8582 GB, free: 57.25 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.11e-05/2.789, allocations: 4 kB / 0.8582 GB, free: 57.24 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002967/2.79, allocations: 39.83 kB / 0.8582 GB, free: 57.21 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002119/2.79, allocations: 106 kB / 0.8583 GB, free: 57.1 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005517/2.795, allocations: 1.722 MB / 0.86 GB, free: 55.38 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02243/2.818, allocations: 6.84 MB / 0.8667 GB, free: 48.35 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004484/2.822, allocations: 1.419 MB / 0.8681 GB, free: 46.92 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002442/2.825, allocations: 0.8322 MB / 0.8689 GB, free: 46.09 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01092/2.836, allocations: 3.968 MB / 0.8728 GB, free: 41.89 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.971e-05/2.836, allocations: 51.56 kB / 0.8728 GB, free: 41.83 MB / 362.7 MB Notification: Performance of pre-optimization done (n=110): time 4.869e-06/2.836, allocations: 0 / 0.8728 GB, free: 41.83 MB / 362.7 MB Notification: Performance of matching and sorting (n=122): time 0.01861/2.855, allocations: 4.606 MB / 0.8773 GB, free: 37.16 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.007e-05/2.855, allocations: 149.5 kB / 0.8775 GB, free: 36.98 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002056/2.857, allocations: 0.9706 MB / 0.8784 GB, free: 36 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005469/2.857, allocations: 45.7 kB / 0.8784 GB, free: 35.95 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005339/2.858, allocations: 0.5273 MB / 0.879 GB, free: 35.41 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007843/2.859, allocations: 411.2 kB / 0.8794 GB, free: 35.02 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001939/2.859, allocations: 32 kB / 0.8794 GB, free: 34.98 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001496/2.859, allocations: 357.9 kB / 0.8797 GB, free: 34.63 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002142/2.861, allocations: 0.7419 MB / 0.8805 GB, free: 33.89 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002529/2.864, allocations: 0.9909 MB / 0.8814 GB, free: 32.8 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002514/2.866, allocations: 0.8168 MB / 0.8822 GB, free: 31.99 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.131e-05/2.867, allocations: 0 / 0.8822 GB, free: 31.99 MB / 362.7 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.008047/2.875, allocations: 2.405 MB / 0.8846 GB, free: 29.56 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005098/2.875, allocations: 2.357 MB / 0.8869 GB, free: 27.02 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.839e-05/2.875, allocations: 11.94 kB / 0.8869 GB, free: 27 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006289/2.882, allocations: 1.204 MB / 0.8881 GB, free: 25.81 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002124/2.884, allocations: 223.6 kB / 0.8883 GB, free: 25.59 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008598/2.892, allocations: 6.172 MB / 0.8943 GB, free: 19.09 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002787/2.895, allocations: 95.84 kB / 0.8944 GB, free: 18.99 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005173/2.896, allocations: 63.91 kB / 0.8944 GB, free: 18.93 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.634e-05/2.896, allocations: 4 kB / 0.8945 GB, free: 18.93 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006379/2.902, allocations: 2.002 MB / 0.8964 GB, free: 16.91 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.577e-05/2.902, allocations: 8 kB / 0.8964 GB, free: 16.9 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003574/2.906, allocations: 0.7901 MB / 0.8972 GB, free: 16.11 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002158/2.908, allocations: 235.6 kB / 0.8974 GB, free: 15.88 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007956/2.916, allocations: 6.723 MB / 0.904 GB, free: 8.719 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002489/2.919, allocations: 87.86 kB / 0.9041 GB, free: 8.633 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003652/2.919, allocations: 59.97 kB / 0.9041 GB, free: 8.574 MB / 362.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.0006264/2.92, allocations: 180.7 kB / 0.9043 GB, free: 8.391 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004717/2.92, allocations: 134.4 kB / 0.9044 GB, free: 8.258 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00787/2.928, allocations: 2.572 MB / 0.9069 GB, free: 5.664 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.598e-05/2.928, allocations: 12 kB / 0.9069 GB, free: 5.652 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.596e-06/2.928, allocations: 4 kB / 0.9069 GB, free: 5.648 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.136e-05/2.928, allocations: 7.969 kB / 0.907 GB, free: 5.641 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01204/2.94, allocations: 4.152 MB / 0.911 GB, free: 1.449 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-05/2.94, allocations: 0 / 0.911 GB, free: 1.449 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00168/2.942, allocations: 151.8 kB / 0.9112 GB, free: 1.301 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005856/2.948, allocations: 1.196 MB / 0.9123 GB, free: 108 kB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005122/2.948, allocations: 35.97 kB / 0.9124 GB, free: 72 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2834/3.232, allocations: 6.194 MB / 0.9184 GB, free: 60.46 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.496e-06/3.232, allocations: 4.188 kB / 0.9184 GB, free: 60.46 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01047/3.242, allocations: 3.535 MB / 0.9219 GB, free: 60.27 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001546/3.244, allocations: 440.3 kB / 0.9223 GB, free: 60.17 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004163/3.244, allocations: 22.12 kB / 0.9223 GB, free: 60.17 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002116/3.247, allocations: 94.86 kB / 0.9224 GB, free: 60.17 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005384/3.247, allocations: 144 kB / 0.9225 GB, free: 60.17 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002171/3.247, allocations: 55.41 kB / 0.9226 GB, free: 60.17 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001568/3.249, allocations: 0.736 MB / 0.9233 GB, free: 60.05 MB / 362.7 MB Notification: Performance of sort global known variables: time 9.62e-07/3.249, allocations: 0 / 0.9233 GB, free: 60.05 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.005867/3.255, allocations: 1.114 MB / 0.9244 GB, free: 60.05 MB / 362.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.01283/3.268, allocations: 4.799 MB / 0.9291 GB, free: 59.26 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01089/3.279, allocations: 3.568 MB / 0.9326 GB, free: 58.64 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 9.397e-06/3.279, allocations: 4.422 kB / 0.9326 GB, free: 58.64 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004422/3.283, allocations: 1.32 MB / 0.9339 GB, free: 58.4 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004714/3.288, allocations: 0.5381 MB / 0.9344 GB, free: 58.4 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01454/3.303, allocations: 3.128 MB / 0.9374 GB, free: 57.87 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001016/3.304, allocations: 1.294 MB / 0.9387 GB, free: 57.15 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.00404/3.308, allocations: 0.6947 MB / 0.9394 GB, free: 57.13 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001207/3.309, allocations: 0.4956 MB / 0.9399 GB, free: 57.12 MB / 362.7 MB Notification: Performance of SimCode: time 2.415e-06/3.309, allocations: 2.625 kB / 0.9399 GB, free: 57.12 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1682/3.477, allocations: 54.39 MB / 0.993 GB, free: 42.15 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002292/3.477, allocations: 222.9 kB / 0.9932 GB, free: 41.92 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.941/8.419, allocations: 3.938 kB / 0.9932 GB, free: 41.92 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.TanksWithOverflow_res.mat does not exist to compare? outputFormat=mat