1 % testing a pumpspeicherkraftwerk
3 % In case i1 = charge, its storages are not full (is not full), and it receives energy (i2 > w_charge), it redirects the excessive energy back to the switching station, so op = i2 - w_charge.
10 % define max charging power
13 % define control i1 to charge
16 % define control i2 to 35KW
19 % define control is to empty
23 % expecting i1 to be charge
24 expect_c(psh,i1,charge).
26 % expecting i2 to be 35
29 % expecting is to be empty
30 expect_c(psh,is,empty).
32 % and therefore we shall produce 5KW