In [1]:
from jLM.CME import CMESimulation
from jLM.CMEPostProcessing import *
from jLM.units import *
from jLM.LMLogger import *
import os
import logging
In [2]:
outputFile = "LotkaVolterra.lm"
In [3]:
setLMLoggerLevel(logging.INFO)
In [4]:
# Create our CME simulation object
sim = CMESimulation()
In [5]:
# Define our chemical species
species = ['P1', 'P2']
sim.defineSpecies(species)
In [6]:
# Add reactions to the simulation
sim.addReaction(reactant = 'P1', product = ('P1', 'P1'), rate = 1)
sim.addReaction(reactant = ('P1', 'P2'), product = ('P2', 'P2'), rate = 0.005)
sim.addReaction(reactant = 'P2', product = '', rate = 0.6)
In [7]:
# Set our initial species counts
sim.addParticles(species = 'P1', count = 50)
sim.addParticles(species = 'P2', count = 100)
In [8]:
# Define simulation parameters: run for 10 seconds, saving data every ms
sim.setWriteInterval(ms(1))
sim.setSimulationTime(10)
os.system("rm -rf %s"%(outputFile))
sim.save(outputFile)
In [9]:
# Run 50 replicates using the Gillespie solver
sim.run(filename = outputFile, method = "lm::cme::GillespieDSolver", replicates = 50)
0%| | 0/50 [00:00<?, ?it/s]
2025-09-02 15:32:46) Info: Using 32 processor(s) and 1 CUDA device(s) per process. 2025-09-02 15:32:46) Info: Assigning 1.00 processor(s) and 1.00 CUDA device(s) per replicate. 2025-09-02 15:32:46) Info: Data output thread running. 2025-09-02 15:32:46) Info: Seeding xorwow rng with top word 1 and bottom word 905004159 2025-09-02 15:32:46) Info: Data output thread finished. 2025-09-02 15:32:46) Info: Simulation file closed.
2%|2 | 1/50 [00:00<00:13, 3.56it/s]
2025-09-02 15:32:46) Info: Using 32 processor(s) and 1 CUDA device(s) per process. 2025-09-02 15:32:46) Info: Assigning 1.00 processor(s) and 1.00 CUDA device(s) per replicate. 2025-09-02 15:32:46) Info: Data output thread running. 2025-09-02 15:32:47) Info: Seeding xorwow rng with top word 2 and bottom word 967218770 2025-09-02 15:32:47) Info: Data output thread finished. 2025-09-02 15:32:47) Info: Simulation file closed. 2025-09-02 15:32:47) Info: Using 32 processor(s) and 1 CUDA device(s) per process. 2025-09-02 15:32:47) Info: Assigning 1.00 processor(s) and 1.00 CUDA device(s) per replicate. 2025-09-02 15:32:47) Info: Data output thread running. 2025-09-02 15:32:47) Info: Seeding xorwow rng with top word 3 and bottom word 23414301 2025-09-02 15:32:47) Info: Data output thread finished. 2025-09-02 15:32:47) Info: Simulation file closed.
6%|6 | 3/50 [00:00<00:05, 8.69it/s]
2025-09-02 15:32:47) Info: Using 32 processor(s) and 1 CUDA device(s) per process. 2025-09-02 15:32:47) Info: Assigning 1.00 processor(s) and 1.00 CUDA device(s) per replicate. 2025-09-02 15:32:47) Info: Data output thread running. 2025-09-02 15:32:47) Info: Seeding xorwow rng with top word 4 and bottom word 81044631 2025-09-02 15:32:47) Info: Data output thread finished. 2025-09-02 15:32:47) Info: Simulation file closed. 2025-09-02 15:32:47) Info: Using 32 processor(s) and 1 CUDA device(s) per process. 2025-09-02 15:32:47) Info: Assigning 1.00 processor(s) and 1.00 CUDA device(s) per replicate. 2025-09-02 15:32:47) Info: Data output thread running. 2025-09-02 15:32:47) Info: Seeding xorwow rng with top word 5 and bottom word 136385022 2025-09-02 15:32:47) Info: Data output thread finished. 2025-09-02 15:32:47) Info: Simulation file closed.
10%|# | 5/50 [00:00<00:03, 11.79it/s]
2025-09-02 15:32:47) Info: Using 32 processor(s) and 1 CUDA device(s) per process. 2025-09-02 15:32:47) Info: Assigning 1.00 processor(s) and 1.00 CUDA device(s) per replicate. 2025-09-02 15:32:47) Info: Data output thread running. 2025-09-02 15:32:47) Info: Seeding xorwow rng with top word 6 and bottom word 193142633 2025-09-02 15:32:47) Info: Data output thread finished. 2025-09-02 15:32:47) Info: Simulation file closed. 2025-09-02 15:32:47) Info: Using 32 processor(s) and 1 CUDA device(s) per process. 2025-09-02 15:32:47) Info: Assigning 1.00 processor(s) and 1.00 CUDA device(s) per replicate. 2025-09-02 15:32:47) Info: Data output thread running. 2025-09-02 15:32:47) Info: Seeding xorwow rng with top word 7 and bottom word 249370023 2025-09-02 15:32:47) Info: Data output thread finished. 2025-09-02 15:32:47) Info: Simulation file closed.
14%|#4 | 7/50 [00:00<00:03, 13.76it/s]
2025-09-02 15:32:47) Info: Using 32 processor(s) and 1 CUDA device(s) per process. 2025-09-02 15:32:47) Info: Assigning 1.00 processor(s) and 1.00 CUDA device(s) per replicate. 2025-09-02 15:32:47) Info: Data output thread running. 2025-09-02 15:32:47) Info: Seeding xorwow rng with top word 8 and bottom word 305826004 2025-09-02 15:32:47) Info: Data output thread finished. 2025-09-02 15:32:47) Info: Simulation file closed. 2025-09-02 15:32:47) Info: Using 32 processor(s) and 1 CUDA device(s) per process. 2025-09-02 15:32:47) Info: Assigning 1.00 processor(s) and 1.00 CUDA device(s) per replicate. 2025-09-02 15:32:47) Info: Data output thread running. 2025-09-02 15:32:47) Info: Seeding xorwow rng with top word 9 and bottom word 362800224 2025-09-02 15:32:47) Info: Data output thread finished. 2025-09-02 15:32:47) Info: Simulation file closed.
18%|#8 | 9/50 [00:00<00:02, 14.93it/s]
2025-09-02 15:32:47) Info: Using 32 processor(s) and 1 CUDA device(s) per process. 2025-09-02 15:32:47) Info: Assigning 1.00 processor(s) and 1.00 CUDA device(s) per replicate. 2025-09-02 15:32:47) Info: Data output thread running. 2025-09-02 15:32:47) Info: Seeding xorwow rng with top word 10 and bottom word 420602715 2025-09-02 15:32:47) Info: Data output thread finished. 2025-09-02 15:32:47) Info: Simulation file closed. 2025-09-02 15:32:47) Info: Using 32 processor(s) and 1 CUDA device(s) per process. 2025-09-02 15:32:47) Info: Assigning 1.00 processor(s) and 1.00 CUDA device(s) per replicate. 2025-09-02 15:32:47) Info: Data output thread running. 2025-09-02 15:32:47) Info: Seeding xorwow rng with top word 11 and bottom word 483728206 2025-09-02 15:32:47) Info: Data output thread finished. 2025-09-02 15:32:47) Info: Simulation file closed.
22%|##2 | 11/50 [00:00<00:02, 15.17it/s]
2025-09-02 15:32:47) Info: Using 32 processor(s) and 1 CUDA device(s) per process. 2025-09-02 15:32:47) Info: Assigning 1.00 processor(s) and 1.00 CUDA device(s) per replicate. 2025-09-02 15:32:47) Info: Data output thread running. 2025-09-02 15:32:47) Info: Seeding xorwow rng with top word 12 and bottom word 549296107 2025-09-02 15:32:47) Info: Data output thread finished. 2025-09-02 15:32:47) Info: Simulation file closed. 2025-09-02 15:32:47) Info: Using 32 processor(s) and 1 CUDA device(s) per process. 2025-09-02 15:32:47) Info: Assigning 1.00 processor(s) and 1.00 CUDA device(s) per replicate. 2025-09-02 15:32:47) Info: Data output thread running. 2025-09-02 15:32:47) Info: Seeding xorwow rng with top word 13 and bottom word 606022897 2025-09-02 15:32:47) Info: Data output thread finished. 2025-09-02 15:32:47) Info: Simulation file closed.
26%|##6 | 13/50 [00:00<00:02, 15.74it/s]
2025-09-02 15:32:47) Info: Using 32 processor(s) and 1 CUDA device(s) per process. 2025-09-02 15:32:47) Info: Assigning 1.00 processor(s) and 1.00 CUDA device(s) per replicate. 2025-09-02 15:32:47) Info: Data output thread running. 2025-09-02 15:32:47) Info: Seeding xorwow rng with top word 14 and bottom word 666698478 2025-09-02 15:32:47) Info: Data output thread finished. 2025-09-02 15:32:47) Info: Simulation file closed. 2025-09-02 15:32:47) Info: Using 32 processor(s) and 1 CUDA device(s) per process. 2025-09-02 15:32:47) Info: Assigning 1.00 processor(s) and 1.00 CUDA device(s) per replicate. 2025-09-02 15:32:47) Info: Data output thread running. 2025-09-02 15:32:47) Info: Seeding xorwow rng with top word 15 and bottom word 723905138 2025-09-02 15:32:47) Info: Data output thread finished. 2025-09-02 15:32:47) Info: Simulation file closed.
30%|### | 15/50 [00:01<00:02, 16.19it/s]
2025-09-02 15:32:47) Info: Using 32 processor(s) and 1 CUDA device(s) per process. 2025-09-02 15:32:47) Info: Assigning 1.00 processor(s) and 1.00 CUDA device(s) per replicate. 2025-09-02 15:32:47) Info: Data output thread running. 2025-09-02 15:32:47) Info: Seeding xorwow rng with top word 16 and bottom word 782404049 2025-09-02 15:32:47) Info: Data output thread finished. 2025-09-02 15:32:47) Info: Simulation file closed. 2025-09-02 15:32:47) Info: Using 32 processor(s) and 1 CUDA device(s) per process. 2025-09-02 15:32:47) Info: Assigning 1.00 processor(s) and 1.00 CUDA device(s) per replicate. 2025-09-02 15:32:47) Info: Data output thread running. 2025-09-02 15:32:47) Info: Seeding xorwow rng with top word 17 and bottom word 840705260 2025-09-02 15:32:47) Info: Data output thread finished. 2025-09-02 15:32:47) Info: Simulation file closed.
34%|###4 | 17/50 [00:01<00:02, 16.47it/s]
2025-09-02 15:32:47) Info: Using 32 processor(s) and 1 CUDA device(s) per process. 2025-09-02 15:32:47) Info: Assigning 1.00 processor(s) and 1.00 CUDA device(s) per replicate. 2025-09-02 15:32:47) Info: Data output thread running. 2025-09-02 15:32:47) Info: Seeding xorwow rng with top word 18 and bottom word 899231860 2025-09-02 15:32:47) Info: Data output thread finished. 2025-09-02 15:32:47) Info: Simulation file closed. 2025-09-02 15:32:47) Info: Using 32 processor(s) and 1 CUDA device(s) per process. 2025-09-02 15:32:47) Info: Assigning 1.00 processor(s) and 1.00 CUDA device(s) per replicate. 2025-09-02 15:32:47) Info: Data output thread running. 2025-09-02 15:32:47) Info: Seeding xorwow rng with top word 19 and bottom word 955879941 2025-09-02 15:32:47) Info: Data output thread finished. 2025-09-02 15:32:47) Info: Simulation file closed.
38%|###8 | 19/50 [00:01<00:01, 16.72it/s]
2025-09-02 15:32:48) Info: Using 32 processor(s) and 1 CUDA device(s) per process. 2025-09-02 15:32:48) Info: Assigning 1.00 processor(s) and 1.00 CUDA device(s) per replicate. 2025-09-02 15:32:48) Info: Data output thread running. 2025-09-02 15:32:48) Info: Seeding xorwow rng with top word 20 and bottom word 14743791 2025-09-02 15:32:48) Info: Data output thread finished. 2025-09-02 15:32:48) Info: Simulation file closed. 2025-09-02 15:32:48) Info: Using 32 processor(s) and 1 CUDA device(s) per process. 2025-09-02 15:32:48) Info: Assigning 1.00 processor(s) and 1.00 CUDA device(s) per replicate. 2025-09-02 15:32:48) Info: Data output thread running. 2025-09-02 15:32:48) Info: Seeding xorwow rng with top word 21 and bottom word 70152842 2025-09-02 15:32:48) Info: Data output thread finished. 2025-09-02 15:32:48) Info: Simulation file closed.
42%|####2 | 21/50 [00:01<00:01, 16.98it/s]
2025-09-02 15:32:48) Info: Using 32 processor(s) and 1 CUDA device(s) per process. 2025-09-02 15:32:48) Info: Assigning 1.00 processor(s) and 1.00 CUDA device(s) per replicate. 2025-09-02 15:32:48) Info: Data output thread running. 2025-09-02 15:32:48) Info: Seeding xorwow rng with top word 22 and bottom word 128413583 2025-09-02 15:32:48) Info: Data output thread finished. 2025-09-02 15:32:48) Info: Simulation file closed. 2025-09-02 15:32:48) Info: Using 32 processor(s) and 1 CUDA device(s) per process. 2025-09-02 15:32:48) Info: Assigning 1.00 processor(s) and 1.00 CUDA device(s) per replicate. 2025-09-02 15:32:48) Info: Data output thread running. 2025-09-02 15:32:48) Info: Seeding xorwow rng with top word 23 and bottom word 185332263 2025-09-02 15:32:48) Info: Data output thread finished. 2025-09-02 15:32:48) Info: Simulation file closed.
46%|####6 | 23/50 [00:01<00:01, 17.06it/s]
2025-09-02 15:32:48) Info: Using 32 processor(s) and 1 CUDA device(s) per process. 2025-09-02 15:32:48) Info: Assigning 1.00 processor(s) and 1.00 CUDA device(s) per replicate. 2025-09-02 15:32:48) Info: Data output thread running. 2025-09-02 15:32:48) Info: Seeding xorwow rng with top word 24 and bottom word 244770434 2025-09-02 15:32:48) Info: Data output thread finished. 2025-09-02 15:32:48) Info: Simulation file closed. 2025-09-02 15:32:48) Info: Using 32 processor(s) and 1 CUDA device(s) per process. 2025-09-02 15:32:48) Info: Assigning 1.00 processor(s) and 1.00 CUDA device(s) per replicate. 2025-09-02 15:32:48) Info: Data output thread running. 2025-09-02 15:32:48) Info: Seeding xorwow rng with top word 25 and bottom word 302138115 2025-09-02 15:32:48) Info: Data output thread finished. 2025-09-02 15:32:48) Info: Simulation file closed.
50%|##### | 25/50 [00:01<00:01, 17.16it/s]
2025-09-02 15:32:48) Info: Using 32 processor(s) and 1 CUDA device(s) per process. 2025-09-02 15:32:48) Info: Assigning 1.00 processor(s) and 1.00 CUDA device(s) per replicate. 2025-09-02 15:32:48) Info: Data output thread running. 2025-09-02 15:32:48) Info: Seeding xorwow rng with top word 26 and bottom word 359411355 2025-09-02 15:32:48) Info: Data output thread finished. 2025-09-02 15:32:48) Info: Simulation file closed. 2025-09-02 15:32:48) Info: Using 32 processor(s) and 1 CUDA device(s) per process. 2025-09-02 15:32:48) Info: Assigning 1.00 processor(s) and 1.00 CUDA device(s) per replicate. 2025-09-02 15:32:48) Info: Data output thread running. 2025-09-02 15:32:48) Info: Seeding xorwow rng with top word 27 and bottom word 415609536 2025-09-02 15:32:48) Info: Data output thread finished. 2025-09-02 15:32:48) Info: Simulation file closed.
54%|#####4 | 27/50 [00:01<00:01, 17.29it/s]
2025-09-02 15:32:48) Info: Using 32 processor(s) and 1 CUDA device(s) per process. 2025-09-02 15:32:48) Info: Assigning 1.00 processor(s) and 1.00 CUDA device(s) per replicate. 2025-09-02 15:32:48) Info: Data output thread running. 2025-09-02 15:32:48) Info: Seeding xorwow rng with top word 28 and bottom word 473219407 2025-09-02 15:32:48) Info: Data output thread finished. 2025-09-02 15:32:48) Info: Simulation file closed. 2025-09-02 15:32:48) Info: Using 32 processor(s) and 1 CUDA device(s) per process. 2025-09-02 15:32:48) Info: Assigning 1.00 processor(s) and 1.00 CUDA device(s) per replicate. 2025-09-02 15:32:48) Info: Data output thread running. 2025-09-02 15:32:48) Info: Seeding xorwow rng with top word 29 and bottom word 531402507 2025-09-02 15:32:48) Info: Data output thread finished. 2025-09-02 15:32:48) Info: Simulation file closed.
58%|#####8 | 29/50 [00:01<00:01, 17.36it/s]
2025-09-02 15:32:48) Info: Using 32 processor(s) and 1 CUDA device(s) per process. 2025-09-02 15:32:48) Info: Assigning 1.00 processor(s) and 1.00 CUDA device(s) per replicate. 2025-09-02 15:32:48) Info: Data output thread running. 2025-09-02 15:32:48) Info: Seeding xorwow rng with top word 30 and bottom word 587196328 2025-09-02 15:32:48) Info: Data output thread finished. 2025-09-02 15:32:48) Info: Simulation file closed. 2025-09-02 15:32:48) Info: Using 32 processor(s) and 1 CUDA device(s) per process. 2025-09-02 15:32:48) Info: Assigning 1.00 processor(s) and 1.00 CUDA device(s) per replicate. 2025-09-02 15:32:48) Info: Data output thread running. 2025-09-02 15:32:48) Info: Seeding xorwow rng with top word 31 and bottom word 643891488 2025-09-02 15:32:48) Info: Data output thread finished. 2025-09-02 15:32:48) Info: Simulation file closed.
62%|######2 | 31/50 [00:02<00:01, 17.51it/s]
2025-09-02 15:32:48) Info: Using 32 processor(s) and 1 CUDA device(s) per process. 2025-09-02 15:32:48) Info: Assigning 1.00 processor(s) and 1.00 CUDA device(s) per replicate. 2025-09-02 15:32:48) Info: Data output thread running. 2025-09-02 15:32:48) Info: Seeding xorwow rng with top word 32 and bottom word 699116909 2025-09-02 15:32:48) Info: Data output thread finished. 2025-09-02 15:32:48) Info: Simulation file closed. 2025-09-02 15:32:48) Info: Using 32 processor(s) and 1 CUDA device(s) per process. 2025-09-02 15:32:48) Info: Assigning 1.00 processor(s) and 1.00 CUDA device(s) per replicate. 2025-09-02 15:32:48) Info: Data output thread running. 2025-09-02 15:32:48) Info: Seeding xorwow rng with top word 33 and bottom word 754390379 2025-09-02 15:32:48) Info: Data output thread finished. 2025-09-02 15:32:48) Info: Simulation file closed.
66%|######6 | 33/50 [00:02<00:00, 17.66it/s]
2025-09-02 15:32:48) Info: Using 32 processor(s) and 1 CUDA device(s) per process. 2025-09-02 15:32:48) Info: Assigning 1.00 processor(s) and 1.00 CUDA device(s) per replicate. 2025-09-02 15:32:48) Info: Data output thread running. 2025-09-02 15:32:48) Info: Seeding xorwow rng with top word 34 and bottom word 810307580 2025-09-02 15:32:48) Info: Data output thread finished. 2025-09-02 15:32:48) Info: Simulation file closed. 2025-09-02 15:32:48) Info: Using 32 processor(s) and 1 CUDA device(s) per process. 2025-09-02 15:32:48) Info: Assigning 1.00 processor(s) and 1.00 CUDA device(s) per replicate. 2025-09-02 15:32:48) Info: Data output thread running. 2025-09-02 15:32:48) Info: Seeding xorwow rng with top word 35 and bottom word 867278820 2025-09-02 15:32:48) Info: Data output thread finished. 2025-09-02 15:32:48) Info: Simulation file closed.
70%|####### | 35/50 [00:02<00:00, 17.67it/s]
2025-09-02 15:32:48) Info: Using 32 processor(s) and 1 CUDA device(s) per process. 2025-09-02 15:32:48) Info: Assigning 1.00 processor(s) and 1.00 CUDA device(s) per replicate. 2025-09-02 15:32:48) Info: Data output thread running. 2025-09-02 15:32:48) Info: Seeding xorwow rng with top word 36 and bottom word 923505121 2025-09-02 15:32:48) Info: Data output thread finished. 2025-09-02 15:32:48) Info: Simulation file closed. 2025-09-02 15:32:48) Info: Using 32 processor(s) and 1 CUDA device(s) per process. 2025-09-02 15:32:48) Info: Assigning 1.00 processor(s) and 1.00 CUDA device(s) per replicate. 2025-09-02 15:32:48) Info: Data output thread running. 2025-09-02 15:32:49) Info: Seeding xorwow rng with top word 37 and bottom word 979047652 2025-09-02 15:32:49) Info: Data output thread finished. 2025-09-02 15:32:49) Info: Simulation file closed.
74%|#######4 | 37/50 [00:02<00:00, 17.77it/s]
2025-09-02 15:32:49) Info: Using 32 processor(s) and 1 CUDA device(s) per process. 2025-09-02 15:32:49) Info: Assigning 1.00 processor(s) and 1.00 CUDA device(s) per replicate. 2025-09-02 15:32:49) Info: Data output thread running. 2025-09-02 15:32:49) Info: Seeding xorwow rng with top word 38 and bottom word 34237383 2025-09-02 15:32:49) Info: Data output thread finished. 2025-09-02 15:32:49) Info: Simulation file closed. 2025-09-02 15:32:49) Info: Using 32 processor(s) and 1 CUDA device(s) per process. 2025-09-02 15:32:49) Info: Assigning 1.00 processor(s) and 1.00 CUDA device(s) per replicate. 2025-09-02 15:32:49) Info: Data output thread running. 2025-09-02 15:32:49) Info: Seeding xorwow rng with top word 39 and bottom word 90559503 2025-09-02 15:32:49) Info: Data output thread finished. 2025-09-02 15:32:49) Info: Simulation file closed.
78%|#######8 | 39/50 [00:02<00:00, 17.78it/s]
2025-09-02 15:32:49) Info: Using 32 processor(s) and 1 CUDA device(s) per process. 2025-09-02 15:32:49) Info: Assigning 1.00 processor(s) and 1.00 CUDA device(s) per replicate. 2025-09-02 15:32:49) Info: Data output thread running. 2025-09-02 15:32:49) Info: Seeding xorwow rng with top word 40 and bottom word 146483383 2025-09-02 15:32:49) Info: Data output thread finished. 2025-09-02 15:32:49) Info: Simulation file closed. 2025-09-02 15:32:49) Info: Using 32 processor(s) and 1 CUDA device(s) per process. 2025-09-02 15:32:49) Info: Assigning 1.00 processor(s) and 1.00 CUDA device(s) per replicate. 2025-09-02 15:32:49) Info: Data output thread running. 2025-09-02 15:32:49) Info: Seeding xorwow rng with top word 41 and bottom word 202457954 2025-09-02 15:32:49) Info: Data output thread finished. 2025-09-02 15:32:49) Info: Simulation file closed.
82%|########2 | 41/50 [00:02<00:00, 17.84it/s]
2025-09-02 15:32:49) Info: Using 32 processor(s) and 1 CUDA device(s) per process. 2025-09-02 15:32:49) Info: Assigning 1.00 processor(s) and 1.00 CUDA device(s) per replicate. 2025-09-02 15:32:49) Info: Data output thread running. 2025-09-02 15:32:49) Info: Seeding xorwow rng with top word 42 and bottom word 258067935 2025-09-02 15:32:49) Info: Data output thread finished. 2025-09-02 15:32:49) Info: Simulation file closed. 2025-09-02 15:32:49) Info: Using 32 processor(s) and 1 CUDA device(s) per process. 2025-09-02 15:32:49) Info: Assigning 1.00 processor(s) and 1.00 CUDA device(s) per replicate. 2025-09-02 15:32:49) Info: Data output thread running. 2025-09-02 15:32:49) Info: Seeding xorwow rng with top word 43 and bottom word 313278526 2025-09-02 15:32:49) Info: Data output thread finished. 2025-09-02 15:32:49) Info: Simulation file closed.
86%|########6 | 43/50 [00:02<00:00, 17.88it/s]
2025-09-02 15:32:49) Info: Using 32 processor(s) and 1 CUDA device(s) per process. 2025-09-02 15:32:49) Info: Assigning 1.00 processor(s) and 1.00 CUDA device(s) per replicate. 2025-09-02 15:32:49) Info: Data output thread running. 2025-09-02 15:32:49) Info: Seeding xorwow rng with top word 44 and bottom word 369125936 2025-09-02 15:32:49) Info: Data output thread finished. 2025-09-02 15:32:49) Info: Simulation file closed. 2025-09-02 15:32:49) Info: Using 32 processor(s) and 1 CUDA device(s) per process. 2025-09-02 15:32:49) Info: Assigning 1.00 processor(s) and 1.00 CUDA device(s) per replicate. 2025-09-02 15:32:49) Info: Data output thread running. 2025-09-02 15:32:49) Info: Seeding xorwow rng with top word 45 and bottom word 424152646 2025-09-02 15:32:49) Info: Data output thread finished. 2025-09-02 15:32:49) Info: Simulation file closed.
90%|######### | 45/50 [00:02<00:00, 17.88it/s]
2025-09-02 15:32:49) Info: Using 32 processor(s) and 1 CUDA device(s) per process. 2025-09-02 15:32:49) Info: Assigning 1.00 processor(s) and 1.00 CUDA device(s) per replicate. 2025-09-02 15:32:49) Info: Data output thread running. 2025-09-02 15:32:49) Info: Seeding xorwow rng with top word 46 and bottom word 480869267 2025-09-02 15:32:49) Info: Data output thread finished. 2025-09-02 15:32:49) Info: Simulation file closed. 2025-09-02 15:32:49) Info: Using 32 processor(s) and 1 CUDA device(s) per process. 2025-09-02 15:32:49) Info: Assigning 1.00 processor(s) and 1.00 CUDA device(s) per replicate. 2025-09-02 15:32:49) Info: Data output thread running. 2025-09-02 15:32:49) Info: Seeding xorwow rng with top word 47 and bottom word 537570468 2025-09-02 15:32:49) Info: Data output thread finished. 2025-09-02 15:32:49) Info: Simulation file closed.
94%|#########3| 47/50 [00:02<00:00, 17.36it/s]
2025-09-02 15:32:49) Info: Using 32 processor(s) and 1 CUDA device(s) per process. 2025-09-02 15:32:49) Info: Assigning 1.00 processor(s) and 1.00 CUDA device(s) per replicate. 2025-09-02 15:32:49) Info: Data output thread running. 2025-09-02 15:32:49) Info: Seeding xorwow rng with top word 48 and bottom word 604008798 2025-09-02 15:32:49) Info: Data output thread finished. 2025-09-02 15:32:49) Info: Simulation file closed. 2025-09-02 15:32:49) Info: Using 32 processor(s) and 1 CUDA device(s) per process. 2025-09-02 15:32:49) Info: Assigning 1.00 processor(s) and 1.00 CUDA device(s) per replicate. 2025-09-02 15:32:49) Info: Data output thread running. 2025-09-02 15:32:49) Info: Seeding xorwow rng with top word 49 and bottom word 659950359 2025-09-02 15:32:49) Info: Data output thread finished. 2025-09-02 15:32:49) Info: Simulation file closed.
98%|#########8| 49/50 [00:03<00:00, 17.44it/s]
2025-09-02 15:32:49) Info: Using 32 processor(s) and 1 CUDA device(s) per process. 2025-09-02 15:32:49) Info: Assigning 1.00 processor(s) and 1.00 CUDA device(s) per replicate. 2025-09-02 15:32:49) Info: Data output thread running. 2025-09-02 15:32:49) Info: Seeding xorwow rng with top word 50 and bottom word 717744050 2025-09-02 15:32:49) Info: Data output thread finished. 2025-09-02 15:32:49) Info: Simulation file closed.
100%|##########| 50/50 [00:03<00:00, 16.18it/s]
In [10]:
plotAvgVarFromFile(outputFile, ['P1', 'P2'], 'LotkaVolterraDynamics.png')
<Figure size 640x480 with 0 Axes>
In [11]:
plotTraceFromFile(outputFile, ['P1', 'P2'], 1, 'LV.1.png')
<Figure size 640x480 with 0 Axes>
In [12]:
plotTraceFromFile(outputFile, ['P1', 'P2'], 2, 'LV.2.png')
<Figure size 640x480 with 0 Axes>