An industrially-motivated knowledge-based environment for modelling and simulation (KEMS)