BlockSim for system reliability and maintainability analysis