/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
number of points = 17392
number of fields = 31
RA_SUN column already exists. File will not be modified.

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).

Done.


Performing analysis on: 4FGL_J2009.4-4849_weekly_bin936
RA = 302.359, Dec = -48.8248
tmin = 805075201, tmax = 805680001
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='31684768', job_status='RUN', time_executed='2026-07-14 17:23:11.352256', time_epoch_executed='1784074991.35' WHERE source_name='4FGL J2009.4-4849' and cadence='weekly' and bin_id='936'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/31684768

Creating custom pfile directory:
/lscratch/kocevski/31684768/pfiles/

Retrieving the FT1 file...

Issuing command:
datacat find --group FT1 --filter 'nMetStop>=805075201.0 && nMetStart<805680001.0' /Data/Flight/Reprocess/P305

Issuing command:
datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=805075201.0 && nMetStart<805680001.0' /Data/Flight/Level1/LPA

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/31684768/ft1_4FGL_J2009.4-4849_weekly_bin936.fits


Retrieving the FT1 file...

Issuing command:
datacat find --group FT2 --filter 'nMetStop>=805075201.0 && nMetStart<805680001.0' /Data/Flight/Level1/LPA

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/31684768/ft2_4FGL_J2009.4-4849_weekly_bin936.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/31684768/ft1_4FGL_J2009.4-4849_weekly_bin936.fits outfile=/lscratch/kocevski/31684768/ft1_filteredMKT_4FGL_J2009.4-4849_weekly_bin936.fits ra=302.359 dec=-48.8248 rad=12.0 tmin=805075201.0 tmax=805680001.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 5.54
user 4.56
sys 0.23

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/31684768/ft2_4FGL_J2009.4-4849_weekly_bin936.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/31684768/ft2_4FGL_J2009.4-4849_weekly_bin936.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/31684768/ft1_filteredMKT_4FGL_J2009.4-4849_weekly_bin936.fits evtable="EVENTS" outfile="/lscratch/kocevski/31684768/ft1_filtered_4FGL_J2009.4-4849_weekly_bin936.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.93
user 0.24
sys 0.12

Number of photons that the gtmktime cut: 1497

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/31684768/ft1_filtered_4FGL_J2009.4-4849_weekly_bin936.fits" evtable="EVENTS" scfile=/lscratch/kocevski/31684768/ft2_4FGL_J2009.4-4849_weekly_bin936.fits sctable="SC_DAT/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).

A" outfile=/lscratch/kocevski/31684768/ltcube_805075201_805680001_4FGL_J2009.4-4849_weekly_bin936.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/31684768/ft2_4FGL_J2009.4-4849_weekly_bin936.fits
.....................!
real 18.73
user 17.79
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/31684768/ft1_filtered_4FGL_J2009.4-4849_weekly_bin936.fits evtable="EVENTS" scfile=/lscratch/kocevski/31684768/ft2_4FGL_J2009.4-4849_weekly_bin936.fits sctable="SC_DATA" expcube=/lscratch/kocevski/31684768/ltcube_805075201_805680001_4FGL_J2009.4-4849_weekly_bin936.fits outfile=/lscratch/kocevski/31684768/expmap_805075201_805680001_4FGL_J2009.4-4849_weekly_bin936.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/31684768/ltcube_805075201_805680001_4FGL_J2009.4-4849_weekly_bin936.fits
.....................!
real 70.85
user 65.65
sys 4.19

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 184 point sources and 0 extended sources

Setting source of interest to:
4FGL J2009.4-4849 @ 302.359 -48.8248

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/31684768/ft1_filtered_4FGL_J2009.4-4849_weekly_bin936.fits scfile=/lscratch/kocevski/31684768/ft2_4FGL_J2009.4-4849_weekly_bin936.fits outfile=/lscratch/kocevski/31684768/cmap_805075201_805680001_4FGL_J2009.4-4849_weekly_bin936.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=302.359 yref=-48.8248 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.86
user 0.25
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/31684768/ft1_filtered_4FGL_J2009.4-4849_weekly_bin936.fits scfile=/lscratch/kocevski/31684768/ft2_4FGL_J2009.4-4849_weekly_bin936.fits outfile=/lscratch/kocevski/31684768/cmap_HighResolution_805075201_805680001_4FGL_J2009.4-4849_weekly_bin936.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=302.359 yref=-48.8248 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.90
user 0.24
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/31684768/ft1_filtered_4FGL_J2009.4-4849_weekly_bin936.fits evtable="EVENTS" scfile=/lscratch/kocevski/31684768/ft2_4FGL_J2009.4-4849_weekly_bin936.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/31684768/Model_4FGL_J2009.4-4849_weekly_bin936.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/31684768/ft1_filtered_4FGL_J2009.4-4849_weekly_bin936.fits.....................!
real 47.78
user 46.23
sys 0.70

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31684768/ft1_filtered_4FGL_J2009.4-4849_weekly_bin936.fits', '/lscratch/kocevski/31684768/ft2_4FGL_J2009.4-4849_weekly_bin936.fits', expMap='/lscratch/kocevski/31684768/expmap_805075201_805680001_4FGL_J2009.4-4849_weekly_bin936.fits', expCube='/lscratch/kocevski/31684768/ltcube_805075201_805680001_4FGL_J2009.4-4849_weekly_bin936.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31684768/Model_4FGL_J2009.4-4849_weekly_bin936.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2009.4-4849'

4FGL J2009.4-4849
   Spectrum: LogParabola
335         norm:  1.075e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
336        alpha:  1.749e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
337         beta:  4.019e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
338           Eb:  1.571e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/31684768/ft1_filtered_4FGL_J2009.4-4849_weekly_bin936.fits
Spacecraft file(s): /lscratch/kocevski/31684768/ft2_4FGL_J2009.4-4849_weekly_bin936.fits
Exposure map: /lscratch/kocevski/31684768/expmap_805075201_805680001_4FGL_J2009.4-4849_weekly_bin936.fits
Exposure cube: /lscratch/kocevski/31684768/ltcube_805075201_805680001_4FGL_J2009.4-4849_weekly_bin936.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31684768/Model_4FGL_J2009.4-4849_weekly_bin936.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) = 16140.6505589

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 16140.6034565

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .86661       1.0000          .0000       .10000E+07
     2 'Prefactor '    .58122E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    .29527E-04   1.0000          .0000       .10000E+07
     4 'Prefactor '    17.092       1.0000          .0000       .10000E+07
     5 'norm      '    16.626       1.0000          .0000       .10000E+07
     6 'norm      '    1.1614       1.0000          .0000       .10000E+07
     7 'norm      '    5.1814       1.0000          .0000       .10000E+07
     8 'norm      '    19.020       1.0000          .0000       .10000E+07
     9 'norm      '    .99293       1.0000          .0000       .10000E+07
    10 'norm      '    .26090E-07   1.0000          .0000       .10000E+07
    11 'norm      '    10.929       1.0000          .0000       .10000E+07
    12 'Prefactor '    17.396       1.0000          .0000       .10000E+07
    13 'Prefactor '    .17479       1.0000          .0000       .10000E+07
    14 'Prefactor '    1.2004       1.0000          .0000       .10000E+07
    15 'norm      '    .84854       1.0000          .0000       .10000E+07
    16 'Normalizat'    1.2743       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .94588       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   16140.60     FROM MIGRAD    STATUS=CONVERGED    130 CALLS      988 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .86234        1.4736       -.19151E-07    .85443E-03
   2  Prefactor     .10876E-03    222.76       -.64393E-05** at limit **
   3  Prefactor     .67168E-08    5.9103       -.46456E-07** at limit **
   4  Prefactor     17.242        8.3512        .87893E-07    .21653E-02
   5  norm          16.640        2.7540        .37517E-07   -.26411E-02
   6  norm          1.1613        .62971       -.96502E-08    .20555E-02
   7  norm          5.1460        4.6966       -.17005E-07    .27871E-04
   8  norm          18.733        11.921        .16178E-07   -.23679E-01
   9  norm          .99763        1.0195        .30162E-07   -.26165E-02
  10  norm           .0000        .95940        .58920E-07** at limit **
  11  norm          10.755        8.5769        .50714E-07    .59234E-01
  12  Prefactor     17.997        21.764        .11158E-05   -.91250E-01
  13  Prefactor     .17170        2.9086        .35480E-07** at limit **
  14  Prefactor     1.1530        36.436        .74888E-06   -.28078E-02
  15  norm          .84776        1.3123        .99486E-07    .30089E-02
  16  Normalizat    1.2745        .20411       -.61081E-05   -.50685E-04
  17  Prefactor     .94589        .87100E-01    .58030E-06   -.42224E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.862341
  Prefactor  = 0.000108764
  Prefactor  = 6.71685e-09
  Prefactor  = 17.2423
  norm       = 16.6403
  norm       = 1.16132
  norm       = 5.14605
  norm       = 18.7328
  norm       = 0.997628
  norm       = 0
  norm       = 10.755
  Prefactor  = 17.997
  Prefactor  = 0.1717
  Prefactor  = 1.15296
  norm       = 0.847763
  Normalizat = 1.27446
  Prefactor  = 0.945891
 **********
 **   18 **HESSE 
 **********

 FCN=   16140.60     FROM HESSE     STATUS=OK           279 CALLS     1267 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .86234        1.4867        .48096E-03   -1.5689    
   2  Prefactor     .10876E-03    2.6426        .62034E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .67168E-08    5.9950        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     17.242        8.5463        .24199E-03   -1.5625    
   5  norm          16.640        12.383        .24536E-03   -1.5626    
   6  norm          1.1613        .64081        .10684E-02   -1.5686    
   7  norm          5.1460        4.7688        .44140E-03   -1.5663    
   8  norm          18.733        14.830        .22938E-03   -1.5621    
   9  norm          .99763        1.0157        .43515E-03   -1.5688    
  10  norm           .0000        .96378        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          10.755        13.810        .30280E-03   -1.5642    
  12  Prefactor     17.997        37.441        .23986E-03   -1.5623    
  13  Prefactor     .17170        .66885        .55259E-02   -1.5716    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.1530        38.320        .10357E-02   -1.5686    
  15  norm          .84776        1.3139        .49385E-03   -1.5690    
  16  Normalizat    1.2745        .17120        .79651E-01   -.84332    
  17  Prefactor     .94589        .71897E-01    .45587E-01   -.94555    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31408e-06
Minuit parameter uncertainties:
  1  1.48673
  2  0.033907
  3  0.000401829
  4  8.5463
  5  12.3829
  6  0.640812
  7  4.76884
  8  14.8304
  9  1.01569
  10  2.99038e-06
  11  13.8099
  12  37.4413
  13  0.668847
  14  13.2939
  15  1.31391
  16  0.171271
  17  0.0719038
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 16140.6028118

Extracting fit parameters...

4FGL J2009.4-4849
   Spectrum: LogParabola
335         norm:  9.976e-01  1.016e+00  0.000e+00  1.000e+06 ( 1.000e-12)
336        alpha:  1.749e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
337         beta:  4.019e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
338           Eb:  1.571e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
623    Prefactor:  9.459e-01  7.190e-02  0.000e+00  1.000e+01 ( 1.000e+00)
624        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
625        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
622   Normalization:  1.274e+00  1.713e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.85
Ra Dec: 302.359 -48.825
Photon Index (Fixed Index): 1.75 +/- 0.00
Photon Flux (Fixed Index): 1.42e-08 +/- 1.45e-08
Energy Flux (Fixed Index): 1.83e-05 +/- 1.86e-05

TS (Fixed Index): 1.85
Ra Dec: 302.359 -48.825
Photon Flux Upper Limit: 5.04851198971e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.48120356882e-05 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31684768/likelihoodResults_805075201_805680001_4FGL_J2009.4-4849_weekly_bin936.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): 0
logL (Free Index) = 16139.6648632
delta logL = 0.937948614483

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 16139.6522483
delta logL = 0.950563517645

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .69983       1.0000          .0000       .10000E+07
     2 'alpha     '    2.6123       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2376       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95290       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   16139.65     FROM MIGRAD    STATUS=FAILED        93 CALLS      286 TOTAL
                     EDM=   .51E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .69986        .99864        .69554E-05   -.83360E-03
   2  alpha         2.6124        .77546        .14482E-01    .71305E-03
   3  Normalizat    1.2376        .19953        .35696E-03   -.33250E-04
   4  Prefactor     .95290        .85738E-01    .17351E-03    .78627E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   16139.65     FROM SIMPLEX   STATUS=UNCHANGED     73 CALLS      359 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .69986        .99864        .47970E-05   -1.5691    
   2  alpha         2.6124        .77546        .13925E-02    .44973E-01
   3  Normalizat    1.2376        .19953        .23522E-03   -.85450    
   4  Prefactor     .95290        .85738E-01    .13458E-03   -.94316    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   16139.65     FROM MIGRAD    STATUS=CONVERGED     38 CALLS      397 TOTAL
                     EDM=   .50E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .69987        .81750        .27822E-06    .17990E-03
   2  alpha         2.6124        .63778        .28965E-02    .28004E-04
   3  Normalizat    1.2376        .19893        .14278E-04    .31849E-06
   4  Prefactor     .95290        .85599E-01    .69403E-05    .65522E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.699865
  alpha      = 2.61239
  Normalizat = 1.23756
  Prefactor  = 0.952903
 **********
 **   18 **HESSE 
 **********

 FCN=   16139.65     FROM HESSE     STATUS=OK            25 CALLS      422 TOTAL
                     EDM=   .92E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .69987        .79604        .37411E-06   -1.5691    
   2  alpha         2.6124        .62118        .57930E-03    .44973E-01
   3  Normalizat    1.2376        .19830        .28557E-05   -.85450    
   4  Prefactor     .95290        .85345E-01    .13881E-05   -.94316    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.1972e-14
Minuit parameter uncertainties:
  1  0.796037
  2  0.627772
  3  0.198424
  4  0.085357
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 16139.6522482
delta logL = 0.95056358741

Extracting fit parameters...

4FGL J2009.4-4849
   Spectrum: LogParabola
335         norm:  6.999e-01  7.960e-01  0.000e+00  1.000e+06 ( 1.000e-12)
336        alpha:  2.612e+00  6.278e-01  0.000e+00  5.000e+00 ( 1.000e+00)
337         beta:  4.019e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
338           Eb:  1.571e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
623    Prefactor:  9.529e-01  8.536e-02  0.000e+00  1.000e+01 ( 1.000e+00)
624        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
625        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
622   Normalization:  1.238e+00  1.984e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.77
Ra Dec: 302.359 -48.825
Photon Index (Free Index): 2.61 +/- 0.63
Photon Flux (Free Index): 4.76e-08 +/- 3.76e-08
Energy Flux (Free Index): 1.31e-05 +/- 9.25e-06

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/31684768/cmap_HighResolution_805075201_805680001_4FGL_J2009.4-4849_weekly_bin936.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.48e-05', comment='SUCCESS', photon_flux='1.42e-08', energy_flux2='1.31e-05', photon_flux_error='1.45e-08', dlogl='9.51e-01', energy_flux='1.83e-05', photon_flux2='4.76e-08', job_status='DONE', time_completed='2026-07-14 17:37:59.712872', photon_index_error2='0.63', photon_index2='2.61', ts='1.85', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='5.05e-08', energy_flux_error2='9.25e-06', EG='1.27', time_epoch_completed='1784075879.71', return_code='0', job_id='31684768', GAL2='0.95', EG2='1.24', return_code2='0', energy_flux_error='1.86e-05', photon_flux_error2='3.76e-08', ts2='3.77', photon_index='1.75' WHERE bin_id='936' AND source_name='4FGL J2009.4-4849' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 14 17:38:00 PDT 2026

number of points = 17392
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2009.4-4849_weekly_bin936
RA = 302.359, Dec = -48.8248
tmin = 805075201, tmax = 805680001
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='31685770', job_status='RUN', time_executed='2026-07-14 17:32:24.497649', time_epoch_executed='1784075544.5' WHERE source_name='4FGL J2009.4-4849' and cadence='weekly' and bin_id='936'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/31685770

Creating custom pfile directory:
/lscratch/kocevski/31685770/pfiles/

Retrieving the FT1 file...

Issuing command:
datacat find --group FT1 --filter 'nMetStop>=805075201.0 && nMetStart<805680001.0' /Data/Flight/Reprocess/P305

Issuing command:
datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=805075201.0 && nMetStart<805680001.0' /Data/Flight/Level1/LPA

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/31685770/ft1_4FGL_J2009.4-4849_weekly_bin936.fits


Retrieving the FT1 file...

Issuing command:
datacat find --group FT2 --filter 'nMetStop>=805075201.0 && nMetStart<805680001.0' /Data/Flight/Level1/LPA

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/31685770/ft2_4FGL_J2009.4-4849_weekly_bin936.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/31685770/ft1_4FGL_J2009.4-4849_weekly_bin936.fits outfile=/lscratch/kocevski/31685770/ft1_filteredMKT_4FGL_J2009.4-4849_weekly_bin936.fits ra=302.359 dec=-48.8248 rad=12.0 tmin=805075201.0 tmax=805680001.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 6.03
user 4.99
sys 0.25

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/31685770/ft2_4FGL_J2009.4-4849_weekly_bin936.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/31685770/ft2_4FGL_J2009.4-4849_weekly_bin936.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/31685770/ft1_filteredMKT_4FGL_J2009.4-4849_weekly_bin936.fits evtable="EVENTS" outfile="/lscratch/kocevski/31685770/ft1_filtered_4FGL_J2009.4-4849_weekly_bin936.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 1.31
user 0.29
sys 0.14

Number of photons that the gtmktime cut: 1497

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/31685770/ft1_filtered_4FGL_J2009.4-4849_weekly_bin936.fits" evtable="EVENTS" scfile=/lscratch/kocevski/31685770/ft2_4FGL_J2009.4-4849_weekly_bin936.fits sctable="SC_DATA" outfile=/lscratch/kocevski/31685770/ltcube_805075201_805680001_4FGL_J2009.4-4849_weekly_bin936.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/31685770/ft2_4FGL_J2009.4-4849_weekly_bin936.fits
.....................!
real 19.99
user 18.59
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/31685770/ft1_filtered_4FGL_J2009.4-4849_weekly_bin936.fits evtable="EVENTS" scfile=/lscratch/kocevski/31685770/ft2_4FGL_J2009.4-4849_weekly_bin936.fits sctable="SC_DATA" expcube=/lscratch/kocevski/31685770/ltcube_805075201_805680001_4FGL_J2009.4-4849_weekly_bin936.fits outfile=/lscratch/kocevski/31685770/expmap_805075201_805680001_4FGL_J2009.4-4849_weekly_bin936.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/31685770/ltcube_805075201_805680001_4FGL_J2009.4-4849_weekly_bin936.fits
.....................!
real 78.75
user 72.23
sys 4.26

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 184 point sources and 0 extended sources

Setting source of interest to:
4FGL J2009.4-4849 @ 302.359 -48.8248

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/31685770/ft1_filtered_4FGL_J2009.4-4849_weekly_bin936.fits scfile=/lscratch/kocevski/31685770/ft2_4FGL_J2009.4-4849_weekly_bin936.fits outfile=/lscratch/kocevski/31685770/cmap_805075201_805680001_4FGL_J2009.4-4849_weekly_bin936.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=302.359 yref=-48.8248 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 1.05
user 0.30
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/31685770/ft1_filtered_4FGL_J2009.4-4849_weekly_bin936.fits scfile=/lscratch/kocevski/31685770/ft2_4FGL_J2009.4-4849_weekly_bin936.fits outfile=/lscratch/kocevski/31685770/cmap_HighResolution_805075201_805680001_4FGL_J2009.4-4849_weekly_bin936.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=302.359 yref=-48.8248 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 1.11
user 0.31
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/31685770/ft1_filtered_4FGL_J2009.4-4849_weekly_bin936.fits evtable="EVENTS" scfile=/lscratch/kocevski/31685770/ft2_4FGL_J2009.4-4849_weekly_bin936.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/31685770/Model_4FGL_J2009.4-4849_weekly_bin936.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/31685770/ft1_filtered_4FGL_J2009.4-4849_weekly_bin936.fits.....................!
real 53.52
user 50.88
sys 1.36

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31685770/ft1_filtered_4FGL_J2009.4-4849_weekly_bin936.fits', '/lscratch/kocevski/31685770/ft2_4FGL_J2009.4-4849_weekly_bin936.fits', expMap='/lscratch/kocevski/31685770/expmap_805075201_805680001_4FGL_J2009.4-4849_weekly_bin936.fits', expCube='/lscratch/kocevski/31685770/ltcube_805075201_805680001_4FGL_J2009.4-4849_weekly_bin936.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31685770/Model_4FGL_J2009.4-4849_weekly_bin936.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2009.4-4849'

4FGL J2009.4-4849
   Spectrum: LogParabola
335         norm:  1.075e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
336        alpha:  1.749e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
337         beta:  4.019e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
338           Eb:  1.571e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/31685770/ft1_filtered_4FGL_J2009.4-4849_weekly_bin936.fits
Spacecraft file(s): /lscratch/kocevski/31685770/ft2_4FGL_J2009.4-4849_weekly_bin936.fits
Exposure map: /lscratch/kocevski/31685770/expmap_805075201_805680001_4FGL_J2009.4-4849_weekly_bin936.fits
Exposure cube: /lscratch/kocevski/31685770/ltcube_805075201_805680001_4FGL_J2009.4-4849_weekly_bin936.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31685770/Model_4FGL_J2009.4-4849_weekly_bin936.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) = 16140.6505589

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 16140.6034565

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .86661       1.0000          .0000       .10000E+07
     2 'Prefactor '    .58122E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    .29527E-04   1.0000          .0000       .10000E+07
     4 'Prefactor '    17.092       1.0000          .0000       .10000E+07
     5 'norm      '    16.626       1.0000          .0000       .10000E+07
     6 'norm      '    1.1614       1.0000          .0000       .10000E+07
     7 'norm      '    5.1814       1.0000          .0000       .10000E+07
     8 'norm      '    19.020       1.0000          .0000       .10000E+07
     9 'norm      '    .99293       1.0000          .0000       .10000E+07
    10 'norm      '    .26090E-07   1.0000          .0000       .10000E+07
    11 'norm      '    10.929       1.0000          .0000       .10000E+07
    12 'Prefactor '    17.396       1.0000          .0000       .10000E+07
    13 'Prefactor '    .17479       1.0000          .0000       .10000E+07
    14 'Prefactor '    1.2004       1.0000          .0000       .10000E+07
    15 'norm      '    .84854       1.0000          .0000       .10000E+07
    16 'Normalizat'    1.2743       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .94588       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   16140.60     FROM MIGRAD    STATUS=CONVERGED    130 CALLS      988 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .86234        1.4736       -.19151E-07    .85443E-03
   2  Prefactor     .10876E-03    222.76       -.64393E-05** at limit **
   3  Prefactor     .67168E-08    5.9103       -.46456E-07** at limit **
   4  Prefactor     17.242        8.3512        .87893E-07    .21653E-02
   5  norm          16.640        2.7540        .37517E-07   -.26411E-02
   6  norm          1.1613        .62971       -.96502E-08    .20555E-02
   7  norm          5.1460        4.6966       -.17005E-07    .27871E-04
   8  norm          18.733        11.921        .16178E-07   -.23679E-01
   9  norm          .99763        1.0195        .30162E-07   -.26165E-02
  10  norm           .0000        .95940        .58920E-07** at limit **
  11  norm          10.755        8.5769        .50714E-07    .59234E-01
  12  Prefactor     17.997        21.764        .11158E-05   -.91250E-01
  13  Prefactor     .17170        2.9086        .35480E-07** at limit **
  14  Prefactor     1.1530        36.436        .74888E-06   -.28078E-02
  15  norm          .84776        1.3123        .99486E-07    .30089E-02
  16  Normalizat    1.2745        .20411       -.61081E-05   -.50685E-04
  17  Prefactor     .94589        .87100E-01    .58030E-06   -.42224E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.862341
  Prefactor  = 0.000108764
  Prefactor  = 6.71685e-09
  Prefactor  = 17.2423
  norm       = 16.6403
  norm       = 1.16132
  norm       = 5.14605
  norm       = 18.7328
  norm       = 0.997628
  norm       = 0
  norm       = 10.755
  Prefactor  = 17.997
  Prefactor  = 0.1717
  Prefactor  = 1.15296
  norm       = 0.847763
  Normalizat = 1.27446
  Prefactor  = 0.945891
 **********
 **   18 **HESSE 
 **********

 FCN=   16140.60     FROM HESSE     STATUS=OK           279 CALLS     1267 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .86234        1.4867        .48096E-03   -1.5689    
   2  Prefactor     .10876E-03    2.6426        .62034E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .67168E-08    5.9950        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     17.242        8.5463        .24199E-03   -1.5625    
   5  norm          16.640        12.383        .24536E-03   -1.5626    
   6  norm          1.1613        .64081        .10684E-02   -1.5686    
   7  norm          5.1460        4.7688        .44140E-03   -1.5663    
   8  norm          18.733        14.830        .22938E-03   -1.5621    
   9  norm          .99763        1.0157        .43515E-03   -1.5688    
  10  norm           .0000        .96378        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          10.755        13.810        .30280E-03   -1.5642    
  12  Prefactor     17.997        37.441        .23986E-03   -1.5623    
  13  Prefactor     .17170        .66885        .55259E-02   -1.5716    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.1530        38.320        .10357E-02   -1.5686    
  15  norm          .84776        1.3139        .49385E-03   -1.5690    
  16  Normalizat    1.2745        .17120        .79651E-01   -.84332    
  17  Prefactor     .94589        .71897E-01    .45587E-01   -.94555    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31408e-06
Minuit parameter uncertainties:
  1  1.48673
  2  0.033907
  3  0.000401829
  4  8.5463
  5  12.3829
  6  0.640812
  7  4.76884
  8  14.8304
  9  1.01569
  10  2.99038e-06
  11  13.8099
  12  37.4413
  13  0.668847
  14  13.2939
  15  1.31391
  16  0.171271
  17  0.0719038
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 16140.6028118

Extracting fit parameters...

4FGL J2009.4-4849
   Spectrum: LogParabola
335         norm:  9.976e-01  1.016e+00  0.000e+00  1.000e+06 ( 1.000e-12)
336        alpha:  1.749e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
337         beta:  4.019e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
338           Eb:  1.571e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
623    Prefactor:  9.459e-01  7.190e-02  0.000e+00  1.000e+01 ( 1.000e+00)
624        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
625        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
622   Normalization:  1.274e+00  1.713e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.85
Ra Dec: 302.359 -48.825
Photon Index (Fixed Index): 1.75 +/- 0.00
Photon Flux (Fixed Index): 1.42e-08 +/- 1.45e-08
Energy Flux (Fixed Index): 1.83e-05 +/- 1.86e-05

TS (Fixed Index): 1.85
Ra Dec: 302.359 -48.825
Photon Flux Upper Limit: 5.04851198971e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.48120356882e-05 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31685770/likelihoodResults_805075201_805680001_4FGL_J2009.4-4849_weekly_bin936.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): 0
logL (Free Index) = 16139.6648632
delta logL = 0.937948614483

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 16139.6522483
delta logL = 0.950563517645

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .69983       1.0000          .0000       .10000E+07
     2 'alpha     '    2.6123       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2376       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95290       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   16139.65     FROM MIGRAD    STATUS=FAILED        93 CALLS      286 TOTAL
                     EDM=   .51E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .69986        .99864        .69554E-05   -.83360E-03
   2  alpha         2.6124        .77546        .14482E-01    .71305E-03
   3  Normalizat    1.2376        .19953        .35696E-03   -.33250E-04
   4  Prefactor     .95290        .85738E-01    .17351E-03    .78627E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   16139.65     FROM SIMPLEX   STATUS=UNCHANGED     73 CALLS      359 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .69986        .99864        .47970E-05   -1.5691    
   2  alpha         2.6124        .77546        .13925E-02    .44973E-01
   3  Normalizat    1.2376        .19953        .23522E-03   -.85450    
   4  Prefactor     .95290        .85738E-01    .13458E-03   -.94316    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   16139.65     FROM MIGRAD    STATUS=CONVERGED     38 CALLS      397 TOTAL
                     EDM=   .50E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .69987        .81750        .27822E-06    .17990E-03
   2  alpha         2.6124        .63778        .28965E-02    .28004E-04
   3  Normalizat    1.2376        .19893        .14278E-04    .31849E-06
   4  Prefactor     .95290        .85599E-01    .69403E-05    .65522E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.699865
  alpha      = 2.61239
  Normalizat = 1.23756
  Prefactor  = 0.952903
 **********
 **   18 **HESSE 
 **********

 FCN=   16139.65     FROM HESSE     STATUS=OK            25 CALLS      422 TOTAL
                     EDM=   .92E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .69987        .79604        .37411E-06   -1.5691    
   2  alpha         2.6124        .62118        .57930E-03    .44973E-01
   3  Normalizat    1.2376        .19830        .28557E-05   -.85450    
   4  Prefactor     .95290        .85345E-01    .13881E-05   -.94316    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.1972e-14
Minuit parameter uncertainties:
  1  0.796037
  2  0.627772
  3  0.198424
  4  0.085357
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 16139.6522482
delta logL = 0.95056358741

Extracting fit parameters...

4FGL J2009.4-4849
   Spectrum: LogParabola
335         norm:  6.999e-01  7.960e-01  0.000e+00  1.000e+06 ( 1.000e-12)
336        alpha:  2.612e+00  6.278e-01  0.000e+00  5.000e+00 ( 1.000e+00)
337         beta:  4.019e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
338           Eb:  1.571e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
623    Prefactor:  9.529e-01  8.536e-02  0.000e+00  1.000e+01 ( 1.000e+00)
624        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
625        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
622   Normalization:  1.238e+00  1.984e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.77
Ra Dec: 302.359 -48.825
Photon Index (Free Index): 2.61 +/- 0.63
Photon Flux (Free Index): 4.76e-08 +/- 3.76e-08
Energy Flux (Free Index): 1.31e-05 +/- 9.25e-06

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/31685770/cmap_HighResolution_805075201_805680001_4FGL_J2009.4-4849_weekly_bin936.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.48e-05', comment='SUCCESS', photon_flux='1.42e-08', energy_flux2='1.31e-05', photon_flux_error='1.45e-08', dlogl='9.51e-01', energy_flux='1.83e-05', photon_flux2='4.76e-08', job_status='DONE', time_completed='2026-07-14 17:47:48.418191', photon_index_error2='0.63', photon_index2='2.61', ts='1.85', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='5.05e-08', energy_flux_error2='9.25e-06', EG='1.27', time_epoch_completed='1784076468.42', return_code='0', job_id='31685770', GAL2='0.95', EG2='1.24', return_code2='0', energy_flux_error='1.86e-05', photon_flux_error2='3.76e-08', ts2='3.77', photon_index='1.75' WHERE bin_id='936' AND source_name='4FGL J2009.4-4849' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 14 17:47:48 PDT 2026

