/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits PyFITSDeprecationWarning) # noqa Likelihood Analysis Tool Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov) Importing modules... This is make3FGLxml version 01r0. The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher. This is make4FGLDR3xml version 01r09. The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations. WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41). /sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead. warnings.warn(message, mplDeprecation, stacklevel=1) WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41). number of points = 17530 number of fields = 31 RA_SUN column already exists. File will not be modified. Done. Performing analysis on: 4FGL_J2040.5-1705_weekly_bin933 RA = 310.136, Dec = -17.0901 tmin = 803260801, tmax = 803865601 emin = 100.0, emax = 100000.0 irfs = P8R3_SOURCE_V2 ROI = 12 zmax = 90 Fitting strategies: Fix sources to their catalog values = True Leave variable source normalizations free = True Perform pre-fit where ALL sources are frozen to catalog values = False Perform secondary fit with a free spectral index = True Remove all catalog sources = False Remove weak (TS < 2) catalog sources = False Freeze Galactic component = False Likelihood fit parameters: Statistic: UNBINNED Optimizer: MINUIT Catalog: 4FGL Repository job = True LAT data source: Data catalog Updating database... UPDATE lightcurve_data_v2 SET job_id='31242993', job_status='RUN', time_executed='2026-07-10 12:07:27.420881', time_epoch_executed='1783710447.42' WHERE source_name='4FGL J2040.5-1705' and cadence='weekly' and bin_id='933' Database successfully updated. Done. Creating custom output directory: /lscratch/kocevski/31242993 Creating custom pfile directory: /lscratch/kocevski/31242993/pfiles/ Retrieving the FT1 file... Issuing command: datacat find --group FT1 --filter 'nMetStop>=803260801.0 && nMetStart<803865601.0' /Data/Flight/Reprocess/P305 Issuing command: datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=803260801.0 && nMetStart<803865601.0' /Data/Flight/Level1/LPA Retrieving 108 files... Done. Merging files... Checksum keywords updated successfully. Merged file saved to: /lscratch/kocevski/31242993/ft1_4FGL_J2040.5-1705_weekly_bin933.fits Retrieving the FT1 file... Issuing command: datacat find --group FT2 --filter 'nMetStop>=803260801.0 && nMetStart<803865601.0' /Data/Flight/Level1/LPA Retrieving 108 files... Done. Merging files... Merged file saved to: /lscratch/kocevski/31242993/ft2_4FGL_J2040.5-1705_weekly_bin933.fits Selecting the photons: time -p gtselect infile=/lscratch/kocevski/31242993/ft1_4FGL_J2040.5-1705_weekly_bin933.fits outfile=/lscratch/kocevski/31242993/ft1_filteredMKT_4FGL_J2040.5-1705_weekly_bin933.fits ra=310.136 dec=-17.0901 rad=12.0 tmin=803260801.0 tmax=803865601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql" WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41). Done. real 3.89 user 3.16 sys 0.31 Adding sun position to ft2 file: /sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/31242993/ft2_4FGL_J2040.5-1705_weekly_bin933.fits Selecting the good time intervals: time -p gtmktime scfile=/lscratch/kocevski/31242993/ft2_4FGL_J2040.5-1705_weekly_bin933.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/lscratch/kocevski/31242993/ft1_filteredMKT_4FGL_J2040.5-1705_weekly_bin933.fits evtable="EVENTS" outfile="/lscratch/kocevski/31242993/ft1_filtered_4FGL_J2040.5-1705_weekly_bin933.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql" WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41). This is gtmktime version HEAD Applying GTI filter: IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2)) real 0.61 user 0.21 sys 0.13 Number of photons that the gtmktime cut: 729 Generating the livetime cube: time -p gtltcube evfile="/lscratch/kocevski/31242993/ft1_filtered_4FGL_J2040.5-1705_weekly_bin933.fits" evtable="EVENTS" scfile=/lscratch/kocevski/31242993/ft2_4FGL_J2040.5-1705_weekly_bin933.fits sctable="SC_DATA" outfile=/lscratch/kocevski/31242993/ltcube_803260801_803865601_4FGL_J2040.5-1705_weekly_bin933.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql" WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41). Working on file /lscratch/kocevski/31242993/ft2_4FGL_J2040.5-1705_weekly_bin933.fits .....................! real 18.46 user 17.86 sys 0.21 Generating the exposure map: time -p gtexpmap evfile=/lscratch/kocevski/31242993/ft1_filtered_4FGL_J2040.5-1705_weekly_bin933.fits evtable="EVENTS" scfile=/lscratch/kocevski/31242993/ft2_4FGL_J2040.5-1705_weekly_bin933.fits sctable="SC_DATA" expcube=/lscratch/kocevski/31242993/ltcube_803260801_803865601_4FGL_J2040.5-1705_weekly_bin933.fits outfile=/lscratch/kocevski/31242993/expmap_803260801_803865601_4FGL_J2040.5-1705_weekly_bin933.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql" WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41). The exposure maps generated by this tool are meant to be used for *unbinned* likelihood analysis only. Do not use them for binned analyses. Computing the ExposureMap using /lscratch/kocevski/31242993/ltcube_803260801_803865601_4FGL_J2040.5-1705_weekly_bin933.fits .....................! real 65.94 user 61.55 sys 3.76 Generating the xml model: radLim = 0.001 maxRad = 12 normsOnly = True freeVariableSources = True Fixing all sources to their catalog values, except variable sources Creating file and adding sources from 4FGL Added 181 point sources and 0 extended sources Setting source of interest to: 4FGL J2040.5-1705 @ 310.136 -17.0901 Creating the counts map: time -p gtbin evfile=/lscratch/kocevski/31242993/ft1_filtered_4FGL_J2040.5-1705_weekly_bin933.fits scfile=/lscratch/kocevski/31242993/ft2_4FGL_J2040.5-1705_weekly_bin933.fits outfile=/lscratch/kocevski/31242993/cmap_803260801_803865601_4FGL_J2040.5-1705_weekly_bin933.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=310.136 yref=-17.0901 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql" WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41). This is gtbin version HEAD real 0.68 user 0.22 sys 0.13 Creating the high resolution counts map: time -p gtbin evfile=/lscratch/kocevski/31242993/ft1_filtered_4FGL_J2040.5-1705_weekly_bin933.fits scfile=/lscratch/kocevski/31242993/ft2_4FGL_J2040.5-1705_weekly_bin933.fits outfile=/lscratch/kocevski/31242993/cmap_HighResolution_803260801_803865601_4FGL_J2040.5-1705_weekly_bin933.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=310.136 yref=-17.0901 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql" WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41). This is gtbin version HEAD real 0.63 user 0.22 sys 0.14 Computing the diffuse response: time -p gtdiffrsp evfile=/lscratch/kocevski/31242993/ft1_filtered_4FGL_J2040.5-1705_weekly_bin933.fits evtable="EVENTS" scfile=/lscratch/kocevski/31242993/ft2_4FGL_J2040.5-1705_weekly_bin933.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/31242993/Model_4FGL_J2040.5-1705_weekly_bin933.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql" WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41). adding source EG_v02 adding source GAL_V02 Working on... /lscratch/kocevski/31242993/ft1_filtered_4FGL_J2040.5-1705_weekly_bin933.fits.....................! real 29.30 user 27.50 sys 1.33 Creating the likelihood object... obs = UnbinnedObs('/lscratch/kocevski/31242993/ft1_filtered_4FGL_J2040.5-1705_weekly_bin933.fits', '/lscratch/kocevski/31242993/ft2_4FGL_J2040.5-1705_weekly_bin933.fits', expMap='/lscratch/kocevski/31242993/expmap_803260801_803865601_4FGL_J2040.5-1705_weekly_bin933.fits', expCube='/lscratch/kocevski/31242993/ltcube_803260801_803865601_4FGL_J2040.5-1705_weekly_bin933.fits', irfs='P8R3_SOURCE_V2') like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31242993/Model_4FGL_J2040.5-1705_weekly_bin933.xml', optimizer='MINUIT') Using source of interest name: '4FGL J2040.5-1705' 4FGL J2040.5-1705 Spectrum: PowerLaw 323 Prefactor: 1.223e+00 0.000e+00 0.000e+00 1.000e+06 ( 1.000e-12) 324 Index: 2.541e+00 0.000e+00 0.000e+00 1.000e+01 (-1.000e+00) fixed 325 Scale: 7.724e+02 0.000e+00 3.000e+01 5.000e+05 ( 1.000e+00) fixed Likelihood Fit Parameters: Event file(s): /lscratch/kocevski/31242993/ft1_filtered_4FGL_J2040.5-1705_weekly_bin933.fits Spacecraft file(s): /lscratch/kocevski/31242993/ft2_4FGL_J2040.5-1705_weekly_bin933.fits Exposure map: /lscratch/kocevski/31242993/expmap_803260801_803865601_4FGL_J2040.5-1705_weekly_bin933.fits Exposure cube: /lscratch/kocevski/31242993/ltcube_803260801_803865601_4FGL_J2040.5-1705_weekly_bin933.fits IRFs: P8R3_SOURCE_V2 Source model file: /lscratch/kocevski/31242993/Model_4FGL_J2040.5-1705_weekly_bin933.xml Optimizer: MINUIT Statistic: UNBINNED Performing an iterative likelihood fit... Fit tolerance = 1 Performing likelihood fit... Done. MINUIT Return Code (Fixed Index): 0 logL (Fixed Index) = 8238.85154433 Fit tolerance = 0.0001 Performing likelihood fit... Done. MINUIT Return Code (Fixed Index): 0 logL (Fixed Index) = 8238.80920594 Fit tolerance = 1e-08 Performing likelihood fit... ********** ** 14 **SET NOWARN ********** PARAMETER DEFINITIONS: NO. NAME VALUE STEP SIZE LIMITS 1 'Prefactor ' .57984E-01 1.0000 .0000 .10000E+07 2 'Prefactor ' .12198E-02 1.0000 .0000 .10000E+07 3 'norm ' 15.835 1.0000 .0000 .10000E+07 4 'norm ' 11.297 1.0000 .0000 .10000E+07 5 'Prefactor ' .69835 1.0000 .0000 .10000E+07 6 'norm ' .51333E-01 1.0000 .0000 .10000E+07 7 'norm ' .12712E-04 1.0000 .0000 .10000E+07 8 'norm ' 2.5365 1.0000 .0000 .10000E+07 9 'Prefactor ' .19802E-02 1.0000 .0000 .10000E+07 10 'Prefactor ' .45534E-03 1.0000 .0000 .10000E+07 11 'norm ' 3.1717 1.0000 .0000 .10000E+07 12 'Prefactor ' 1.0602 1.0000 .0000 .10000E+07 13 'norm ' 24.574 1.0000 .0000 .10000E+07 14 'Prefactor ' .39975E-03 1.0000 .0000 .10000E+07 15 'Prefactor ' .0000 1.0000 .0000 .10000E+07 16 'Prefactor ' .32436E-03 1.0000 .0000 .10000E+07 17 'Normalizat' 1.2604 1.0000 .10000E-01 10.000 18 'Prefactor ' .81628 1.0000 .0000 10.000 ********** ** 15 **SET ERR .5000 ********** ********** ** 16 **SET GRAD 1.000 ********** ********** ** 17 **MINIMIZE .5990E+05 .2000E-04 ********** MIGRAD MINIMIZATION HAS CONVERGED. MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX. MIGRAD MINIMIZATION HAS CONVERGED. FCN= 8238.806 FROM MIGRAD STATUS=CONVERGED 424 CALLS 1333 TOTAL EDM= .69E-09 STRATEGY=1 ERROR MATRIX UNCERTAINTY= 1.2% EXT PARAMETER STEP FIRST NO. NAME VALUE ERROR SIZE DERIVATIVE 1 Prefactor .27756E-09 134.61 .50963E-07** at limit ** 2 Prefactor .0000 2.4909 -.12520E-07** at limit ** 3 norm 15.972 19.340 -.32436E-06 -.26897E-02 4 norm 11.231 16.108 .10661E-06 .14071E-02 5 Prefactor .55511E-10 158.76 .15944E-07** at limit ** 6 norm .10986E-06 49.410 .99763E-06** at limit ** 7 norm .0000 22.042 -.15407E-07** at limit ** 8 norm 2.5380 1.6746 .18199E-07 .29657E-02 9 Prefactor .0000 5.4330 .74185E-08** at limit ** 10 Prefactor .0000 3.2909 -.24353E-08** at limit ** 11 norm 3.1717 2.4433 -.18419E-07 -.79009E-02 12 Prefactor 1.0530 5.3235 .16653E-06 .63656E-02 13 norm 24.533 19.626 .18109E-07 .39528E-03 14 Prefactor .0000 2.0665 -.16148E-08** at limit ** 15 Prefactor .0000 4.8601 .50058E-08** at limit ** 16 Prefactor .0000 3.1509 -.14729E-08** at limit ** 17 Normalizat 1.2603 .20364 .72534E-07 .21042E-03 18 Prefactor .81647 .92932E-01 .22151E-06 .57574E-04 ERR DEF= .500 Final values: Prefactor = 2.77556e-10 Prefactor = 0 norm = 15.9718 norm = 11.2308 Prefactor = 5.55112e-11 norm = 1.09857e-07 norm = 0 norm = 2.53802 Prefactor = 0 Prefactor = 0 norm = 3.17173 Prefactor = 1.05296 norm = 24.5334 Prefactor = 0 Prefactor = 0 Prefactor = 0 Normalizat = 1.2603 Prefactor = 0.816475 ********** ** 18 **HESSE ********** FCN= 8238.806 FROM HESSE STATUS=OK 242 CALLS 1575 TOTAL EDM= .30E-08 STRATEGY= 1 ERROR MATRIX ACCURATE EXT PARAMETER INTERNAL INTERNAL NO. NAME VALUE ERROR STEP SIZE VALUE 1 Prefactor .27756E-09 137.24 .30471E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 2 Prefactor .0000 2.5074 .84235E-04 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 3 norm 15.972 19.666 .10057E-04 -1.5628 4 norm 11.231 16.222 .11913E-04 -1.5641 5 Prefactor .55511E-10 158.81 .12168E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 6 norm .10986E-06 68.252 .61505E-03 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 7 norm .0000 22.051 .84235E-04 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 8 norm 2.5380 1.6330 .89515E-05 -1.5676 9 Prefactor .0000 5.4339 .84235E-04 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 10 Prefactor .0000 3.2967 .84235E-04 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 11 norm 3.1717 2.4730 .61290E-04 -1.5672 12 Prefactor 1.0530 6.6027 .41713E-04 -1.5687 13 norm 24.533 19.638 .80709E-05 -1.5609 14 Prefactor .0000 2.0704 .84235E-04 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 15 Prefactor .0000 4.8620 .84235E-04 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 16 Prefactor .0000 3.1529 .84235E-04 -1.5708 WARNING - - ABOVE PARAMETER IS AT LIMIT. 17 Normalizat 1.2603 .24288 .31758E-03 -.84759 18 Prefactor .81647 .11089 .17355E-03 -.99124 ERR DEF= .500 Minuit fit quality: 3 estimated distance: 2.95382e-09 Minuit parameter uncertainties: 1 0.000404609 2 1.32824e-05 3 19.6661 4 16.2224 5 0.000141904 6 0.00547672 7 3.00802e-05 8 1.633 9 3.0312e-07 10 2.19074e-06 11 2.47298 12 5.27348 13 19.638 14 1.98409e-06 15 5.46852e-07 16 1.9381e-06 17 0.243097 18 0.110923 Done. MINUIT Return Code (Fixed Index): 0 logL (Fixed Index) = 8238.80572672 Extracting fit parameters... 4FGL J2040.5-1705 Spectrum: PowerLaw 323 Prefactor: 1.053e+00 5.273e+00 0.000e+00 1.000e+06 ( 1.000e-12) 324 Index: 2.541e+00 0.000e+00 0.000e+00 1.000e+01 (-1.000e+00) fixed 325 Scale: 7.724e+02 0.000e+00 3.000e+01 5.000e+05 ( 1.000e+00) fixed GAL_V02 Spectrum: PowerLaw 596 Prefactor: 8.165e-01 1.109e-01 0.000e+00 1.000e+01 ( 1.000e+00) 597 Index: 0.000e+00 0.000e+00 -1.000e+00 1.000e+00 ( 1.000e+00) fixed 598 Scale: 1.000e+02 0.000e+00 5.000e+01 2.000e+02 ( 1.000e+00) fixed EG_v02 Spectrum: FileFunction 595 Normalization: 1.260e+00 2.431e-01 1.000e-02 1.000e+01 ( 1.000e+00) TS (Fixed Index): 0.04 Ra Dec: 310.136 -17.090 Photon Flux Upper Limit: 1.45556380867e-07 ph cm-2 s-1 Energy Flux Upper Limit: 0.011350411719 MeV cm-2 s-1 Saving results to: /lscratch/kocevski/31242993/likelihoodResults_803260801_803865601_4FGL_J2040.5-1705_weekly_bin933.txt Performing a free index iterative likelihood fit... Freezing all point sources, except source of interest... Done. Freeing candidate source... Done. Fit tolerance = 1 Performing likelihood fit... Done. MINUIT Return Code (Free Index): 102 logL (Free Index) = 8237.5986311 delta logL = 1.2070956126 Fit tolerance = 0.0001 Performing likelihood fit... Done. MINUIT Return Code (Free Index): 0 logL (Free Index) = 8237.27917254 delta logL = 1.5265541805 Fit tolerance = 1e-08 Performing likelihood fit... ********** ** 14 **SET NOWARN ********** PARAMETER DEFINITIONS: NO. NAME VALUE STEP SIZE LIMITS 1 'Prefactor ' .15833E-04 1.0000 .0000 .10000E+07 2 'Index ' 9.9999 1.0000 .0000 10.000 3 'Normalizat' 1.1272 1.0000 .10000E-01 10.000 4 'Prefactor ' .85705 1.0000 .0000 10.000 ********** ** 15 **SET ERR .5000 ********** ********** ** 16 **SET GRAD 1.000 ********** ********** ** 17 **MINIMIZE .5990E+05 .2000E-04 ********** MIGRAD MINIMIZATION HAS CONVERGED. MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX. FCN= 8238.826 FROM MIGRAD STATUS=CONVERGED 144 CALLS 608 TOTAL EDM= .30E-11 STRATEGY= 1 ERR MATRIX NOT POS-DEF EXT PARAMETER APPROXIMATE STEP FIRST NO. NAME VALUE ERROR SIZE DERIVATIVE 1 Prefactor .55511E-10 .46570E-01 .42118E-03** at limit ** 2 Index 1.5742 6.1879 .50000 -.13642E-09 3 Normalizat 1.2714 .91361E-03 .71510E-01 .39747E-03 4 Prefactor .81518 .41358E-03 .44455E-01 -.59308E-03 ERR DEF= .500 Final values: Prefactor = 5.55112e-11 Index = 1.57416 Normalizat = 1.27142 Prefactor = 0.815178 ********** ** 18 **HESSE ********** FCN= 8238.826 FROM HESSE STATUS=NOT POSDEF 29 CALLS 637 TOTAL EDM= .15E-10 STRATEGY= 1 ERR MATRIX NOT POS-DEF EXT PARAMETER APPROXIMATE INTERNAL INTERNAL NO. NAME VALUE ERROR STEP SIZE VALUE 1 Prefactor .55511E-10 .22819 .84235E-04 -95.819 WARNING - - ABOVE PARAMETER IS AT LIMIT. 2 Index 1.5742 6.8731 .50000 -3563.3 3 Normalizat 1.2714 .20190E-02 .31639E-03 -63.676 4 Prefactor .81518 .91476E-03 .17369E-03 -96.398 ERR DEF= .500 Minuit fit quality: 2 estimated distance: 1.47588e-11 Minuit parameter uncertainties: 1 8.70196e-06 2 27971.9 3 0.00201899 4 0.000914764 shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory Done. MINUIT Return Code (Free Index): 102 logL (Free Index) = 8238.82648986 delta logL = -0.0207631405228 Extracting fit parameters... 4FGL J2040.5-1705 Spectrum: PowerLaw 323 Prefactor: 5.551e-11 8.702e-06 0.000e+00 1.000e+06 ( 1.000e-12) 324 Index: 1.574e+00 2.797e+04 0.000e+00 1.000e+01 (-1.000e+00) 325 Scale: 7.724e+02 0.000e+00 3.000e+01 5.000e+05 ( 1.000e+00) fixed GAL_V02 Spectrum: PowerLaw 596 Prefactor: 8.152e-01 9.148e-04 0.000e+00 1.000e+01 ( 1.000e+00) 597 Index: 0.000e+00 0.000e+00 -1.000e+00 1.000e+00 ( 1.000e+00) fixed 598 Scale: 1.000e+02 0.000e+00 5.000e+01 2.000e+02 ( 1.000e+00) fixed EG_v02 Spectrum: FileFunction 595 Normalization: 1.271e+00 2.019e-03 1.000e-02 1.000e+01 ( 1.000e+00) TS (Free Index): 0.04 Ra Dec: 310.136 -17.090 Creating a high resolution counts map... INFO: Auto-setting vmin to -1.000e-01 [aplpy.core] INFO: Auto-setting vmax to 1.110e+00 [aplpy.core] Saving /lscratch/kocevski/31242993/cmap_HighResolution_803260801_803865601_4FGL_J2040.5-1705_weekly_bin933.png Cleaning up... ** Nuclear option initiated! ** Updating database... UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.14e-02', job_status='DONE', photon_flux_upper_limit='1.46e-07', time_completed='2026-07-10 12:14:49.898435', job_id='31242993', GAL2='0.82', fit_tolerance='1e-08', EG2='1.27', EG='1.26', time_epoch_completed='1783710889.9', return_code2='102', ts='0.04', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='-2.08e-02', ts2='-0.00', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='933' AND source_name='4FGL J2040.5-1705' AND cadence='weekly'; Database successfully updated. Analysis Complete. Fri Jul 10 12:14:50 PDT 2026