Optimization of maintenance under double constraints, security and availability: Case study