Modeling and analysis of oil terminal operations