Indonesia's state energy firm Pertamina said a fire that broke out at its Cilacap refinery complex on Thursday has been extinguished and the refinery's operation is not affected.