Modeling and Simulation of Maximum Power Point Tracker in Ptolemy