Thanks for query,
You have urinary tract infection
You must check your urine for presence of pus & blood in it.An USG is also rule out possibility of stone.
This is a severe urinary tract infection witch started complicating like epididymitis
The culture sensitivity report identify its bacteria & medicine who kills it.
Consult your doctor after report he will prescribe medicine.
Don;t forget to take lot of water.