See inline comments. Also please double check reference state data folder is persisted across firmware ugrades. The behaviour should be that it get lost if sysupgrade -n is used while it should be kept if plain sysupgrade is used. AFAIR file or folders that need to be kept accross upgrades need to be added in a list somewhere. Same goes for safe-upgrade.
yesss ! the reference state is not kept across upgrades.
yesss ! the reference state is not kept across upgrades.