1 % testing a pumpspeicherkraftwerk
3 % In case i1 not charge but i2 > 0, or i1 = charge and is = full, the station just redirects the power of i2 to op. If it generates power, it simply adds this power to the redirected one from i2.
10 % define max charging power
13 % define control i1 to charge
16 % define control i2 to 5KW
19 % define control is to full
23 % expecting i1 to be charge
24 expect_c(psh,i1,charge).
26 % expecting i2 to be 5
29 % expecting is to be full
30 expect_c(psh,is,full).
32 % and therefore we shall produce 5KW