Text this: Failure analysis using functional model and Bayesian network