Installation problem 1.6 (trunk) on Linux/Debian (64bit)

4 posts / 0 new
Last post
henk
Offline
Joined: 2012-01-10
Installation problem 1.6 (trunk) on Linux/Debian (64bit)

 

 

Compiling JModelica 1.6 for a 64bit Linux/Debian machine, the configuration was done using stock ipopt and superlu and ThirdParty/Sundials, i.e.:

 

./configure \

    --prefix=/opt/inst/jmodelica/1.6/20120105 \

    --with-includedir=/usr/include/linux \

     --with-ipopt=/usr \

     --with-cflags=-fPIC \

     --with-cxxflags=-fPIC \

     --with-superlu=/usr \

     --with-eclipse=/home/henk/Software/inst/eclipse/eclipse

 

After installation, running the examples file I obtain the following error:

 

opt@goofy:/opt/inst/jmodelica$ jm_ipython.sh 

WARNING: IPython History requires SQLite, your history will not be saved

Python 2.7.2 (default, Jul 30 2011, 21:33:42) 

Type "copyright", "credits" or "license" for more information.

 

IPython 0.12 -- An enhanced Interactive Python.

?         -> Introduction and overview of IPython's features.

%quickref -> Quick reference.

help      -> Python's own help system.

object?   -> Details about 'object', use 'object??' for extra details.

 

In [1]:

In [3]: import pyjmi.examples.cstr as cstr

JVM started.

 

In [4]: cstr.run_demo()

derivative_test

none

max_iter

3000

Fatal error in PMPI_Comm_rank: Invalid communicator, error stack:

PMPI_Comm_rank(109): MPI_Comm_rank(comm=0x0, rank=0x7fff60c573c4) failed

PMPI_Comm_rank(66).: Invalid communicator

opt@goofy:/opt/inst/jmodelica$

 

In trying to interprete the error, an internet search tells me that the source may have been compiled with different MPI brands or versions. Here I'm stuck... Any help appreciated!

 

henk
Offline
Joined: 2012-01-10
Forgot to say that after

Forgot to say that after compilation 'make test' passed all tests.

jakesson
Offline
Joined: 2009-03-14
Hello,    I have little

Hello, 
 
I have little experience with Debian, but on Ubuntu the apt-get version of Ipopt is flawed and cannot be used. Rather, we had to compile IPOPT from sources - perhaps this solves the problem for you too?
 
/Johan

henk
Offline
Joined: 2012-01-10
I finally managed to get it

I finally managed to get it working! MPICH2 as well as OpenMPI are installed on my computer so that at compilation things got mixed up. I installed MPICH2 separately, recompiled IPOPT, and had JModelica point to the dedicated MPICH2 installation. It then worked!
-- henk

Login or register to post comments