Assistance to identify cause of error "Validation issues found in configuration model"

OpenHAB 2.5.3 and Raspbian 9

Can anyone help me identify why I am getting the following error in the OpenHAB logs? The rule is working as expected, but I would like to clean up the error, if possible.

==> /var/log/openhab2/openhab.log <==
2020-04-06 17:16:26.947 [INFO ] [el.core.internal.ModelRepositoryImpl] - Validation issues found in configuration model ‘hall-downstairs-motion.rules’, using it anyway:
Assignment to final field
Assignment to final field
Assignment to final field
2020-04-06 17:16:27.021 [INFO ] [el.core.internal.ModelRepositoryImpl] - Refreshing model ‘hall-downstairs-motion.rules’

Here is the rule that I have been working on.

var Timer HallDownstairsMotionTimer1 = null
val int timeoutMinutesHD1 = 5 // choose an appropriate value
val int epochHD1 = 0 //

rule "Hall Downstairs Motion On"
when
	Item HallDownstairsMotionSensor1Motion changed from OFF to ON or
	Item HallDownstairsMotionSensor2Motion changed from OFF to ON or
	Channel "hue:0820:001788774895:21:dimmer_switch_event" triggered 3002.0
then
	logInfo("epochHD1", epochHD1.toString)
	val int epochHD1Temp = (now.millis / 1000).intValue()
	logInfo("epochHD1Temp", epochHD1Temp.toString)
	val int epochHD1Calc = epochHD1Temp - epochHD1
	logInfo("epochHD1Calc", epochHD1Calc.toString)
	if(epochHD1Calc > 30) {
		HallDownstairsOverhead.sendCommand(ON)
		var ROGoogleVol1=RichardOfficeGoogleVolume.state as Number
		RichardOfficeGoogleVolume.sendCommand(15)
		Thread::sleep(5000)
		RichardOfficeGoogleVolume.sendCommand(ROGoogleVol1)
		if(HallDownstairsMotionTimer1 === null) {
			epochHD1 = epochHD1Temp
			logInfo("HDTimer", "Timer created")
			HallDownstairsMotionTimer1 = createTimer(now.plusMinutes(timeoutMinutesHD1), [|
			HallDownstairsOverhead.sendCommand(OFF)
			HallDownstairsMotionTimer1 = null
			epochHD1 = 0])
			}
		else {
			HallDownstairsMotionTimer1.reschedule(now.plusMinutes(timeoutMinutesHD1))
			logInfo("HDTimer", "Timer rescheduled")
			epochHD1 = epochHD1Temp
			}
		}
	else {
		HallDownstairsMotionTimer1.reschedule(now.plusMinutes(timeoutMinutesHD1))
		logInfo("HDTimer", "Timer rescheduled")
		}
end

um… version of OpenHAB, platform you are running it on please

OpenHAB 2.5.3 and Raspbian 9

I think you are setting epochHD1

and then later

val is static
try var
var int epochHD1 = 0 //

I made the change, and the error seems to have gone away. Now, I am wondering why line 2 does not also cause a validation error. That line has been in there for many months and never caused a validation issue. Isn’t it basically the same thing as line 3? Is it because it is never updated anywhere in the script?

does that one get reset to another value? I didn’t look super close at all the code

No, the value for the variable in line 2 never gets updated in the code. Thanks a lot for the responses!

so it is a static value. Sorry for not being more clear. val is used to set a value… a static value, which isn’t going to change. var is a variable which can have it’s value change in the code
Are you all set? mark thread as solved

All set! Thank you!