Skip to content

lalpulsar_WeaveSetup fails to construct the setup file for long observation time

Hi,

I was trying to construct the Weave setup file using the command line:

lalpulsar_WeaveSetup --output-file='x.fts' --detectors='H1,L1' --segment-list='o4_5days_segments.txt' --spindowns=2(o4_5days_segments.txt)

However, it failed to compute the reduced sky metric, with the error message:

XLAL Error - SM_ComputeReducedSuperskyMetric (/home/conda/feedstock_root/build_artifacts/lalpulsar-split_1734706051942/work/lib/SuperskyMetrics.c:577): Reduced supersky metric is not positive definite (s=2, det_s=-3.308e+04)
XLAL Error - SM_ComputeReducedSuperskyMetric (/home/conda/feedstock_root/build_artifacts/lalpulsar-split_1734706051942/work/lib/SuperskyMetrics.c:577): Generic failure
XLAL Error - XLALComputeSuperskyMetrics (/home/conda/feedstock_root/build_artifacts/lalpulsar-split_1734706051942/work/lib/SuperskyMetrics.c:675): Check failed: SM_ComputeReducedSuperskyMetric( &metrics->coh_rssky_metric[n], &metrics->coh_rssky_transf[n], spindowns, ussky_metric_seg, &ucoords, orbital_metric_seg, &ocoords, ref_time, start_time_seg, end_time_seg ) == XLAL_SUCCESS
XLAL Error - XLALComputeSuperskyMetrics (/home/conda/feedstock_root/build_artifacts/lalpulsar-split_1734706051942/work/lib/SuperskyMetrics.c:675): Internal function call failed: Generic failure
XLAL Error - main (/home/conda/feedstock_root/build_artifacts/lalpulsar-split_1734706051942/work/bin/Weave/WeaveSetup.c:290): Check failed: setup.metrics != ((void *)0)
XLAL Error - main (/home/conda/feedstock_root/build_artifacts/lalpulsar-split_1734706051942/work/bin/Weave/WeaveSetup.c:290): Internal function call failed: Generic failure

I also tried running the command without a segment file:

lalpulsar_WeaveSetup --output-file='x.fts' --detectors='H1,L1' --first-segment=1368970000/432000 --segment-count=68 --spindowns=2

It shows the same error message. The failure occurs when the number of segments is >= 68 (total observation time >= 335 days). As the total observation time increases, I have to either increase the coherence time or lower the spindown order. With the O4ab data, where total Tobs ~ 630 days, I need to either set the spindown order = 1 for Tcoh = 5 days or use Tcoh = 20 days for a spindown order = 2.

I tried using two versions of lalpulsar_WeaveSetup

LAL: 7.6.1 (CLEAN 31af23159ed7c6557180f58ad3f39a06e5a08731)
LALFrame: 3.0.6 (CLEAN 00747e08e6fa51a1631bd40735493db1ae0308be)
LALSimulation: 6.1.0 (CLEAN 8041734408377ca999821f7e372e2a02e9226e6b)
LALInference: 4.1.8 (CLEAN 6984b27841b0702df0a19a5843929853c0ab801c)
LALPulsar: 7.1.0 (CLEAN 2b92d7cf3b087b3572d6bd4b419e99883378df93)
LAL: 7.4.1 (CLEAN 9db6ea3931cdba13c059efff823819485a11e19a)
LALFrame: 3.0.3 (CLEAN a1f0b44a4db61b6701354f7fb25d599762b038c5)
LALSimulation: 5.3.1 (CLEAN 7641025aeea9828357c9454ee39030c519af895b)
LALInference: 4.1.5 (CLEAN 83dc49a5509b8ffb4fb6884c027093db44c8bcfa)
LALPulsar: 6.0.6 (CLEAN e0273a6d1c33a0c2414faf05b63892f3e04995ed)

Is this a bug or are there any suggestions for how I can construct the setup file using a shorter coherence time (~5 days) with spindown order = 2?