-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Potential Issue with simulator engine compilation #250
Comments
Thanks for raising this issue. As for the simulator, I think this is model-related. Could you try simulating with a simple model, e.g. two-compartment? |
Thank you for the quick response. Reassuring re: PMtest - I will ignore for now. It was partly this that made me suspect a compilation issue. On re-running simulation this week (without any alteration to the code/model/data) the duplication of parameter windows, this seems to have resolved with a system restart (for both this and other models). However, the error message:
As additional information, In the aborted simulation file terminates with the following:
I'm happy to share my model via email (it isn't one I am able to share publicly), but the simulation ran with the model unaltered perfectly fine before the iOS upgrade and reinstallation. |
If you can send your model file to my e-mail at [email protected] I can take a look when I get the chance. |
Thank you - I will send an email. To answer your questions - I did not use any covariates, nor augment the covariance matrix of the primary parameters estimates, which were pulled from a fitted run. |
I have emailed you the model, but just to update, I have managed to get the simulator to run with this model and a manually specified poppar with mean parameter estimates and the diagonal on covariance matrix only, and the simulator has run ok. |
Thanks for the model and the update - I'm happy to hear you got it to run! Also, I don't know if you are aware, but we have been rewriting the Pmetrics backend from scratch in Rust. Depending on your requirements, we could assist in writing the model file in Rust so that you can run it with Pmetrics, as the translator is not finished yet. Given it's complexity I would need some help from @Siel, but it should be manageable if you so desire, |
I don't think this is neccesarily the case. First, the simulations terminate before any parameter values are simulated (see attached simout file). Moreover, when I manually creating a poppar with the mean parameter estimates and diagonal covariances with limits=NULL, the simulation runs and generates sim outputs that widely vary and into nonsensical ranges (e.g. negative Cl and V) without crashing the simulator.
Thank you for the offer. This isn't a priority for me now (unless a Rust translated model runs more stably in Pmetrics), but I may get in touch about this later. |
Could you perhaps try with some slightly different boundaries? The main error appears to be due to the covariance matrix being non-positive definite, and sometimes that can be enough to solve the issue. |
As an update, I re-ran the model with significantly tighter margins, but the simulator still crashed with the same error. As I said, I'm able to run the simulator with manually inputted diagonal covariances only (with off-diagonals covariances as zero), which is sufficient for my immediate purposes. Manually inputted full covariance matrix (obviously) leads to the same error. |
To add further, the simulator works with a full covariance matrix provided I fixed the non-positive definite covariance matrix manually (negative eigenvalues very small (~-1e10^-8 or ^-9). Is this potentially a bug in the in-programme option to fix the covariance matrix as part of the simulator engine i.e., the option 2 in the below that arises?
|
I recent updated my iOS to Sequoia (14.2) (I typically delay doing so as it disrupts the stability of several programmes until updates can be made). As expected, this disrupted my Pmetrics build, and requiring reinstallation (including update of GCC).
I managed to reinstall Pmetrics and PMbuild successfully (although I had to create a Makevars file to force compilation with GCC). PMtest reverts an error message:
although I recall it doing with the same/similar message with my previous build without any issues.
I'm now having trouble with the simulator using files and code that previously worked fine. In particular, when I run a simulator (using v2.0 code) I get this error message, with the simulation abortion of each simulated subject:
A simout file is created, but the input values are all assigned the value boundaries of the first parameter i.e.:
When it should be (taken from a pre-reinstall simout file with the same code, model, datafile):
The SIMpase element of the v2.0 simulation command understandably fails as there is no simulated output data in this SIMout file following the simulation abortion. Other previously successfully simulated (and simpler) models also have the same issue when I try to re-run them.
Is this an issue with compilation of the simulation engine?
Thank you in advance.
The text was updated successfully, but these errors were encountered: