Code Monkey home page Code Monkey logo

sibernetic's Introduction

Sibernetic

Sibernetic is physical simulator of biomechanical matter (membranes, elastic matter, contractile matter) and environments (liquids, solids and elastic matter with variable physical properties) developed for simulations of C. elegans physical body dynamics within the OpenWorm project by Andrey Palyanov, Sergey Khayrulin and Mike Vella (development of a Python module for external muscle activating signals generation and input) as part of the OpenWorm team. At its core, Sibernetic is built as an extension to Predictive-Corrective Incompressible Smoothed Particle Hydrodynamics (PCISPH). It is primarily written in C++ and OpenCL, which makes possible to run simulations on CPUs or GPUs, and has 3D visualization support built on top of OpenGL.

There is a separate effort lead by Giovanni Idili and Sergey Khayrulin to port this code to Java, as part of the Geppetto simulation framework.

Compiling / running (Linux/mac)

Join the chat at https://gitter.im/openworm/sibernetic

Linux Install OpenCL on Ubuntu. We suggest you initially go with AMD OpenCL drivers as we have found these to be the most stable and complete. You can also try Intel's drivers. This step often causes problems, contact the openworm-discuss mailing list if you encounter issues. The AMD drivers include samples in /opt/AMDAPP/samples/opencl/bin which you can use to verify your OpenCL support is working.

You'll also need a variety of libraries. In ubuntu, install the dependencies with:

sudo apt-get install g++ python-dev freeglut3-dev nvidia-opencl-dev libglu1-mesa-dev libglew-dev python-numpy

Next, from the sibernetic/ directory run:

make clean
make all

Also you may need to set some enviromat variables like path to OpenCL lib or header for to do this you can fix your LD_LIBRARY_PATH as this:

export LD_LIBRARY_PATH=/path/to/opencl_lib/folder/:$LD_LIBRARY_PATH
e.g.
export LD_LIBRARY_PATH=/usr/local/cuda/lib64/:$LD_LIBRARY_PATH

You can find OpenCL lib in CUDA folder if you're using NVIDIA (/usr/local/cuda/lib64/) or run this command.

ldconfig -p | grep opencl

Also you may need to give compiler path to OpenCL header files usually you can find them in /usr/include/CL if they there than you don't need do anything. In othe case you can edit makefile directly and add directory to OpenCL headers by adding options -I/path/to/opencl_includes/ or you can copy folder with header into /usr/include/ but you should have root permission for doing that.

Mac: stay in the top-level folder. You need before run export several environment variables:

export PYTHONHEADERDIR=/usr/local/Cellar/python/<version_of_installed_pythonFramework>/Python.framework/Headers/
export PYTHONLIBDIR=/usr/local/lib/python2...
export PYTHONFRAMEWORKDIR=/usr/local/Frameworks/

Then

make clean -f makefile.OSX
make all -f makefile.OSX

You should see an output which looks something like this:

Building file: ../src/PyramidalSimulation.cpp
Invoking: GCC C++ Compiler

....
more stuff...
....

Building target: Sibernetic
Invoking: GCC C++ Linker
g++ -L/usr/lib -L/usr/lib/python2.7 -o "Sibernetic"  ./src/PyramidalSimulation.o ./src/main.o ./src/owHelper.o ./src/owOpenCLSolver.o ./src/owPhysicsFluidSimulator.o ./src/owWorldSimulation.o   -lOpenCL -lpython2.7 -lrt -lglut -lGL -lGLU
Finished building target:Sibernetic

Then navigate to the top-level folder in the hierarchy (e.g Sibernetic) and set your PYTHONPATH:

export PYTHONPATH=$PYTHONPATH:.

Finally, to run, run the command:

Linux:

./Release/Sibernetic

Mac:

./Release/Sibernetic

You may need to make ./Release/Sibernetic executable like so:

chmod +x ./Release/Sibernetic

If you do not run from the top-level folder you will see an error which looks something like this:

Compilation failed:
"/tmp/OCLQ1BaOw.cl", line 8: catastrophic error: cannot open source file
"src//owOpenCLConstant.h"
#include "src//owOpenCLConstant.h"

What's inside

Physical Algorithms:

  • PCI SPH - simulation incompressible liquid [1]
  • Simulation elastic matter
  • Simulation liquid-impermeable membranes
  • Boundary handling [2]
  • Surface tension [3]

There are two demo scenes generated for Sibernetic. The first one contains an elastic cube covered with liquid-impermeable membranes and liquid inside. The second one contains two elastic membranes attached to a boundary (one of them has liquid-impermeable membranes covering them and the other one doesn't).

To switch between demos you need to press the 1 or 2 keys respectively. To pause simulation you may press space bar.

References

  1. B. Solenthaler, Predictive-Corrective Incompressible SPH. ACM Transactions on Graphics (Proceedings of SIGGRAPH), 28(3), 2009.
  2. M. Ihmsen, N. Akinci, M. Gissler, M. Teschner, Boundary Handling and Adaptive Time-stepping for PCISPH Proc. VRIPHYS, Copenhagen, Denmark, pp. 79-88, Nov 11-12, 2010.
  3. M. Becker, M. Teschner. Weakly compressible SPH for free surface flows // Proceedings of the 2007 ACM SIGGRAPH/Eurographics symposium on Computer animation, pages 209-217.

Main command options

To start Sibernetic with argument print in command prompt next `./Release/Sibernetic -whatever Available options:

 -no_g                 Run without graphics
 -l_to                 Save simulation results to disk.
 -export_vtk           Save simulation results to VTK files.
     logstep=<value>   Log every <value> steps
 -l_from               Load simulation results from disk.
     lpath=<value>     Indicates path to the directory (not the file) where result of simulation will be stored.  
                       This option work only for -l_to and -l_from options
 -test                 Run some physical tests.
 -f <filename>         Load configuration from file <filename>.
 device=<device_type>  Trying to init OpenCL on device <type> it could be cpu or gpu
                       default-ALL (it will try to init most powerful available device).
 timestep=<value>      Start simulation with time step = <value> in seconds.
 timelimit=<value>     Run simulation until <value> will be reached in seconds.
 leapfrog              Use for integration LeapFrog method
 oclsourcepath=<value> You can indicate path to you'r OpenCL program just using this option
 -nrn <value>          Indicates that you plan run simulation with NEURON simulation = <value> value should be a file which
                       can be run by NEURON simulator and also you should have installed neuron and sibernetic_neuron bridge.
 -help                 Print this information on screen.

LeapFrog integration

Leapfrog is second order method insted of Semi-implicid Euler which we are using as default method for integration. For run simulation with Leapfro integration medhod print run command

./Release/Sibernetic leapfrog

Run simulation from configuration file

All configuration is stored in the configuration folder. There are two demo configurations demo1 and demo2 (demo1 is the default configuration). You can switch between two demo configurations directly inside the working Sibernetic - just push button '1' or '2' respectively. To run your configuration put your configuration file into the configuration folder and run Sibernetic using:

./Release/Sibernetic -f <configuration_file_name>.

To run the worm body simulation you need run Sibernetic with key:

./Release/Sibernetic -f worm

It loads the worm body configuration and initialises and runs the Python module which is responsible for muscle signal updating. For run simulation with crawling worm on carpet like surface or swimming in deep water you need run sibenretic with next command arguments:

./Release/Sibernetic -f worm_crawling oclsourcepath=src/sphFluid_crawling.cl
./Release/Sibernetic -f worm_deep_water oclsourcepath=src/sphFluid_crawling.cl

Control in graphical mode

If you run Sibernetic with graphics you can work with scene rotation and scaling using the mouse. There are also several control button options available:

'Space' - pause the simulation
's'     - save current configuration into file
          ./configuration/snapshot/configuration_name_current_time_and_date you can run this
than (./Release/Sibernetic -f ./configuration/snapshot/configuration_default).
'q' or 'Esc'     - quit the sibernetic
'1'     - run demo1 configuration
'2'     - run demo2 configuration
'r'     - reset current configuration and start from begining

Configuration file format

The configuration file consists of: First block is an optional if you didn't indicate this block then sibernetic will init consts by default value which you can find in owPhysicsConstant.h .

[physical parameters]
mass: 5.4e-14
timeStep: 5.0e-06
simulationScale: 2.46e-06
viscosity: 5.0e-05
surfTensCoeff: 1.21948e+27
elasticityCoefficient: 5.55556e+08

Next 6 lines is a spatial description of boundary box

[simulation box]
xmin
xmax
ymin
ymax
zmin
zmax
[position] - contains information about position of all particles e.g.
1 0 0 1
1 0 1 1
...
[velocity] - contains information about velocities of all particles e.g.
0 0 0 1
0 0 0 1
...
[connection] - contains information about elastic connection of all elastic particles e.g.
1	1.58649939377	1.1	0.0 
7	1.58649939377	1.1	0.0
...
[membranes] - contains information about membranes e.g.
0	1	7
7	8	1
...
[particleMemIndex] - contains information about in which membranes elastic particle is includes e.g.
0
144
288
-1
...

Position and velocity are represented as 4D vectors which contains information about x, y, z of particle in space and information about particle's type (it could be liquid - 1, elastic - 2 or boundary - 3). Each elastic particle has 32 places allocated in connections buffer. Each connection is represented like a 4D vector ID of particle to connected to stedy-state lenght of connection id of muscle if this connection is a muscle fiber and unused data - need for vectorization. Connections buffer stored in memory like 1D vector: length of each is equal to NUM_OF_ELASTIC_PARTICLES * 32 * 4. So for each particular elastic particle you can find information for elastic its connections simply get sub-buffer of connection from INTRESTING_PARTICLE_ID * 32 * 4 to INTRESTING_PARTICLE_ID * 32 * 4 + 32 * 4. Each membrane is defined by 3 elastic particles and contains 3 IDs of this particles. particleMemIndex - contains IDs of membrane in which each elastic particle is included we suppose that max numbers of membrane for one particle is 7 so particleMemIndex contains 7 * NUM_OF_ELASTIC_PARTICLES and you can get interesting information from this buffer just get sub-buffer from indexes INTRESTING_PARTICLE_ID * 7 to INTRESTING_PARTICLE_ID * 7 + 7.

Saving to disk

You can run Sibernetic on GPU. For this you should start Sibernetic with key:

./Release/Sibernetic device=gpu

You may wish to save simulations to disk rather than visualise them (WARNING: This is buggy)

To record configurations to file you need to run simulation with key -l_to:

./Release/Sibernetic -l_to

This create 3 new files in the folder ./buffers:

  • connection_buffers.txt - stores information about connection among the elastic particles
  • membranes_buffer.txt - stores information about membranes
  • position_buffer.txt - stores information about current position of all of the non boundary particles it save information to this file every 10 steps of simulation. You should remember that the more info you
  • pressure_buffer.txt - stores information oabout pressure for all shell particles. want to store than bigger output file is.

For view result you should run simulation with:

./Release/Sibernetic -l_from

It get positions from position_buffer.txt file and displays the evolution of system in time

Output to the VTK files

Results of the simulation can be saved to the VTK files, allowing visualisation e.g. in Paraview. To save the VTK files, run the program with the parameter -export_vtk,

./Release/Sibernetic -export_vtk

For each saved timestep number N a file state_N.vtp is created in the directory ./buffers. Storing interval is given by the parameter logstep.

Run with Sibernetic-NEURON bridge

Now it's possible to run the physical and neuronal simulations together. For this you need sibernetic_NEURON also. Don't forget to add the path of sibernetic_NEURON into your PYTHONPATH. You just need to run Sibernetic with command argument '-nrn ' where value is the path to NEURON simulation file (*.hoc e.g.). After that Sibernetic will initialise sibernetic_NEURON with the appropriate simulation file and same timeStep also. You should indicate from what segments of NEURON's model you'd like to read data (currently Voltage). After each step of the Sibernetic simulation it will run one step of the NEURON simulation and read data from it and update the signal array in Sibernetic. For now, it actually works in test mode list of segments is hardcoded so if you'd like to work with another list of segments you need rewrite this part of code and recompile Sibernetic.

If you have Sibernetic and NEURON (with Python support) correctly installed, the following should be sufficient to get this running:

git clone https://github.com/openworm/sibernetic_NEURON.git
export PYTHONPATH=./sibernetic_NEURON:./src
./Release/Sibernetic -nrn ./sibernetic_NEURON/models/celegans/_ria.hoc  -f worm

Run with c302

You can run Sibernetic with c302 providing the input which will drive the contraction of the muscle cells.

If you have Sibernetic, NEURON (with Python support) and pyNeuroML correctly installed, the following should be sufficient to get this running:

git clone https://github.com/openworm/CElegansNeuroML.git
export C302_HOME=./CElegansNeuroML/CElegans/pythonScripts/c302
export PYTHONPATH=$PYTHONPATH:$C302_HOME:./src
python sibernetic_c302.py

This will generate the NEURON code for the c302 simulation (using pyNeuroML), run Sibernetic with the neuronal simulation of c302 running in Python Neuron in the background, and save the results to files in the simulations directory (no Sibernetic gui will be shown). The simulation can be rerun with:

./Release/Sibernetic -l_from lpath=simulations/SimulationName_SimulationDate

For more information on options type:

python sibernetic_c302.py -?

Making videos (*nix)

If you run a simulation you may be interested in recording the graphical output. You can either save the results to VTK files and use Paraview to create the video, or create the video using the default OpenGL visualisation. Making such videos is a bit tricky because they need to be speeded up, so far I have found the following two commands do a decent job (change folder names accordingly) after you have used a screen record program:

If your video is in OGV format (if you used recordmydesktop for instance), use the following script to convert to avi:

#!/bin/bash
 # ogv to avi
 # Call this with multiple arguments
 # for example : ls *.{ogv,OGV} | xargs ogv2avi
 N=$#;
 echo "Converting $N files !"
 for ((i=0; i<=(N-1); i++))
 do
 echo "converting" $1
 filename=${1%.*}
 mencoder "$1" -ovc xvid -oac mp3lame -xvidencopts pass=1 -o $filename.avi
 shift 1
 done
#make images from video
ffmpeg -i crawley_6.avi -r 0.05 -f image2 ~/Documents/tmp/output-%06d.jpg
#re-encode into video
ffmpeg -r 100 -i output-%06d.jpg -r 100 -vb 60M speeded_worm.mp4

Troubleshooting

If you have any question or have a problem with running Sibernetic please contact with us. Email me on [email protected] or [email protected]. Or you can create an issue on GitHub.

sibernetic's People

Contributors

a-palyanov avatar albi3ro avatar bryanchriswhite avatar charles-cooper avatar cheelee avatar credentiality avatar dhd5076 avatar gitter-badger avatar ileanaaldama avatar juniorrojas avatar kant avatar lungd avatar mwatts15 avatar neurophile avatar nhdaly avatar nuragicboy avatar pgleeson avatar sipv avatar skhayrulin avatar slarson avatar tarelli avatar thejohnhoffer avatar vellamike avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sibernetic's Issues

Choose the best method of integration of equations of movement

Choose the best method of integration of equations of movement taking into account recently discovered problem of finite precision of float datatype (more information here: openworm/OpenWorm#158 )
There are many methods available. I've implemented and compared a set of them: Explicit Euler, Implicit Euler, Improved Euler, Velocity Verlet, Runge-Kutta 2nd order and LeapFrog along with analytical solution for a very simple system - single mass point attached to a vertical spring (its another end is attached to the ceiling). LeapFrog should be the best among them, since it has 2nd order of precision and it is symplectic. If I use double values for a, v, and x, it shows excellent results, but for float the problem of finite precision leads to errors which make it completely useless (see image).
17

Crashes in Mac OSX WITHOUT using GPU... (basic build)

I'm not sure if this is related to #21 or #22, but after I built Sibernetic and ran it, it crashes after about 3 seconds.

Here's what I printed from the command-line:

./build/Smoothed-Particle-Hydrodynamics
Sibernetic: no arguments, run method executing

Configuration we are going to load contains 17743 particles. Now plan to allocate memory for them.
 CL_PLATFORM_VERSION [0]:   OpenCL 1.2 (Dec  8 2013 21:07:05)
CL_CONTEXT_PLATFORM [0]: CL_DEVICE_NAME [0]:    Intel(R) Core(TM)2 Duo CPU     P7550  @ 2.26GHz

CL_CONTEXT_PLATFORM [0]: CL_DEVICE_MAX_WORK_GROUP_SIZE [0]:     1024
CL_CONTEXT_PLATFORM [0]: CL_DEVICE_MAX_COMPUTE_UNITS [0]:   2
CL_CONTEXT_PLATFORM [0]: CL_DEVICE_GLOBAL_MEM_SIZE [0]:     0
CL_CONTEXT_PLATFORM [0]: CL_DEVICE_GLOBAL_MEM_CACHE_SIZE [0]:   64
CL_CONTEXT_PLATFORM 0: CL_DEVICE_LOCAL_MEM_SIZE [0]:    32768
graphics:          23.663 ms
====================================
graphics:          17.290 ms
====================================

[[ Step 0 ]]
_runHashParticles:      0.338 ms
_runSort:           1.605 ms
_runSortPostPass:       0.737 ms
_runIndexx:             1.791 ms
_runIndexPostPass:      0.459 ms
_runFindNeighbors:     12.557 ms
_runPCISPH:            18.547 ms    3 iteration(s)
Segmentation fault: 11

And here's some output from running it in GDB:

(gdb) bt
#0  0x00000001007ee987 in computeInteractionWithMembranes (position=0x101fd0000, velocity=0x0, sortedPosition=0x8, particleIndex=0x101d97000, particleIndexBack=<value temporarily unavailable, due to optimizations>, neighborMap=0x1037ee000, membraneData=0x0, numOfElasticP=218, r0=1.66999996) at clprogram.Xo8uNX.c:1429
#1  0x00000001007efdaa in computeInteractionWithMembranes_wrapper () at clprogram.Xo8uNX.c:1741
#2  0x00007fff8fadfa65 in glrCompCloseDevice ()
#3  0x00007fff8fb7f8f8 in _dispatch_client_callout2 ()
#4  0x00007fff8fb7f849 in _dispatch_apply_invoke ()
#5  0x00007fff8fb7f77a in dispatch_apply_f ()
#6  0x00007fff8fae0098 in glrCompExecuteKernel ()
#7  0x00007fff8fb782ad in _dispatch_client_callout ()
#8  0x00007fff8fb7a68f in _dispatch_queue_drain ()
#9  0x00007fff8fb7b9dd in _dispatch_queue_invoke ()
#10 0x00007fff8fb79fa3 in _dispatch_root_queue_drain ()
#11 0x00007fff8fb7b193 in _dispatch_worker_thread2 ()
#12 0x00007fff8aef4ef8 in _pthread_wqthread ()
#13 0x00007fff8aef7fb9 in start_wqthread ()
(gdb) list 1429
1424                    // about participation in membrane composition
1425                    // Let's get it - check corresponding position of particleMembranesList (if it is non-empty)
1426                    for(int mli=0;mli<MAX_MEMBRANES_INCLUDING_SAME_PARTICLE;mli++)
1427                    {//search through the list of elementary triangular membranes at least one corner of which is current neighbor particle
1428                    //22222222222222222222222222222222222222222222222222222222222222222222222222222222222
1429                        if((mdi=particleMembranesList[jd_source_particle*MAX_MEMBRANES_INCLUDING_SAME_PARTICLE+mli])>-1)
1430                        {
1431                            i = membraneData[mdi*3+0];
1432                            j = membraneData[mdi*3+1];
1433                            k = membraneData[mdi*3+2];
(gdb)

And finally, if it helps, here's my stacktrace:

Process:         Smoothed-Particle-Hydrodynamics [10557]
Path:            /Users/USER/Documents/*/Smoothed-Particle-Hydrodynamics
Identifier:      Smoothed-Particle-Hydrodynamics
Version:         0
Code Type:       X86-64 (Native)
Parent Process:  bash [6067]
Responsible:     iTerm [4363]
User ID:         504

Date/Time:       2014-04-29 13:38:15.522 -0400
OS Version:      Mac OS X 10.9.2 (13C1021)
Report Version:  11
Anonymous UUID:  4229EAD9-AB58-8F12-000F-D7BEC459A5C1

Sleep/Wake UUID: 6E2BB208-7FF0-4127-B694-647E1FE522D3

Crashed Thread:  5  Dispatch queue: com.apple.root.default-overcommit-priority

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x00000000000001f8

VM Regions Near 0x1f8:
--> 
    __TEXT                 0000000108a0f000-0000000108a2d000 [  120K] r-x/rwx SM=COW  /Users/USER/Documents/*

Thread 0:: Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib          0x00007fff8fe78e6a __workq_kernreturn + 10
1   libsystem_pthread.dylib         0x00007fff8aef4fa7 pthread_workqueue_addthreads_np + 47
2   libdispatch.dylib               0x00007fff8fb79ba1 _dispatch_queue_wakeup_global_slow + 64
3   libdispatch.dylib               0x00007fff8fb79217 _dispatch_wakeup + 117
4   libdispatch.dylib               0x00007fff8fb797a8 _dispatch_queue_push_list_slow2 + 30
5   com.apple.opencl                0x00007fff8d89d003 0x7fff8d87a000 + 143363
6   com.apple.opencl                0x00007fff8d898bb9 0x7fff8d87a000 + 125881
7   com.apple.opencl                0x00007fff8d896b55 clEnqueueNDRangeKernel + 166
8   Smoothed-Particle-Hydrodynamics 0x0000000108a1ff5c cl::CommandQueue::enqueueNDRangeKernel(cl::Kernel const&, cl::NDRange const&, cl::NDRange const&, cl::NDRange const&, std::__1::vector<cl::Event, std::__1::allocator<cl::Event> > const*, cl::Event*) const + 220
9   Smoothed-Particle-Hydrodynamics 0x0000000108a1e8d0 owOpenCLSolver::_run_computeInteractionWithMembranes() + 496
10  Smoothed-Particle-Hydrodynamics 0x0000000108a22425 owPhysicsFluidSimulator::simulationStep(bool) + 309
11  Smoothed-Particle-Hydrodynamics 0x0000000108a2504a Timer(int) + 90
12  com.apple.glut                  0x0000000108c47350 __glutTimerCallBack + 45
13  com.apple.CoreFoundation        0x00007fff8bfd0494 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 20
14  com.apple.CoreFoundation        0x00007fff8bfcffcf __CFRunLoopDoTimer + 1151
15  com.apple.CoreFoundation        0x00007fff8c0415aa __CFRunLoopDoTimers + 298
16  com.apple.CoreFoundation        0x00007fff8bf8b755 __CFRunLoopRun + 1525
17  com.apple.CoreFoundation        0x00007fff8bf8af25 CFRunLoopRunSpecific + 309
18  com.apple.HIToolbox             0x00007fff88c01a0d RunCurrentEventLoopInMode + 226
19  com.apple.HIToolbox             0x00007fff88c01685 ReceiveNextEventCommon + 173
20  com.apple.HIToolbox             0x00007fff88c015bc _BlockUntilNextEventMatchingListInModeWithFilter + 65
21  com.apple.AppKit                0x00007fff897343de _DPSNextEvent + 1434
22  com.apple.AppKit                0x00007fff89733a2b -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 122
23  com.apple.glut                  0x0000000108c3a552 -[GLUTApplication _runMainLoopUntilDate:autoreleasePool:] + 65
24  com.apple.glut                  0x0000000108c3a70a -[GLUTApplication run] + 264
25  com.apple.glut                  0x0000000108c46ead glutMainLoop + 260
26  Smoothed-Particle-Hydrodynamics 0x0000000108a2548e run(int, char**, bool, bool) + 478
27  Smoothed-Particle-Hydrodynamics 0x0000000108a111e3 main + 259
28  libdyld.dylib                   0x00007fff8f1915fd start + 1

Thread 1:: Dispatch queue: com.apple.libdispatch-manager
0   libsystem_kernel.dylib          0x00007fff8fe79662 kevent64 + 10
1   libdispatch.dylib               0x00007fff8fb7a43d _dispatch_mgr_invoke + 239
2   libdispatch.dylib               0x00007fff8fb7a152 _dispatch_mgr_thread + 52

Thread 2:
0   libsystem_kernel.dylib          0x00007fff8fe78e6a __workq_kernreturn + 10
1   libsystem_pthread.dylib         0x00007fff8aef4f08 _pthread_wqthread + 330
2   libsystem_pthread.dylib         0x00007fff8aef7fb9 start_wqthread + 13

Thread 3:
0   libsystem_kernel.dylib          0x00007fff8fe78e6a __workq_kernreturn + 10
1   libsystem_pthread.dylib         0x00007fff8aef4f08 _pthread_wqthread + 330
2   libsystem_pthread.dylib         0x00007fff8aef7fb9 start_wqthread + 13

Thread 4:: Dispatch queue: com.apple.opengl.cvmDoWork
0   libsystem_kernel.dylib          0x00007fff8fe74a56 semaphore_wait_trap + 10
1   libdispatch.dylib               0x00007fff8fb7ca15 _dispatch_semaphore_wait_slow + 206
2   libxpc.dylib                    0x00007fff90bb67ef xpc_connection_send_message_with_reply_sync + 195
3   libCoreVMClient.dylib           0x00007fff8c67206b cvms_element_build_and_get_internal + 232
4   libCoreVMClient.dylib           0x00007fff8c671f7d cvms_element_build_from_source + 30
5   libCVMSPluginSupport.dylib      0x00007fff942c5340 cvm_deferred_build_modular(void*) + 421
6   libdispatch.dylib               0x00007fff8fb782ad _dispatch_client_callout + 8
7   libdispatch.dylib               0x00007fff8fb7a68f _dispatch_queue_drain + 451
8   libdispatch.dylib               0x00007fff8fb7b9dd _dispatch_queue_invoke + 110
9   libdispatch.dylib               0x00007fff8fb79fa3 _dispatch_root_queue_drain + 75
10  libdispatch.dylib               0x00007fff8fb7b193 _dispatch_worker_thread2 + 40
11  libsystem_pthread.dylib         0x00007fff8aef4ef8 _pthread_wqthread + 314
12  libsystem_pthread.dylib         0x00007fff8aef7fb9 start_wqthread + 13

Thread 5 Crashed:: Dispatch queue: com.apple.root.default-overcommit-priority
0   cl_kernels                      0x0000000109485987 computeInteractionWithMembranes + 375 (clprogram.poIdcQ.c:1429)
1   cl_kernels                      0x0000000109486daa computeInteractionWithMembranes_wrapper + 186
2   libcldcpuengine.dylib           0x00007fff8fadfa65 0x7fff8fadb000 + 19045
3   libdispatch.dylib               0x00007fff8fb7f8f8 _dispatch_client_callout2 + 8
4   libdispatch.dylib               0x00007fff8fb7f849 _dispatch_apply_invoke + 87
5   libdispatch.dylib               0x00007fff8fb7f77a dispatch_apply_f + 603
6   libcldcpuengine.dylib           0x00007fff8fae0098 0x7fff8fadb000 + 20632
7   libdispatch.dylib               0x00007fff8fb782ad _dispatch_client_callout + 8
8   libdispatch.dylib               0x00007fff8fb7a68f _dispatch_queue_drain + 451
9   libdispatch.dylib               0x00007fff8fb7b9dd _dispatch_queue_invoke + 110
10  libdispatch.dylib               0x00007fff8fb79fa3 _dispatch_root_queue_drain + 75
11  libdispatch.dylib               0x00007fff8fb7b193 _dispatch_worker_thread2 + 40
12  libsystem_pthread.dylib         0x00007fff8aef4ef8 _pthread_wqthread + 314
13  libsystem_pthread.dylib         0x00007fff8aef7fb9 start_wqthread + 13

Thread 5 crashed with X86 Thread State (64-bit):
  rax: 0x00000000000001f8  rbx: 0x00000001095a6000  rcx: 0x0000000000000000  rdx: 0x0000000000000008
  rdi: 0x000000010ddd9a50  rsi: 0x0000000000000000  rbp: 0x000000010ddd9ab0  rsp: 0x000000010ddd9760
   r8: 0x0000000109594000   r9: 0x000000010a756000  r10: 0x00007fff955cb8bf  r11: 0x00007fff88e96f10
  r12: 0x000000010ddd9880  r13: 0x0000000000000000  r14: 0x0000000000000000  r15: 0x00000001095a6dc0
  rip: 0x0000000109485987  rfl: 0x0000000000010246  cr2: 0x00000000000001f8

Logical CPU:     0
Error Code:      0x00000004
Trap Number:     14


Binary Images:
       0x108a0f000 -        0x108a2cfff +Smoothed-Particle-Hydrodynamics (0) <AE46D208-94CC-3B99-9954-A221FFFAB610> /Users/USER/Documents/*/Smoothed-Particle-Hydrodynamics
       0x108a44000 -        0x108b5aff7 +org.python.python (2.7.6, [c] 2004-2013 Python Software Foundation. - 2.7.6) <5DDD8EA5-9E4F-3614-8DD0-7FDADD75DFF3> /opt/local/Library/Frameworks/Python.framework/Versions/2.7/Python
       0x108c2b000 -        0x108c6bff7  com.apple.glut (3.6.0 - GLUT-3.6.0) <87683C90-4303-3561-9CC8-5772FDEC16F0> /System/Library/Frameworks/GLUT.framework/Versions/A/GLUT
       0x108fbd000 -        0x108fc8fff  libGPUSupport.dylib (9.6) <039FC0EF-1B2C-3465-907B-A1856DCF5ADF> /System/Library/PrivateFrameworks/GPUSupport.framework/Versions/A/Libraries/libGPUSupport.dylib
       0x109483000 -        0x109488ff7 +cl_kernels (???) <B3D2B367-CC74-4167-AC8B-2A0ACB6A69ED> cl_kernels
       0x1097de000 -        0x1097e6ff3  libCGCMS.A.dylib (599.21.1) <84C6C6F3-AD75-3120-A86F-8AE1005A0ECE> /System/Library/Frameworks/CoreGraphics.framework/Versions/A/Resources/libCGCMS.A.dylib
       0x1098a0000 -        0x1098c8ffb  libRIP.A.dylib (599.21.1) <994C1D46-A532-3361-8C20-11778DC12040> /System/Library/Frameworks/CoreGraphics.framework/Versions/A/Resources/libRIP.A.dylib
       0x109f68000 -        0x10a6b2ff7  libclh.dylib (4.0.3 - 4.0.3) <5FAE3A43-C0DC-340F-B94A-2E3E2A767619> /System/Library/Extensions/GeForceTeslaGLDriver.bundle/Contents/MacOS/libclh.dylib
       0x10d266000 -        0x10d269ffa  libCGXType.A.dylib (599.21.1) <0F364FEE-105D-329D-B823-082AA45E6AFD> /System/Library/Frameworks/CoreGraphics.framework/Versions/A/Resources/libCGXType.A.dylib
    0x123440000000 -     0x12344086dfff  com.apple.GeForceTeslaGLDriver (8.24.11 - 8.2.4) <AA787258-3655-3558-AC34-C5834A007A39> /System/Library/Extensions/GeForceTeslaGLDriver.bundle/Contents/MacOS/GeForceTeslaGLDriver
    0x7fff675d3000 -     0x7fff67606817  dyld (239.4) <2B17750C-ED1B-3060-B64E-21897D08B28B> /usr/lib/dyld
    0x7fff87787000 -     0x7fff87792fff  libGL.dylib (9.6) <A2EF4E15-EA08-396D-A1D4-29E1CED6876A> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
    0x7fff87793000 -     0x7fff87793fff  com.apple.Accelerate (1.9 - Accelerate 1.9) <509BB27A-AE62-366D-86D8-0B06D217CF56> /System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate
    0x7fff87794000 -     0x7fff87794fff  com.apple.CoreServices (59 - 59) <7A697B5E-F179-30DF-93F2-8B503CEEEFD5> /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
    0x7fff87795000 -     0x7fff877a4ff8  com.apple.LangAnalysis (1.7.0 - 1.7.0) <8FE131B6-1180-3892-98F5-C9C9B79072D4> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/LangAnalysis.framework/Versions/A/LangAnalysis
    0x7fff877dc000 -     0x7fff877dcfff  com.apple.Accelerate.vecLib (3.9 - vecLib 3.9) <F8D0CC77-98AC-3B58-9FE6-0C25421827B6> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/vecLib
    0x7fff877dd000 -     0x7fff8784afff  com.apple.SearchKit (1.4.0 - 1.4.0) <B9B8D510-A27E-36B0-93E9-17146D9E9045> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchKit.framework/Versions/A/SearchKit
    0x7fff8784b000 -     0x7fff8784dff7  com.apple.securityhi (9.0 - 55005) <405E2BC6-2B6F-3B6B-B48E-2FD39214F052> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SecurityHI.framework/Versions/A/SecurityHI
    0x7fff87893000 -     0x7fff878a6ff7  com.apple.AppContainer (3.0 - 1) <BD342039-430E-39FE-BC2D-8F97B557548E> /System/Library/PrivateFrameworks/AppContainer.framework/Versions/A/AppContainer
    0x7fff878ab000 -     0x7fff878b7ff3  com.apple.AppleFSCompression (56 - 1.0) <5652B0D0-EB08-381F-B23A-6DCF96991FB5> /System/Library/PrivateFrameworks/AppleFSCompression.framework/Versions/A/AppleFSCompression
    0x7fff878b8000 -     0x7fff8792bfff  com.apple.securityfoundation (6.0 - 55122.1) <1939DE0B-BC38-3E50-8A8C-3471C8AC4CD6> /System/Library/Frameworks/SecurityFoundation.framework/Versions/A/SecurityFoundation
    0x7fff8792c000 -     0x7fff8793eff7  com.apple.MultitouchSupport.framework (245.13 - 245.13) <D5E7416D-45AB-3690-86C6-CC4B5FCEA2D2> /System/Library/PrivateFrameworks/MultitouchSupport.framework/Versions/A/MultitouchSupport
    0x7fff8793f000 -     0x7fff87946ff3  libcopyfile.dylib (103) <5A881779-D0D6-3029-B371-E3021C2DDA5E> /usr/lib/system/libcopyfile.dylib
    0x7fff87947000 -     0x7fff87a26fff  libcrypto.0.9.8.dylib (50) <B95B9DBA-39D3-3EEF-AF43-44608B28894E> /usr/lib/libcrypto.0.9.8.dylib
    0x7fff87b27000 -     0x7fff87b4fffb  libxslt.1.dylib (13) <C9794936-633C-3F0C-9E71-30190B9B41C1> /usr/lib/libxslt.1.dylib
    0x7fff87b7a000 -     0x7fff87bdfffb  com.apple.Heimdal (4.0 - 2.0) <1560A2CC-2C0C-3F7B-868C-BD5ADB241F5A> /System/Library/PrivateFrameworks/Heimdal.framework/Versions/A/Heimdal
    0x7fff87e8c000 -     0x7fff87ea2fff  com.apple.CoreMediaAuthoring (2.2 - 947) <B01FBACC-DDD5-30A8-BCCF-57CE24ABA329> /System/Library/PrivateFrameworks/CoreMediaAuthoring.framework/Versions/A/CoreMediaAuthoring
    0x7fff87ea3000 -     0x7fff87ea6ffc  com.apple.IOSurface (91 - 91) <07CA8A59-1E32-3FB6-B506-18DAF58A8CE0> /System/Library/Frameworks/IOSurface.framework/Versions/A/IOSurface
    0x7fff87ea7000 -     0x7fff87eabff7  libsystem_stats.dylib (93.90.3) <1A55AF8A-B6C4-3163-B557-3AD25DA643A8> /usr/lib/system/libsystem_stats.dylib
    0x7fff87eac000 -     0x7fff87eadff7  libDiagnosticMessagesClient.dylib (100) <4CDB0F7B-C0AF-3424-BC39-495696F0DB1E> /usr/lib/libDiagnosticMessagesClient.dylib
    0x7fff87ed3000 -     0x7fff87ee4ff7  libsystem_asl.dylib (217.1.4) <655FB343-52CF-3E2F-B14D-BEBF5AAEF94D> /usr/lib/system/libsystem_asl.dylib
    0x7fff87ee5000 -     0x7fff87ee6ff7  libsystem_sandbox.dylib (278.11) <5E5A6E09-33A9-391A-AB34-E57D93BB1551> /usr/lib/system/libsystem_sandbox.dylib
    0x7fff88017000 -     0x7fff88027ffb  libsasl2.2.dylib (170) <C8E25710-68B6-368A-BF3E-48EC7273177B> /usr/lib/libsasl2.2.dylib
    0x7fff88033000 -     0x7fff88034fff  com.apple.TrustEvaluationAgent (2.0 - 25) <334A82F4-4AE4-3719-A511-86D0B0723E2B> /System/Library/PrivateFrameworks/TrustEvaluationAgent.framework/Versions/A/TrustEvaluationAgent
    0x7fff88035000 -     0x7fff88039fff  libpam.2.dylib (20) <B93CE8F5-DAA8-30A1-B1F6-F890509513CB> /usr/lib/libpam.2.dylib
    0x7fff8803a000 -     0x7fff88069ff9  com.apple.GSS (4.0 - 2.0) <1B71A3E1-E31D-32CC-A733-ED155CC4A6A2> /System/Library/Frameworks/GSS.framework/Versions/A/GSS
    0x7fff8806a000 -     0x7fff880b7ff2  com.apple.print.framework.PrintCore (9.0 - 428) <8D8253E3-302F-3DB2-9C5C-572CB974E8B3> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A/PrintCore
    0x7fff880b8000 -     0x7fff881a9ff9  libiconv.2.dylib (41) <BB44B115-AC32-3877-A0ED-AEC6232A4563> /usr/lib/libiconv.2.dylib
    0x7fff881aa000 -     0x7fff881aaff7  libkeymgr.dylib (28) <3AA8D85D-CF00-3BD3-A5A0-E28E1A32A6D8> /usr/lib/system/libkeymgr.dylib
    0x7fff881ab000 -     0x7fff885deffb  com.apple.vision.FaceCore (3.0.0 - 3.0.0) <F42BFC9C-0B16-35EF-9A07-91B7FDAB7FC5> /System/Library/PrivateFrameworks/FaceCore.framework/Versions/A/FaceCore
    0x7fff885df000 -     0x7fff88624fff  libcurl.4.dylib (78.92.2) <548E2D61-103F-3737-9C7C-0C26246CD4C8> /usr/lib/libcurl.4.dylib
    0x7fff88625000 -     0x7fff8862dff7  com.apple.speech.recognition.framework (4.2.4 - 4.2.4) <98BBB3E4-6239-3EF1-90B2-84EA0D3B8D61> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SpeechRecognition.framework/Versions/A/SpeechRecognition
    0x7fff886ad000 -     0x7fff886b2ff7  com.apple.MediaAccessibility (1.0 - 43) <D309D83D-5FAE-37A4-85ED-FFBDA8B66B82> /System/Library/Frameworks/MediaAccessibility.framework/Versions/A/MediaAccessibility
    0x7fff88b6a000 -     0x7fff88b93fff  com.apple.DictionaryServices (1.2 - 208) <A539A058-BA57-35EE-AA08-D0B0E835127D> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/DictionaryServices.framework/Versions/A/DictionaryServices
    0x7fff88bd3000 -     0x7fff88e7dff5  com.apple.HIToolbox (2.1 - 697.4) <DF5635DD-C255-3A8E-8B49-F6D2FB61FF95> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox
    0x7fff88e7e000 -     0x7fff88e8bff7  libxar.1.dylib (202) <5572AA71-E98D-3FE1-9402-BB4A84E0E71E> /usr/lib/libxar.1.dylib
    0x7fff88e8c000 -     0x7fff88e91ff7  libunwind.dylib (35.3) <78DCC358-2FC1-302E-B395-0155B47CB547> /usr/lib/system/libunwind.dylib
    0x7fff88e92000 -     0x7fff88e98ff7  libsystem_platform.dylib (24.90.1) <3C3D3DA8-32B9-3243-98EC-D89B9A1670B3> /usr/lib/system/libsystem_platform.dylib
    0x7fff88e99000 -     0x7fff89007ff7  libBLAS.dylib (1094.5) <DE93A590-5FA5-32A2-A16C-5D7D7361769F> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
    0x7fff89008000 -     0x7fff89016fff  com.apple.opengl (9.6.0 - 9.6.0) <709F4A02-73A0-303C-86B5-85C596C8B707> /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL
    0x7fff890ac000 -     0x7fff890fefff  libc++.1.dylib (120) <4F68DFC5-2077-39A8-A449-CAC5FDEE7BDE> /usr/lib/libc++.1.dylib
    0x7fff890ff000 -     0x7fff8910cff4  com.apple.Librarian (1.2 - 1) <F1A2744D-8536-32C7-8218-9972C6300DAE> /System/Library/PrivateFrameworks/Librarian.framework/Versions/A/Librarian
    0x7fff8920f000 -     0x7fff89215ff7  com.apple.XPCService (2.0 - 1) <2CE632D7-FE57-36CF-91D4-C57D0F2E0BFE> /System/Library/PrivateFrameworks/XPCService.framework/Versions/A/XPCService
    0x7fff8925d000 -     0x7fff89286ff7  libc++abi.dylib (49.1) <21A807D3-6732-3455-B77F-743E9F916DF0> /usr/lib/libc++abi.dylib
    0x7fff89287000 -     0x7fff892c8fff  com.apple.PerformanceAnalysis (1.47 - 47) <784ED7B8-FAE4-36CE-8C76-B7D300316C9F> /System/Library/PrivateFrameworks/PerformanceAnalysis.framework/Versions/A/PerformanceAnalysis
    0x7fff892c9000 -     0x7fff892d3ff7  libcsfde.dylib (380) <3A54B430-EC05-3DE9-86C3-00C1BEAC7F9B> /usr/lib/libcsfde.dylib
    0x7fff892d4000 -     0x7fff892d6ff3  libsystem_configuration.dylib (596.13) <B51C8C22-C455-36AC-952D-A319B6545884> /usr/lib/system/libsystem_configuration.dylib
    0x7fff8934b000 -     0x7fff8940dff5  com.apple.CoreText (352.0 - 367.19) <24848DF1-67EC-3D41-9548-1F14C6DFBBF9> /System/Library/Frameworks/CoreText.framework/Versions/A/CoreText
    0x7fff8941a000 -     0x7fff89433ff7  com.apple.Kerberos (3.0 - 1) <F108AFEB-198A-3BAF-BCA5-9DFCE55EFF92> /System/Library/Frameworks/Kerberos.framework/Versions/A/Kerberos
    0x7fff89503000 -     0x7fff89656ff7  com.apple.audio.toolbox.AudioToolbox (1.10 - 1.10) <3511ABFE-22E1-3B91-B86A-5E3A78CE33FD> /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox
    0x7fff896ea000 -     0x7fff896eeff7  libGIF.dylib (1042.2) <0A9267FF-D93A-36DF-87B9-BA34C1166C0C> /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libGIF.dylib
    0x7fff89702000 -     0x7fff8970fff0  libbz2.1.0.dylib (29) <0B98AC35-B138-349C-8063-2B987A75D24C> /usr/lib/libbz2.1.0.dylib
    0x7fff89710000 -     0x7fff8a286fff  com.apple.AppKit (6.9 - 1265.19) <12647F2F-3FE2-3D77-B3F0-33EFAFF2CEA7> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
    0x7fff8a78e000 -     0x7fff8a8cffff  com.apple.QTKit (7.7.3 - 2826.17) <ADA1EF77-57D2-3E7E-8526-8F0B732C1218> /System/Library/Frameworks/QTKit.framework/Versions/A/QTKit
    0x7fff8a8dd000 -     0x7fff8a8dffff  com.apple.Mangrove (1.0 - 1) <72F5CBC7-4E78-374E-98EA-C3700136904E> /System/Library/PrivateFrameworks/Mangrove.framework/Versions/A/Mangrove
    0x7fff8a8e0000 -     0x7fff8a931ff3  com.apple.audio.CoreAudio (4.2.0 - 4.2.0) <BF4C2FE3-8BC8-30D1-8347-2A7221268794> /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio
    0x7fff8a9d0000 -     0x7fff8a9d9ffd  com.apple.CommonAuth (4.0 - 2.0) <32BA436F-6319-3A0B-B5D2-2EB75FF36B5B> /System/Library/PrivateFrameworks/CommonAuth.framework/Versions/A/CommonAuth
    0x7fff8a9f1000 -     0x7fff8a9fdff7  com.apple.OpenDirectory (10.9 - 173.90.1) <E5EF8E1A-7214-36D0-AF0D-8D030DF6C2FC> /System/Library/Frameworks/OpenDirectory.framework/Versions/A/OpenDirectory
    0x7fff8a9fe000 -     0x7fff8aa32fff  libssl.0.9.8.dylib (50) <B15F967C-B002-36C2-9621-3456D8509F50> /usr/lib/libssl.0.9.8.dylib
    0x7fff8aa7c000 -     0x7fff8aa83ff8  liblaunch.dylib (842.90.1) <38D1AB2C-A476-385F-8EA8-7AB604CA1F89> /usr/lib/system/liblaunch.dylib
    0x7fff8aa84000 -     0x7fff8ad58fc7  com.apple.vImage (7.0 - 7.0) <D241DBFA-AC49-31E2-893D-EAAC31890C90> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/Versions/A/vImage
    0x7fff8ad59000 -     0x7fff8ae09ff7  libvMisc.dylib (423.32) <049C0735-1808-39B9-943F-76CB8021744F> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvMisc.dylib
    0x7fff8ae0a000 -     0x7fff8ae93ff7  libsystem_c.dylib (997.90.3) <6FD3A400-4BB2-3B95-B90C-BE6E9D0D78FA> /usr/lib/system/libsystem_c.dylib
    0x7fff8ae94000 -     0x7fff8ae94fff  com.apple.ApplicationServices (48 - 48) <3E3F01A8-314D-378F-835E-9CC4F8820031> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices
    0x7fff8ae95000 -     0x7fff8aebfff7  libpcap.A.dylib (42) <91D3FF51-D6FE-3C05-98C9-1182E0EC3D58> /usr/lib/libpcap.A.dylib
    0x7fff8aef2000 -     0x7fff8aef9ff7  libsystem_pthread.dylib (53.1.4) <AB498556-B555-310E-9041-F67EC9E00E2C> /usr/lib/system/libsystem_pthread.dylib
    0x7fff8aefa000 -     0x7fff8afc5fff  libvDSP.dylib (423.32) <3BF732BE-DDE0-38EB-8C54-E4E3C64F77A7> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvDSP.dylib
    0x7fff8b04c000 -     0x7fff8b204ff3  libicucore.A.dylib (511.31) <167DDD0A-A935-31AF-B5B9-940268EC3A3C> /usr/lib/libicucore.A.dylib
    0x7fff8b20a000 -     0x7fff8b463ff9  com.apple.security (7.0 - 55471.14.1) <FF57C9BB-4E52-33E5-8927-59AEADB6CA27> /System/Library/Frameworks/Security.framework/Versions/A/Security
    0x7fff8b7fd000 -     0x7fff8bd6dfff  com.apple.CoreAUC (6.22.08 - 6.22.08) <F306D552-2220-3160-88EA-C916193C5EFD> /System/Library/PrivateFrameworks/CoreAUC.framework/Versions/A/CoreAUC
    0x7fff8bd87000 -     0x7fff8bdc0ff7  com.apple.QD (3.50 - 298) <C1F20764-DEF0-34CF-B3AB-AB5480D64E66> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/QD.framework/Versions/A/QD
    0x7fff8be2b000 -     0x7fff8be42ffa  libAVFAudio.dylib (32.2) <52DA516B-DE79-322C-9E1B-2658019289D7> /System/Library/Frameworks/AVFoundation.framework/Versions/A/Resources/libAVFAudio.dylib
    0x7fff8be92000 -     0x7fff8beaefff  libresolv.9.dylib (54) <11C2C826-F1C6-39C6-B4E8-6E0C41D4FA95> /usr/lib/libresolv.9.dylib
    0x7fff8beaf000 -     0x7fff8bedeff7  com.apple.CoreAVCHD (5.7.0 - 5700.4.3) <404369C0-ED9F-3010-8D2F-BC55285F7808> /System/Library/PrivateFrameworks/CoreAVCHD.framework/Versions/A/CoreAVCHD
    0x7fff8bf1b000 -     0x7fff8c100fff  com.apple.CoreFoundation (6.9 - 855.16) <A63E680E-E4B2-368B-8564-9DBE0D8DDB91> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
    0x7fff8c1b7000 -     0x7fff8c353ff3  com.apple.QuartzCore (1.8 - 332.3) <80F1068F-4A34-34FB-9E05-A2DC0700D2F2> /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore
    0x7fff8c354000 -     0x7fff8c358fff  com.apple.CommonPanels (1.2.6 - 96) <6B434AFD-50F8-37C7-9A56-162C17E375B3> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CommonPanels.framework/Versions/A/CommonPanels
    0x7fff8c39a000 -     0x7fff8c3c9fd2  libsystem_m.dylib (3047.16) <B7F0E2E4-2777-33FC-A787-D6430B630D54> /usr/lib/system/libsystem_m.dylib
    0x7fff8c3ca000 -     0x7fff8c439ff1  com.apple.ApplicationServices.ATS (360 - 363.3) <546E89D9-2AE7-3111-B2B8-2366650D22F0> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/ATS
    0x7fff8c440000 -     0x7fff8c48efff  libcorecrypto.dylib (161.1) <F3973C28-14B6-3006-BB2B-00DD7F09ABC7> /usr/lib/system/libcorecrypto.dylib
    0x7fff8c48f000 -     0x7fff8c49aff7  com.apple.NetAuth (5.0 - 5.0) <C811E662-9EC3-3B74-808A-A75D624F326B> /System/Library/PrivateFrameworks/NetAuth.framework/Versions/A/NetAuth
    0x7fff8c50f000 -     0x7fff8c59ffff  com.apple.Metadata (10.7.0 - 800.23) <BFEE576F-D779-300B-B685-26A3A008710A> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Metadata
    0x7fff8c5a0000 -     0x7fff8c5a1ffb  libremovefile.dylib (33) <3543F917-928E-3DB2-A2F4-7AB73B4970EF> /usr/lib/system/libremovefile.dylib
    0x7fff8c5be000 -     0x7fff8c5e8ff7  libsandbox.1.dylib (278.11) <9E5654BF-DCD3-3B15-9C63-209B2B2D2803> /usr/lib/libsandbox.1.dylib
    0x7fff8c5e9000 -     0x7fff8c604ff7  libPng.dylib (1042.2) <103F76EB-0FB7-320E-822F-53483CCB7299> /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libPng.dylib
    0x7fff8c671000 -     0x7fff8c674fff  libCoreVMClient.dylib (58.1) <EBC36C69-C896-3C3D-8589-3E9023E7E56F> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCoreVMClient.dylib
    0x7fff8c675000 -     0x7fff8cf9468f  com.apple.CoreGraphics (1.600.0 - 599.21.1) <23BCDB0F-4E60-31BA-859C-820351D50111> /System/Library/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics
    0x7fff8d3e6000 -     0x7fff8d71cfff  com.apple.MediaToolbox (1.0 - 1273.49) <AB8ED666-6D15-3367-A033-F4A8AD33C4E0> /System/Library/Frameworks/MediaToolbox.framework/Versions/A/MediaToolbox
    0x7fff8d722000 -     0x7fff8d781fff  com.apple.framework.CoreWLAN (4.3.2 - 432.47) <AE6FAE44-918C-301C-A0AA-C65CAB6B5668> /System/Library/Frameworks/CoreWLAN.framework/Versions/A/CoreWLAN
    0x7fff8d782000 -     0x7fff8d83aff7  com.apple.DiscRecording (8.0 - 8000.4.6) <CDAAAD04-A1D0-3C67-ABCC-EFC9E8D44E7E> /System/Library/Frameworks/DiscRecording.framework/Versions/A/DiscRecording
    0x7fff8d83b000 -     0x7fff8d86cfff  com.apple.MediaKit (15 - 709) <23E33409-5C39-3F93-9E73-2B0E9EE8883E> /System/Library/PrivateFrameworks/MediaKit.framework/Versions/A/MediaKit
    0x7fff8d87a000 -     0x7fff8d8c8fff  com.apple.opencl (2.3.59 - 2.3.59) <8C2ACCC6-B0BA-3FE7-98A1-5C67284DEA4E> /System/Library/Frameworks/OpenCL.framework/Versions/A/OpenCL
    0x7fff8d8c9000 -     0x7fff8d8cefff  libmacho.dylib (845) <1D2910DF-C036-3A82-A3FD-44FF73B5FF9B> /usr/lib/system/libmacho.dylib
    0x7fff8d8cf000 -     0x7fff8d91bffe  com.apple.CoreMediaIO (407.0 - 4561) <BC8222A6-516C-380C-AB7D-DE78B23574DC> /System/Library/Frameworks/CoreMediaIO.framework/Versions/A/CoreMediaIO
    0x7fff8d91c000 -     0x7fff8d977ffb  com.apple.AE (665.5 - 665.5) <BBA230F9-144C-3CAB-A77A-0621719244CD> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE
    0x7fff8dbd4000 -     0x7fff8dc0ffff  com.apple.bom (14.0 - 193.1) <EF24A562-6D3C-379E-8B9B-FAE0E4A0EF7C> /System/Library/PrivateFrameworks/Bom.framework/Versions/A/Bom
    0x7fff8dc10000 -     0x7fff8dc37ffb  libsystem_info.dylib (449.1.3) <7D41A156-D285-3849-A2C3-C04ADE797D98> /usr/lib/system/libsystem_info.dylib
    0x7fff8de7f000 -     0x7fff8e0c7ff7  com.apple.CoreData (107 - 481.01) <DA339795-5D97-35B5-9B04-629830013720> /System/Library/Frameworks/CoreData.framework/Versions/A/CoreData
    0x7fff8e0c8000 -     0x7fff8e275f27  libobjc.A.dylib (551.1) <AD7FD984-271E-30F4-A361-6B20319EC73B> /usr/lib/libobjc.A.dylib
    0x7fff8e276000 -     0x7fff8e2b8ff7  libauto.dylib (185.5) <F45C36E8-B606-3886-B5B1-B6745E757CA8> /usr/lib/libauto.dylib
    0x7fff8e2b9000 -     0x7fff8e2bafff  libunc.dylib (28) <62682455-1862-36FE-8A04-7A6B91256438> /usr/lib/system/libunc.dylib
    0x7fff8e2bb000 -     0x7fff8e2c2fff  com.apple.NetFS (6.0 - 4.0) <8E26C099-CE9D-3819-91A2-64EA929C6137> /System/Library/Frameworks/NetFS.framework/Versions/A/NetFS
    0x7fff8e2c3000 -     0x7fff8e2cdfff  libcommonCrypto.dylib (60049) <8C4F0CA0-389C-3EDC-B155-E62DD2187E1D> /usr/lib/system/libcommonCrypto.dylib
    0x7fff8e2ce000 -     0x7fff8e2cfff7  com.apple.print.framework.Print (9.0 - 260) <EE00FAE1-DA03-3EC2-8571-562518C46994> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Print.framework/Versions/A/Print
    0x7fff8e2d0000 -     0x7fff8e5cefff  com.apple.Foundation (6.9 - 1056.13) <2EE9AB07-3EA0-37D3-B407-4A520F2CB497> /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
    0x7fff8e5cf000 -     0x7fff8e5d1fff  com.apple.SecCodeWrapper (3.0 - 1) <DE7CA981-2B8B-34AC-845D-06D5C8F10441> /System/Library/PrivateFrameworks/SecCodeWrapper.framework/Versions/A/SecCodeWrapper
    0x7fff8e5ee000 -     0x7fff8e635fff  libFontRegistry.dylib (127) <A77A0480-AA5D-3CC8-8B68-69985CD546DC> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/libFontRegistry.dylib
    0x7fff8e636000 -     0x7fff8e758ff1  com.apple.avfoundation (2.0 - 651.12) <5261E6EA-7476-32B2-A12A-D42598A9B2EA> /System/Library/Frameworks/AVFoundation.framework/Versions/A/AVFoundation
    0x7fff8e759000 -     0x7fff8e75bff7  libquarantine.dylib (71) <7A1A2BCB-C03D-3A25-BFA4-3E569B2D2C38> /usr/lib/system/libquarantine.dylib
    0x7fff8e78b000 -     0x7fff8e78fff7  libheimdal-asn1.dylib (323.92.1) <CAE21FFF-5763-399C-B7C5-EEBFFEEF2242> /usr/lib/libheimdal-asn1.dylib
    0x7fff8e793000 -     0x7fff8e81efff  libCoreStorage.dylib (380) <AE14C2F3-0EF1-3DCD-BF2B-A24D97D3B372> /usr/lib/libCoreStorage.dylib
    0x7fff8e825000 -     0x7fff8e8f6ff1  com.apple.DiskImagesFramework (10.9 - 371.1) <D456ED08-4C1D-341F-BAB8-85E34A7275C5> /System/Library/PrivateFrameworks/DiskImages.framework/Versions/A/DiskImages
    0x7fff8e8f7000 -     0x7fff8e9e6fff  libFontParser.dylib (111.1) <835A8253-6AB9-3AAB-9CBF-171440DEC486> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/libFontParser.dylib
    0x7fff8e9e7000 -     0x7fff8e9e8fff  liblangid.dylib (117) <9546E641-F730-3AB0-B3CD-E0E2FDD173D9> /usr/lib/liblangid.dylib
    0x7fff8e9e9000 -     0x7fff8eb59ff4  com.apple.CFNetwork (673.4 - 673.4) <F3BF6020-99BE-3844-A7B8-352B93AD02F3> /System/Library/Frameworks/CFNetwork.framework/Versions/A/CFNetwork
    0x7fff8eb5a000 -     0x7fff8ee2affc  com.apple.CoreImage (9.2.7) <BF88A02E-994E-3970-AC62-04248CA8DC46> /System/Library/Frameworks/QuartzCore.framework/Versions/A/Frameworks/CoreImage.framework/Versions/A/CoreImage
    0x7fff8efd5000 -     0x7fff8efeeff7  com.apple.Ubiquity (1.3 - 289) <C7F1B734-CE81-334D-BE41-8B20D95A1F9B> /System/Library/PrivateFrameworks/Ubiquity.framework/Versions/A/Ubiquity
    0x7fff8f091000 -     0x7fff8f093fff  com.apple.EFILogin (2.0 - 2) <C360E8AF-E9BB-3BBA-9DF0-57A92CEF00D4> /System/Library/PrivateFrameworks/EFILogin.framework/Versions/A/EFILogin
    0x7fff8f0cc000 -     0x7fff8f0e4ff7  com.apple.GenerationalStorage (2.0 - 160.2) <79629AC7-896F-3302-8AC1-4939020F08C3> /System/Library/PrivateFrameworks/GenerationalStorage.framework/Versions/A/GenerationalStorage
    0x7fff8f18e000 -     0x7fff8f191ff7  libdyld.dylib (239.4) <CF03004F-58E4-3BB6-B3FD-BE4E05F128A0> /usr/lib/system/libdyld.dylib
    0x7fff8f192000 -     0x7fff8f1ebfff  libTIFF.dylib (1042.2) <1C80C3FD-639C-3781-8A30-265410DD444F> /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libTIFF.dylib
    0x7fff8f93c000 -     0x7fff8f985fff  com.apple.CoreMedia (1.0 - 1273.49) <D91EC90A-BFF1-300D-A353-68001705811C> /System/Library/Frameworks/CoreMedia.framework/Versions/A/CoreMedia
    0x7fff8f986000 -     0x7fff8fab6ff7  com.apple.desktopservices (1.8.2 - 1.8.2) <76D6ED93-9D5A-3941-8B88-A1773290AE74> /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/DesktopServicesPriv
    0x7fff8fab7000 -     0x7fff8fab8ff7  libSystem.B.dylib (1197.1.1) <BFC0DC97-46C6-3BE0-9983-54A98734897A> /usr/lib/libSystem.B.dylib
    0x7fff8fad6000 -     0x7fff8fadaff7  libcache.dylib (62) <BDC1E65B-72A1-3DA3-A57C-B23159CAAD0B> /usr/lib/system/libcache.dylib
    0x7fff8fadb000 -     0x7fff8fae4ff7  libcldcpuengine.dylib (2.3.58) <C8785704-6195-3129-86CA-20F0F3C20F15> /System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries/libcldcpuengine.dylib
    0x7fff8fae5000 -     0x7fff8fb5cfff  com.apple.CoreServices.OSServices (600.4 - 600.4) <36B2B009-C35E-3F21-824E-E0D00E7808C7> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/OSServices
    0x7fff8fb77000 -     0x7fff8fb91fff  libdispatch.dylib (339.90.1) <F3CBFE1B-FCE8-3F33-A53D-9092AB382DBB> /usr/lib/system/libdispatch.dylib
    0x7fff8fb92000 -     0x7fff8fc56ff7  com.apple.backup.framework (1.5.2 - 1.5.2) <A3C552F0-670B-388F-93FA-D917F96ACE1B> /System/Library/PrivateFrameworks/Backup.framework/Versions/A/Backup
    0x7fff8fc57000 -     0x7fff8fc57fff  com.apple.Carbon (154 - 157) <4E260C09-78F4-305B-B408-13321CAF6213> /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon
    0x7fff8fc58000 -     0x7fff8fc9dffe  com.apple.HIServices (1.22 - 467.2) <B7FCF008-C241-3862-BC63-E6EF4006A6E4> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/HIServices.framework/Versions/A/HIServices
    0x7fff8fccb000 -     0x7fff8fd12ff7  libcups.2.dylib (372.2) <37802F24-BCC2-3721-8E12-82B29B61B2AA> /usr/lib/libcups.2.dylib
    0x7fff8fd14000 -     0x7fff8fd49ffc  com.apple.LDAPFramework (2.4.28 - 194.5) <4ADD0595-25B9-3F09-897E-3FB790AD2C5A> /System/Library/Frameworks/LDAP.framework/Versions/A/LDAP
    0x7fff8fd4a000 -     0x7fff8fd5bff7  libz.1.dylib (53) <42E0C8C6-CA38-3CA4-8619-D24ED5DD492E> /usr/lib/libz.1.dylib
    0x7fff8fd5c000 -     0x7fff8fd81ff7  com.apple.ChunkingLibrary (2.0 - 155.1) <B845DC7A-D1EA-31E2-967C-D1FE0C628036> /System/Library/PrivateFrameworks/ChunkingLibrary.framework/Versions/A/ChunkingLibrary
    0x7fff8fd82000 -     0x7fff8fd85fff  com.apple.TCC (1.0 - 1) <32A075D9-47FD-3E71-95BC-BFB0D583F41C> /System/Library/PrivateFrameworks/TCC.framework/Versions/A/TCC
    0x7fff8fd8f000 -     0x7fff8fd91fff  libRadiance.dylib (1042.2) <63C92F09-F862-3303-9EF6-55A80B48F2CF> /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libRadiance.dylib
    0x7fff8fde9000 -     0x7fff8fe0eff7  com.apple.CoreVideo (1.8 - 117.2) <4674339E-26D0-35FA-9958-422832B39B12> /System/Library/Frameworks/CoreVideo.framework/Versions/A/CoreVideo
    0x7fff8fe0f000 -     0x7fff8fe62fff  com.apple.ScalableUserInterface (1.0 - 1) <CF745298-7373-38D2-B3B1-727D5A569E48> /System/Library/Frameworks/QuartzCore.framework/Versions/A/Frameworks/ScalableUserInterface.framework/Versions/A/ScalableUserInterface
    0x7fff8fe63000 -     0x7fff8fe7fff7  libsystem_kernel.dylib (2422.92.1) <3F649963-7FA1-3201-8FF6-8438A52B9973> /usr/lib/system/libsystem_kernel.dylib
    0x7fff902ce000 -     0x7fff9035aff7  com.apple.ink.framework (10.9 - 207) <8A50B893-AD03-3826-8555-A54FEAF08F47> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Ink.framework/Versions/A/Ink
    0x7fff9035b000 -     0x7fff90373ff7  com.apple.openscripting (1.4 - 157) <B3B037D7-1019-31E6-9D17-08E699AF3701> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/OpenScripting.framework/Versions/A/OpenScripting
    0x7fff90374000 -     0x7fff903acff7  com.apple.RemoteViewServices (2.0 - 94) <3F34D630-3DDB-3411-BC28-A56A9B55EBDA> /System/Library/PrivateFrameworks/RemoteViewServices.framework/Versions/A/RemoteViewServices
    0x7fff90961000 -     0x7fff90a48ff7  libxml2.2.dylib (26) <A1DADD11-89E5-3DE4-8802-07186225967F> /usr/lib/libxml2.2.dylib
    0x7fff90a49000 -     0x7fff90a49ffd  com.apple.audio.units.AudioUnit (1.10 - 1.10) <486A97CD-C1F7-324D-87BC-B07F7A415B68> /System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit
    0x7fff90a4a000 -     0x7fff90aadff7  com.apple.SystemConfiguration (1.13 - 1.13) <63B985ED-E7E4-3095-8D12-63C9F1DB0F3D> /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration
    0x7fff90ab5000 -     0x7fff90abdffc  libGFXShared.dylib (9.6) <E276D384-3616-3511-B5F2-92621D6372D6> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGFXShared.dylib
    0x7fff90ac7000 -     0x7fff90babfff  com.apple.coreui (2.1 - 231) <432DB40C-6B7E-39C8-9FB5-B95917930056> /System/Library/PrivateFrameworks/CoreUI.framework/Versions/A/CoreUI
    0x7fff90bac000 -     0x7fff90bd0fff  libxpc.dylib (300.90.2) <AB40CD57-F454-3FD4-B415-63B3C0D5C624> /usr/lib/system/libxpc.dylib
    0x7fff90c0b000 -     0x7fff91059fff  com.apple.VideoToolbox (1.0 - 1273.49) <27177077-9107-3E06-ADAD-92B80E80CDCD> /System/Library/Frameworks/VideoToolbox.framework/Versions/A/VideoToolbox
    0x7fff910b2000 -     0x7fff910f1fff  libGLU.dylib (9.6) <EE4907CA-219C-34BD-A84E-B85695F64C05> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLU.dylib
    0x7fff910f2000 -     0x7fff910f4ffb  libutil.dylib (34) <DAC4A6CF-A1BB-3874-9569-A919316D30E8> /usr/lib/libutil.dylib
    0x7fff910f5000 -     0x7fff9114dff7  com.apple.Symbolication (1.4 - 129) <16D42516-7B5E-357C-898A-FAA9EE7642B3> /System/Library/PrivateFrameworks/Symbolication.framework/Versions/A/Symbolication
    0x7fff9114e000 -     0x7fff9118cff7  libGLImage.dylib (9.6) <DCF2E131-A65E-33B2-B32D-28FF01605AB1> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLImage.dylib
    0x7fff9118d000 -     0x7fff911bcfff  com.apple.DebugSymbols (106 - 106) <E1BDED08-523A-36F4-B2DA-9D5C712F0AC7> /System/Library/PrivateFrameworks/DebugSymbols.framework/Versions/A/DebugSymbols
    0x7fff911bd000 -     0x7fff911c2fff  com.apple.DiskArbitration (2.6 - 2.6) <A4165553-770E-3D27-B217-01FC1F852B87> /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration
    0x7fff911c5000 -     0x7fff914affff  com.apple.CoreServices.CarbonCore (1077.17 - 1077.17) <3A2E92FD-DEE2-3D45-9619-11500801A61C> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore
    0x7fff914b0000 -     0x7fff914b6fff  com.apple.AOSNotification (1.7.0 - 760.3) <7901B867-60F7-3645-BB3E-18C51A6FBCC6> /System/Library/PrivateFrameworks/AOSNotification.framework/Versions/A/AOSNotification
    0x7fff914cc000 -     0x7fff914f0ff7  libJPEG.dylib (1042.2) <0AFE20D1-F24D-3548-A562-DB8FA7995655> /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libJPEG.dylib
    0x7fff914f1000 -     0x7fff914faff3  libsystem_notify.dylib (121) <52571EC3-6894-37E4-946E-064B021ED44E> /usr/lib/system/libsystem_notify.dylib
    0x7fff914fb000 -     0x7fff9150bfff  libbsm.0.dylib (33) <2CAC00A2-1352-302A-88FA-C567D4D69179> /usr/lib/libbsm.0.dylib
    0x7fff91535000 -     0x7fff9153dfff  libsystem_dnssd.dylib (522.90.2) <A0B7CF19-D9F2-33D4-8107-A62184C9066E> /usr/lib/system/libsystem_dnssd.dylib
    0x7fff9153e000 -     0x7fff915c7fff  com.apple.ColorSync (4.9.0 - 4.9.0) <B756B908-9AD1-3F5D-83F9-7A0B068387D2> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ColorSync.framework/Versions/A/ColorSync
    0x7fff91929000 -     0x7fff91993ff7  com.apple.framework.IOKit (2.0.1 - 907.90.2) <A779DE46-BB7E-36FD-9348-694F9B09718F> /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
    0x7fff91b86000 -     0x7fff91badff7  libsystem_network.dylib (241.3) <8B1E1F1D-A5CC-3BAE-8B1E-ABC84337A364> /usr/lib/system/libsystem_network.dylib
    0x7fff91d62000 -     0x7fff91d65fff  com.apple.help (1.3.3 - 46) <AE763646-D07A-3F9A-ACD4-F5CBD734EE36> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Help.framework/Versions/A/Help
    0x7fff91dd3000 -     0x7fff91e20fff  com.apple.AppleVAFramework (5.0.27 - 5.0.27) <D01B7D87-4BDC-3E48-A79B-951D05075F9D> /System/Library/PrivateFrameworks/AppleVA.framework/Versions/A/AppleVA
    0x7fff91e21000 -     0x7fff91f27fff  com.apple.ImageIO.framework (3.3.0 - 1042) <DEA4FF1B-D340-32C3-977D-D249709C6031> /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO
    0x7fff91fb3000 -     0x7fff91fbdff7  com.apple.bsd.ServiceManagement (2.0 - 2.0) <2D27B498-BB9C-3D88-B05A-76908A8A26F3> /System/Library/Frameworks/ServiceManagement.framework/Versions/A/ServiceManagement
    0x7fff91fbe000 -     0x7fff920a8fff  libsqlite3.dylib (158) <00269BF9-43BE-39E0-9C85-24585B9923C8> /usr/lib/libsqlite3.dylib
    0x7fff920a9000 -     0x7fff920a9ffd  libOpenScriptingUtil.dylib (157) <19F0E769-0989-3062-9AFB-8976E90E9759> /usr/lib/libOpenScriptingUtil.dylib
    0x7fff92108000 -     0x7fff92108fff  com.apple.Cocoa (6.8 - 20) <E90E99D7-A425-3301-A025-D9E0CD11918E> /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa
    0x7fff921bf000 -     0x7fff925a0ffe  libLAPACK.dylib (1094.5) <7E7A9B8D-1638-3914-BAE0-663B69865986> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib
    0x7fff93521000 -     0x7fff93528fff  libcompiler_rt.dylib (35) <4CD916B2-1B17-362A-B403-EF24A1DAC141> /usr/lib/system/libcompiler_rt.dylib
    0x7fff93529000 -     0x7fff9368ffff  libGLProgrammability.dylib (9.6) <8807FAD2-11E2-3293-89D8-397B87334138> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLProgrammability.dylib
    0x7fff93690000 -     0x7fff936b9fff  GLRendererFloat (9.6) <16871296-2EB9-3FF6-AB00-3E2E55A45A63> /System/Library/Frameworks/OpenGL.framework/Versions/A/Resources/GLRendererFloat.bundle/GLRendererFloat
    0x7fff93fe5000 -     0x7fff94065fff  com.apple.CoreSymbolication (3.0 - 141) <B018335C-698B-3F87-AF1C-6115C4FA8954> /System/Library/PrivateFrameworks/CoreSymbolication.framework/Versions/A/CoreSymbolication
    0x7fff94066000 -     0x7fff94067ff7  libsystem_blocks.dylib (63) <FB856CD1-2AEA-3907-8E9B-1E54B6827F82> /usr/lib/system/libsystem_blocks.dylib
    0x7fff940aa000 -     0x7fff940c5ff7  libCRFSuite.dylib (34) <FFAE75FA-C54E-398B-AA97-18164CD9789D> /usr/lib/libCRFSuite.dylib
    0x7fff940d0000 -     0x7fff941fffef  com.apple.MediaControlSender (2.0 - 200.34.4) <FC24EC8D-2E46-3F76-AF63-749F30857B96> /System/Library/PrivateFrameworks/MediaControlSender.framework/Versions/A/MediaControlSender
    0x7fff94200000 -     0x7fff9420aff7  com.apple.AppSandbox (3.0 - 1) <9F27DC25-C566-3AEF-92D3-DCFE7836916D> /System/Library/PrivateFrameworks/AppSandbox.framework/Versions/A/AppSandbox
    0x7fff94233000 -     0x7fff9423dff7  com.apple.CrashReporterSupport (10.9 - 538) <B487466B-3AA1-3854-A808-A61F049FA794> /System/Library/PrivateFrameworks/CrashReporterSupport.framework/Versions/A/CrashReporterSupport
    0x7fff94258000 -     0x7fff942bfff7  com.apple.CoreUtils (2.0 - 200.34.4) <E53B97FE-E067-33F6-A9C1-D4EC2A20FB9F> /System/Library/PrivateFrameworks/CoreUtils.framework/Versions/A/CoreUtils
    0x7fff942c3000 -     0x7fff942c5fff  libCVMSPluginSupport.dylib (9.6) <FFDA2811-060E-3591-A280-4A726AA82436> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCVMSPluginSupport.dylib
    0x7fff942c6000 -     0x7fff942f2fff  com.apple.CoreServicesInternal (184.9 - 184.9) <4DEA54F9-81D6-3EDB-AA3C-1F9C497B3379> /System/Library/PrivateFrameworks/CoreServicesInternal.framework/Versions/A/CoreServicesInternal
    0x7fff942f3000 -     0x7fff94480ff7  GLEngine (9.6) <51D58F76-B9B3-3B4F-B65A-F6D213C2EED7> /System/Library/Frameworks/OpenGL.framework/Versions/A/Resources/GLEngine.bundle/GLEngine
    0x7fff94484000 -     0x7fff9448dfff  com.apple.speech.synthesis.framework (4.7.1 - 4.7.1) <383FB557-E88E-3239-82B8-15F9F885B702> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/SpeechSynthesis.framework/Versions/A/SpeechSynthesis
    0x7fff9448e000 -     0x7fff94499fff  libkxld.dylib (2422.92.1) <A7DFFC8C-45EE-3525-A961-EF93C2FB1340> /usr/lib/system/libkxld.dylib
    0x7fff9449a000 -     0x7fff94563fff  com.apple.LaunchServices (572.26 - 572.26) <EF8A4A15-0861-35C5-9744-5E1BC5C26DD9> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices
    0x7fff94a88000 -     0x7fff94a9fff7  com.apple.CFOpenDirectory (10.9 - 173.90.1) <38A25261-C622-3F11-BFD3-7AFFC44D57B8> /System/Library/Frameworks/OpenDirectory.framework/Versions/A/Frameworks/CFOpenDirectory.framework/Versions/A/CFOpenDirectory
    0x7fff94aa0000 -     0x7fff94ab2fff  com.apple.ImageCapture (9.0 - 9.0) <BE0B65DA-3031-359B-8BBA-B9803D4ADBF4> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ImageCapture.framework/Versions/A/ImageCapture
    0x7fff94b13000 -     0x7fff94b1bff7  com.apple.AppleSRP (5.0 - 1) <ABC7F088-1FD5-3768-B9F3-847F355E90B3> /System/Library/PrivateFrameworks/AppleSRP.framework/Versions/A/AppleSRP
    0x7fff94dae000 -     0x7fff94e14fff  com.apple.framework.CoreWiFi (2.0 - 200.21.1) <5491896D-78C5-30B6-96E9-D8DDECF3BE73> /System/Library/Frameworks/CoreWiFi.framework/Versions/A/CoreWiFi
    0x7fff94e15000 -     0x7fff94f03fff  libJP2.dylib (1042.2) <DD2DE799-C053-3C6A-91EC-D637CBD6FF90> /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libJP2.dylib
    0x7fff94fdb000 -     0x7fff94fe8fff  com.apple.Sharing (132.2 - 132.2) <F983394A-226D-3244-B511-FA51FDB6ADDA> /System/Library/PrivateFrameworks/Sharing.framework/Versions/A/Sharing
    0x7fff9528d000 -     0x7fff952a8ff7  libsystem_malloc.dylib (23.10.1) <A695B4E4-38E9-332E-A772-29D31E3F1385> /usr/lib/system/libsystem_malloc.dylib
    0x7fff952a9000 -     0x7fff952d9fff  com.apple.IconServices (25 - 25.17) <4751127E-FBD5-3ED5-8510-08D4E4166EFE> /System/Library/PrivateFrameworks/IconServices.framework/Versions/A/IconServices
    0x7fff952da000 -     0x7fff952f7ff7  com.apple.framework.Apple80211 (9.3.1 - 931.58) <D5B2DD15-3DCC-31F6-9320-3A20A887C5D5> /System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Apple80211
    0x7fff952f8000 -     0x7fff95300fff  libMatch.1.dylib (19) <021293AB-407D-309A-87F5-8E782F46753E> /usr/lib/libMatch.1.dylib
    0x7fff95301000 -     0x7fff95365fff  com.apple.datadetectorscore (5.0 - 354.3) <B92E87D1-2045-3AB2-AE3F-8F948B30518A> /System/Library/PrivateFrameworks/DataDetectorsCore.framework/Versions/A/DataDetectorsCore

External Modification Summary:
  Calls made by other processes targeting this process:
    task_for_pid: 1
    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: 15595
    thread_create: 0
    thread_set_state: 33

VM Region Summary:
ReadOnly portion of Libraries: Total=198.6M resident=78.3M(39%) swapped_out_or_unallocated=120.3M(61%)
Writable regions: Total=89.9M written=9744K(11%) resident=23.9M(27%) swapped_out=0K(0%) unallocated=66.0M(73%)

REGION TYPE                      VIRTUAL
===========                      =======
CG backing stores                  3096K
CG image                              4K
CG raster data                       12K
CG shared images                    212K
Dispatch continuations             4096K
IOKit                              10.2M
IOKit (reserved)                      4K        reserved VM address space (unallocated)
Kernel Alloc Once                     8K
MALLOC                             37.6M
MALLOC (admin)                       32K
MALLOC_LARGE (reserved)             280K        reserved VM address space (unallocated)
OpenCL                             7956K
STACK GUARD                        56.0M
Stack                              10.1M
VM_ALLOCATE                        16.3M
__DATA                             41.2M
__IMAGE                             528K
__LINKEDIT                         66.9M
__TEXT                            131.7M
__UNICODE                           544K
mapped file                        50.4M
shared memory                        68K
===========                      =======
TOTAL                             436.9M
TOTAL, minus reserved VM space    436.6M


Model: MacBookPro5,5, BootROM MBP55.00AC.B03, 2 processors, Intel Core 2 Duo, 2.26 GHz, 8 GB, SMC 1.47f2
Graphics: NVIDIA GeForce 9400M, NVIDIA GeForce 9400M, PCI, 256 MB
Memory Module: BANK 0/DIMM0, 4 GB, DDR3, 1067 MHz, 0x857F, 0x483634353155363446373036364700000000
Memory Module: BANK 1/DIMM0, 4 GB, DDR3, 1067 MHz, 0x857F, 0x483634353155363446373036364700000000
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x8D), Broadcom BCM43xx 1.0 (5.106.98.100.22)
Bluetooth: Version 4.2.3f10 13477, 3 services, 15 devices, 1 incoming serial ports
Network Service: AirPort, AirPort, en1
Network Service: Diad, Ethernet, en0
Serial ATA Device: ST750LX003-1AC154, 750.16 GB
Serial ATA Device: HL-DT-ST DVDRW  GS23N
USB Device: Built-in iSight
USB Device: Internal Memory Card Reader
USB Device: Apple Internal Keyboard / Trackpad
USB Device: IR Receiver
USB Device: USB Receiver
USB Device: BRCM2046 Hub
USB Device: Bluetooth USB Host Controller
Thunderbolt Bus: 

Sibernetic crashes when using GPU

CL_PLATFORM_VERSION [0]:    OpenCL 1.2 (Apr 25 2013 18:32:06)
CL_CONTEXT_PLATFORM [0]: CL_DEVICE_NAME [0]:    GeForce GT 650M
CL_CONTEXT_PLATFORM [0]: CL_DEVICE_MAX_WORK_GROUP_SIZE [0]:     1024
CL_CONTEXT_PLATFORM [0]: CL_DEVICE_MAX_COMPUTE_UNITS [0]:   2
CL_CONTEXT_PLATFORM [0]: CL_DEVICE_GLOBAL_MEM_SIZE [0]:     1073741824
CL_CONTEXT_PLATFORM [0]: CL_DEVICE_GLOBAL_MEM_CACHE_SIZE [0]:   0
CL_CONTEXT_PLATFORM [0]: CL_DEVICE_LOCAL_MEM_SIZE [0]:  49152
graphics:          73.246 ms
====================================
graphics:          78.515 ms
====================================

[[ Step 0 ]]
_runClearBuffers:     119.792 ms
_runHashParticles:      3.169 ms
_runSort:          20.731 ms
_runSortPostPass:      25.693 ms
_runIndexx:             4.066 ms
_runIndexPostPass:      3.562 ms
_runFindNeighbors:    111.994 ms
Segmentation fault: 11

Problems building on OSX

$ make all -f makefile.OSX
Building file: src/PyramidalSimulation.cpp
Invoking: clang C++ Compiler
g++ -O1 -Wall -c -I/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Headers/ -framework OpenCL -fmessage-length=0 -MMD -MP -MF"build/PyramidalSimulation.d" -MT"build/PyramidalSimulation.d" -o "build/PyramidalSimulation.o" "src/PyramidalSimulation.cpp"
clang: warning: -framework OpenCL: 'linker' input unused
src/PyramidalSimulation.cpp:10:10: fatal error: 'Python.h' file not found

include <Python.h>

     ^

1 error generated.
make: *** [build/PyramidalSimulation.o] Error 1

The makefile seems to presume that Python was installed with Homebrew.

Analyze and fix the situation with simulation's scale -- currently it's completely irrelevant

Currently the mass of single particle = 0.0003 kg (significantly larger then the mass of the whole real worm), as well as distance between 2 adjacent particles r0 = 0.0067 m.

For a model made of, for example, 1e+05 particles single mass should be 3.25e-14 kg and r0 = 0.0032 mm = 3.2e-6 m.

We need to reconfigure the set of physical constants to these new conditions keeping the simulation stable.

Following OpenCL technology progress:

Hi guys,
recently I came across the following information:
(http://en.wikipedia.org/wiki/OpenCL#OpenCL_1.2)
"OpenCL 2.0. On November 18, 2013, the Khronos Group announced the ratification and public release of the finalized OpenCL 2.0 specification. Updates and additions to OpenCL 2.0 include:

Shared Virtual Memory
Nested Parallelism
Generic Address Space
Images
C11 Atomics
Pipes
Android Installable Client Driver Extension
Industry Support"

About hardware supporting OpenCL 2.0:
(http://stackoverflow.com/questions/23745612/hardware-supporting-opencl-2-0)
"At present, there are no conformant implementations of OpenCL 2.0 available.

In terms of hardware support, AMD have stated that some of their latest GPUs have the capabilities for OpenCL 2.0, and I would expect that most (if not all) modern CPUs have too (Xeon Phi likely does as well). NVIDIA's latest GPUs are probably also compliant, since they have CUDA equivalents of nested parallelism and SVM.

So, we are just waiting for the actual implementations (i.e. drivers) to appear. At IWOCL'14 last week it was mentioned that the conformance package for OpenCL 2.0 was only just finalised recently, so we can expect to see these implementations start to appear in the coming months.

In the meantime, AMD have preliminary support for some OpenCL 2.0 already available in their latest beta driver."

Pressure inside C. elegans body shell - in reality and in simulation

I've decided to consider a simple model of a 'spherical worm in vacuum' for better understanding of the problem (how to calculate pressure inside Sibernetic worm body model?).
Liquid is almost incompressible, not only in reality, but in PCISPH simulation as well. So, pressure is caused not by liquid compression, but by elastic shell tension. I've performed some math and got the following formula for pressure:
25
r > r0 is caused by excess of liquid inside the worm.

segfault

Sibernetic will segfault instead of exiting cleanly after pressing CTRL + C

Originally filed by @msasinski

Transferred here from the main OpenWorm board in this issue

Can't compile Sibernetic under Ubuntu Linux

Building file: ../src/PyramidalSimulation.cpp
Invoking: GCC C++ Compiler
g++ -I/usr/include/python2.7/ -O3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/PyramidalSimulation.d" -MT"src/PyramidalSimulation.d" -o "src/PyramidalSimulation.o" "../src/PyramidalSimulation.cpp"
In file included from ../src/PyramidalSimulation.cpp:12:0:
../src/PyramidalSimulation.h:8:42: fatal error: C:/Python27/include/Python.h: No such file or directory
compilation terminated.
make: *** [src/PyramidalSimulation.o] Error 1

Originally filed by @msasinski

Transferred here from the main OpenWorm board in this issue

log to file option disables graphical output

when Sibernetic is run with -l_to option, OpenGL is deactivated and the simulation is not displayed on the screen. It should be possible to log and display the simulation at the same time.

Originally filed by @msasinski

Transferred here from the main OpenWorm board in this issue

Installation error!

Regarding the installation instructions, in the Release folder (in ../bin/) there is no "makefile" to run

make clean

or

make all

Can you help me?

Sibernetic crashes on MacBook Pro with OpenCL 1.2

I compiled successfully Sibernetic but as soon as I launch it, after briefly showing the worm, it crashes with the following error:

Matteos-MacBook-Pro:Smoothed-Particle-Hydrodynamics matteocantarelli$ ./build/Smoothed-Particle-Hydrodynamics
Sibernetic: no arguments, run method executing
[debug] pName = "main_sim"
[debug] PyPath = "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip:/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/:/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin:/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac:/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages:/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/../../Extras/lib/python:/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk:/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old:/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload"
ImportError: No module named main_sim
Module not loaded, have you set PYTHONPATH?
Pyramidal simulation class not callable!
 CL_PLATFORM_VERSION [0]:   OpenCL 1.2 (Apr 25 2013 18:32:06)
CL_CONTEXT_PLATFORM [0]: CL_DEVICE_NAME [0]:    Intel(R) Core(TM) i7-3720QM CPU @ 2.60GHz
CL_CONTEXT_PLATFORM [0]: CL_DEVICE_MAX_WORK_GROUP_SIZE [0]:     1024
CL_CONTEXT_PLATFORM [0]: CL_DEVICE_MAX_COMPUTE_UNITS [0]:   8
CL_CONTEXT_PLATFORM [0]: CL_DEVICE_GLOBAL_MEM_SIZE [0]:     0
CL_CONTEXT_PLATFORM [0]: CL_DEVICE_GLOBAL_MEM_CACHE_SIZE [0]:   64
CL_CONTEXT_PLATFORM [0]: CL_DEVICE_LOCAL_MEM_SIZE [0]:  32768
graphics:          64.352 ms
====================================
graphics:          85.479 ms
====================================

[[ Step 0 ]]
_runClearBuffers:      23.963 ms
_runHashParticles:      1.046 ms
_runSort:          16.459 ms
_runSortPostPass:       3.083 ms
_runIndexx:             4.007 ms
_runIndexPostPass:      0.899 ms
_runFindNeighbors:    110.642 ms
_runPCISPH:           153.773 ms    3 iteration(s)
_readBuffer:           10.918 ms
------------------------------------
_Total_step_time:     324.792 ms
------------------------------------
!!!checkpoint001!!!
!!!checkpoint002!!!
Segmentation fault: 11

segfaults under Linux

Latest sph/master segfaults on Linux.
Looks unrelated to previous segfaults.

gdb output.

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7ffff1578700 (LWP 20889)]
0x00007ffff034e8bc in __OpenCL_computeInteractionWithMembranes_kernel (position=0x7ffff02bc000, velocity=0x7ffff01a4000, sortedPosition=0x7ffff0230000, particleIndex=0x6a8000, particleIndexBack=0xb3a000,
neighborMap=0x7fffe2b85000, particleMembranesList=0x0, membraneData=0x0, PARTICLE_COUNT=17743, numOfElasticP=218, r0=1.66999996) at OCLBZ3Djt.cl:1429
1429 if((mdi=particleMembranesList[jd_source_particle*MAX_MEMBRANES_INCLUDING_SAME_PARTICLE+mli])>-1)
'''
Configuration we are going to load contains 17743 particles. Now plan to allocate memory for them.
CL_PLATFORM_VERSION [0]: OpenCL 1.2 AMD-APP (1214.3)
CL_CONTEXT_PLATFORM [0]: CL_DEVICE_NAME [0]: Intel(R) Core(TM) i5 CPU M 450 @ 2.40GHz

CL_CONTEXT_PLATFORM [0]: CL_DEVICE_MAX_WORK_GROUP_SIZE [0]: 1024
CL_CONTEXT_PLATFORM [0]: CL_DEVICE_MAX_COMPUTE_UNITS [0]: 4
CL_CONTEXT_PLATFORM [0]: CL_DEVICE_GLOBAL_MEM_SIZE [0]: 0
CL_CONTEXT_PLATFORM [0]: CL_DEVICE_GLOBAL_MEM_CACHE_SIZE [0]: 32768
CL_CONTEXT_PLATFORM 0: CL_DEVICE_LOCAL_MEM_SIZE [0]: 32768

[[ Step 0 ]]
_runHashParticles: 0.628 ms
_runSort: 1.502 ms
_runSortPostPass: 0.630 ms
_runIndexx: 4.103 ms
_runIndexPostPass: 0.206 ms
_runFindNeighbors: 11.948 ms
_runPCISPH: 15.945 ms 3 iteration(s)
Segmentation fault
'''

Originally filed by @msasinski

Transferred here from the main OpenWorm board in this issue

Add LeapFrog Integrator

Add LeapFrog Integrator and put possibility switch between semi-implicit Euler and LeapFrog

  • Add code for LeapFrog integrator
  • Test
  • add possibility to choose method of Integration (Euler or LeapFrog)
  • Commit code and merge into development and in WormBodySimulation branch

VS2012 support

I've seen that a vs2008 project exists. I was wondering if it would be possible to create the vs2012 project.

Cleanup SPH repository

I'm no C++ guru so I'd like clarification about this. There are a few things which I'm not sure should be there:

"Release" folder
.project files
.cproject

Originally filed by @vellamike

Transferred here from the main OpenWorm board in this issue

Create PPA for Sibernetic

By popular request from the community. A PPA is a personal package archive that enables code to get installed on Ubuntu

Problems from reading from file, "-l_from"

I'm running Release/Sibernetic -l_from and it crashes.
I've been logging points to file using -l_to for about 50,000 steps when I stopped it by using ctrl-c. It saved into a file called "position_buffer_binary_hope_correct.txt", which didn't match the readme ("position_buffer.txt") so I used cp position_buffer_binary_hope_correct.txt position_buffer.txt and tried running it again. Both times nothing was displayed, nothing happened. Am I doing something wrong?

memory leak

There is a definite memory leak in Sibernetic. The following numbers are results reported just after one step:
definitely lost: 2,376 bytes in 32 blocks
indirectly lost: 47,395 bytes in 26 blocks
possibly lost: 119,568,211 bytes in 1,231 blocks

Originally filed by @msasinski

Transferred here from the main OpenWorm board in this issue

Bring changes from testing_geppetto_config into master

The changes in testing_geppetto_config allow for better decoupling between the simulation and the kernel

  • Merge into master
  • Check the kernel in membranesPorting of org.geppetto.solver.sph and kernel in master of sibernetic is the same after this

gl.h contains licensed content -- should be replaced with open source version

Looks like we let some non-open source code creep into the membranes branch.

@skhayrulin can we replace with another version that is clearly open source?

** Portions of this file are UNPUBLISHED PROPRIETARY SOURCE CODE of Silicon
** Graphics, Inc.; the contents of this file may not be disclosed to third
** parties, copied or duplicated in any form, in whole or in part, without
** the prior written permission of Silicon Graphics, Inc.

** THE INFORMATION CONTAINED HEREIN IS PROPRIETARY AND CONFIDENTIAL TO
** NVIDIA, CORPORATION. USE, REPRODUCTION OR DISCLOSURE TO ANY THIRD PARTY
** IS SUBJECT TO WRITTEN PRE-APPROVAL BY NVIDIA, CORPORATION.

setting generateWormBodyConfiguration to 1 breaks the simulation

Changing generateWormBodyConfiguration to 1 causes Sibernetic to display only liquid particles without the worm body. Sibernetic reports 0.0 FPS in the UI, and 0.0025 FPS in the console.

OS: Linux
OpenCL: AMD 1.2
Hardware: Tested on two machines

  1. i5 CPU with integrated graphics
  2. XEON E3 with AMD R9 270x

From time to time appearing strange behaviour

Sometime Sibernetc shows strange behaviour when start: explosion, fluctuation of springs etc. Looks like race condition somewhere.

  • make branch for this bug
  • log and compare data for bug and nobug run
  • understood why strange values in acceleration is appearing
    should be like this
    screenshot from 2015-03-26 12 39 51
    but sometimes it looks like this:
    bug

Add info on command line options available when Sibernetic run with -help

Working on this here: https://github.com/pgleeson/Smoothed-Particle-Hydrodynamics/blob/WormBodySimulation/src/main.cpp#L61

Example of current output:

Sibernetic
  This is a C++ implementation of the Contractile SPH (Electrofluid) algorithm applied to C. elegans locomotion
    Usage:  ./Release/Sibernetic [OPTION]
   -no_g       Run without graphics
   -l_to       Save simulation results to disk
   -l_from     Load simulation results from disk
   -test       Run some tests
   -help       Print this information

Comments & suggestions welcome @skhayrulin, @a-palyanov

Segfault in program.build()

So I am trying to run the program for the first time, and am running into a segfault at owOpenCLSolver.cpp line 309

err = program.build( devices, "");

I'm running Ubuntu 14.04 with a Intel i5 processor. I replicated the error on another computer, also lenovo with a different linux distribution.

The backtrace on gdb:
#0 0x00007ffff2a91810 in ?? () from /opt/intel/intel-opencl-1.2-4.6.0.92/opencl-1.2-4.6.0.92/lib64/libOclCpuBackEnd.so

... almost the same thing ...
#25 0x00007ffff377420d in ?? () from /opt/intel/intel-opencl-1.2-4.6.0.92/opencl-1.2-4.6.0.92/lib64/libtask_executor.so
#26 0x00007ffff3624fea in tbb::internal::custom_schedulertbb::internal::IntelSchedulerTraits::local_wait_for_all (this=0x7ffff3207e80, parent=...,

child=0x7fffe46d2490) at ../../src/tbb/custom_scheduler.h:474

#27 0x00007ffff3620f39 in tbb::internal::arena::process (this=0x0, s=...) at ../../src/tbb/arena.cpp:94
#28 0x00007ffff361f416 in tbb::internal::market::process (this=0x0, j=...) at ../../src/tbb/market.cpp:473
#29 0x00007ffff361b410 in tbb::internal::rml::private_worker::run (this=0x0) at ../../src/tbb/private_server.cpp:273
#30 0x00007ffff361b3b6 in tbb::internal::rml::private_worker::thread_routine (arg=0x0) at ../../src/tbb/private_server.cpp:226
#31 0x00007ffff474b182 in start_thread (arg=0x7ffff075d700) at pthread_create.c:312
#32 0x00007ffff6a2ffbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.