Main /
JModelicaThis page is about how to build JModelica. The information below consists of random issues that have occurred while build JModelica under Linux and Mac OS X. See JModelica FMI for information about using FMI with JModelica. Installation under RHEL3/2/15 See https://svn.jmodelica.org/trunk/INSTALL svn co https://svn.jmodelica.org/trunk JModelica cd JModelica Read JModelica/INSTALL or https://svn.jmodelica.org/trunk/INSTALL and install the dependencies below Install Python3/2/15 Under RHEL 6, wget https://www.python.org/ftp/python/2.7.9/Python-2.7.9.tgz tar -xf Python-2.7.9.tgz cd Python-2.7.9 mkdir build cd build ../configure --prefix=/usr/local/python-2.7.9 make sudo -i cd src/Python-2.7.9/build make install cd /usr/local ln -s python-2.7.9 python cd bin ln -s ../python/bin/* . cd ../lib ln -s ../python/lib/* . cd pkgconfig ln -s ../../python/lib/pkgconfig/* exit Make sure that the correct python is in your path and that export PATH=/usr/local/python/bin:${PATH} Ipopt3/2/15 cd ~/src wget http://www.coin-or.org/download/source/Ipopt/Ipopt-3.12.1.tgz tar -zxf Ipopt-3.12.1.tgz cd Ipopt-3.12.1 ./configure --prefix=/usr/local/ipopt-3.12.1 make Configure and make JModelica3/2/15 As per https://svn.jmodelica.org/trunk/INSTALL cd JModelica rm -rf build mkdir build cd build ../configure --with-ipopt=/usr/local/ipopt-3.12.1 make ProblemsProblem: 'node.inner_id' may be used uninitialized in this function3/2/15 /bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -Wall -DJMI_AD=JMI_AD_NONE -g -I/var/lib/jenkins/src/JModelic\ a/sundials_install/include -I/var/lib/jenkins/src/JModelica/external/Assimulo/src/lib -std=c89 -pedantic -Werror -O2 -fPIC -MT libjmi_la-jmi.lo \ -MD -MP -MF .deps/libjmi_la-jmi.Tpo -c -o libjmi_la-jmi.lo `test -f 'jmi.c' || echo './'`jmi.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -Wall -DJMI_AD=JMI_AD_NONE -g -I/var/lib/jenkins/src/JModelica/sundials_install/include -I/var\ /lib/jenkins/src/JModelica/external/Assimulo/src/lib -std=c89 -pedantic -Werror -O2 -fPIC -MT libjmi_la-jmi.lo -MD -MP -MF .deps/libjmi_la-jmi.Tp\ o -c jmi.c -fPIC -DPIC -o .libs/libjmi_la-jmi.o cc1: warnings being treated as errors jmi.c: In function 'jmi_ode_initialize': jmi.c:542: error: 'node.inner_id' may be used uninitialized in this function jmi.c: In function 'jmi_ode_derivatives': jmi.c:478: error: 'node.inner_id' may be used uninitialized in this function See below, use gcc-4.9.2: export PATH=/usr/local/gcc-4.9.2/bin:${PATH} export CC=/usr/local/gcc-4.9.2/bin/gcc export CXX=/usr/local/gcc-4.9.2/bin/g++ ../configure --with-ipopt=/usr/local/ipopt-3.12.1 make Problem: ImportError: No module named numpy3/2/15 cd /home/cxh/src/JModelica/build/../external/Assimulo; \ case x86_64-unknown-linux-gnu in \ *-cygwin*) \ python setup.py install --sundials-home=/home/cxh/src/JModelica/build/sundials_install --blas-home=/home/cxh/sr\ c/JModelica/build/blas_install/ --lapack-home=/home/cxh/src/JModelica/build/lapack_install/ --force-32bit="true" --extr\ a-c-flags="-mincoming-stack-boundary=2" --prefix=/home/cxh/src/JModelica/build/Assimulo_install ;; \ *-mingw*) \ python setup.py install --sundials-home=/home/cxh/src/JModelica/build/sundials_install --blas-home=/home/cxh/sr\ c/JModelica/build/blas_install/ --lapack-home=/home/cxh/src/JModelica/build/lapack_install/ --force-32bit="true" --no-m\ svcr="true" --extra-c-flags="-mincoming-stack-boundary=2" --prefix=/home/cxh/src/JModelica/build/Assimulo_install ;; \ *) \ python setup.py install --sundials-home=/home/cxh/src/JModelica/build/sundials_install --blas-home=/home/cxh/sr\ c/JModelica/build/blas_install/ --lapack-home=/home/cxh/src/JModelica/build/lapack_install/ --prefix=/home/cxh/src/JMod\ elica/build/Assimulo_install ;; \ esac Traceback (most recent call last): File "setup.py", line 18, in <module> import numpy as N ImportError: No module named numpy Solution: Download and install numpy for the python2.7 installation. For Mac, we can use a super installer, see below. For Linux, Numpy is at http://sourceforge.net/projects/numpy/files/NumPy/, find the latest tar file, download and untar it As root, make sure to use the right version of python and gcc and then install: export PATH=/usr/local/python/bin:${PATH} export PATH=/usr/local/gcc-4.9.2/bin:${PATH} export CC=/usr/local/gcc-4.9.2/bin/gcc export CXX=/usr/local/gcc-4.9.2/bin/g++ python setup.py build --fcompiler=gnu95 Problem: Please upgrade to a newer Cython version, >= 0.153/2/15 cd /home/cxh/src/JModelica/build/../external/Assimulo; \ case x86_64-unknown-linux-gnu in \ *-cygwin*) \ python setup.py install --sundials-home=/home/cxh/src/JModelica/build/sundials_install --blas-home=/home/cxh/sr\ c/JModelica/build/blas_install/ --lapack-home=/home/cxh/src/JModelica/build/lapack_install/ --force-32bit="true" --extr\ a-c-flags="-mincoming-stack-boundary=2" --prefix=/home/cxh/src/JModelica/build/Assimulo_install ;; \ *-mingw*) \ python setup.py install --sundials-home=/home/cxh/src/JModelica/build/sundials_install --blas-home=/home/cxh/sr\ c/JModelica/build/blas_install/ --lapack-home=/home/cxh/src/JModelica/build/lapack_install/ --force-32bit="true" --no-m\ svcr="true" --extra-c-flags="-mincoming-stack-boundary=2" --prefix=/home/cxh/src/JModelica/build/Assimulo_install ;; \ *) \ python setup.py install --sundials-home=/home/cxh/src/JModelica/build/sundials_install --blas-home=/home/cxh/sr\ c/JModelica/build/blas_install/ --lapack-home=/home/cxh/src/JModelica/build/lapack_install/ --prefix=/home/cxh/src/JMod\ elica/build/Assimulo_install ;; \ esac Traceback (most recent call last): File "setup.py", line 29, in <module> raise Exception("Please upgrade to a newer Cython version, >= 0.15.") Exception: Please upgrade to a newer Cython version, >= 0.15. Solution: Install Cython: As root: wget http://cython.org/release/Cython-0.20.tar.gz tar -zxf Cython-0.20.tar.gz cd Cython-0.20 python setup.py install Problem: "ImportError: No module named jpype"
from pymodelica import compile_fmu That fails with: ImportError: No module named jpype The solution is to install JPype from http://jpype.sourceforge.net/. Download the zip and unzip it. As root cd JPype-0.5.4.2 python setup.py install JPype fails to install: jp_javaenv.cpp error: invalid conversion from...3/2/15 usr/local/gcc-4.9.2/bin/gcc -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/usr\ /lib/jvm/java-1.5.0-sun-1.5.0.08/include -I/usr/lib/jvm/java-1.5.0-sun-1.5.0.08/include/linux -Isrc/native/common/inclu\ de -Isrc/native/python/include -I/usr/local/python/include/python2.7 -c src/native/common/jp_javaenv.cpp -o build/temp.\ linux-x86_64-2.7/src/native/common/jp_javaenv.o cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ src/native/common/jp_javaenv.cpp: In static member function ‘static void JPJavaEnv::load(const string&)’: src/native/common/jp_javaenv.cpp:61:19: error: invalid conversion from ‘jint (*)(JPJavaEnv::load(const string&)::JavaVM\ _**, void**, void*) {aka int (*)(JPJavaEnv::load(const string&)::JavaVM_**, void**, void*)}’ to ‘jint (*)(JavaVM**, voi\ d**, void*) {aka int (*)(_Jv_JavaVM**, void**, void*)}’ [-fpermissive] CreateJVM_Method = (jint (JNICALL *)(struct JavaVM_ ** ,void ** ,void *))GetAdapter()->getSymbol("JNI_CreateJavaVM"); ^ src/native/common/jp_javaenv.cpp:62:24: error: invalid conversion from ‘jint (*)(JPJavaEnv::load(const string&)::JavaVM\ _**, jsize, jsize*) {aka int (*)(JPJavaEnv::load(const string&)::JavaVM_**, int, int*)}’ to ‘jint (*)(JavaVM**, jsize, \ jsize*) {aka int (*)(_Jv_JavaVM**, int, int*)}’ [-fpermissive] GetCreatedJVMs_Method = (jint (JNICALL *)(struct JavaVM_ ** , jsize, jsize*))GetAdapter()->getSymbol("JNI_GetCreatedJavaVMs"); ^ In file included from src/native/common/include/jpype.h:96:0, from src/native/common/jp_javaenv.cpp:17: src/native/common/jp_javaenv.cpp: In member function ‘void JPJavaEnv::checkInitialized()’: src/native/common/include/jp_utility.h:20:72: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings] #define RAISE(exClass, msg) { throw new exClass(msg, __FILE__, __LINE__); } ^ src/native/common/jp_javaenv.cpp:81:3: note: in expansion of macro ‘RAISE’ RAISE( JPypeException, "Java Subsystem not started"); ^ error: command '/usr/local/gcc-4.9.2/bin/gcc' failed with exit status 1 http://sourceforge.net/p/jpype/discussion/379372/thread/01589367/ suggests uninstalling gcj I moved the gcj and jni*.h files and then set JAVA_HOME, I'm not sure which one worked mkdir /usr/local/gcc-4.9.2/lib/gcc/x86_64-unknown-linux-gnu/4.9.2/include/java-old cd /usr/local/gcc-4.9.2/lib/gcc/x86_64-unknown-linux-gnu/4.9.2/include/ mv gcj jni* java-moved/ export JAVA_HOME=/usr/lib/jvm/jdk1.8.0_25 Then cd JPype-0.5.4.2 python setup.py install Problem: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not foundWhile running ImportError: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /usr/local/python/lib/python2.7\ /site-packages/_jpype.so) Solution: Edit Problemy: ImportError: No module named lxml3/2/15
While running [cxh@terra CoupledClutches]$ ./CoupledClutchesToFMU Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/jmodelica/Python/pymodelica/__init__.py", line 65, in <module> from compiler import compile_jmu, compile_fmu, compile_fmux File "/usr/local/jmodelica/Python/pymodelica/compiler.py", line 34, in <module> from pymodelica.common import xmlparser File "/usr/local/jmodelica/Python/pymodelica/common/xmlparser.py", line 25, in <module> from lxml import etree ImportError: No module named lxml [cxh@terra CoupledClutches]$ Solution: Install lxml wget http://lxml.de/files/lxml-3.4.2.tgz tar -zxf lxml-3.4.2.tgz cd lxml-3.4.2 python setup.py build To get this to work, as root, I did: pushd /usr/include ln -s libxml2/libxml . popd 3/2/15: After the above, I was able to export a FMU under Linux Problems older than 3/2/15 below here readline missingconfigure fails with checking readline/readline.h usability... no checking readline/readline.h presence... no checking for readline/readline.h... no configure: error: readline missing Solution: As root: ipopt RuntimeLibrary not writableCMake Error at CMakeLists.txt:51 (file): file problem creating directory: /usr/local/ipopt-3.11.9/include/RuntimeLibrary CMake Error at CMakeLists.txt:60 (file): file problem creating directory: /usr/local/ipopt-3.11.9/lib/RuntimeLibrary Solution: As root, As the install user: RuntimeLibrary problem?Making all in RuntimeLibrary make[2]: Entering directory `/var/lib/jenkins/src/JModelica/build/RuntimeLibrary' cd /var/lib/jenkins/src/JModelica/build/RuntimeLibrary/build && VERBOSE=1 make install make[3]: Entering directory `/var/lib/jenkins/src/JModelica/build/RuntimeLibrary/build' make[3]: *** No rule to make target `install'. Stop. make[3]: Leaving directory `/var/lib/jenkins/src/JModelica/build/RuntimeLibrary/build' make[2]: *** [all-local] Error 2 make[2]: Leaving directory `/var/lib/jenkins/src/JModelica/build/RuntimeLibrary' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/lib/jenkins/src/JModelica/build' make: *** [all] Error 2 Solution: cd RuntimeLibrary rm -rf build make ImportError: No module named f2pySolution: As root: Writing /var/lib/jenkins/src/JModelica/build/pymodelica_install/lib/python2.6/site-packages/PyModelica-trunk-py2.6.egg-info cd /var/lib/jenkins/src/JModelica/build/../external/PyFMI; \ case x86_64-unknown-linux-gnu in \ *-cygwin*) \ python setup.py install --fmil-home=/var/lib/jenkins/src/JModelica/build/FMIL_install/ --force-32bit="true" --extra-c-flags="-mincoming-s\ tack-boundary=2" --prefix=/var/lib/jenkins/src/JModelica/build/PyFMI_install ;; \ *-mingw*) \ python setup.py install --fmil-home=/var/lib/jenkins/src/JModelica/build/FMIL_install/ --force-32bit="true" --no-msvcr="true" --extra-c-f\ lags="-mincoming-stack-boundary=2" --prefix=/var/lib/jenkins/src/JModelica/build/PyFMI_install ;; \ *) \ python setup.py install --fmil-home=/var/lib/jenkins/src/JModelica/build/FMIL_install/ --prefix=/var/lib/jenkins/src/JModelica/build/PyFM\ I_install ;; \ esac Compiling src/pyfmi/fmi.pyx because it changed. Error compiling Cython file: ------------------------------------------------------------ ... #ctypedef void(*fmi2_callback_logger_ft)(fmi2_component_t c,fmi2_string_t instanceName, fmi2_status_t status, fmi2_string_t category,fmi2_str\ ing_t message,...) ctypedef void(*fmi2_callback_logger_ft)(fmi2_component_environment_t c,fmi2_string_t instanceName, fmi2_status_t status, fmi2_string_t catego\ ry,fmi2_string_t message,...) ctypedef void(*fmi1_step_finished_ft)(fmi1_component_t c, fmi1_status_t status) ctypedef void(*fmi2_step_finished_ft)(fmi2_component_environment_t env, fmi2_status_t status) #ctypedef void (*jm_logger_f)(jm_callbacks* c, jm_string module, jm_log_level_enu_t log_level, jm_string message) ctypedef void (*jm_logger_f)(jm_callbacks* c, jm_string module, int log_level, jm_string message) ^ ------------------------------------------------------------ fmil_import.pxd:295:33: 'jm_callbacks' is not a type identifier Traceback (most recent call last): File "setup.py", line 262, in <module> ext_list = check_extensions() File "setup.py", line 228, in check_extensions include_dirs=[N.get_include()],pyrex_gdb=debug_flag) File "/usr/lib64/python2.6/site-packages/Cython/Build/Dependencies.py", line 505, in cythonize cythonize_one(pyx_file, c_file, options) File "/usr/lib64/python2.6/site-packages/Cython/Build/Dependencies.py", line 526, in cythonize_one raise CompileError(None, pyx_file) Cython.Compiler.Errors.CompileError: src/pyfmi/fmi.pyx make[2]: *** [build-python-packages] Error 1 make[2]: Leaving directory `/var/lib/jenkins/src/JModelica/build' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/lib/jenkins/src/JModelica/build' make: *** [all] Error 2 5/2/14 Update svncd JModelica svn update configurerm -rf build mkdir build cd build ../configure --prefix=/usr/local/ipopt-3.11.7 Makemake Problem: node.inner_id may be used uninitialized12/08/14: make failed with [ 54%] Building C object src/jmi/CMakeFiles/jmi.dir/jmi.c.o cd /home/cxh/src/JModelica/build/RuntimeLibrary/build/src/jmi && /usr/bin/cc -DHAVE_ZLIB -DMINPACK_HOME \ -DSUNDIALS_HOME -DTOP_SRC -fPIC -I/home/cxh/src/JModelica/build/../ThirdParty/Minpack/cminpack-1.3.2 -I/h\ ome/cxh/src/JModelica/build/sundials_install/include -I/home/cxh/src/JModelica/build/../ThirdParty/MSL/Mo\ delica/Resources/C-Sources -I/home/cxh/src/JModelica/build/../ThirdParty/MSL/Modelica/Resources/C-Sources\ /zlib -Wall -g -std=c89 -pedantic -Werror -Wno-long-long -O2 -o CMakeFiles/jmi.dir/jmi.c.o -c /home/\ cxh/src/JModelica/RuntimeLibrary/src/jmi/jmi.c cc1: warnings being treated as errors /home/cxh/src/JModelica/RuntimeLibrary/src/jmi/jmi.c: In function ‘jmi_ode_initialize’: /home/cxh/src/JModelica/RuntimeLibrary/src/jmi/jmi.c:543: error: ‘node.inner_id’ may be used uninitialized in this function /home/cxh/src/JModelica/RuntimeLibrary/src/jmi/jmi.c: In function ‘jmi_ode_derivatives’: /home/cxh/src/JModelica/RuntimeLibrary/src/jmi/jmi.c:500: error: ‘node.inner_id’ may be used uninitialized in this function This is with gcc-4.4.7 under RHEL 6: bash-4.1$ /usr/bin/cc --version cc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-11) Copyright (C) 2010 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. I selected gcc-4.8.2: bash-4.1$ export PATH=/usr/local/gcc-4.8.2/bin:${PATH} bash-4.1$ gcc --version gcc (GCC) 4.8.2 Copyright (C) 2013 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. and reconfigured and rebuilt. That did not work export CC=/usr/local/gcc-4.8.2/bin/gcc export CXX=/usr/local/gcc-4.8.2/bin/g++ reconfigure and rebuild seemed to get further. make fails because /usr/local/jmodelica is not writable.12/08/14: While running make: -- Checking whether /usr/local/gcc-4.8.2/bin/gfortran supports Fortran 90 -- yes -- JMODELICA_INSTALL_DIR=/usr/local/jmodelica CMake Error at CMakeLists.txt:64 (file): file problem creating directory: /usr/local/jmodelica/Python/tests_jmodelica/files/Modelica/Resources/Library/linux64 -- Configuring incomplete, errors occurred! See also "/home/cxh/src/JModelica/build/Python/src/tests_jmodelica/files/Modelica/Resources/build/CMakeFi\ les/CMakeOutput.log". make[2]: *** [/home/cxh/src/JModelica/build/Python/src/tests_jmodelica/files/Modelica/Resources/build] Er\ ror 1 make[2]: Leaving directory `/home/cxh/src/JModelica/build/Python/src/tests_jmodelica/files/Modelica/Resou\ rces' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/cxh/src/JModelica/build' make: *** [all] Error 2 The solution is After that, rerunning make failed: -- Up-to-date: /usr/local/jmodelica/include/RuntimeLibrary/fmiCSPlatformTypes.h make[3]: Leaving directory `/home/cxh/src/JModelica/build/RuntimeLibrary/build' case x86_64-unknown-linux-gnu in \ *-cygwin*) \ cd /home/cxh/src/JModelica/build/RuntimeLibrary/build64 && VERBOSE=1 make install ;; \ *-mingw*) \ cd /home/cxh/src/JModelica/build/RuntimeLibrary/build64 && VERBOSE=1 make install ;; \ esac make[2]: Leaving directory `/home/cxh/src/JModelica/build/RuntimeLibrary' Making all in Python/src/tests_jmodelica/files/Modelica/Resources make[2]: Entering directory `/home/cxh/src/JModelica/build/Python/src/tests_jmodelica/files/Modelica/Reso\ urces' cd /home/cxh/src/JModelica/build/Python/src/tests_jmodelica/files/Modelica/Resources/build && VERBOSE=1 m\ ake install make[3]: Entering directory `/home/cxh/src/JModelica/build/Python/src/tests_jmodelica/files/Modelica/Reso\ urces/build' make[3]: *** No rule to make target `install'. Stop. make[3]: Leaving directory `/home/cxh/src/JModelica/build/Python/src/tests_jmodelica/files/Modelica/Resou\ rces/build' make[2]: *** [all-local] Error 2 make[2]: Leaving directory `/home/cxh/src/JModelica/build/Python/src/tests_jmodelica/files/Modelica/Resou\ rces' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/cxh/src/JModelica/build' make: *** [all] Error 2 The fix was to remove the build directory, reconfigure and run make (again). Problem: ImportError: libquadmath.so.0: cannot open shared object file: No such file or directoryIs libquadmath.so.0 a problem with numpy? Solution: As root [root@sisyphus ~]# cd /usr/local/lib [root@sisyphus lib]# ln -s ../gcc-4.8.2/lib64/libquadmath* . Problem: Please upgrade to a newer Cython version, >= 0.15make[2]: Entering directory `/home/cxh/src/JModelica/build' cd /home/cxh/src/JModelica/build/../external/Assimulo; \ python setup.py install --sundials-home=/home/cxh/src/JModelica/build/sundials_install --blas-home=\ /home/cxh/src/JModelica/build/ThirdParty/Blas/ --lapack-home=/home/cxh/src/JModelica/build/ThirdParty/Lapac\ k/ --prefix=/home/cxh/src/JModelica/build/Assimulo_install Traceback (most recent call last): File "setup.py", line 32, in <module> raise Exception("Please upgrade to a newer Cython version, >= 0.15.") Exception: Please upgrade to a newer Cython version, >= 0.15. Solution: Install Cython: As root: wget http://cython.org/release/Cython-0.20.tar.gz tar -zxf Cython-0.20.tar.gz cd Cython-0.20 python setup.py install Problem: Running ant during make install fails:As root Removing /home/cxh/src/JModelica/build/PyJMI_install/lib/python2.7/site-packages/PyJMI-trunk-py2.7.egg-info Writing /home/cxh/src/JModelica/build/PyJMI_install/lib/python2.7/site-packages/PyJMI-trunk-py2.7.egg-info mkdir -p /home/cxh/src/JModelica/build/java cd /home/cxh/src/JModelica/build/java; \ ANT_OPTS=-Xmx1024M /usr/local/bin/ant -f "/home/cxh/src/JModelica/build/../Compiler/ModelicaCompile\ r/build.xml" "-Dcompiler=/home/cxh/src/JModelica/build/../Compiler" Buildfile: /home/cxh/src/JModelica/build/../Compiler/ModelicaCompiler/build.xml BUILD FAILED /home/cxh/src/JModelica/Compiler/ModelicaCompiler/build.xml:28: Problem: failed to create task or type include Cause: The name is undefined. Action: Check the spelling. Action: Check that any custom tasks/types have been declared. Action: Check that any <presetdef>/<macrodef> declarations have taken place. Total time: 0 seconds make[2]: *** [all-local] Error 1 make[2]: Leaving directory `/home/cxh/src/JModelica/build' Solution: export ANT_HOME=/usr/local/apache-ant make install No module named jpypebash-4.1$ /usr/local/jmodelica/bin/jm_python.sh Python 2.7.6 (default, Feb 10 2014, 09:21:13) [GCC 4.8.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import pymodelica Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/jmodelica/Python/pymodelica/__init__.py", line 51, in <module> execfile(_f) File "/usr/local/jmodelica/startup.py", line 35, in <module> import jpype ImportError: No module named jpype >>> Solution: Install JPype. Problem: Missing jxmlWhen running bash-4.1$ /usr/local/jmodelica/bin/jm_python.sh Python 2.7.6 (default, Feb 10 2014, 09:21:13) [GCC 4.8.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import pymodelica Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/jmodelica/Python/pymodelica/__init__.py", line 65, in <module> from compiler import compile_jmu, compile_fmu, compile_fmux File "/usr/local/jmodelica/Python/pymodelica/compiler.py", line 34, in <module> from pymodelica.common import xmlparser File "/usr/local/jmodelica/Python/pymodelica/common/xmlparser.py", line 25, in <module> from lxml import etree ImportError: No module named lxml >>> This is because the RHEL Python is bash-4.1$ /usr/bin/python --version Python 2.6.6 Solution: Install lxml: wget http://lxml.de/files/lxml-3.3.5.tgz tar -zxf lxml-3.3.5.tgz cd lxml-3.3.5 python setup.py build 2/10/14 Build Ipoptcd ~/src tar -zxf Ipopt-3.11.7.tgz cd Ipopt-3.11.7/ mkdir build cd build ../configure --prefix=/usr/local/ipopt-3.11.7 make >& make.out sudo -i cd src/Ipopt-3.11.7 make install exit Download JModelicacd ~/src svn co https://svn.jmodelica.org/trunk JModelica Configure JModelicacd JModelica mkdir build cd build ../configure --with-ipopt=/usr/local/ipopt-3.11.7 make numpy missingAfter rerunning configure for JModelica and then make: make[2]: Entering directory `/home/cxh/src/JModelica/build' cd /home/cxh/src/JModelica/build/../external/Assimulo; \ python setup.py install --sundials-home=/home/cxh/src/JModelica/build/sundials_install --blas-home=/home/cxh/src/J\ Modelica/build/ThirdParty/Blas/ --lapack-home=/home/cxh/src/JModelica/build/ThirdParty/Lapack/ --prefix=/home/cxh/src/JMod\ elica/build/Assimulo_install Traceback (most recent call last): File "setup.py", line 19, in <module> import numpy as N ImportError: No module named numpy make[2]: *** [build-python-packages] Error 1 FIXME: JModelica configure should check for numpy ScipySuperpack is for Mac OS, so I downloaded numpy However, I could not get numpy to install in Python2.7.6, so I gave up here. The error was: root@sisyphus src]# python -c 'import numpy; numpy.test()' Traceback (most recent call last): File "<string>", line 1, in <module> File "/usr/local/python/lib/python2.7/site-packages/numpy/__init__.py", line 137, in <module> import add_newdocs File "/usr/local/python/lib/python2.7/site-packages/numpy/add_newdocs.py", line 9, in <module> from numpy.lib import add_newdoc File "/usr/local/python/lib/python2.7/site-packages/numpy/lib/__init__.py", line 13, in <module> from polynomial import * File "/usr/local/python/lib/python2.7/site-packages/numpy/lib/polynomial.py", line 17, in <module> from numpy.linalg import eigvals, lstsq, inv File "/usr/local/python/lib/python2.7/site-packages/numpy/linalg/__init__.py", line 48, in <module> from linalg import * File "/usr/local/python/lib/python2.7/site-packages/numpy/linalg/linalg.py", line 23, in <module> from numpy.linalg import lapack_lite ImportError: libquadmath.so.0: cannot open shared object file: No such file or directory [root@sisyphus src]# Installation under Mac OS X2/18/12: Notes about installing JModelica from sources under Mac OS X 10.7.3. Instructions are at https://svn.jmodelica.org/trunk/INSTALL Below are the steps I took in time order. It would have been easier to install all the dependencies first, but that's not how it happened. The primary issue seems to have been that installing a devel version of Python required installing the various packages into that version of Python. After posting a link to this page to the JModelica forums, jakesson suggested that installing Python 2.7 via Mac Ports should help. Also, he updated the INSTALL file. So, the installation under Mac OS X should be easier than the problems I had below. I'm going to leave the issues up so that if other people have similar error messages, then maybe some of the solutions will help. I have not yet tried JModelica 1.7 with Mac Ports. Download JModelica via subversion: svn co https://svn.jmodelica.org/trunk JModelica Download Sundials from https://computation.llnl.gov/casc/sundials/download/download.html Oddly, the LLNL page requires registration. How quaint JModelica 1.7: jakesson writes: 'Sundials will no longer be needed in JModelica.org version 1.7, it is built from sources as part of JModelica.org.' tar -zxf ~/Downloads/sundials-2.4.0.tar.gz cd sundials-2.4.0/ ./configure make sudo make install Download Ipopt (updated 3/2/15) tar -zxf ~/Downloads/Ipopt-3.12.1.tgz cd Ipopt-3.12.1 ./configure --prefix=/usr/local/ipopt-3.12.1 make sudo make install Fortran not found?Ipopt requires Fortran (really?) http://www.webmo.net/support/fortran_osx.html has a list of Fortran implementations for Mac OS X, I chose http://gcc.gnu.org/wiki/GFortranBinaries and ran the dmg. Configure JModelicacd JModelica mkdir build cd build ../configure --with-ipopt=/usr/local/ipopt-3.12.1 make Problem: Please upgrade to a newer Cython version, >= 0.15cd /Users/cxh/src/JModelica/build/../Assimulo; \ python setup.py install --sundials-home=/Users/cxh/src/JModelica/build/sundials_install \ --prefix=/Users/cxh/src/JModelica/build/Assimulo_install Traceback (most recent call last): File "setup.py", line 30, in <module> raise Exception("Please upgrade to a newer Cython version, >= 0.15.") Exception: Please upgrade to a newer Cython version, >= 0.15. make[2]: *** [build-python-packages] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 cd ~/src wget http://cython.org/release/Cython-0.15.1.tar.gz tar -zxf Cython-0.15.1.tar.gz cd Cython-0.15.1 python setup.py install fails with Cython/Plex/Scanners.c:4:20: error: Python.h: No such file or directory Cython/Plex/Scanners.c:6:6: error: #error Python headers needed to compile C extensions, please i\ nstall development version of Python. So, I downloaded the Mac OS X dmg for Python and installed it http://python.org/getit In February, 2014, the Cython warning came up during installation as root. My solution was, as root: export PATH=/Library/Frameworks/Python.framework/Versions/2.7/bin:${PATH} numpy missingAfter rerunning configure for JModelica and then make: cd /Users/cxh/src/JModelica/build/../Assimulo; \ python setup.py install --sundials-home=/Users/cxh/src/JModelica/build/sundials_install -\ -prefix=/Users/cxh/src/JModelica/build/Assimulo_install Traceback (most recent call last): File "setup.py", line 19, in <module> import numpy as N Download http://fonnesbeck.github.com/ScipySuperpack/ cd ~/src mkdir numpy cd numpy wget --no-check-certificate https://raw.github.com/fonnesbeck/ScipySuperpack/master/install_superpack.sh sh ./install_superpack.sh CPython againAfter going back to Exception: Please upgrade to a newer Cython version, >= 0.15. Try installing CPython again? cd ~/src/Cython-0.15.1 python setup.py install That seems to have fixed it, we get further: cd ~/src/JModelica/build make fails with: customize Gnu95FCompiler Found executable /usr/local/bin/gfortran customize Gnu95FCompiler customize Gnu95FCompiler using build_ext building 'assimulo.explicit_ode' extension Traceback (most recent call last): File "setup.py", line 416, in <module> script_args=copy_args) File "/Library/Python/2.7/site-packages/numpy-2.0.0.dev_4c0576f_20120208-py2.7-macosx-10.7-x86_64.egg/numpy/distutils/core.py", line 186, in setup return old_setup(**new_attr) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py", line 152, in setup dist.run_commands() File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 953, in run_commands self.run_command(cmd) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 972, in run_command cmd_obj.run() File "/Library/Python/2.7/site-packages/numpy-2.0.0.dev_4c0576f_20120208-py2.7-macosx-10.7-x86_64.egg/numpy/distutils/command/install.py", line 55, in run r = old_install.run(self) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/command/install.py", line 563, in run self.run_command('build') File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/cmd.py", line 326, in run_command self.distribution.run_command(command) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 972, in run_command cmd_obj.run() File "/Library/Python/2.7/site-packages/numpy-2.0.0.dev_4c0576f_20120208-py2.7-macosx-10.7-x86_64.egg/numpy/distutils/command/build.py", line 37, in run old_build.run(self) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/command/build.py", line 127, in run self.run_command(cmd_name) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/cmd.py", line 326, in run_command self.distribution.run_command(command) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 972, in run_command cmd_obj.run() File "/Library/Python/2.7/site-packages/numpy-2.0.0.dev_4c0576f_20120208-py2.7-macosx-10.7-x86_64.egg/numpy/distutils/command/build_ext.py", line 232, in run self.build_extensions() File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/command/build_ext.py", line 449, in build_extensions self.build_extension(ext) File "/Library/Python/2.7/site-packages/numpy-2.0.0.dev_4c0576f_20120208-py2.7-macosx-10.7-x86_64.egg/numpy/distutils/command/build_ext.py", line 303, in build_extension fcompiler.extra_f77_compile_args = ext.extra_f77_compile_args or [] AttributeError: Extension instance has no attribute 'extra_f77_compile_args' make[2]: *** [build-python-packages] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 I have no idea . . . I edited #if fcompiler is not None: #fcompiler.extra_f77_compile_args = ext.extra_f77_compile_args or [] #fcompiler.extra_f90_compile_args = ext.extra_f90_compile_args or [] Went back to cd ~/src/JModelica/build make The make worked! sudo make install No module named jmodelica.examples.cstrThe JModelica INSTALL file says "To test that the Python packages are working, start Python or IPython. Type"
" > import jmodelica.examples.cstr as cstr"
" > cstr.run_demo()"
"You should now see the output of Ipopt and windows containing plots showing the optimization results should be opened."
This fails for me: bash-3.2$ /usr/local/jmodelica/bin/jm_python.sh Python 2.7.2 (v2.7.2:8527427914a2, Jun 11 2011, 15:22:34) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import jmodelica.examples.cstr as cstr Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: No module named jmodelica.examples.cstr >>> bash-3.2$ Maybe the INSTALL docs are out of date? There is no cstr.py file in /usr/local/jmodelica, but there is Tried: bash-3.2$ /usr/local/jmodelica/bin/jm_python.sh Python 2.7.2 (v2.7.2:8527427914a2, Jun 11 2011, 15:22:34) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import pyjmi.examples.cstr Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/jmodelica/Python/pyjmi/__init__.py", line 51, in <module> execfile(_f) File "/usr/local/jmodelica/startup.py", line 38, in <module> import jpype ImportError: No module named jpype >>> JpypeThe JModelica/INSTALL docs say to install jpype from http://jpype.sourceforge.net/ Download and unzip, then run def setupMacOSX(self): #self.javaHome = '/Library/Java/Home' self.javaHome = os.getenv("JAVA_HOME") self.jdkInclude = "darwin" Then do export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_31.jdk/Contents/Home After that, lxml
Download, untar, run The build takes awhile to run. There is no output during some of the compiles. import pyjmi fails with messages about .matplotlib
@ls -l@ shows that my home directory has a bash-3.2$ ls -ld /Users/cxh /Users/cxh/.matplotlib drwxr-xr-x+ 80 cxh staff 2720 Feb 18 14:29 /Users/cxh drwxr-xr-x 4 root staff 136 Feb 18 14:30 /Users/cxh/.matplotlib Indeed: bash-3.2$ ls -del /Users/cxh drwxr-xr-x+ 80 cxh staff 2720 Feb 18 14:29 /Users/cxh 0: group:everyone deny delete Setting export MPLCONFIGDIR=/Users/cxh/tmp/.matplotlib No module named dateutil.rrule/usr/local/jmodelica/bin/jm_python.sh import pyjmi fails with: File "/Library/Python/2.7/site-packages/matplotlib-1.2.x-py2.7-macosx-10.7-intel.egg/matplotlib/dates.py", line 122, in <module> from dateutil.rrule import rrule, MO, TU, WE, TH, FR, SA, SU, YEARLY, \ ImportError: No module named dateutil.rrule Found dateutil at http://labix.org/python-dateutil
Downloaded, untar'd, ran Failed with Solution: edit #from setuptools import setup from distutils.core import setup Run _thread missingFile "dateutil/rrule.py", line 13, in <module> import _thread ImportError: No module named _thread The problem here was that I downloaded dateutil for Python > 3.0. Once I downloaded dateutil for Python < 3.0, fixed the setup.py file and installed it worked. cstr.run_demo() failsbash-3.2$ /usr/local/jmodelica/bin/jm_python.sh Python 2.7.2 (v2.7.2:8527427914a2, Jun 11 2011, 15:22:34) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import pyjmi >>> import pyjmi.examples.cstr as cstr JVM started. >>> cstr.run_demo() /bin/sh: pkg-config: command not found Undefined symbols: "Ipopt::Vector::AddTwoVectorsImpl(double, Ipopt::Vector const&, double, Ipopt::Vector const&, double)", referenced from: vtable for Ipopt::Vectorin libjmi_solver_cppad_la-jmi_init_opt_ipopt.o vtable for Ipopt::Vectorin libjmi_solver_cppad_la-jmi_opt_coll_ipopt.o "Ipopt::Vector::FracToBoundImpl(Ipopt::Vector const&, double) const", referenced from: vtable for Ipopt::Vectorin libjmi_solver_cppad_la-jmi_init_opt_ipopt.o vtable for Ipopt::Vectorin libjmi_solver_cppad_la-jmi_opt_coll_ipopt.o "Ipopt::Vector::HasValidNumbersImpl() const", referenced from: vtable for Ipopt::Vectorin libjmi_solver_cppad_la-jmi_init_opt_ipopt.o vtable for Ipopt::Vectorin libjmi_solver_cppad_la-jmi_opt_coll_ipopt.o "Ipopt::Vector::AddVectorQuotientImpl(double, Ipopt::Vector const&, Ipopt::Vector const&, double)", referenced from: vtable for Ipopt::Vectorin libjmi_solver_cppad_la-jmi_init_opt_ipopt.o vtable for Ipopt::Vectorin libjmi_solver_cppad_la-jmi_opt_coll_ipopt.o "Ipopt::IpoptApplication::IpoptApplication(bool, bool)", referenced from: _jmi_init_opt_ipopt_new in libjmi_solver_cppad_la-jmi_init_opt_ipopt.o _jmi_opt_coll_ipopt_new in libjmi_solver_cppad_la-jmi_opt_coll_ipopt.o ld: symbol(s) not found collect2: ld returned 1 exit status make: *** [ipopt] Error 1 Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/jmodelica/Python/pyjmi/examples/cstr.py", line 76, in run_demo compiler_options={"enable_variable_scaling":True}) File "/usr/local/jmodelica/Python/pymodelica/compiler.py", line 310, in compile_jmu comp.compile_JMU(class_name, file_name, target, compile_to) File "/usr/local/jmodelica/Python/pymodelica/compiler.py", line 784, in compile_JMU self._handle_exception(ex) File "/usr/local/jmodelica/Python/pymodelica/compiler.py", line 1059, in _handle_exception '\nStacktrace: '+ex.stacktrace().encode('utf-8')) pymodelica.compiler.CcodeCompilationError: Message: Compilation of generated C code failed. C file location: /var/folders/04/1dxv0z9j44n9jlwxtb3xl1sm0000gn/T/jmc7585987937633679259out/sources/CSTR_CSTR_Init.c Stacktrace: org.jmodelica.optimica.compiler.CcodeCompilationException: Compilation of generated C code failed. C file location: /var/folders/04/1dxv0z9j44n9jlwxtb3xl1sm0000gn/T/jmc7585987937633679259out/sources/CSTR_CSTR_Init.c at org.jmodelica.optimica.compiler.GccCompilerDelegator.compileCCode(GccCompilerDelegator.java:222) at org.jmodelica.optimica.compiler.ModelicaCompiler.compileUnit(ModelicaCompiler.java:1096) at org.jmodelica.optimica.compiler.ModelicaCompiler.compileJMU(ModelicaCompiler.java:941) >>> Installing pkg-configDownload, untar. configure: error: pkg-config and glib-2.0 not found, please set GLIB_CFLAGS and GLIB_LIBS to the correct values Installing glibSee https://live.gnome.org/GTK%2B/OSX/Building#Prerequisites wget http://git.gnome.org/browse/gtk-osx/plain/gtk-osx-build-setup.sh sh ./gtk-osx-build-setup.sh export PATH=/usr/cxh/.local/bin:${PATH} bash-3.2$ ~/.local/bin/jhbuild shell Traceback (most recent call last): File "/Users/cxh/Source/jhbuild/jhbuild/config.py", line 212, in load execfile(self.filename, config) File "/Users/cxh/.jhbuildrc", line 508, in <module> execfile(_userrc) File "/Users/cxh/.jhbuildrc-custom", line 112, in <module> if _osx_version.startswith("8"): AttributeError: 'float' object has no attribute 'startswith' jhbuild: could not load config file bash-3.2$ Work around: edit ~/.jhbuildrc-custom and set target to 10.7
Ran these commands: jhbuild bootstrap jhbuild build meta-gtk-osx-bootstrap jhbuild build meta-gtk-osx-core Various packages failed to compile, but I skipped them and moved on libg installed and I reran configure for pkg-info and installed it: cd ~/src/pkg-config-0.26 ./configure make sudo make install Important: Make sure to exit the jhbuild shell that was started when building Glib, otherwise there will be Python mismatches (see below). Ran >>> import pyjmi.examples.cstr as cstr JVM started. >>> cstr.run_demo() WARNING:root:Could not find CasADi package, aborting. WARNING:root:Could not find CasADi package, aborting. Exception of type: OPTION_INVALID in file "IpAlgBuilder.cpp" at line 308: Exception message: Selected linear solver MA27 not available. Tried to obtain MA27 from shared library "libhsl.dylib", but the following error occured: dlopen(libhsl.dylib, 2): image not found Installing CasADISee http://sourceforge.net/apps/trac/casadi/wiki/InstallationInstructions CasADI required Cmake, which I already had installed. JModelica 1.7: jakesson writes: 'Currently, CasADi has issues on Mac systems. These are known and documented in http://sourceforge.net/apps/trac/casadi/ticket/201.' svn co https://casadi.svn.sourceforge.net/svnroot/casadi/trunk casadi cd casadi mkdir build cd build cmake .. Failure: /usr/local/bin/gfortran -L/Users/cxh/gtk/inst/lib -L/Users/cxh/gtk/inst/lib -arch x86_64 -mmacosx-version-min=10.7 -Wl,-headerpad_max_install_names CMakeFiles/cmTryCompileExec.dir/testFortranCompiler.f.o -o cmTryCompileExec gfortran: error: x86_64: No such file or directory gfortran: error: unrecognized option ‘-arch’ Solution: Edit
Go to http://swig.org/download.html and get the download, untar and configure. Swig requires PCRE, download and install it, then reconfigure swig. Then reconfigure casadi: cd ~/src/casadi/build cmake ..
Looking at when I run //Path to a file. IPOPT_INCLUDE_DIR:PATH=/Users/cxh/src/Ipopt-3.10.2/include //Path to a library. IPOPT_LIBRARY:FILEPATH=/Users/cxh/src/Ipopt-3.10.2/lib/libipopt.dylib cmake .. make make python sudo make install_python Reconfigure JModelica: cd ~/src/JModelica ./configure --with-ipopt=/Users/cxh/src/Ipopt-3.10.2 --with-casadi=/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages make Interpreter not initializedbash-3.2$ /usr/local/jmodelica/bin/jm_python.sh Python 2.7.2 (v2.7.2:8527427914a2, Jun 11 2011, 15:22:34) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import pyjmi.examples.cstr as cstr Fatal Python error: Interpreter not initialized (version mismatch?) /usr/local/jmodelica/bin/jm_python.sh: line 12: 92831 Abort trap: 6 JMODELICA_HOME=/usr/local/jmodelica IPOPT_HOME=/Users/cxh/src/Ipopt-3.10.2 CPPAD_HOME=/usr/local/jmodelic\ a/ThirdParty/CppAD/ SUNDIALS_HOME=/usr/local/jmodelica/ThirdParty/Sundials PYTHONPATH=:/usr/local/jmodelica/Python/: LD_LIBRARY_PATH=:/Users/cxh/src/Ipopt-3.10.2/lib/:/usr/local/jmode\ lica/ThirdParty/Sundials/lib python $@ clean, reconfigure, rebuild and reinstall in JModelica? I think the problem was that I was still in the shell from building glib? Still getting a stack trace window: Process: Python [89360] Path: /Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python Identifier: Python Version: ??? (???) Code Type: X86-64 (Native) Parent Process: sh [89359] Date/Time: 2012-02-19 09:42:54.427 -0800 OS Version: Mac OS X 10.7.3 (11D50b) Report Version: 9 Interval Since Last Report: 78946 sec Crashes Since Last Report: 30 Per-App Crashes Since Last Report: 5 Anonymous UUID: 98290025-6BE1-4849-AB33-71766F573E6F Crashed Thread: 0 Dispatch queue: com.apple.main-thread Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x0000000000000000, 0x0000000000000000 Application Specific Information: abort() called objc[89360]: garbage collection is OFF Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 libsystem_kernel.dylib 0x00007fff93c7382a __kill + 10 1 libsystem_c.dylib 0x00007fff95224a9c abort + 177 2 org.python.python 0x0000000103a4596e Py_FatalError + 49 3 org.python.python 0x0000000103a4346b Py_InitModule4_64 + 74 4 _casadi.so 0x00000001031562af init_casadi + 559 5 org.python.python 0x00000001000dc071 _PyImport_LoadDynamicModule + 177 6 org.python.python 0x00000001000db988 imp_load_module + 184 7 org.python.python 0x00000001000c102d PyEval_EvalFrameEx + 22397 8 org.python.python 0x00000001000c1ebe PyEval_EvalFrameEx + 26126 9 org.python.python 0x00000001000c2d29 PyEval_EvalCodeEx + 2137 10 org.python.python 0x00000001000c2e46 PyEval_EvalCode + 54 11 org.python.python 0x00000001000d7230 PyImport_ExecCodeModuleEx + 208 12 org.python.python 0x00000001000d84a2 load_source_module + 722 13 org.python.python 0x00000001000da33f import_submodule + 383 14 org.python.python 0x00000001000da84a load_next + 234 15 org.python.python 0x00000001000dab5b PyImport_ImportModuleLevel + 363 16 org.python.python 0x00000001000b9483 builtin___import__ + 131 17 org.python.python 0x000000010000c5e2 PyObject_Call + 98 18 org.python.python 0x00000001000ba5f7 PyEval_CallObjectWithKeywords + 87 19 org.python.python 0x00000001000bec78 PyEval_EvalFrameEx + 13256 20 org.python.python 0x00000001000c2d29 PyEval_EvalCodeEx + 2137 21 org.python.python 0x00000001000c2e46 PyEval_EvalCode + 54 22 org.python.python 0x00000001000d7230 PyImport_ExecCodeModuleEx + 208 23 org.python.python 0x00000001000d84a2 load_source_module + 722 24 org.python.python 0x00000001000d9a4f load_package + 463 25 org.python.python 0x00000001000da33f import_submodule + 383 26 org.python.python 0x00000001000da8d1 load_next + 369 27 org.python.python 0x00000001000dab5b PyImport_ImportModuleLevel + 363 28 org.python.python 0x00000001000b9483 builtin___import__ + 131 29 org.python.python 0x000000010000c5e2 PyObject_Call + 98 30 org.python.python 0x00000001000ba5f7 PyEval_CallObjectWithKeywords + 87 31 org.python.python 0x00000001000bec78 PyEval_EvalFrameEx + 13256 32 org.python.python 0x00000001000c2d29 PyEval_EvalCodeEx + 2137 33 org.python.python 0x00000001000c2e46 PyEval_EvalCode + 54 34 org.python.python 0x00000001000d7230 PyImport_ExecCodeModuleEx + 208 35 org.python.python 0x00000001000d84a2 load_source_module + 722 36 org.python.python 0x00000001000da33f import_submodule + 383 37 org.python.python 0x00000001000da84a load_next + 234 38 org.python.python 0x00000001000dab5b PyImport_ImportModuleLevel + 363 39 org.python.python 0x00000001000b9483 builtin___import__ + 131 40 org.python.python 0x000000010000c5e2 PyObject_Call + 98 41 org.python.python 0x00000001000ba5f7 PyEval_CallObjectWithKeywords + 87 42 org.python.python 0x00000001000bec78 PyEval_EvalFrameEx + 13256 43 org.python.python 0x00000001000c2d29 PyEval_EvalCodeEx + 2137 44 org.python.python 0x00000001000c2e46 PyEval_EvalCode + 54 45 org.python.python 0x00000001000d7230 PyImport_ExecCodeModuleEx + 208 46 org.python.python 0x00000001000d84a2 load_source_module + 722 47 org.python.python 0x00000001000d9a4f load_package + 463 48 org.python.python 0x00000001000da33f import_submodule + 383 49 org.python.python 0x00000001000da84a load_next + 234 50 org.python.python 0x00000001000dab5b PyImport_ImportModuleLevel + 363 51 org.python.python 0x00000001000b9483 builtin___import__ + 131 52 org.python.python 0x000000010000c5e2 PyObject_Call + 98 53 org.python.python 0x00000001000ba5f7 PyEval_CallObjectWithKeywords + 87 54 org.python.python 0x00000001000bec78 PyEval_EvalFrameEx + 13256 55 org.python.python 0x00000001000c2d29 PyEval_EvalCodeEx + 2137 56 org.python.python 0x00000001000c2e46 PyEval_EvalCode + 54 57 org.python.python 0x00000001000e769c PyRun_InteractiveOneFlags + 380 58 org.python.python 0x00000001000e78fe PyRun_InteractiveLoopFlags + 78 59 org.python.python 0x00000001000e80e1 PyRun_AnyFileExFlags + 161 60 org.python.python 0x00000001000fe77c Py_Main + 2940 61 org.python.python 0x0000000100000f14 0x100000000 + 3860 Thread 0 crashed with X86 Thread State (64-bit): rax: 0x0000000000000000 rbx: 0x00007fff5fbf9480 rcx: 0x00007fff5fbf9468 rdx: 0x0000000000000000 rdi: 0x0000000000015d10 rsi: 0x0000000000000006 rbp: 0x00007fff5fbf9490 rsp: 0x00007fff5fbf9468 r8: 0x00000000000003f5 r9: 0x00000000000009a4 r10: 0x00007fff93c74e62 r11: 0xffffff80002d8220 r12: 0x000000010360d674 r13: 0x0000000101a9a430 r14: 0x0000000000000000 r15: 0x000000010382ff00 rip: 0x00007fff93c7382a rfl: 0x0000000000000202 cr2: 0x0000000103a83464 Logical CPU: 0 Binary Images: 0x100000000 - 0x100000fff +org.python.python (2.7.2 - 2.7.2) <639E72E4-F205-C034-8E34-E59DE9C46369> /Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python 0x100003000 - 0x10016cfef +org.python.python (2.7.2, [c] 2004-2011 Python Software Foundation. - 2.7.2) <49D18B1A-C92D-E32E-A7C1-086D0B14BD76> /Library/Frameworks/Python.framework/Versions/2.7/Python 0x1002ed000 - 0x1002effff +time.so (??? - ???) <77136671-9973-6EFB-9A2D-127664836672> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/time.so 0x1002f5000 - 0x1002f6fff +cStringIO.so (??? - ???) <364F2486-CB7C-0DA0-C419-F3BCE469B261> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/cStringIO.so 0x1002fb000 - 0x1002fbfff +_bisect.so (??? - ???) <0872429A-9467-F3F6-BA8E-CCF6C9AD4FB5> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_bisect.so 0x1004b0000 - 0x1004edff7 +readline.so (??? - ???) <B4E63FA1-7F33-318B-BDE5-E022E7292F19> /Library/Python/2.7/site-packages/readline-6.2.1-py2.7-macosx-10.7-intel.egg/readline.so 0x100576000 - 0x10057afff +_collections.so (??? - ???) <101CE794-99F9-CF85-B3DF-B2ACA887CEDB> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_collections.so 0x100580000 - 0x100584ff7 +operator.so (??? - ???) <CAD2CA2D-4216-507D-BD3E-3CE5FD1AC228> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/operator.so 0x10058b000 - 0x100592ff7 +itertools.so (??? - ???) <87448276-955A-B859-0CCB-35A9834894A7> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/itertools.so 0x10059d000 - 0x10059eff7 +_heapq.so (??? - ???) <22FEED03-4F6C-2499-DC3B-952791344ABD> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_heapq.so 0x1005e2000 - 0x1005e7fff +array.so (??? - ???) <88248C2B-CFF2-71B4-2511-09B994E36CE9> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/array.so 0x1005ee000 - 0x1005f1fff +_dotblas.so (??? - ???) <01999A85-8E35-3535-A073-25EB641A0C2A> /Library/Python/2.7/site-packages/numpy-2.0.0.dev_4c0576f_20120208-py2.7-macosx-10.7-x86_64.egg/numpy/core/_dotblas.so 0x1005f5000 - 0x1005f6ff7 +_functools.so (??? - ???) <755EA750-0AF2-4887-4C25-703D7366BB37> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_functools.so 0x1005f9000 - 0x1005fcfff +lapack_lite.so (??? - ???) <E68CF826-BD6D-3B1E-8BCF-CC57B580A9B4> /Library/Python/2.7/site-packages/numpy-2.0.0.dev_4c0576f_20120208-py2.7-macosx-10.7-x86_64.egg/numpy/linalg/lapack_lite.so 0x100700000 - 0x10077bff7 +_jpype.so (??? - ???) <FF366753-4951-FB05-E73B-AF055359C2BA> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/_jpype.so 0x1007c6000 - 0x1007d4fff +datetime.so (??? - ???) <710107D4-44E6-D559-D71B-2D59CCC8966E> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/datetime.so 0x1007e0000 - 0x1007efff7 +cPickle.so (??? - ???) <190F516F-97F6-7258-29D3-F8B23CF04C50> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/cPickle.so 0x1007f7000 - 0x1007fbfff +_compiled_base.so (??? - ???) <147F210A-6BB6-314B-B638-78106396C9E0> /Library/Python/2.7/site-packages/numpy-2.0.0.dev_4c0576f_20120208-py2.7-macosx-10.7-x86_64.egg/numpy/lib/_compiled_base.so 0x101040000 - 0x10113cfff +multiarray.so (??? - ???) <9906AC84-B2C3-349A-8D66-CB30276A64BF> /Library/Python/2.7/site-packages/numpy-2.0.0.dev_4c0576f_20120208-py2.7-macosx-10.7-x86_64.egg/numpy/core/multiarray.so 0x1011df000 - 0x101225ff7 +umath.so (??? - ???) <7FC1DB6F-8018-3C8C-8B27-711A393734DD> /Library/Python/2.7/site-packages/numpy-2.0.0.dev_4c0576f_20120208-py2.7-macosx-10.7-x86_64.egg/numpy/core/umath.so 0x101290000 - 0x1012b1fff +scalarmath.so (??? - ???) <3BC19C04-8BDB-32C4-BB85-CF7C1EAA8A59> /Library/Python/2.7/site-packages/numpy-2.0.0.dev_4c0576f_20120208-py2.7-macosx-10.7-x86_64.egg/numpy/core/scalarmath.so 0x1012c4000 - 0x1012c9fef +math.so (??? - ???) <BB711560-6A83-84BF-316C-9337CE845D0D> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/math.so 0x1012d0000 - 0x1012d0fff +grp.so (??? - ???) <9133BC7F-65D3-5CFB-ACCC-8F1F9478FF2E> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/grp.so 0x1012d3000 - 0x1012dbff7 +fftpack_lite.so (??? - ???) <81B43F39-5DC5-3ADE-8E00-6AD3589FEB68> /Library/Python/2.7/site-packages/numpy-2.0.0.dev_4c0576f_20120208-py2.7-macosx-10.7-x86_64.egg/numpy/fft/fftpack_lite.so 0x1012df000 - 0x1012e2ff7 +strop.so (??? - ???) <F7857283-F427-7CF7-9B0D-7619AA0A82F1> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/strop.so 0x1012e7000 - 0x1012ebfff +_struct.so (??? - ???) <8FFF4DE5-5CF1-5DFD-ADE0-5AAD633838BF> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_struct.so 0x1012f2000 - 0x1012f5fef +binascii.so (??? - ???) <89F159C8-99E7-6BB0-4829-3C441378FF07> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/binascii.so 0x1012f9000 - 0x1012fafff +_hashlib.so (??? - ???) <609B0E50-C9BD-9B88-9177-FFBAFED033ED> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_hashlib.so 0x101700000 - 0x101736fff +mtrand.so (??? - ???) <FC7D672A-4DE7-3481-B7C5-480F74618B95> /Library/Python/2.7/site-packages/numpy-2.0.0.dev_4c0576f_20120208-py2.7-macosx-10.7-x86_64.egg/numpy/random/mtrand.so 0x101783000 - 0x101799fff +_ctypes.so (??? - ???) <C5FE5EC4-F979-6AAA-C324-BD806FF6ECCC> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_ctypes.so 0x1017aa000 - 0x1017befef +libgcc_s.1.dylib (??? - ???) <A9799487-996E-3EDF-8320-1330279D0248> /usr/local/gfortran/lib/libgcc_s.1.dylib 0x1019e2000 - 0x1019e3fff +_random.so (??? - ???) <54585B5D-1999-A6CC-9CEB-34F759F0438F> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_random.so 0x1019e6000 - 0x1019e7ff7 +fcntl.so (??? - ???) <A147C2B8-5A06-D0C5-C60F-6BC316D73FAA> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/fcntl.so 0x1019ea000 - 0x1019edff7 +zlib.so (??? - ???) <BD96CFDC-B0B5-E21A-75BB-C3E8D035AADD> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/zlib.so 0x1019f2000 - 0x1019f6fff +_csgraph.so (??? - ???) <3D00A853-FC55-3460-BAA9-61EA1A5E5BB8> /Library/Python/2.7/site-packages/scipy-0.11.0.dev_1983db6_20120208-py2.7-macosx-10.7-x86_64.egg/scipy/sparse/sparsetools/_csgraph.so 0x101e40000 - 0x101f46ff7 +etree.so (??? - ???) <263F1BD0-2DF8-E85A-325A-1CD735B55F70> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/lxml/etree.so 0x101ffa000 - 0x10200ffff +_io.so (??? - ???) <7A9EA5F2-75D9-F13A-7FDB-AD6841880B07> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_io.so 0x102026000 - 0x102103fff +_csr.so (??? - ???) <6E716D4A-5B65-364F-9159-3734045479B1> /Library/Python/2.7/site-packages/scipy-0.11.0.dev_1983db6_20120208-py2.7-macosx-10.7-x86_64.egg/scipy/sparse/sparsetools/_csr.so 0x102162000 - 0x1021e5fff +_csc.so (??? - ???) <A1A31BF6-C6A3-38EC-8D5D-1E28EC0C4B0B> /Library/Python/2.7/site-packages/scipy-0.11.0.dev_1983db6_20120208-py2.7-macosx-10.7-x86_64.egg/scipy/sparse/sparsetools/_csc.so 0x10220d000 - 0x102234fff +_coo.so (??? - ???) <C1C79A86-CC23-30E9-8F86-5281A73F92BB> /Library/Python/2.7/site-packages/scipy-0.11.0.dev_1983db6_20120208-py2.7-macosx-10.7-x86_64.egg/scipy/sparse/sparsetools/_coo.so 0x102240000 - 0x10224efff +_dia.so (??? - ???) <980E0238-C656-386A-8E01-70C9EA051CB8> /Library/Python/2.7/site-packages/scipy-0.11.0.dev_1983db6_20120208-py2.7-macosx-10.7-x86_64.egg/scipy/sparse/sparsetools/_dia.so 0x102256000 - 0x102345fff +_bsr.so (??? - ???) <D588F723-F85B-311B-ADF4-34528C758C8D> /Library/Python/2.7/site-packages/scipy-0.11.0.dev_1983db6_20120208-py2.7-macosx-10.7-x86_64.egg/scipy/sparse/sparsetools/_bsr.so 0x1023bc000 - 0x1023bffff +mio_utils.so (??? - ???) <54934892-F43E-3AAA-8790-36307698548E> /Library/Python/2.7/site-packages/scipy-0.11.0.dev_1983db6_20120208-py2.7-macosx-10.7-x86_64.egg/scipy/io/matlab/mio_utils.so 0x1023c4000 - 0x1023defff +mio5_utils.so (??? - ???) <B3594F67-C4E3-3990-8B17-9D0536C0EDFA> /Library/Python/2.7/site-packages/scipy-0.11.0.dev_1983db6_20120208-py2.7-macosx-10.7-x86_64.egg/scipy/io/matlab/mio5_utils.so 0x1023ef000 - 0x1023f8fff +streams.so (??? - ???) <3AFD674D-56AD-3C95-ADF3-F8DCF5925C7E> /Library/Python/2.7/site-packages/scipy-0.11.0.dev_1983db6_20120208-py2.7-macosx-10.7-x86_64.egg/scipy/io/matlab/streams.so 0x102401000 - 0x102404fff +mmap.so (??? - ???) <2E6ACB08-5DE8-037B-0621-D509DCEC1275> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/mmap.so 0x1028c0000 - 0x1028eeff7 +libquadmath.0.dylib (??? - ???) <75506CBD-53C1-3173-A9FD-2E1294CE445D> /usr/local/gfortran/lib/libquadmath.0.dylib 0x103000000 - 0x103817fef +_casadi.so (??? - ???) <D51686DC-0129-3B2B-893C-8AADD5916D76> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/casadi/_casadi.so 0x1039a4000 - 0x103abfff7 org.python.python (2.7.1 - 2.7.1) <A7E34EB5-24D2-3B8F-A26B-4A5B28CD2C60> /System/Library/Frameworks/Python.framework/Versions/2.7/Python 0x103b24000 - 0x103c2eff7 +libgfortran.3.dylib (4.0.0 - compatibility 4.0.0) <C5BDA74C-5089-38F9-9AA7-2C6F52846363> /usr/local/gfortran/lib/libgfortran.3.dylib 0x103c8f000 - 0x103d31fff +libstdc++.6.dylib (7.16.0 - compatibility 7.0.0) <AFB41DE3-DD4B-38DE-98AC-B42C45A89C40> /usr/local/gfortran/lib/libstdc++.6.dylib 0x7fff64a61000 - 0x7fff64a95baf dyld (195.6 - ???) <0CD1B35B-A28F-32DA-B72E-452EAD609613> /usr/lib/dyld 0x7fff89c34000 - 0x7fff89c61fe7 libSystem.B.dylib (159.1.0 - compatibility 1.0.0) <7BEBB139-50BB-3112-947A-F4AA168F991C> /usr/lib/libSystem.B.dylib 0x7fff89c62000 - 0x7fff89cd7ff7 libc++.1.dylib (19.0.0 - compatibility 1.0.0) <C0EFFF1B-0FEB-3F99-BE54-506B35B555A9> /usr/lib/libc++.1.dylib 0x7fff89d76000 - 0x7fff89d7afff libdyld.dylib (195.5.0 - compatibility 1.0.0) <F1903B7A-D3FF-3390-909A-B24E09BAD1A5> /usr/lib/system/libdyld.dylib 0x7fff8a056000 - 0x7fff8a058fff com.apple.TrustEvaluationAgent (2.0 - 1) <1F31CAFF-C1C6-33D3-94E9-11B721761DDF> /System/Library/PrivateFrameworks/TrustEvaluationAgent.framework/Versions/A/TrustEvaluationAgent 0x7fff8b77c000 - 0x7fff8b77dfff libunc.dylib (24.0.0 - compatibility 1.0.0) <C67B3B14-866C-314F-87FF-8025BEC2CAAC> /usr/lib/system/libunc.dylib 0x7fff8b796000 - 0x7fff8b796fff libkeymgr.dylib (23.0.0 - compatibility 1.0.0) <61EFED6A-A407-301E-B454-CD18314F0075> /usr/lib/system/libkeymgr.dylib 0x7fff8b9a1000 - 0x7fff8bb75fff com.apple.CoreFoundation (6.7.1 - 635.19) <57B77925-9065-38C9-A05B-02F4F9ED007C> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation 0x7fff8bed9000 - 0x7fff8beddfff libmathCommon.A.dylib (2026.0.0 - compatibility 1.0.0) <FF83AFF7-42B2-306E-90AF-D539C51A4542> /usr/lib/system/libmathCommon.A.dylib 0x7fff8bede000 - 0x7fff8bf51fff libstdc++.6.dylib (52.0.0 - compatibility 7.0.0) <6BDD43E4-A4B1-379E-9ED5-8C713653DFF2> /usr/lib/libstdc++.6.dylib 0x7fff8bf5f000 - 0x7fff8bf69ff7 liblaunch.dylib (392.18.0 - compatibility 1.0.0) <39EF04F2-7F0C-3435-B785-BF283727FFBD> /usr/lib/system/liblaunch.dylib 0x7fff8d4ed000 - 0x7fff8dad1fff libBLAS.dylib (??? - ???) <C34F6D88-187F-33DC-8A68-C0C9D1FA36DF> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib 0x7fff8dad2000 - 0x7fff8db68ff7 libvMisc.dylib (325.4.0 - compatibility 1.0.0) <642D8D54-F9F5-3FBB-A96C-EEFE94C6278B> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvMisc.dylib 0x7fff8e196000 - 0x7fff8e27ae5f libobjc.A.dylib (228.0.0 - compatibility 1.0.0) <871E688B-CF57-3BC7-80D6-F6476DFF109B> /usr/lib/libobjc.A.dylib 0x7fff8e44c000 - 0x7fff8e879fff libLAPACK.dylib (??? - ???) <4F2E1055-2207-340B-BB45-E4F16171EE0D> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib 0x7fff8e8f7000 - 0x7fff8e931fff libncurses.5.4.dylib (5.4.0 - compatibility 5.4.0) <387DE593-9CC5-38C7-911B-A5F2264D34F2> /usr/lib/libncurses.5.4.dylib 0x7fff8ea97000 - 0x7fff8ea9cfff libcompiler_rt.dylib (6.0.0 - compatibility 1.0.0) <98ECD5F6-E85C-32A5-98CD-8911230CB66A> /usr/lib/system/libcompiler_rt.dylib 0x7fff8f1b0000 - 0x7fff8f1cdfff libxpc.dylib (77.18.0 - compatibility 1.0.0) <26C05F31-E809-3B47-AF42-1460971E3AC3> /usr/lib/system/libxpc.dylib 0x7fff8f1eb000 - 0x7fff8f1f1fff libmacho.dylib (800.0.0 - compatibility 1.0.0) <D86F63EC-D2BD-32E0-8955-08B5EAFAD2CC> /usr/lib/system/libmacho.dylib 0x7fff8f7b1000 - 0x7fff8f7b2fff libdnsinfo.dylib (395.6.0 - compatibility 1.0.0) <718A135F-6349-354A-85D5-430B128EFD57> /usr/lib/system/libdnsinfo.dylib 0x7fff8f96d000 - 0x7fff8fa79fff libcrypto.0.9.8.dylib (44.0.0 - compatibility 0.9.8) <3A8E1F89-5E26-3C8B-B538-81F5D61DBF8A> /usr/lib/libcrypto.0.9.8.dylib 0x7fff9024f000 - 0x7fff90250ff7 libremovefile.dylib (21.1.0 - compatibility 1.0.0) <739E6C83-AA52-3C6C-A680-B37FE2888A04> /usr/lib/system/libremovefile.dylib 0x7fff90a15000 - 0x7fff90a22fff libexslt.0.dylib (9.13.0 - compatibility 9.0.0) <C3D01D74-EDC0-3EB4-B31C-0B44A0DE1AE1> /usr/lib/libexslt.0.dylib 0x7fff90a33000 - 0x7fff90a3afff libcopyfile.dylib (85.1.0 - compatibility 1.0.0) <172B1985-F24A-34E9-8D8B-A2403C9A0399> /usr/lib/system/libcopyfile.dylib 0x7fff914cd000 - 0x7fff914d3ff7 libunwind.dylib (30.0.0 - compatibility 1.0.0) <1E9C6C8C-CBE8-3F4B-A5B5-E03E3AB53231> /usr/lib/system/libunwind.dylib 0x7fff91913000 - 0x7fff9191bfff libsystem_dnssd.dylib (??? - ???) <7749128E-D0C5-3832-861C-BC9913F774FA> /usr/lib/system/libsystem_dnssd.dylib 0x7fff9213b000 - 0x7fff92144ff7 libsystem_notify.dylib (80.1.0 - compatibility 1.0.0) <A4D651E3-D1C6-3934-AD49-7A104FD14596> /usr/lib/system/libsystem_notify.dylib 0x7fff9257d000 - 0x7fff9257efff libDiagnosticMessagesClient.dylib (??? - ???) <3DCF577B-F126-302B-BCE2-4DB9A95B8598> /usr/lib/libDiagnosticMessagesClient.dylib 0x7fff92a95000 - 0x7fff92a95fff com.apple.Accelerate.vecLib (3.7 - vecLib 3.7) <C06A140F-6114-3B8B-B080-E509303145B8> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/vecLib 0x7fff93300000 - 0x7fff93302fff libquarantine.dylib (36.2.0 - compatibility 1.0.0) <48656562-FF20-3B55-9F93-407ACA7341C0> /usr/lib/system/libquarantine.dylib 0x7fff93aa5000 - 0x7fff93b05fff libvDSP.dylib (325.4.0 - compatibility 1.0.0) <3A7521E6-5510-3FA7-AB65-79693A7A5839> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvDSP.dylib 0x7fff93b44000 - 0x7fff93b52fff libdispatch.dylib (187.7.0 - compatibility 1.0.0) <712AAEAC-AD90-37F7-B71F-293FF8AE8723> /usr/lib/system/libdispatch.dylib 0x7fff93bc6000 - 0x7fff93bcbfff libcache.dylib (47.0.0 - compatibility 1.0.0) <B7757E2E-5A7D-362E-AB71-785FE79E1527> /usr/lib/system/libcache.dylib 0x7fff93c5d000 - 0x7fff93c7dfff libsystem_kernel.dylib (1699.22.73 - compatibility 1.0.0) <69F2F501-72D8-3B3B-8357-F4418B3E1348> /usr/lib/system/libsystem_kernel.dylib 0x7fff93c7e000 - 0x7fff93c7fff7 libsystem_sandbox.dylib (??? - ???) <5087ADAD-D34D-3844-9D04-AFF93CED3D92> /usr/lib/system/libsystem_sandbox.dylib 0x7fff93cac000 - 0x7fff93cacfff com.apple.Accelerate (1.7 - Accelerate 1.7) <82DDF6F5-FBC3-323D-B71D-CF7ABC5CF568> /System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate 0x7fff94973000 - 0x7fff94a75ff7 libxml2.2.dylib (10.3.0 - compatibility 10.0.0) <D46F371D-6422-31B7-BCE0-D80713069E0E> /usr/lib/libxml2.2.dylib 0x7fff94ab7000 - 0x7fff94abcff7 libsystem_network.dylib (??? - ???) <5DE7024E-1D2D-34A2-80F4-08326331A75B> /usr/lib/system/libsystem_network.dylib 0x7fff94b86000 - 0x7fff94cbcfff com.apple.vImage (5.1 - 5.1) <A08B7582-67BC-3EED-813A-4833645964A7> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/Versions/A/vImage 0x7fff94d69000 - 0x7fff94d94ff7 libxslt.1.dylib (3.24.0 - compatibility 3.0.0) <8051A3FC-7385-3EA9-9634-78FC616C3E94> /usr/lib/libxslt.1.dylib 0x7fff951e3000 - 0x7fff952c0fef libsystem_c.dylib (763.12.0 - compatibility 1.0.0) <FF69F06E-0904-3C08-A5EF-536FAFFFDC22> /usr/lib/system/libsystem_c.dylib 0x7fff95970000 - 0x7fff959abfff libsystem_info.dylib (??? - ???) <35F90252-2AE1-32C5-8D34-782C614D9639> /usr/lib/system/libsystem_info.dylib 0x7fff959ac000 - 0x7fff959b7ff7 libc++abi.dylib (14.0.0 - compatibility 1.0.0) <8FF3D766-D678-36F6-84AC-423C878E6D14> /usr/lib/libc++abi.dylib 0x7fff95a40000 - 0x7fff95a82ff7 libcommonCrypto.dylib (55010.0.0 - compatibility 1.0.0) <A5B9778E-11C3-3F61-B740-1F2114E967FB> /usr/lib/system/libcommonCrypto.dylib 0x7fff95a98000 - 0x7fff95aaaff7 libz.1.dylib (1.2.5 - compatibility 1.0.0) <30CBEF15-4978-3DED-8629-7109880A19D4> /usr/lib/libz.1.dylib 0x7fff95aab000 - 0x7fff95cadfff libicucore.A.dylib (46.1.0 - compatibility 1.0.0) <38CD6ED3-C8E4-3CCD-89AC-9C3198803101> /usr/lib/libicucore.A.dylib 0x7fff95cce000 - 0x7fff95d1cfff libauto.dylib (??? - ???) <D8AC8458-DDD0-3939-8B96-B6CED81613EF> /usr/lib/libauto.dylib 0x7fff95d1d000 - 0x7fff95d1eff7 libsystem_blocks.dylib (53.0.0 - compatibility 1.0.0) <8BCA214A-8992-34B2-A8B9-B74DEACA1869> /usr/lib/system/libsystem_blocks.dylib 0x7fff96a3c000 - 0x7fff96a75fe7 libssl.0.9.8.dylib (44.0.0 - compatibility 0.9.8) <79AAEC98-1258-3DA4-B1C0-4120049D390B> /usr/lib/libssl.0.9.8.dylib External Modification Summary: Calls made by other processes targeting this process: task_for_pid: 0 thread_create: 0 thread_set_state: 0 Calls made by this process: task_for_pid: 0 thread_create: 0 thread_set_state: 0 Calls made by all processes on this machine: task_for_pid: 11274 thread_create: 0 thread_set_state: 0 VM Region Summary: ReadOnly portion of Libraries: Total=96.9M resident=53.4M(55%) swapped_out_or_unallocated=43.5M(45%) Writable regions: Total=40.4M written=26.7M(66%) resident=29.9M(74%) swapped_out=0K(0%) unallocated=10.5M(26%) REGION TYPE VIRTUAL =========== ======= MALLOC 31.0M MALLOC guard page 32K STACK GUARD 55.7M Stack 8516K VM_ALLOCATE 8K __DATA 3124K __LINKEDIT 54.0M __TEXT 42.8M __UNICODE 544K shared memory 12K =========== ======= TOTAL 195.5M Model: MacBookPro8,2, BootROM MBP81.0047.B24, 4 processors, Intel Core i7, 2 GHz, 8 GB, SMC 1.69f3 Graphics: AMD Radeon HD 6490M, AMD Radeon HD 6490M, PCIe, 256 MB Graphics: Intel HD Graphics 3000, Intel HD Graphics 3000, Built-In, 512 MB Memory Module: BANK 0/DIMM0, 4 GB, DDR3, 1333 MHz, 0x80AD, 0x484D54333531533642465238432D48392020 Memory Module: BANK 1/DIMM0, 4 GB, DDR3, 1333 MHz, 0x80AD, 0x484D54333531533642465238432D48392020 AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0xD6), Broadcom BCM43xx 1.0 (5.100.98.75.19) Bluetooth: Version 4.0.3f12, 2 service, 11 devices, 1 incoming serial ports Network Service: AirPort, AirPort, en1 Serial ATA Device: TOSHIBA MK5065GSXF, 500.11 GB Serial ATA Device: MATSHITADVD-R UJ-8A8 USB Device: FaceTime HD Camera (Built-in), apple_vendor_id, 0x8509, 0xfa200000 / 3 USB Device: hub_device, 0x0424 (SMSC), 0x2513, 0xfa100000 / 2 USB Device: Apple Internal Keyboard / Trackpad, apple_vendor_id, 0x0245, 0xfa120000 / 5 USB Device: BRCM2070 Hub, 0x0a5c (Broadcom Corp.), 0x4500, 0xfa110000 / 4 USB Device: Bluetooth USB Host Controller, apple_vendor_id, 0x821a, 0xfa113000 / 7 USB Device: hub_device, 0x0424 (SMSC), 0x2513, 0xfd100000 / 2 USB Device: IR Receiver, apple_vendor_id, 0x8242, 0xfd110000 / 3 Maybe this is a numpy problem? I did bash-3.2$ sudo easy_install -N -Z numpy Password: Searching for numpy Best match: numpy 1.5.1 Removing numpy 2.0.0.dev-4c0576f-20120208 from easy-install.pth file Adding numpy 1.5.1 to easy-install.pth file Using /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python Now I get: bash-3.2$ /usr/local/jmodelica/bin/jm_python.sh Python 2.7.2 (v2.7.2:8527427914a2, Jun 11 2011, 15:22:34) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import pyjmi.examples.cstr as cstr RuntimeError: module compiled against API version 6 but this version of numpy is 4 Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/jmodelica/Python/pyjmi/__init__.py", line 70, in <module> from jmi import JMUModel File "/usr/local/jmodelica/Python/pyjmi/jmi.py", line 42, in <module> from pyjmi.common.io import VariableNotFoundError, ResultDymolaTextual, ResultDymolaBinary File "/usr/local/jmodelica/Python/pyjmi/common/io.py", line 25, in <module> import scipy.io File "/Library/Python/2.7/site-packages/scipy-0.11.0.dev_1983db6_20120208-py2.7-macosx-10.7-x86_64.egg/scipy/io/__init__.py", line 83, in <module> from matlab import loadmat, savemat, byteordercodes File "/Library/Python/2.7/site-packages/scipy-0.11.0.dev_1983db6_20120208-py2.7-macosx-10.7-x86_64.egg/scipy/io/matlab/__init__.py", line 11, in <module> from mio import loadmat, savemat File "/Library/Python/2.7/site-packages/scipy-0.11.0.dev_1983db6_20120208-py2.7-macosx-10.7-x86_64.egg/scipy/io/matlab/mio.py", line 15, in <module> from mio4 import MatFile4Reader, MatFile4Writer File "/Library/Python/2.7/site-packages/scipy-0.11.0.dev_1983db6_20120208-py2.7-macosx-10.7-x86_64.egg/scipy/io/matlab/mio4.py", line 9, in <module> import scipy.sparse File "/Library/Python/2.7/site-packages/scipy-0.11.0.dev_1983db6_20120208-py2.7-macosx-10.7-x86_64.egg/scipy/sparse/__init__.py", line 177, in <module> from csr import * File "/Library/Python/2.7/site-packages/scipy-0.11.0.dev_1983db6_20120208-py2.7-macosx-10.7-x86_64.egg/scipy/sparse/csr.py", line 12, in <module> from sparsetools import csr_tocsc, csr_tobsr, csr_count_blocks, \ File "/Library/Python/2.7/site-packages/scipy-0.11.0.dev_1983db6_20120208-py2.7-macosx-10.7-x86_64.egg/scipy/sparse/sparsetools/__init__.py", line 4, in <module> from csr import * File "/Library/Python/2.7/site-packages/scipy-0.11.0.dev_1983db6_20120208-py2.7-macosx-10.7-x86_64.egg/scipy/sparse/sparsetools/csr.py", line 25, in <module> _csr = swig_import_helper() File "/Library/Python/2.7/site-packages/scipy-0.11.0.dev_1983db6_20120208-py2.7-macosx-10.7-x86_64.egg/scipy/sparse/sparsetools/csr.py", line 21, in swig_import_helper _mod = imp.load_module('_csr', fp, pathname, description) ImportError: numpy.core.multiarray failed to import After poking around a bit, I went back to the numpy installed with ScipySuperpack This looks like an import problem. To get more info, copy jm_python.sh and modify it so that runs That shows that See the CaSDI Python section above. make tests must be run as root?Making install in ThirdParty/Sundials make[2]: Nothing to be done for `install-exec-am'. make[2]: Nothing to be done for `install-data-am'. Making install in JMI/src test -z "/usr/local/jmodelica/lib" || ../../../install-sh -c -d "/usr/local/jmodelica/lib" /bin/sh ../../libtool --mode=install /usr/bin/install -c libjmi.la libjmi_algorithm.la libfmi.la libfmi_cs.la libmodelica_utilities.la libjmi_cppad.la libjmi_algorithm_cppad.la l\ ibjmi_solver.la libjmi_solver_cppad.la '/usr/local/jmodelica/lib' libtool: install: /usr/bin/install -c .libs/libjmi.lai /usr/local/jmodelica/lib/libjmi.la install: /usr/local/jmodelica/lib/libjmi.la: Permission denied make[2]: *** [install-libLTLIBRARIES] Error 71 make[1]: *** [install-am] Error 2 make: *** [install-recursive] Error 1 |