In my judgment, the roommate has no legal complaint here. Roommates must expect that they will each be subject to the reasonable noise created by another person living in the apartment, and the normal noise of going in the kitchen and heating something up, etc., is not unreasonable and would be within the expectation that you have when you room with someone else.
If your roommate is the only real tenant, and you are subleasing from him, then he may have general rights to remove you, which would be detemined mostly by the agreements you have made with him.
In general, when two people co-lease -- that is, each is on the agreement with the landlord -- the only person who could evict one person would be the landlord.
The overlay of SF rules on this situation is complex. I would recommend a consultation with a SF tenancy and eviction lawyer.