Operating System Based Simulation Framework for Validation of Power Management Policies in Embedded Systems