Shivamogga to Tirupati overnight would be better. But at Shivamogga, no maintenance activities possible. Can SCR run with maintenance at Tirupati? Doubtful.
One possibility is to take a train from MYS or UBL as day time train to Shimoga and further run as overnight to Tirupati via Ballari.