Reliability and safe operation of oil pipelines