1 % testing a pumpspeicherkraftwerk
3 % In case i1 > c_max and is not empty, it generates an amount of energy equal to its maximal capacity c_max, so op = c_max.
4 % The storage plant can only generate power if it is not empty (is not empty).
11 % define max charging power
14 % define control i1 to 25KW (we request 25KW)
17 % define control i2 to 0KW (we are not charging)
20 % define control is to full
24 % expecting i1 to be 25
27 % expecting i2 to be 0
30 % expecting is to be full
31 expect_c(psh,is,full).
33 % and therefore we shall produce 20KW