Digital twin for simulating real-world systems