On the use of UML for modeling physical system