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


Performing analysis on: 4FGL_J1508.5-4951_daily_bin2008
RA = 227.144, Dec = -49.8622
tmin = 759801601, tmax = 760060801
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='63135229', job_status='RUN', time_executed='2025-02-01 00:47:20.025376', time_epoch_executed='1738399640.03' WHERE source_name='4FGL J1508.5-4951' and cadence='daily' and bin_id='2008'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/63135229

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/63135229/ft1_4FGL_J1508.5-4951_daily_bin2008.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/63135229/ft2_4FGL_J1508.5-4951_daily_bin2008.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/63135229/ft1_4FGL_J1508.5-4951_daily_bin2008.fits outfile=/lscratch/kocevski/63135229/ft1_filteredMKT_4FGL_J1508.5-4951_daily_bin2008.fits ra=227.144 dec=-49.8622 rad=12.0 tmin=759801601.0 tmax=760060801.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.44
user 2.03
sys 0.18

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/63135229/ft2_4FGL_J1508.5-4951_daily_bin2008.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/63135229/ft2_4FGL_J1508.5-4951_daily_bin2008.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/63135229/ft1_filteredMKT_4FGL_J1508.5-4951_daily_bin2008.fits evtable="EVENTS" outfile="/lscratch/kocevski/63135229/ft1_filtered_4FGL_J1508.5-4951_daily_bin2008.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.41
user 0.20
sys 0.13

Number of photons that the gtmktime cut: 6661

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/63135229/ft1_filtered_4FGL_J1508.5-4951_daily_bin2008.fits" evtable="EVENTS" scfile=/lscratch/kocevski/63135229/ft2_4FGL_J1508.5-4951_daily_bin2008.fits sctable="SC_DATA" outfile=/lscratch/kocevski/63135229/ltcube_759801601_760060801_4FGL_J1508.5-4951_daily_bin2008.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/63135229/ft2_4FGL_J1508.5-4951_daily_bin2008.fits
.....................!
real 10.41
user 9.86
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/63135229/ft1_filtered_4FGL_J1508.5-4951_daily_bin2008.fits evtable="EVENTS" scfile=/lscratch/kocevski/63135229/ft2_4FGL_J1508.5-4951_daily_bin2008.fits sctable="SC_DATA" expcube=/lscratch/kocevski/63135229/ltcube_759801601_760060801_4FGL_J1508.5-4951_daily_bin2008.fits outfile=/lscratch/kocevski/63135229/expmap_759801601_760060801_4FGL_J1508.5-4951_daily_bin2008.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/63135229/ltcube_759801601_760060801_4FGL_J1508.5-4951_daily_bin2008.fits
.....................!
real 71.56
user 66.16
sys 3.72

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 HESS J1534-571 in ROI with RadialDisk spatial model.
Extended source FGES J1553.8-5325 in ROI with RadialDisk spatial model.
Extended source HESS J1420-607 in ROI with RadialDisk spatial model.
Extended source RCW 86 in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/RCW86.fits is the correct path to the extended template.
Extended source HESS J1507-622 in ROI with RadialDisk spatial model.
Extended source MSH 15-52 in ROI with RadialDisk spatial model.
Extended source MSH 15-56 PWN in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/MSH15-56_PWN.fits is the correct path to the extended template.
Extended source MSH 15-56 SNR in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/MSH15-56_SNRmask.fits is the correct path to the extended template.
Extended source HESS J1614-518 in ROI with RadialDisk spatial model.
Extended source HESS J1616-508 in ROI with RadialDisk spatial model.
Extended source HESS J1356-645 in ROI with RadialDisk spatial model.
Extended source FGES J1409.1-6121 in ROI with RadialDisk spatial model.
Extended source FHES J1501.0-6310 in ROI with RadialGaussian spatial model.
Extended source FGES J1631.6-4756 in ROI with RadialDisk spatial model.
Extended source FGES J1633.0-4746 in ROI with RadialDisk spatial model.
Extended source G337.0-0.1 in ROI with RadialDisk spatial model.
Extended source FHES J1642.1-5428 in ROI with RadialDisk spatial model.
Extended source FGES J1652.2-4633 in ROI with RadialDisk spatial model.
Extended source HESS J1303-631 in ROI with RadialGaussian spatial model.
Extended source CenA Lobes in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/CenALobes.fits is the correct path to the extended template.
Extended source FGES J1655.5-4737 in ROI with RadialDisk spatial model.
Added 423 point sources and 21 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 J1508.5-4951 @ 227.144 -49.8622

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/63135229/ft1_filtered_4FGL_J1508.5-4951_daily_bin2008.fits scfile=/lscratch/kocevski/63135229/ft2_4FGL_J1508.5-4951_daily_bin2008.fits outfile=/lscratch/kocevski/63135229/cmap_759801601_760060801_4FGL_J1508.5-4951_daily_bin2008.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.144 yref=-49.8622 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.77
user 0.25
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/63135229/ft1_filtered_4FGL_J1508.5-4951_daily_bin2008.fits scfile=/lscratch/kocevski/63135229/ft2_4FGL_J1508.5-4951_daily_bin2008.fits outfile=/lscratch/kocevski/63135229/cmap_HighResolution_759801601_760060801_4FGL_J1508.5-4951_daily_bin2008.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.144 yref=-49.8622 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.59
user 0.25
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/63135229/ft1_filtered_4FGL_J1508.5-4951_daily_bin2008.fits evtable="EVENTS" scfile=/lscratch/kocevski/63135229/ft2_4FGL_J1508.5-4951_daily_bin2008.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/63135229/Model_4FGL_J1508.5-4951_daily_bin2008.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 CenA Lobes
adding source EG_v02
adding source FGES J1409.1-6121
adding source FGES J1553.8-5325
adding source FGES J1631.6-4756
adding source FGES J1633.0-4746
adding source FGES J1652.2-4633
adding source FGES J1655.5-4737
adding source FHES J1501.0-6310
adding source FHES J1642.1-5428
adding source G337.0-0.1
adding source GAL_V02
adding source HESS J1303-631
adding source HESS J1356-645
adding source HESS J1420-607
adding source HESS J1507-622
adding source HESS J1534-571
adding source HESS J1614-518
adding source HESS J1616-508
adding source MSH 15-52
adding source MSH 15-56 PWN
adding source MSH 15-56 SNR
adding source RCW 86
Working on...
/lscratch/kocevski/63135229/ft1_filtered_4FGL_J1508.5-4951_daily_bin2008.fits.....................!
real 1513.86
user 1490.64
sys 1.74

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/63135229/ft1_filtered_4FGL_J1508.5-4951_daily_bin2008.fits', '/lscratch/kocevski/63135229/ft2_4FGL_J1508.5-4951_daily_bin2008.fits', expMap='/lscratch/kocevski/63135229/expmap_759801601_760060801_4FGL_J1508.5-4951_daily_bin2008.fits', expCube='/lscratch/kocevski/63135229/ltcube_759801601_760060801_4FGL_J1508.5-4951_daily_bin2008.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/63135229/Model_4FGL_J1508.5-4951_daily_bin2008.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1508.5-4951'

4FGL J1508.5-4951
   Spectrum: LogParabola
638         norm:  7.628e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
639        alpha:  2.827e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
640         beta:  1.684e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
641           Eb:  6.035e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/63135229/ft1_filtered_4FGL_J1508.5-4951_daily_bin2008.fits
Spacecraft file(s): /lscratch/kocevski/63135229/ft2_4FGL_J1508.5-4951_daily_bin2008.fits
Exposure map: /lscratch/kocevski/63135229/expmap_759801601_760060801_4FGL_J1508.5-4951_daily_bin2008.fits
Exposure cube: /lscratch/kocevski/63135229/ltcube_759801601_760060801_4FGL_J1508.5-4951_daily_bin2008.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/63135229/Model_4FGL_J1508.5-4951_daily_bin2008.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) = 55970.326232

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .50682E-07   1.0000          .0000       .10000E+07
     2 'norm      '    .51674       1.0000          .0000       .10000E+07
     3 'Prefactor '    .38727E-04   1.0000          .0000       .10000E+07
     4 'norm      '    31.760       1.0000          .0000       .10000E+07
     5 'Prefactor '    .46291E-06   1.0000          .0000       .10000E+07
     6 'norm      '    .43437E-06   1.0000          .0000       .10000E+07
     7 'norm      '    8.8306       1.0000          .0000       .10000E+07
     8 'norm      '    2.0151       1.0000          .0000       .10000E+07
     9 'Prefactor '    1.2783       1.0000          .0000       .10000E+07
    10 'norm      '    .49249E-05   1.0000          .0000       .10000E+07
    11 'norm      '    7.3932       1.0000          .0000       .10000E+07
    12 'norm      '    22.954       1.0000          .0000       .10000E+07
    13 'Normalizat'    1.5755       1.0000         .10000E-01   10.000    
    14 'Prefactor '    1.0184       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1576E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   55969.64     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      742 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.8381        .13170E-05** at limit **
   2  norm          .51678        .13432       -.76109E-07   -.85898E-02
   3  Prefactor     .21094E-08    22.841        .35249E-05** at limit **
   4  norm          31.627        2.6131       -.47991E-06    .29007    
   5  Prefactor     .66613E-09    3.6684        .20579E-05** at limit **
   6  norm          .55511E-10    4.5464        .72694E-07** at limit **
   7  norm          8.8175        1.1875       -.24719E-06    .45374E-01
   8  norm          2.0143        3.1416       -.65488E-06    .12362E-02
   9  Prefactor     1.3935        1.2846       -.39360E-06    .88173E-02
  10  norm          .17375E-07    10.252       -.29594E-06** at limit **
  11  norm          7.3897        7.1797       -.29189E-05   -.49979E-01
  12  norm          22.922        1.1034        .61575E-07   -.52242E-01
  13  Normalizat    1.5754        .26999        .20780E-04   -.10010E-03
  14  Prefactor     1.0184        .19670E-01   -.40493E-06   -.58934E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 0.516781
  Prefactor  = 2.10942e-09
  norm       = 31.6274
  Prefactor  = 6.66134e-10
  norm       = 5.55112e-11
  norm       = 8.81746
  norm       = 2.01431
  Prefactor  = 1.39352
  norm       = 1.7375e-08
  norm       = 7.38972
  norm       = 22.9222
  Normalizat = 1.57545
  Prefactor  = 1.01842
 **********
 **   18 **HESSE 
 **********

 FCN=   55969.64     FROM HESSE     STATUS=OK           192 CALLS      934 TOTAL
                     EDM=   .60E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.8450        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .51678        .13618        .77043E-03   -1.5694    
   3  Prefactor     .21094E-08    22.975        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          31.627        13.128        .17747E-03   -1.5595    
   5  Prefactor     .66613E-09    3.7029        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .55511E-10    4.5458        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          8.8175        12.457        .33706E-03   -1.5649    
   8  norm          2.0143        3.1861        .72889E-03   -1.5680    
   9  Prefactor     1.3935        66.546        .98187E-03   -1.5684    
  10  norm          .17375E-07    10.309        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          7.3897        7.2953        .36862E-03   -1.5654    
  12  norm          22.922        20.897        .20878E-03   -1.5612    
  13  Normalizat    1.5754        .28301        .29107       -.75680    
  14  Prefactor     1.0184        .19887E-01    .26130E-01   -.92118    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.95898e-07
Minuit parameter uncertainties:
  1  1.00043e-06
  2  0.13618
  3  0.000443146
  4  13.1279
  5  0.000100595
  6  2.42665e-05
  7  12.4572
  8  3.18607
  9  19.2598
  10  0.000847067
  11  7.29529
  12  20.8972
  13  0.283295
  14  0.0198872
Done.

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

Extracting fit parameters...

4FGL J1508.5-4951
   Spectrum: LogParabola
638         norm:  5.551e-11  2.427e-05  0.000e+00  1.000e+06 ( 1.000e-12)
639        alpha:  2.827e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
640         beta:  1.684e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
641           Eb:  6.035e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1537    Prefactor:  1.018e+00  1.989e-02  0.000e+00  1.000e+01 ( 1.000e+00)
1538        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1539        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1504   Normalization:  1.575e+00  2.833e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 227.144 -49.862
Photon Flux Upper Limit: 1.04044829564e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.42839569427e-05 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/63135229/likelihoodResults_759801601_760060801_4FGL_J1508.5-4951_daily_bin2008.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) = 55969.6399951
delta logL = -0.000231493177125

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 55969.6397642
delta logL = -5.31304976903e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .33029E-07   1.0000          .0000       .10000E+07
     2 'alpha     '    1.2626       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5754       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0184       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1576E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   55969.64     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      258 TOTAL
                     EDM=   .23E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        1.6634        .42118E-03** at limit **
   2  alpha         4.4663        .74911        .11542E-03     .0000    
   3  Normalizat    1.5754        1.0427       -.23450E-04   -.69167E-04
   4  Prefactor     1.0184        1.2415        .53464E-06   -.11259E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  alpha      = 4.46634
  Normalizat = 1.57545
  Prefactor  = 1.01842
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   55969.64     FROM HESSE     STATUS=FAILED         7 CALLS      265 TOTAL
                     EDM=   .23E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        1.6634        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         3.4624        .75692        .11542E-03    .90518    
   3  Normalizat    1.5754        1.0427       -.23450E-04   -.75680    
   4  Prefactor     1.0184        1.2415        .53464E-06   -.92118    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.26023e-11
Minuit parameter uncertainties:
  1  1.47979e-06
  2  0.782142
  3  1.05754
  4  1.27931
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) = 55969.6397636
delta logL = 0.0

Extracting fit parameters...

4FGL J1508.5-4951
   Spectrum: LogParabola
638         norm:  0.000e+00  1.480e-06  0.000e+00  1.000e+06 ( 1.000e-12)
639        alpha:  4.466e+00  7.821e-01  0.000e+00  5.000e+00 ( 1.000e+00)
640         beta:  1.684e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
641           Eb:  6.035e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1537    Prefactor:  1.018e+00  1.279e+00  0.000e+00  1.000e+01 ( 1.000e+00)
1538        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1539        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1504   Normalization:  1.575e+00  1.058e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 227.144 -49.862

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /lscratch/kocevski/63135229/cmap_HighResolution_759801601_760060801_4FGL_J1508.5-4951_daily_bin2008.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.43e-05', job_status='DONE', photon_flux_upper_limit='1.04e-07', time_completed='2025-02-01 01:58:48.177317', job_id='63135229', GAL2='1.02', fit_tolerance='1e-08', EG2='1.58', EG='1.58', time_epoch_completed='1738403928.18', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.83' WHERE bin_id='2008' AND source_name='4FGL J1508.5-4951' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Feb  1 01:58:48 PST 2025

