-
Notifications
You must be signed in to change notification settings - Fork 36
Open
Labels
Description
This is a one-off test failure that puzzles me. Here's the output:
Test project D:/a/SLiM/SLiM/Debug
Start 1: testSLiM
1/3 Test #1: testSLiM .........................***Failed 45.15 sec
_RunMultitraitTests() done
Error:tsk_treeseq_init: A mutation's parent is not consistent with the topology of the tree. Use compute_mutation_parents to set the parents correctly.(TSK_ERR_BAD_MUTATION_PARENT)
[2111] initialize() { initializeTreeSeq(recordMutations=T, simplificationRatio=0.0, checkCoalescence=T, runCrosschecks=T); } initialize() { initializeMutationRate(1e-7); initializeMutationType('m1', 0.5, 'f', 0.0); initializeGenomicElementType('g1', m1, 1.0); initializeGenomicElement(g1, 0, 99999); initializeRecombinationRate(1e-8); } 1 early() { sim.addSubpop('p1', 10); } 100 early() { stop(); } : FAILURE : stop() not reached
raise message: tsk_treeseq_init: A mutation's parent is not consistent with the topology of the tree. Use compute_mutation_parents to set the parents correctly.(TSK_ERR_BAD_MUTATION_PARENT)
The script in question, prettyprinted:
initialize() {
initializeTreeSeq(recordMutations=T, simplificationRatio=0.0, checkCoalescence=T, runCrosschecks=T);
}
initialize() {
initializeMutationRate(1e-7);
initializeMutationType('m1', 0.5, 'f', 0.0);
initializeGenomicElementType('g1', m1, 1.0);
initializeGenomicElement(g1, 0, 99999);
initializeRecombinationRate(1e-8);
}
1 early() {
sim.addSubpop('p1', 10);
}
100 early() {
stop();
}
I re-ran the test and it succeeded (i.e., stop() was reached without an error). This was on Windows, mingw64, x86_64, CLI not SLiMgui.
This was in the multitrait branch. I can think of no reason why this test would fail. So maybe SLiM has some issue with compute_mutation_parents() in rare cases? Might be worth pounding on this a few million times to see if I can catch it in the debugger, get a seed, etc. Anyhow, I wanted a record of it in case it recurs.
petrelharp