OBJECTIVE:
----------
This example demonstrates the use of FMI 2.0 (Model-Exchange and Co-Simulation) with SDL.


DESCRIPTION:
------------
The system defines a simple water-tank.
The water level in the tank starts rising when the user opens the input valve.
When the level exceeds maxlevel, the output valve will open automatically.
The water level will not change while both valves are opened.
Closing the input valve will cause the water level to start falling.
When the level reaches minlevel, the output valve will close automatically.
The water level will not change while both valves are closed.
The output valve is controlled by an external FMU.


FMU PARAMETERS:
---------------
To edit the minlevel and maxlevel values go to "Generation/Options...".
In the "FMI2" page, "FMU parameters" table, double-click on either 
minvalue or maxvalue "Start value", and input a new value.


SIMULATION:
-----------
Select the WaterTank system diagram and click on the "Execute" quick button.
There are 4 profiles with different min and mx values and different types:
  - FMI_3-5_CoSimulation uses 3 as minimum value, 5 as maximum value and uses
    the Co-Simulation FMU type;
  - FMI_3-5_ModelExchange uses 3 as minimum value, 5 as maximum value and uses
    the Model-Exchange FMU type;
  - FMI_5-10_CoSimulation uses 5 as minimum value, 10 as maximum value and uses
    the Co-Simulation FMU type;
  - FMI_5-10_ModelExchange uses 5 as minimum value, 10 as maximum value and uses
    the Model-Exchange FMU type.
Once the Simulator is started, "Start the prototyping GUI" via the quick button.
Make sure the Timers are set to real time otherwise simulation may run too fast.
Click on the "Run the system" quick button.
Play around with input valve in red (on the left) while observing the tank level 
and the output valve (on the right).

