philipdelff / NMsim

Simulate Nonmem models from R
https://philipdelff.github.io/NMsim/
Other
5 stars 2 forks source link

NMsim: Use msfi if available #2

Open philipdelff opened 1 year ago

philipdelff commented 1 year ago

Currently, NMsim relies on PSN's update_inits to create a simulation control stream. If the estimation wrote a model specification ("msf") file, a $MSFI section should be inserted instead.

I tried this approach but was getting segmentation faults from Nonmem. There must be something about using $MSFI I don´t understand.

philipdelff commented 1 year ago

I think the issue is related to PSN's execute (where the msfi file may not be presen in the temporary folder where Nonmem is run). It should be tried again using NMsim's own method.execute="directory" and adding the msfi file to the variable called files.needed inside NMsim. I would think that should work. Then comes the issue that the msfi file can have been generated with a different nonmem version so it's not compatible unless that version is specified maybe.