OpenMx Installation - cannot open the connection - 'failure when receiving data from the peer'

Posted on
No user picture. Ilaria Joined: 07/22/2024
Hi OpenMx community,

I am very new to OpenMx. I am using it to fit saturated and ACE models to my twin data. I had successfully installed OpenMx using the script for the OpenMx website: source('https://vipbg.vcu.edu/vipbg/OpenMx2/software/getOpenMx.R')

But now when I am trying to re-run my models and use this version of openMx I receive the following error messages:

source('https://vipbg.vcu.edu/vipbg/OpenMx2/software/getOpenMx.R')
Error in file(filename, "r", encoding = encoding) :
cannot open the connection to 'https://vipbg.vcu.edu/vipbg/OpenMx2/software/getOpenMx.R'
In addition: Warning message:
In file(filename, "r", encoding = encoding) :
URL 'https://vipbg.vcu.edu/vipbg/OpenMx2/software/getOpenMx.R': status was 'Failure when receiving data from the peer'

Does anyone know what the problem is? If I try and use the CRAN version then I receive the following error when trying to fit my saturated model:

fitSAT <- mxRun( modelSAT, intervals=F )
Running twoSATc with 28 parameters
Error in runHelper(model, frontendStart, intervals, silent, suppressWarnings, :
NPSOL is not available in this build. See ?omxGetNPSOL() to download this optimizer

Any help would be greatly appreciated! Thanks

Replied on Wed, 09/18/2024 - 14:39
Picture of user. AdminRobK Joined: 01/24/2014

The server was probably down when you last tried to install the NPSOL-enabled build of OpenMx.  Try source('https://vipbg.vcu.edu/vipbg/OpenMx2/software/getOpenMx.R') again.

 

Also, there is no need to re-install OpenMx every time you run your script, which it sounds that you might be doing.

 

In the future, if you don't want to use or cannot use NPSOL, you can switch to one of the other two gradient-based optimizers with code like this:

mxOption(NULL,"Default optimizer","SLSQP") #<--Switch to SLSQP

mxOption(NULL,"Default optimizer","CSOLNP") #<--Switch to CSOLNP