Machine simulation