cmi.core.total_time is a read-only value, you cannot "set" it from within your SCORM pacakge - it calculates the value based on the cmi.core.session_time that your package is responsible for setting.
You can diagnose SCORM issues like this using the SCORM debugger tool:
https://docs.moodle.org/en/SCORM_FAQ#Debugging
I've deleted your other duplicate post. Please avoid posting the same question in more than one location.
thanks!