 **********
 **   18 **HESSE 
 **********

 FCN=   6315.327     FROM HESSE     STATUS=OK           508 CALLS     2237 TOTAL
                     EDM=   .36E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .99098        3.1780        .43440E-03   -1.5688    
   2  Prefactor     .33890E-06    13.687        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .83211E-07    21.492        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .93536E-07    14.603        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        3.1398        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.7786        2.4175        .41748E-03   -1.5660    
   7  Prefactor     .55117E-06    16.495        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .73985E-06    58.003        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.7073        21.735        .36132E-03   -1.5652    
  10  Prefactor     .11102E-08    7.2717        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10089E-01    7.9603        .11009E-01   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.9486        1.2017        .74300E-03   -1.5680    
  13  Prefactor      .0000        5.9869        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor      .0000        1.7724        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor      .0000        4.1024        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .58287E-08    9.1731        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm           .0000        .81432        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .77105E-07    21.419        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .11313E-06    22.086        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          6.5749        6.6815        .39147E-03   -1.5657    
  21  Prefactor     .52458E-07    26.913        .13616E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .16354E-06    22.727        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     2.4880        6.0657        .64506E-03   -1.5676    
  24  Prefactor     .24126        4.1881        .88734E-02   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.2028        .14482        .34838E-01   -.86517    
  26  Prefactor     .54234        .15512        .64632E-01   -1.1007    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.64541e-07
Minuit parameter uncertainties:
  1  3.17805
  2  0.00430741
  3  0.00267432
  4  0.00233742
  5  1.57207e-05
  6  2.41751
  7  0.00603055
  8  0.013102
  9  21.7354
  10  0.000178468
  11  0.566794
  12  1.20175
  13  1.26804e-05
  14  1.49197e-06
  15  7.35934e-06
  16  0.000463034
  17  1.1781e-06
  18  0.00257046
  19  0.00316137
  20  6.6815
  21  0.0023758
  22  0.00385566
  23  6.06571
  24  2.01038
  25  0.144867
  26  0.155245
/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).

Done.

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

Extracting fit parameters...

4FGL J1510.1+5702
   Spectrum: PowerLaw
344    Prefactor:  0.000e+00  7.359e-06  0.000e+00  1.000e+06 ( 1.000e-12)
345        Index:  2.882e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
346        Scale:  4.831e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
691    Prefactor:  5.423e-01  1.552e-01  0.000e+00  1.000e+01 ( 1.000e+00)
692        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
693        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
690   Normalization:  1.203e+00  1.449e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 227.542 57.040
Photon Flux Upper Limit: 5.49596876213e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00437014938136 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/19059460/likelihoodResults_710553601_710812801_4FGL_J1510.1+5702_daily_bin1818.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) = 6315.33165057
delta logL = -0.00437953267556

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6315.32727171
delta logL = -6.803065844e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17314E-06   1.0000          .0000       .10000E+07
     2 'Index     '    3.4949       1.0000          .0000       10.000    
     3 'Normalizat'    1.2028       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .54239       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   6315.327     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      241 TOTAL
                     EDM=   .33E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .79385        .42118E-03** at limit **
   2  Index         1.2100        .68555        .80093E-04     .0000    
   3  Normalizat    1.2028        1.1053        .38451E-05   -.13292E-03
   4  Prefactor     .54234        .88742       -.12251E-04   -.51986E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.20995
  Normalizat = 1.20276
  Prefactor  = 0.54234
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6315.327     FROM HESSE     STATUS=FAILED         9 CALLS      250 TOTAL
                     EDM=   .33E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .79385        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .10021        1.1944        .80093E-04   -.86026    
   3  Normalizat    1.2028        1.1053        .38451E-05   -.86517    
   4  Prefactor     .54234        .88742       -.12251E-04   -1.1007    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 3.25064e-11
Minuit parameter uncertainties:
  1  3.48822e-06
  2  0.690701
  3  1.128
  4  0.911859
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) = 6315.32727103
delta logL = -1.90993887372e-11

Extracting fit parameters...

4FGL J1510.1+5702
   Spectrum: PowerLaw
344    Prefactor:  0.000e+00  3.488e-06  0.000e+00  1.000e+06 ( 1.000e-12)
345        Index:  1.210e+00  6.907e-01  0.000e+00  1.000e+01 (-1.000e+00)
346        Scale:  4.831e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
691    Prefactor:  5.423e-01  9.119e-01  0.000e+00  1.000e+01 ( 1.000e+00)
692        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
693        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
690   Normalization:  1.203e+00  1.128e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 227.542 57.040

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /lscratch/kocevski/19059460/cmap_HighResolution_710553601_710812801_4FGL_J1510.1+5702_daily_bin1818.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.37e-03', job_status='DONE', photon_flux_upper_limit='5.50e-08', time_completed='2023-07-12 00:41:43.979052', job_id='19059460', GAL2='0.54', fit_tolerance='1e-08', EG2='1.20', EG='1.20', time_epoch_completed='1689147703.98', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.54', dlogl='-1.91e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.88' WHERE bin_id='1818' AND source_name='4FGL J1510.1+5702' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jul 12 00:41:44 PDT 2023

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


Performing analysis on: 4FGL_J1510.1+5702_daily_bin1818
RA = 227.542, Dec = 57.0398
tmin = 710553601, tmax = 710812801
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='19059880', job_status='RUN', time_executed='2023-07-12 00:41:13.280968', time_epoch_executed='1689147673.28' WHERE source_name='4FGL J1510.1+5702' and cadence='daily' and bin_id='1818'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/19059880

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/19059880/ft1_4FGL_J1510.1+5702_daily_bin1818.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/19059880/ft2_4FGL_J1510.1+5702_daily_bin1818.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/19059880/ft1_4FGL_J1510.1+5702_daily_bin1818.fits outfile=/lscratch/kocevski/19059880/ft1_filteredMKT_4FGL_J1510.1+5702_daily_bin1818.fits ra=227.542 dec=57.0398 rad=12.0 tmin=710553601.0 tmax=710812801.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.03
user 1.72
sys 0.18

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/19059880/ft2_4FGL_J1510.1+5702_daily_bin1818.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/19059880/ft2_4FGL_J1510.1+5702_daily_bin1818.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/19059880/ft1_filteredMKT_4FGL_J1510.1+5702_daily_bin1818.fits evtable="EVENTS" outfile="/lscratch/kocevski/19059880/ft1_filtered_4FGL_J1510.1+5702_daily_bin1818.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.44
user 0.17
sys 0.13

Number of photons that the gtmktime cut: 584

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/19059880/ft1_filtered_4FGL_J1510.1+5702_daily_bin1818.fits" evtable="EVENTS" scfile=/lscratch/kocevski/19059880/ft2_4FGL_J1510.1+5702_daily_bin1818.fits sctable="SC_DATA" outfile=/lscratch/kocevski/19059880/ltcube_710553601_710812801_4FGL_J1510.1+5702_daily_bin1818.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/19059880/ft2_4FGL_J1510.1+5702_daily_bin1818.fits
.....................!
real 7.47
user 7.12
sys 0.21

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/19059880/ft1_filtered_4FGL_J1510.1+5702_daily_bin1818.fits evtable="EVENTS" scfile=/lscratch/kocevski/19059880/ft2_4FGL_J1510.1+5702_daily_bin1818.fits sctable="SC_DATA" expcube=/lscratch/kocevski/19059880/ltcube_710553601_710812801_4FGL_J1510.1+5702_daily_bin1818.fits outfile=/lscratch/kocevski/19059880/expmap_710553601_710812801_4FGL_J1510.1+5702_daily_bin1818.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/19059880/ltcube_710553601_710812801_4FGL_J1510.1+5702_daily_bin1818.fits
.....................!
real 61.56
user 57.70
sys 3.49

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 219 point sources and 0 extended sources

Setting source of interest to:
4FGL J1510.1+5702 @ 227.542 57.0398

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/19059880/ft1_filtered_4FGL_J1510.1+5702_daily_bin1818.fits scfile=/lscratch/kocevski/19059880/ft2_4FGL_J1510.1+5702_daily_bin1818.fits outfile=/lscratch/kocevski/19059880/cmap_710553601_710812801_4FGL_J1510.1+5702_daily_bin1818.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.542 yref=57.0398 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.35
user 0.19
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/19059880/ft1_filtered_4FGL_J1510.1+5702_daily_bin1818.fits scfile=/lscratch/kocevski/19059880/ft2_4FGL_J1510.1+5702_daily_bin1818.fits outfile=/lscratch/kocevski/19059880/cmap_HighResolution_710553601_710812801_4FGL_J1510.1+5702_daily_bin1818.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.542 yref=57.0398 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.34
user 0.19
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/19059880/ft1_filtered_4FGL_J1510.1+5702_daily_bin1818.fits evtable="EVENTS" scfile=/lscratch/kocevski/19059880/ft2_4FGL_J1510.1+5702_daily_bin1818.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/19059880/Model_4FGL_J1510.1+5702_daily_bin1818.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source GAL_V02
Working on...
/lscratch/kocevski/19059880/ft1_filtered_4FGL_J1510.1+5702_daily_bin1818.fits.....................!
real 18.60
user 17.88
sys 0.60

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/19059880/ft1_filtered_4FGL_J1510.1+5702_daily_bin1818.fits', '/lscratch/kocevski/19059880/ft2_4FGL_J1510.1+5702_daily_bin1818.fits', expMap='/lscratch/kocevski/19059880/expmap_710553601_710812801_4FGL_J1510.1+5702_daily_bin1818.fits', expCube='/lscratch/kocevski/19059880/ltcube_710553601_710812801_4FGL_J1510.1+5702_daily_bin1818.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/19059880/Model_4FGL_J1510.1+5702_daily_bin1818.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1510.1+5702'

4FGL J1510.1+5702
   Spectrum: PowerLaw
344    Prefactor:  1.597e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
345        Index:  2.882e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
346        Scale:  4.831e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/19059880/ft1_filtered_4FGL_J1510.1+5702_daily_bin1818.fits
Spacecraft file(s): /lscratch/kocevski/19059880/ft2_4FGL_J1510.1+5702_daily_bin1818.fits
Exposure map: /lscratch/kocevski/19059880/expmap_710553601_710812801_4FGL_J1510.1+5702_daily_bin1818.fits
Exposure cube: /lscratch/kocevski/19059880/ltcube_710553601_710812801_4FGL_J1510.1+5702_daily_bin1818.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/19059880/Model_4FGL_J1510.1+5702_daily_bin1818.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) = 6315.39974559

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .99080       1.0000          .0000       .10000E+07
     2 'Prefactor '    .65070E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    .11885E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .60148E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    .32743E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    5.7812       1.0000          .0000       .10000E+07
     7 'Prefactor '    .54017E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    .11105E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    7.6924       1.0000          .0000       .10000E+07
    10 'Prefactor '    .30095E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    .24597       1.0000          .0000       .10000E+07
    12 'norm      '    1.9494       1.0000          .0000       .10000E+07
    13 'Prefactor '    .64710E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    .28033E-07   1.0000          .0000       .10000E+07
    15 'Prefactor '    .36380E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .12300E-04   1.0000          .0000       .10000E+07
    17 'norm      '    .53257E-06   1.0000          .0000       .10000E+07
    18 'Prefactor '    .28092E-03   1.0000          .0000       .10000E+07
    19 'Prefactor '    .65409E-03   1.0000          .0000       .10000E+07
    20 'norm      '    6.5636       1.0000          .0000       .10000E+07
    21 'Prefactor '    .11205       1.0000          .0000       .10000E+07
    22 'Prefactor '    .19856E-03   1.0000          .0000       .10000E+07
    23 'Prefactor '    2.5073       1.0000          .0000       .10000E+07
    24 'Prefactor '    .40653       1.0000          .0000       .10000E+07
    25 'Normalizat'    1.2022       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .54224       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6315.327     FROM MIGRAD    STATUS=CONVERGED    153 CALLS     1729 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .99098        3.1696       -.22063E-06   -.23535E-02
   2  Prefactor     .33890E-06    9.7884        .91275E-07** at limit **
   3  Prefactor     .83211E-07    5.3454        .10018E-06** at limit **
   4  Prefactor     .93536E-07    5.3456        .73689E-07** at limit **
   5  Prefactor      .0000        3.1397        .63771E-07** at limit **
   6  Prefactor     5.7786        2.4164       -.15357E-07   -.21735E-02
   7  Prefactor     .55117E-06    12.008        .42396E-07** at limit **
   8  Prefactor     .73985E-06    57.883       -.15671E-06** at limit **
   9  Prefactor     7.7073        1.0374        .10437E-08   -.32481E-03
  10  Prefactor     .11102E-08    7.2735        .16303E-06** at limit **
  11  Prefactor     .10089E-01    21.800       -.14762E-06** at limit **
  12  norm          1.9486        1.1980       -.22630E-07   -.31398E-02
  13  Prefactor      .0000        6.0188        .45301E-07** at limit **
  14  Prefactor      .0000        1.7727        .19543E-08** at limit **
  15  Prefactor      .0000        4.1171        .42128E-08** at limit **
  16  Prefactor     .58287E-08    9.1660       -.11441E-07** at limit **
  17  norm           .0000        .81536        .96725E-08** at limit **
  18  Prefactor     .77105E-07    5.6573        .10258E-06** at limit **
  19  Prefactor     .11313E-06    3.9098        .88446E-07** at limit **
  20  norm          6.5749        6.4774       -.58127E-07   -.12169E-02
  21  Prefactor     .52458E-07    1.6238        .31416E-07** at limit **
  22  Prefactor     .16354E-06    10.844        .14009E-06** at limit **
  23  Prefactor     2.4880        6.0493        .22369E-07    .26470E-03
  24  Prefactor     .24126        1.1945        .16960E-07** at limit **
  25  Normalizat    1.2028        .16747        .80332E-06   -.33628E-04
  26  Prefactor     .54234        .17878       -.87100E-06   -.35866E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.99098
  Prefactor  = 3.38896e-07
  Prefactor  = 8.32112e-08
  Prefactor  = 9.35363e-08
  Prefactor  = 0
  Prefactor  = 5.77865
  Prefactor  = 5.5117e-07
  Prefactor  = 7.39853e-07
  Prefactor  = 7.70734
  Prefactor  = 1.11022e-09
  Prefactor  = 0.0100893
  norm       = 1.9486
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 5.82867e-09
  norm       = 0
  Prefactor  = 7.7105e-08
  Prefactor  = 1.13132e-07
  norm       = 6.57485
  Prefactor  = 5.2458e-08
  Prefactor  = 1.63536e-07
  Prefactor  = 2.48805
  Prefactor  = 0.241255
  Normalizat = 1.20276
  Prefactor  = 0.542339
 **********
 **   18 **HESSE 
 **********

 FCN=   6315.327     FROM HESSE     STATUS=OK           508 CALLS     2237 TOTAL
                     EDM=   .36E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .99098        3.1780        .43440E-03   -1.5688    
   2  Prefactor     .33890E-06    13.687        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .83211E-07    21.492        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .93536E-07    14.603        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        3.1398        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.7786        2.4175        .41748E-03   -1.5660    
   7  Prefactor     .55117E-06    16.495        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .73985E-06    58.003        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.7073        21.735        .36132E-03   -1.5652    
  10  Prefactor     .11102E-08    7.2717        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10089E-01    7.9603        .11009E-01   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.9486        1.2017        .74300E-03   -1.5680    
  13  Prefactor      .0000        5.9869        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor      .0000        1.7724        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor      .0000        4.1024        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .58287E-08    9.1731        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm           .0000        .81432        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .77105E-07    21.419        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .11313E-06    22.086        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          6.5749        6.6815        .39147E-03   -1.5657    
  21  Prefactor     .52458E-07    26.913        .13616E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .16354E-06    22.727        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     2.4880        6.0657        .64506E-03   -1.5676    
  24  Prefactor     .24126        4.1881        .88734E-02   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.2028        .14482        .34838E-01   -.86517    
  26  Prefactor     .54234        .15512        .64632E-01   -1.1007    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.64541e-07
Minuit parameter uncertainties:
  1  3.17805
  2  0.00430741
  3  0.00267432
  4  0.00233742
  5  1.57207e-05
  6  2.41751
  7  0.00603055
  8  0.013102
  9  21.7354
  10  0.000178468
  11  0.566794
  12  1.20175
  13  1.26804e-05
  14  1.49197e-06
  15  7.35934e-06
  16  0.000463034
  17  1.1781e-06
  18  0.00257046
  19  0.00316137
  20  6.6815
  21  0.0023758
  22  0.00385566
  23  6.06571
  24  2.01038
  25  0.144867
  26  0.155245
Done.

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

Extracting fit parameters...

4FGL J1510.1+5702
   Spectrum: PowerLaw
344    Prefactor:  0.000e+00  7.359e-06  0.000e+00  1.000e+06 ( 1.000e-12)
345        Index:  2.882e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
346        Scale:  4.831e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
691    Prefactor:  5.423e-01  1.552e-01  0.000e+00  1.000e+01 ( 1.000e+00)
692        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
693        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
690   Normalization:  1.203e+00  1.449e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 227.542 57.040
Photon Flux Upper Limit: 5.49596876213e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00437014938136 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/19059880/likelihoodResults_710553601_710812801_4FGL_J1510.1+5702_daily_bin1818.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) = 6315.33165057
delta logL = -0.00437953267556

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6315.32727171
delta logL = -6.803065844e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17314E-06   1.0000          .0000       .10000E+07
     2 'Index     '    3.4949       1.0000          .0000       10.000    
     3 'Normalizat'    1.2028       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .54239       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   6315.327     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      241 TOTAL
                     EDM=   .33E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .79385        .42118E-03** at limit **
   2  Index         1.2100        .68555        .80093E-04     .0000    
   3  Normalizat    1.2028        1.1053        .38451E-05   -.13292E-03
   4  Prefactor     .54234        .88742       -.12251E-04   -.51986E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.20995
  Normalizat = 1.20276
  Prefactor  = 0.54234
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6315.327     FROM HESSE     STATUS=FAILED         9 CALLS      250 TOTAL
                     EDM=   .33E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .79385        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .10021        1.1944        .80093E-04   -.86026    
   3  Normalizat    1.2028        1.1053        .38451E-05   -.86517    
   4  Prefactor     .54234        .88742       -.12251E-04   -1.1007    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 3.25064e-11
Minuit parameter uncertainties:
  1  3.48822e-06
  2  0.690701
  3  1.128
  4  0.911859
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) = 6315.32727103
delta logL = -1.90993887372e-11

Extracting fit parameters...

4FGL J1510.1+5702
   Spectrum: PowerLaw
344    Prefactor:  0.000e+00  3.488e-06  0.000e+00  1.000e+06 ( 1.000e-12)
345        Index:  1.210e+00  6.907e-01  0.000e+00  1.000e+01 (-1.000e+00)
346        Scale:  4.831e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
691    Prefactor:  5.423e-01  9.119e-01  0.000e+00  1.000e+01 ( 1.000e+00)
692        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
693        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
690   Normalization:  1.203e+00  1.128e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 227.542 57.040

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /lscratch/kocevski/19059880/cmap_HighResolution_710553601_710812801_4FGL_J1510.1+5702_daily_bin1818.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.37e-03', job_status='DONE', photon_flux_upper_limit='5.50e-08', time_completed='2023-07-12 00:46:05.994374', job_id='19059880', GAL2='0.54', fit_tolerance='1e-08', EG2='1.20', EG='1.20', time_epoch_completed='1689147965.99', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.54', dlogl='-1.91e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.88' WHERE bin_id='1818' AND source_name='4FGL J1510.1+5702' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jul 12 00:46:06 PDT 2023

