WOLFRAM SYSTEMMODELER
| TankSystemSystem of multiple connected tanks |  | 

SystemModel["IntroductoryExamples.Hierarchical.TankSystem"]

System of three PI controlled tanks. Simulating this system we can study how the level of each tank varies:

Note that tank2 has a reference level of 0.4 meters while the reference level for tank1 and tank3 is only 0.2 meters.
For a step by step tutorial see Hierarchical Model—Tank System.
|  | piControl1 | Type: PIController Description: | 
|---|---|---|
|  | piControl2 | Type: PIController Description: | 
|  | piControl3 | Type: PIController Description: | 
|  | tank3 | Type: Tank Description: | 
|  | tank2 | Type: Tank Description: | 
|  | tank1 | Type: Tank Description: | 
|  | source | Type: LiquidSource Description: |