This paper presents an original approach for automatic construction of a simulation model for complex manufacturing systems. The model generation is based on spatiotemporal product trajectories. The products therefore contribute directly to the control of the system. The formal generated model, a queuing network, is a permanent image of the real state of the system to be modelled; it can therefore be described as being auto-adaptive.