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


Performing analysis on: 4FGL_J1509.8-2906_weekly_bin829
RA = 227.463, Dec = -29.1069
tmin = 740361601, tmax = 740966401
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='51182635', job_status='RUN', time_executed='2024-06-25 01:41:19.108520', time_epoch_executed='1719304879.11' WHERE source_name='4FGL J1509.8-2906' and cadence='weekly' and bin_id='829'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/51182635

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/51182635/ft1_4FGL_J1509.8-2906_weekly_bin829.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/51182635/ft2_4FGL_J1509.8-2906_weekly_bin829.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/51182635/ft1_4FGL_J1509.8-2906_weekly_bin829.fits outfile=/lscratch/kocevski/51182635/ft1_filteredMKT_4FGL_J1509.8-2906_weekly_bin829.fits ra=227.463 dec=-29.1069 rad=12.0 tmin=740361601.0 tmax=740966401.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 4.19
user 3.23
sys 0.20

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

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

Number of photons that the gtmktime cut: 1308

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/51182635/ft1_filtered_4FGL_J1509.8-2906_weekly_bin829.fits" evtable="EVENTS" scfile=/lscratch/kocevski/51182635/ft2_4FGL_J1509.8-2906_weekly_bin829.fits sctable="SC_DATA" outfile=/lscratch/kocevski/51182635/ltcube_740361601_740966401_4FGL_J1509.8-2906_weekly_bin829.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/51182635/ft2_4FGL_J1509.8-2906_weekly_bin829.fits
.....................!
real 20.32
user 19.42
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/51182635/ft1_filtered_4FGL_J1509.8-2906_weekly_bin829.fits evtable="EVENTS" scfile=/lscratch/kocevski/51182635/ft2_4FGL_J1509.8-2906_weekly_bin829.fits sctable="SC_DATA" expcube=/lscratch/kocevski/51182635/ltcube_740361601_740966401_4FGL_J1509.8-2906_weekly_bin829.fits outfile=/lscratch/kocevski/51182635/expmap_740361601_740966401_4FGL_J1509.8-2906_weekly_bin829.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/51182635/ltcube_740361601_740966401_4FGL_J1509.8-2906_weekly_bin829.fits
.....................!
real 73.31
user 67.54
sys 3.94

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/51182635/ft1_filtered_4FGL_J1509.8-2906_weekly_bin829.fits scfile=/lscratch/kocevski/51182635/ft2_4FGL_J1509.8-2906_weekly_bin829.fits outfile=/lscratch/kocevski/51182635/cmap_740361601_740966401_4FGL_J1509.8-2906_weekly_bin829.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 1.12
user 0.22
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/51182635/ft1_filtered_4FGL_J1509.8-2906_weekly_bin829.fits scfile=/lscratch/kocevski/51182635/ft2_4FGL_J1509.8-2906_weekly_bin829.fits outfile=/lscratch/kocevski/51182635/cmap_HighResolution_740361601_740966401_4FGL_J1509.8-2906_weekly_bin829.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 1.27
user 0.24
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/51182635/ft1_filtered_4FGL_J1509.8-2906_weekly_bin829.fits evtable="EVENTS" scfile=/lscratch/kocevski/51182635/ft2_4FGL_J1509.8-2906_weekly_bin829.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/51182635/Model_4FGL_J1509.8-2906_weekly_bin829.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/51182635/ft1_filtered_4FGL_J1509.8-2906_weekly_bin829.fits.....................!
real 56.57
user 54.54
sys 0.77

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .25407E-06   1.0000          .0000       .10000E+07
     2 'Prefactor '    19.793       1.0000          .0000       .10000E+07
     3 'Prefactor '    8.2533       1.0000          .0000       .10000E+07
     4 'Prefactor '    .27893E-02   1.0000          .0000       .10000E+07
     5 'norm      '    20.207       1.0000          .0000       .10000E+07
     6 'Prefactor '    196.98       1.0000          .0000       .10000E+07
     7 'Prefactor '    10.678       1.0000          .0000       .10000E+07
     8 'Prefactor '    .10949E-03   1.0000          .0000       .10000E+07
     9 'norm      '    .21871E-07   1.0000          .0000       .10000E+07
    10 'Prefactor '    2.2547       1.0000          .0000       .10000E+07
    11 'Prefactor '    .93194E-03   1.0000          .0000       .10000E+07
    12 'norm      '    .18496       1.0000          .0000       .10000E+07
    13 'norm      '    22.387       1.0000          .0000       .10000E+07
    14 'norm      '    .56983       1.0000          .0000       .10000E+07
    15 'Prefactor '    7.7310       1.0000          .0000       .10000E+07
    16 'norm      '    9.1695       1.0000          .0000       .10000E+07
    17 'Prefactor '    18.553       1.0000          .0000       .10000E+07
    18 'norm      '    .24493E-02   1.0000          .0000       .10000E+07
    19 'Prefactor '    1.2169       1.0000          .0000       .10000E+07
    20 'Normalizat'    1.4677       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .89808       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=   13986.65     FROM MIGRAD    STATUS=CONVERGED    181 CALLS     1749 TOTAL
                     EDM=   .28E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        .99609       -.10525E-07** at limit **
   2  Prefactor     19.805        17.418       -.20156E-07   -.22524E-02
   3  Prefactor     8.2418        11.676        .17150E-06    .31246E-03
   4  Prefactor      .0000        4.8149        .20177E-07** at limit **
   5  norm          20.231        8.6425       -.86447E-08    .34791E-03
   6  Prefactor     200.55        126.44       -.22475E-06   -.14660E-02
   7  Prefactor     10.730        13.416       -.43650E-08    .18258E-02
   8  Prefactor      .0000        16.449       -.13323E-06** at limit **
   9  norm           .0000        .34886        .36078E-08** at limit **
  10  Prefactor     2.2497        9.5839       -.50224E-07   -.23663E-03
  11  Prefactor      .0000        4.1553        .23569E-07** at limit **
  12  norm          .17756        23.391        .86201E-07** at limit **
  13  norm          22.435        2.6135       -.15317E-07    .34288E-01
  14  norm          .57111        .50975        .11558E-08   -.72241E-04
  15  Prefactor     7.7000        7.8876       -.30122E-08    .66113E-04
  16  norm          9.1510        4.3607       -.82815E-08    .89886E-04
  17  Prefactor     18.809        44.423       -.23042E-06   -.11044E-03
  18  norm           .0000        11.192        .19726E-07** at limit **
  19  Prefactor     1.2420        4.0858       -.55567E-08    .35100E-04
  20  Normalizat    1.4665        .28067        .17306E-05   -.51251E-05
  21  Prefactor     .89810        .75620E-01   -.43421E-06   -.80952E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  Prefactor  = 19.8054
  Prefactor  = 8.2418
  Prefactor  = 0
  norm       = 20.231
  Prefactor  = 200.549
  Prefactor  = 10.7295
  Prefactor  = 0
  norm       = 0
  Prefactor  = 2.24971
  Prefactor  = 0
  norm       = 0.177563
  norm       = 22.4352
  norm       = 0.571111
  Prefactor  = 7.69999
  norm       = 9.15096
  Prefactor  = 18.8094
  norm       = 0
  Prefactor  = 1.24202
  Normalizat = 1.46645
  Prefactor  = 0.898097
 **********
 **   18 **HESSE 
 **********

 FCN=   13986.65     FROM HESSE     STATUS=OK           369 CALLS     2118 TOTAL
                     EDM=   .28E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        .99517        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     19.805        17.418        .22485E-03   -1.5619    
   3  Prefactor     8.2418        11.689        .34873E-03   -1.5651    
   4  Prefactor      .0000        4.8126        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          20.231        8.6429        .22253E-03   -1.5618    
   6  Prefactor     200.55        126.24        .71258E-04   -1.5425    
   7  Prefactor     10.730        13.342        .30636E-03   -1.5642    
   8  Prefactor      .0000        16.481        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm           .0000        .34413        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.2497        10.018        .68395E-03   -1.5678    
  11  Prefactor      .0000        4.1503        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .17756        3.1229        .63623E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          22.435        37.660        .21141E-03   -1.5613    
  14  norm          .57111        .51586        .71975E-03   -1.5693    
  15  Prefactor     7.7000        7.9101        .36041E-03   -1.5652    
  16  norm          9.1510        4.3656        .33073E-03   -1.5647    
  17  Prefactor     18.809        45.134        .23225E-03   -1.5621    
  18  norm           .0000        11.232        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.2420        4.1525        .10232E-02   -1.5686    
  20  Normalizat    1.4665        .23963        .10226       -.78725    
  21  Prefactor     .89810        .64364E-01    .44981E-01   -.96208    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.79496e-07
Minuit parameter uncertainties:
  1  1.59046e-07
  2  17.4178
  3  11.6894
  4  1.17198e-06
  5  8.6429
  6  126.241
  7  13.3423
  8  4.99203e-06
  9  3.31677e-08
  10  9.49455
  11  9.98888e-07
  12  1.48931
  13  37.6606
  14  0.515865
  15  7.91016
  16  4.3656
  17  45.1345
  18  4.73763e-06
  19  4.1525
  20  0.239817
  21  0.0643698
Done.

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

Extracting fit parameters...

4FGL J1509.8-2906
   Spectrum: PowerLaw
323    Prefactor:  0.000e+00  9.989e-07  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:  8.981e-01  6.437e-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.466e+00  2.398e-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: 9.75453472483e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.0076839654398 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/51182635/likelihoodResults_740361601_740966401_4FGL_J1509.8-2906_weekly_bin829.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) = 13986.6528024
delta logL = -0.000965940811511

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 13986.6518367
delta logL = -2.42655005422e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .24813E-07   1.0000          .0000       .10000E+07
     2 'Index     '    .73442       1.0000          .0000       10.000    
     3 'Normalizat'    1.4663       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89812       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=   13986.65     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      267 TOTAL
                     EDM=   .20E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        2.1699        .42118E-03** at limit **
   2  Index         4.2846        2.0565        .43431E-05     .0000    
   3  Normalizat    1.4665        1.0534        .46022E-05   -.30035E-04
   4  Prefactor     .89810        1.2431       -.37536E-06   -.12279E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 4.28455
  Normalizat = 1.46645
  Prefactor  = 0.898097
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   13986.65     FROM HESSE     STATUS=FAILED         9 CALLS      276 TOTAL
                     EDM=   .20E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        2.1699        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9598        2.3894        .43431E-05   -.14358    
   3  Normalizat    1.4665        1.0534        .46022E-05   -.78725    
   4  Prefactor     .89810        1.2431       -.37536E-06   -.96208    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.00864e-12
Minuit parameter uncertainties:
  1  1.44801e-07
  2  2.12083
  3  1.06977
  4  1.28605
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) = 13986.6518365
delta logL = 0.0

Extracting fit parameters...

4FGL J1509.8-2906
   Spectrum: PowerLaw
323    Prefactor:  0.000e+00  1.448e-07  0.000e+00  1.000e+06 ( 1.000e-12)
324        Index:  4.285e+00  2.121e+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:  8.981e-01  1.286e+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.466e+00  1.070e+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/51182635/cmap_HighResolution_740361601_740966401_4FGL_J1509.8-2906_weekly_bin829.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.68e-03', job_status='DONE', photon_flux_upper_limit='9.75e-08', time_completed='2024-06-25 01:58:01.817209', job_id='51182635', GAL2='0.90', fit_tolerance='1e-08', EG2='1.47', EG='1.47', time_epoch_completed='1719305881.82', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.71' WHERE bin_id='829' AND source_name='4FGL J1509.8-2906' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jun 25 01:58:03 PDT 2024

