Modeling Preventive Maintenance in Complex Systems