A matlab/simulink implementation of Activated Sludge Model No. 1.