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


Performing analysis on: 4FGL_J1509.8-2906_weekly_bin860
RA = 227.463, Dec = -29.1069
tmin = 759110401, tmax = 759715201
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='62886285', job_status='RUN', time_executed='2025-01-28 00:51:22.086386', time_epoch_executed='1738054282.09' WHERE source_name='4FGL J1509.8-2906' and cadence='weekly' and bin_id='860'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/62886285

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/62886285/ft1_4FGL_J1509.8-2906_weekly_bin860.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/62886285/ft2_4FGL_J1509.8-2906_weekly_bin860.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/62886285/ft1_4FGL_J1509.8-2906_weekly_bin860.fits outfile=/lscratch/kocevski/62886285/ft1_filteredMKT_4FGL_J1509.8-2906_weekly_bin860.fits ra=227.463 dec=-29.1069 rad=12.0 tmin=759110401.0 tmax=759715201.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.32
user 4.92
sys 0.24

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/62886285/ft2_4FGL_J1509.8-2906_weekly_bin860.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/62886285/ft2_4FGL_J1509.8-2906_weekly_bin860.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/62886285/ft1_filteredMKT_4FGL_J1509.8-2906_weekly_bin860.fits evtable="EVENTS" outfile="/lscratch/kocevski/62886285/ft1_filtered_4FGL_J1509.8-2906_weekly_bin860.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.49
user 0.22
sys 0.14

Number of photons that the gtmktime cut: 3925

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/62886285/ft1_filtered_4FGL_J1509.8-2906_weekly_bin860.fits" evtable="EVENTS" scfile=/lscratch/kocevski/62886285/ft2_4FGL_J1509.8-2906_weekly_bin860.fits sctable="SC_DATA" outfile=/lscratch/kocevski/62886285/ltcube_759110401_759715201_4FGL_J1509.8-2906_weekly_bin860.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/62886285/ft2_4FGL_J1509.8-2906_weekly_bin860.fits
.....................!
real 19.44
user 18.96
sys 0.21

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/62886285/ft1_filtered_4FGL_J1509.8-2906_weekly_bin860.fits evtable="EVENTS" scfile=/lscratch/kocevski/62886285/ft2_4FGL_J1509.8-2906_weekly_bin860.fits sctable="SC_DATA" expcube=/lscratch/kocevski/62886285/ltcube_759110401_759715201_4FGL_J1509.8-2906_weekly_bin860.fits outfile=/lscratch/kocevski/62886285/expmap_759110401_759715201_4FGL_J1509.8-2906_weekly_bin860.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/62886285/ltcube_759110401_759715201_4FGL_J1509.8-2906_weekly_bin860.fits
.....................!
real 71.56
user 67.18
sys 3.67

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
Extended source FHES J1626.9-2431 in ROI with RadialGaussian spatial model.
Added 228 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1509.8-2906 @ 227.463 -29.1069

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/62886285/ft1_filtered_4FGL_J1509.8-2906_weekly_bin860.fits scfile=/lscratch/kocevski/62886285/ft2_4FGL_J1509.8-2906_weekly_bin860.fits outfile=/lscratch/kocevski/62886285/cmap_759110401_759715201_4FGL_J1509.8-2906_weekly_bin860.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=227.463 yref=-29.1069 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.49
user 0.25
sys 0.11

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/62886285/ft1_filtered_4FGL_J1509.8-2906_weekly_bin860.fits scfile=/lscratch/kocevski/62886285/ft2_4FGL_J1509.8-2906_weekly_bin860.fits outfile=/lscratch/kocevski/62886285/cmap_HighResolution_759110401_759715201_4FGL_J1509.8-2906_weekly_bin860.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=227.463 yref=-29.1069 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.42
user 0.26
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/62886285/ft1_filtered_4FGL_J1509.8-2906_weekly_bin860.fits evtable="EVENTS" scfile=/lscratch/kocevski/62886285/ft2_4FGL_J1509.8-2906_weekly_bin860.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/62886285/Model_4FGL_J1509.8-2906_weekly_bin860.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 FHES J1626.9-2431
adding source GAL_V02
Working on...
/lscratch/kocevski/62886285/ft1_filtered_4FGL_J1509.8-2906_weekly_bin860.fits.....................!
real 147.38
user 145.21
sys 0.98

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/62886285/ft1_filtered_4FGL_J1509.8-2906_weekly_bin860.fits', '/lscratch/kocevski/62886285/ft2_4FGL_J1509.8-2906_weekly_bin860.fits', expMap='/lscratch/kocevski/62886285/expmap_759110401_759715201_4FGL_J1509.8-2906_weekly_bin860.fits', expCube='/lscratch/kocevski/62886285/ltcube_759110401_759715201_4FGL_J1509.8-2906_weekly_bin860.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/62886285/Model_4FGL_J1509.8-2906_weekly_bin860.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1509.8-2906'

4FGL J1509.8-2906
   Spectrum: PowerLaw
323    Prefactor:  3.269e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
324        Index:  2.711e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
325        Scale:  5.617e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/62886285/ft1_filtered_4FGL_J1509.8-2906_weekly_bin860.fits
Spacecraft file(s): /lscratch/kocevski/62886285/ft2_4FGL_J1509.8-2906_weekly_bin860.fits
Exposure map: /lscratch/kocevski/62886285/expmap_759110401_759715201_4FGL_J1509.8-2906_weekly_bin860.fits
Exposure cube: /lscratch/kocevski/62886285/ltcube_759110401_759715201_4FGL_J1509.8-2906_weekly_bin860.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/62886285/Model_4FGL_J1509.8-2906_weekly_bin860.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) = 40031.2558063

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.6276       1.0000          .0000       .10000E+07
     2 'Prefactor '    .86642E-05   1.0000          .0000       .10000E+07
     3 'Prefactor '    .11040E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .81535E-06   1.0000          .0000       .10000E+07
     5 'norm      '    69.473       1.0000          .0000       .10000E+07
     6 'Prefactor '    2.8579       1.0000          .0000       .10000E+07
     7 'Prefactor '    9.9553       1.0000          .0000       .10000E+07
     8 'Prefactor '    .12762E-01   1.0000          .0000       .10000E+07
     9 'norm      '    .16734       1.0000          .0000       .10000E+07
    10 'Prefactor '    .15295E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    .16657E-04   1.0000          .0000       .10000E+07
    12 'norm      '    3.2838       1.0000          .0000       .10000E+07
    13 'norm      '    .10267E-02   1.0000          .0000       .10000E+07
    14 'norm      '    1.2881       1.0000          .0000       .10000E+07
    15 'Prefactor '    9.7341       1.0000          .0000       .10000E+07
    16 'norm      '    2.2678       1.0000          .0000       .10000E+07
    17 'Prefactor '    .18778E-02   1.0000          .0000       .10000E+07
    18 'norm      '    3.4559       1.0000          .0000       .10000E+07
    19 'Prefactor '    .79130       1.0000          .0000       .10000E+07
    20 'Normalizat'    1.0899       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .92273       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7800E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   40031.26     FROM MIGRAD    STATUS=CONVERGED    140 CALLS     1744 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6275        1.5238        .69940E-07   -.15349E-02
   2  Prefactor      .0000        11.196        .34852E-06** at limit **
   3  Prefactor     .62728E-08    5.9467       -.41487E-06** at limit **
   4  Prefactor      .0000        2.1723       -.13302E-06** at limit **
   5  norm          69.463        2.3812       -.25887E-07   -.20975    
   6  Prefactor     3.0443        159.63        .12867E-05   -.13081E-02
   7  Prefactor     10.056        5.8787       -.14930E-07   -.68425E-03
   8  Prefactor     .19429E-08    17.362        .12474E-05** at limit **
   9  norm          .16744        .16516        .57476E-07** at limit **
  10  Prefactor      .0000        2.4889        .13054E-06** at limit **
  11  Prefactor      .0000        1.8786       -.50724E-07** at limit **
  12  norm          3.2832        2.7645       -.18406E-06    .18849E-02
  13  norm          .38858E-09    4.6070       -.33200E-06** at limit **
  14  norm          1.2882        .35405       -.36278E-09    .46856E-03
  15  Prefactor     9.7384        3.7056       -.57486E-07    .28818E-03
  16  norm          2.2678        1.3526        .13662E-06   -.46693E-02
  17  Prefactor     .76050E-08    6.3036        .73834E-07** at limit **
  18  norm          3.4615        3.2715       -.71989E-08   -.74899E-04
  19  Prefactor     .79245        1.1541       -.15145E-06    .24712E-02
  20  Normalizat    1.0893        .15111       -.14115E-05    .15927E-04
  21  Prefactor     .92282        .41128E-01    .61294E-06   -.28512E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.62754
  Prefactor  = 0
  Prefactor  = 6.27276e-09
  Prefactor  = 0
  norm       = 69.4632
  Prefactor  = 3.04431
  Prefactor  = 10.0561
  Prefactor  = 1.94289e-09
  norm       = 0.167441
  Prefactor  = 0
  Prefactor  = 0
  norm       = 3.28317
  norm       = 3.88578e-10
  norm       = 1.28819
  Prefactor  = 9.73838
  norm       = 2.26779
  Prefactor  = 7.60503e-09
  norm       = 3.46147
  Prefactor  = 0.792447
  Normalizat = 1.08927
  Prefactor  = 0.922818
 **********
 **   18 **HESSE 
 **********

 FCN=   40031.26     FROM HESSE     STATUS=OK           365 CALLS     2109 TOTAL
                     EDM=   .99E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6275        1.5363        .82876E-03   -1.5682    
   2  Prefactor      .0000        11.177        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .62728E-08    6.0070        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        2.1746        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          69.463        10.678        .11998E-03   -1.5541    
   6  Prefactor     3.0443        158.16        .60110E-03   -1.5673    
   7  Prefactor     10.056        5.8700        .31734E-03   -1.5645    
   8  Prefactor     .19429E-08    17.215        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .16744        .21573        .23790E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        2.4733        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor      .0000        1.8836        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.2832        2.7721        .55851E-03   -1.5672    
  13  norm          .38858E-09    4.6121        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.2882        .35836        .97591E-03   -1.5685    
  15  Prefactor     9.7384        3.7257        .32094E-03   -1.5646    
  16  norm          2.2678        1.3607        .68175E-03   -1.5678    
  17  Prefactor     .76050E-08    6.3848        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.4615        3.2766        .54377E-03   -1.5671    
  19  Prefactor     .79245        1.1585        .53585E-03   -1.5690    
  20  Normalizat    1.0893        .13525        .10690       -.90097    
  21  Prefactor     .92282        .36317E-01    .31754E-01   -.95348    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.91076e-08
Minuit parameter uncertainties:
  1  1.53634
  2  2.742e-05
  3  0.000388393
  4  7.88913e-06
  5  10.6776
  6  43.8863
  7  5.87001
  8  0.000363212
  9  0.215728
  10  5.97056e-06
  11  6.12293e-06
  12  2.77211
  13  8.17827e-05
  14  0.358359
  15  3.72573
  16  1.3607
  17  0.000440829
  18  3.27658
  19  1.1585
  20  0.135296
  21  0.0363175
Done.

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

Extracting fit parameters...

4FGL J1509.8-2906
   Spectrum: PowerLaw
323    Prefactor:  0.000e+00  6.123e-06  0.000e+00  1.000e+06 ( 1.000e-12)
324        Index:  2.711e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
325        Scale:  5.617e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
777    Prefactor:  9.228e-01  3.632e-02  0.000e+00  1.000e+01 ( 1.000e+00)
778        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
779        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
772   Normalization:  1.089e+00  1.353e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 227.463 -29.107
Photon Flux Upper Limit: 4.06690338128e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.0032036325576 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/62886285/likelihoodResults_759110401_759715201_4FGL_J1509.8-2906_weekly_bin860.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) = 40031.2567688
delta logL = -0.00140574572288

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 40031.255366
delta logL = -2.85469286609e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .45486E-05   1.0000          .0000       .10000E+07
     2 'Index     '    1.1984       1.0000          .0000       10.000    
     3 'Normalizat'    1.0895       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92277       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7800E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   40031.26     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      283 TOTAL
                     EDM=   .36E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .10051        .26816E-02** at limit **
   2  Index         .70215        .86815        .54497E-05     .0000    
   3  Normalizat    1.0893        1.1630        .50380E-08   -.21199E-04
   4  Prefactor     .92282        1.2666       -.52131E-06   -.93654E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 0.702151
  Normalizat = 1.08927
  Prefactor  = 0.922818
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   40031.26     FROM HESSE     STATUS=FAILED         9 CALLS      292 TOTAL
                     EDM=   .36E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .10051        .26816E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .17382E-02    .95610        .54497E-05   -1.0344    
   3  Normalizat    1.0893        1.1630        .50380E-08   -.90097    
   4  Prefactor     .92282        1.2666       -.52131E-06   -.95348    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 3.58015e-13
Minuit parameter uncertainties:
  1  2.81614e-08
  2  0.885789
  3  1.19218
  4  1.31093
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 40031.2553631
delta logL = 0.0

Extracting fit parameters...

4FGL J1509.8-2906
   Spectrum: PowerLaw
323    Prefactor:  0.000e+00  2.816e-08  0.000e+00  1.000e+06 ( 1.000e-12)
324        Index:  7.022e-01  8.858e-01  0.000e+00  1.000e+01 (-1.000e+00)
325        Scale:  5.617e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
777    Prefactor:  9.228e-01  1.311e+00  0.000e+00  1.000e+01 ( 1.000e+00)
778        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
779        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
772   Normalization:  1.089e+00  1.192e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 227.463 -29.107

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/62886285/cmap_HighResolution_759110401_759715201_4FGL_J1509.8-2906_weekly_bin860.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.20e-03', job_status='DONE', photon_flux_upper_limit='4.07e-08', time_completed='2025-01-28 01:11:47.559104', job_id='62886285', GAL2='0.92', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1738055507.56', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.71' WHERE bin_id='860' AND source_name='4FGL J1509.8-2906' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jan 28 01:11:47 PST 2025

