InstituteforDiseaseModeling/emodpy-typhoid

Simulations crashes with OutOfRangeException when Age Base TransmissionMatrix set to higher value

Opened this issue · 1 comments

Tested with emod_typhoid-0.0.7.dev3.

Simulation:https://comps2.idmod.org/#explore/Simulations?filters=Id=dfff221c-0c96-ee11-92fe-f0921c167864&offset=0&count=100&selectedId=dfff221c-0c96-ee11-92fe-f0921c167864

Stderr:

00:00:01 [0] [E] [Eradication] 

OutOfRangeException: 
Exception in utils/Types.h at 60 in RangedFloat.
Variable value had value 1.00713801 which was inconsistent with range limit 1

Assets/Eradication() [0x6def03]
Assets/Eradication(_ZN6Kernel17DetailedExceptionC1EPKciS2_+0x2c5) [0x6dfad5]
Assets/Eradication(_ZN6Kernel19OutOfRangeExceptionC1EPKciS2_S2_ff+0x40) [0x6e6c60]
Assets/Eradication(_ZN6Kernel22IndividualHumanTyphoid6ExposeEPKNS_20IContagionPopulationEfNS_17TransmissionRoute4EnumE+0x12b9) [0x64ba19]
Assets/Eradication(_ZNK6Kernel28MultiRouteTransmissionGroups17ExposeToContagionEPNS_11IInfectableEPKNS_29TransmissionGroupMembership_tEf+0x138) [0x571178]
Assets/Eradication(_ZN6Kernel22IndividualHumanTyphoid19ExposeToInfectivityEfPKNS_29TransmissionGroupMembership_tE+0x114) [0x64c3e4]
Assets/Eradication(_ZN6Kernel15IndividualHuman6UpdateEff+0x219) [0x585ee9]
Assets/Eradication(_ZN6Kernel22IndividualHumanTyphoid6UpdateEff+0x25) [0x64c5e5]
Assets/Eradication(_ZN6Kernel4Node6UpdateEf+0x1f9) [0x59b669]
Assets/Eradication(_ZN6Kernel10Simulation6UpdateEf+0x1da) [0x5af0fa]
Assets/Eradication(_Z14StepSimulationPN6Kernel11ISimulationEf+0x16) [0x4f8ea6]
Assets/Eradication(_Z13RunSimulationIN6Kernel11ISimulationEEvRT_if+0x510) [0x4fb320]
Assets/Eradication(_ZN17DefaultController16execute_internalEv+0x82a) [0x4f96ea]
Assets/Eradication(_Z21ControllerInitWrapperiPPcPN6IdmMpi16MessageInterfaceE+0x1b91) [0x68e011]
Assets/Eradication(_Z14MPIInitWrapperiPPc+0x1e) [0x68fd5e]
Assets/Eradication(main+0x30f) [0x4e26ff]
/lib64/libc.so.6(__libc_start_main+0xf5) [0x2b4b9f47d555]
Assets/Eradication() [0x4e3f47]

application called MPI_Abort(MPI_COMM_WORLD, -1) - process 0

My Age Base HINT matrix:

{"Age_Bin_Edges_In_Years":[0,5,20,60,-1],
"Property":"Age_Bin",
"TransmissionMatrix":{
  "contact":{
    "Matrix":[[2,2,2,2],[2,2,2,2],[2,2,2,2],[2,2,2,2]]},
   "environmental":{
     "Matrix":[[2,2,2,2],[2,2,2,2],[2,2,2,2],[2,2,2,2]]}}}

I tested Matrix set to all 1s and 0.5s, and they work fine.

This is a variation on #17.