Deployment Error When Running FMU Model in VeriStand

Updated Oct 11, 2024

Reported In

Software

  • VeriStand

Issue Details

I generated an FMU model from Activate v2022.2 for Linux RT. The FUM model could run successfully on PXI Linux RT through FMUChecker. However, It can't run through VeriStand 2023 Q4. I got the error on the monitor of Linux RT:
"description":"SO_REUSEPORT unavailable on compiling system"
I also got the error on the host PC:
NI VeriStand: Could not complete one or more requests because a target is offline.

Solution

This is due to a model initialization crash caused by a segmentation fault arising from stack overflow. You can increase the stack size limit for threads that lvrt sets. For VeriStand 2023 or later version, find the file lvrt.conf under /etc/natinst/share of Linux RT, and add the required key highlighted below:
[LVRT]
thpolicy_tcrit = fifo
thpri_tcrit = 94
thpolicy_vhigh = rr
thpri_vhigh = 6
thpolicy_high = rr
thpri_high = 5
RTCPULoadMonitoringEnabled = True
RTMode = True
appFont = "paratype-pt sans" 12
dialogFont = "paratype-pt sans" 12
systemFont = "paratype-pt sans" 12
PosixThreadStackSizeLimit = 2048
RTTarget.LaunchAppAtBoot = "True"
RTTarget.ApplicationPath = "/c/ni-rt/startup/NI VeriStand.rtexe"
PosixThreadStackSizeLimit = 2048