Dynamic Power Management using Bayesian Optimization