Please be aware that HIV can not be diagnosed from symptoms and
that very many people who become infected with HIV will experience
no symptoms at all - and, on the other hand, just worrying about
the possibility of having been infected (even though you haven't
been) can mimic symptoms that may be associated with the acute
phase of HIV infection.
If you have engaged in a high-risk activity and are genuinely
worried that you may have become infected, then the only reliable
way to find out is to take an HIV test.
A pain in the penis is not generally recognised as a symptom of
the acute phase of HIV infection, but it is a recognised symptom of
several other more common sexually transmitted diseases (infection
with which generally make infection with HIV more likely).