Minimising makespan in embedded real-time systems with failure rate requirements