I want also to mention that the script which starts each simulation is:
transcript file transcript_dut1_all_operations
#delete previous created library
vmap -del work
vdel -all -lib work
#create a new work library
vlib work
vmap work work
#compile uvm library
vlog +define+UVM_NO_DPI uvm-1.2/src/uvm_pkg.sv
# compile design
vlog +define+UVM_NO_DPI -reportprogress 300 -work work design.sv
# compile interfaces
vlog +define+UVM_NO_DPI -reportprogress 300 -work work interfata_senzor.sv
vlog +define+UVM_NO_DPI -reportprogress 300 -work work interfata_lampa.sv
vlog +define+UVM_NO_DPI -reportprogress 300 -work work interfata_buton.sv
# compile verification environment
vlog +define+UVM_NO_DPI -reportprogress 300 -work work testbench.sv
vsim -gui work.top
run -all
quit -f