Modeling a Hybrid Power System with Intermediate Energy Storage