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


Performing analysis on: 4FGL_J1509.8-2906_daily_bin2114
RA = 227.463, Dec = -29.1069
tmin = 787276801, tmax = 787536001
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='17373213', job_status='RUN', time_executed='2025-12-16 01:15:12.650141', time_epoch_executed='1765876512.65' WHERE source_name='4FGL J1509.8-2906' and cadence='daily' and bin_id='2114'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17373213

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/17373213/ft1_4FGL_J1509.8-2906_daily_bin2114.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/17373213/ft2_4FGL_J1509.8-2906_daily_bin2114.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17373213/ft1_4FGL_J1509.8-2906_daily_bin2114.fits outfile=/lscratch/kocevski/17373213/ft1_filteredMKT_4FGL_J1509.8-2906_daily_bin2114.fits ra=227.463 dec=-29.1069 rad=12.0 tmin=787276801.0 tmax=787536001.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 2.81
user 1.87
sys 0.19

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

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

Number of photons that the gtmktime cut: 1088

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17373213/ft1_filtered_4FGL_J1509.8-2906_daily_bin2114.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17373213/ft2_4FGL_J1509.8-2906_daily_bin2114.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17373213/ltcube_787276801_787536001_4FGL_J1509.8-2906_daily_bin2114.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/17373213/ft2_4FGL_J1509.8-2906_daily_bin2114.fits
.....................!
real 10.44
user 9.32
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17373213/ft1_filtered_4FGL_J1509.8-2906_daily_bin2114.fits evtable="EVENTS" scfile=/lscratch/kocevski/17373213/ft2_4FGL_J1509.8-2906_daily_bin2114.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17373213/ltcube_787276801_787536001_4FGL_J1509.8-2906_daily_bin2114.fits outfile=/lscratch/kocevski/17373213/expmap_787276801_787536001_4FGL_J1509.8-2906_daily_bin2114.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/17373213/ltcube_787276801_787536001_4FGL_J1509.8-2906_daily_bin2114.fits
.....................!
real 68.12
user 63.18
sys 3.81

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/17373213/ft1_filtered_4FGL_J1509.8-2906_daily_bin2114.fits scfile=/lscratch/kocevski/17373213/ft2_4FGL_J1509.8-2906_daily_bin2114.fits outfile=/lscratch/kocevski/17373213/cmap_787276801_787536001_4FGL_J1509.8-2906_daily_bin2114.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.81
user 0.22
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17373213/ft1_filtered_4FGL_J1509.8-2906_daily_bin2114.fits scfile=/lscratch/kocevski/17373213/ft2_4FGL_J1509.8-2906_daily_bin2114.fits outfile=/lscratch/kocevski/17373213/cmap_HighResolution_787276801_787536001_4FGL_J1509.8-2906_daily_bin2114.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.90
user 0.22
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/17373213/ft1_filtered_4FGL_J1509.8-2906_daily_bin2114.fits evtable="EVENTS" scfile=/lscratch/kocevski/17373213/ft2_4FGL_J1509.8-2906_daily_bin2114.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/17373213/Model_4FGL_J1509.8-2906_daily_bin2114.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/17373213/ft1_filtered_4FGL_J1509.8-2906_daily_bin2114.fits.....................!
real 45.99
user 43.57
sys 1.57

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/17373213/ft1_filtered_4FGL_J1509.8-2906_daily_bin2114.fits', '/lscratch/kocevski/17373213/ft2_4FGL_J1509.8-2906_daily_bin2114.fits', expMap='/lscratch/kocevski/17373213/expmap_787276801_787536001_4FGL_J1509.8-2906_daily_bin2114.fits', expCube='/lscratch/kocevski/17373213/ltcube_787276801_787536001_4FGL_J1509.8-2906_daily_bin2114.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/17373213/Model_4FGL_J1509.8-2906_daily_bin2114.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/17373213/ft1_filtered_4FGL_J1509.8-2906_daily_bin2114.fits
Spacecraft file(s): /lscratch/kocevski/17373213/ft2_4FGL_J1509.8-2906_daily_bin2114.fits
Exposure map: /lscratch/kocevski/17373213/expmap_787276801_787536001_4FGL_J1509.8-2906_daily_bin2114.fits
Exposure cube: /lscratch/kocevski/17373213/ltcube_787276801_787536001_4FGL_J1509.8-2906_daily_bin2114.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/17373213/Model_4FGL_J1509.8-2906_daily_bin2114.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) = 11478.3598396

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .51097E-04   1.0000          .0000       .10000E+07
     2 'Prefactor '    .16797E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    .63377       1.0000          .0000       .10000E+07
     4 'Prefactor '    13.568       1.0000          .0000       .10000E+07
     5 'norm      '    44.359       1.0000          .0000       .10000E+07
     6 'Prefactor '    .41772E-06   1.0000          .0000       .10000E+07
     7 'Prefactor '    8.0800       1.0000          .0000       .10000E+07
     8 'Prefactor '    .13573E-02   1.0000          .0000       .10000E+07
     9 'norm      '    1.6711       1.0000          .0000       .10000E+07
    10 'Prefactor '    2.2841       1.0000          .0000       .10000E+07
    11 'Prefactor '    .59581E-04   1.0000          .0000       .10000E+07
    12 'norm      '    4.5243       1.0000          .0000       .10000E+07
    13 'norm      '    .20394E-04   1.0000          .0000       .10000E+07
    14 'norm      '    .65613       1.0000          .0000       .10000E+07
    15 'Prefactor '    5.4949       1.0000          .0000       .10000E+07
    16 'norm      '    .13351E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    .12322E-03   1.0000          .0000       .10000E+07
    18 'norm      '    4.3962       1.0000          .0000       .10000E+07
    19 'Prefactor '    2.4924       1.0000          .0000       .10000E+07
    20 'Normalizat'    .51306       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0390       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   11478.30     FROM MIGRAD    STATUS=CONVERGED    542 CALLS     1709 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        1.2600        .15167E-07** at limit **
   2  Prefactor      .0000        8.6311       -.40657E-07** at limit **
   3  Prefactor     .19980E-03    13.717        .38969E-06** at limit **
   4  Prefactor     13.731        16.032       -.27627E-05   -.22879E-02
   5  norm          44.243        17.015        .20816E-06   -.61116E-03
   6  Prefactor     .55511E-10    46.006       -.32583E-07** at limit **
   7  Prefactor     7.9169        11.979       -.31406E-06   -.15185E-02
   8  Prefactor      .0000        11.724       -.23013E-06** at limit **
   9  norm          1.6706        .85790        .11649E-09   -.56943E-02
  10  Prefactor     2.2795        13.939       -.32334E-06   -.30706E-02
  11  Prefactor      .0000        2.4151        .73424E-08** at limit **
  12  norm          4.5166        5.5462       -.63958E-07   -.52116E-02
  13  norm           .0000        9.4848        .15109E-06** at limit **
  14  norm          .65587        .70803       -.45244E-07   -.30146E-01
  15  Prefactor     5.4974        6.6860       -.67973E-07   -.31423E-02
  16  norm           .0000        1.5357       -.44973E-08** at limit **
  17  Prefactor      .0000        35.414       -.95506E-07** at limit **
  18  norm          4.3935        9.6720       -.85595E-07   -.17323E-02
  19  Prefactor     2.4931        3.1177       -.12389E-06   -.15638E-01
  20  Normalizat    .51362        .29311        .16288E-04    .52579E-04
  21  Prefactor     1.0391        .78584E-01   -.10217E-05   -.52094E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  Prefactor  = 0
  Prefactor  = 0.0001998
  Prefactor  = 13.7311
  norm       = 44.2433
  Prefactor  = 5.55112e-11
  Prefactor  = 7.9169
  Prefactor  = 0
  norm       = 1.6706
  Prefactor  = 2.27953
  Prefactor  = 0
  norm       = 4.51661
  norm       = 0
  norm       = 0.655869
  Prefactor  = 5.49742
  norm       = 0
  Prefactor  = 0
  norm       = 4.39349
  Prefactor  = 2.49308
  Normalizat = 0.513616
  Prefactor  = 1.03913
 **********
 **   18 **HESSE 
 **********

 FCN=   11478.30     FROM HESSE     STATUS=OK           325 CALLS     2034 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        1.2621        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        8.6318        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .19980E-03    13.374        .14187E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     13.731        16.063        .10867E-04   -1.5634    
   5  norm          44.243        17.000        .60063E-05   -1.5575    
   6  Prefactor     .55511E-10    46.014        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.9169        11.872        .14099E-04   -1.5652    
   8  Prefactor      .0000        11.732        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.6706        .84502        .65419E-05   -1.5682    
  10  Prefactor     2.2795        13.643        .27161E-04   -1.5678    
  11  Prefactor      .0000        2.4165        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.5166        5.5237        .18923E-04   -1.5665    
  13  norm           .0000        9.4863        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .65587        .69710        .87863E-05   -1.5692    
  15  Prefactor     5.4974        6.6637        .17136E-04   -1.5661    
  16  norm           .0000        1.5389        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor      .0000        35.462        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.3935        9.6762        .19204E-04   -1.5666    
  19  Prefactor     2.4931        3.1219        .20163E-04   -1.5676    
  20  Normalizat    .51362        .27665        .65949E-03   -1.1179    
  21  Prefactor     1.0391        .76718E-01    .13284E-03   -.91436    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.13524e-09
Minuit parameter uncertainties:
  1  5.44206e-06
  2  1.59641e-05
  3  0.103384
  4  16.0627
  5  17.0004
  6  0.000115123
  7  11.8717
  8  1.81754e-05
  9  0.845021
  10  11.1533
  11  2.17072e-06
  12  5.5237
  13  3.15337e-06
  14  0.697098
  15  6.66375
  16  8.4539e-07
  17  5.50581e-06
  18  9.67618
  19  3.12191
  20  0.277397
  21  0.076726
Done.

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

Extracting fit parameters...

4FGL J1509.8-2906
   Spectrum: PowerLaw
323    Prefactor:  0.000e+00  2.171e-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:  1.039e+00  7.673e-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:  5.136e-01  2.774e-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: 7.30974627024e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00575812576393 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/17373213/likelihoodResults_787276801_787536001_4FGL_J1509.8-2906_daily_bin2114.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) = 11478.2987808
delta logL = -0.000456397769085

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 11478.2983265
delta logL = -2.12201484828e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .28150E-06   1.0000          .0000       .10000E+07
     2 'Index     '    1.7339       1.0000          .0000       10.000    
     3 'Normalizat'    .51399       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0390       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=   11478.30     FROM MIGRAD    STATUS=CONVERGED     41 CALLS      281 TOTAL
                     EDM=   .40E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        2.1785        .42118E-03** at limit **
   2  Index         2.8747        1.2328        .10591E-04     .0000    
   3  Normalizat    .51361        .84611        .18757E-05   -.21517E-05
   4  Prefactor     1.0391        1.2052       -.86882E-06    .14086E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.87468
  Normalizat = 0.513611
  Prefactor  = 1.03913
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   11478.30     FROM HESSE     STATUS=FAILED         9 CALLS      290 TOTAL
                     EDM=   .40E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        2.1785        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .93574        2.0193        .10591E-04   -.43903    
   3  Normalizat    .51361        .84611        .18757E-05   -1.1179    
   4  Prefactor     1.0391        1.2052       -.86882E-06   -.91436    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 4.00636e-13
Minuit parameter uncertainties:
  1  2.55826e-06
  2  1.24856
  3  0.868812
  4  1.23898
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) = 11478.2983244
delta logL = 1.72803993337e-10

Extracting fit parameters...

4FGL J1509.8-2906
   Spectrum: PowerLaw
323    Prefactor:  0.000e+00  2.558e-06  0.000e+00  1.000e+06 ( 1.000e-12)
324        Index:  2.875e+00  1.249e+00  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:  1.039e+00  1.239e+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:  5.136e-01  8.688e-01  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/17373213/cmap_HighResolution_787276801_787536001_4FGL_J1509.8-2906_daily_bin2114.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.76e-03', job_status='DONE', photon_flux_upper_limit='7.31e-08', time_completed='2025-12-16 01:24:46.757986', job_id='17373213', GAL2='1.04', fit_tolerance='1e-08', EG2='0.51', EG='0.51', time_epoch_completed='1765877086.76', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='1.73e-10', ts2='0.00', photon_index_error='0.00', photon_index='2.71' WHERE bin_id='2114' AND source_name='4FGL J1509.8-2906' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec 16 01:24:47 PST 2025

