Simulation of LOFAR observations