The Semicontinous Reactor: Modeling, Simulation and Control Part I Modeling and Simulation