Towards a realistic modeling of ultra-compact racetrack resonators