Simulation-Based Optimization Of Hybrid Systems Using Derivative Free Optimization Techniques