/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).

000       .10000E+07
    28 'Prefactor '    .67130E-03   1.0000          .0000       .10000E+07
    29 'norm      '    5.1975       1.0000          .0000       .10000E+07
    30 'Normalizat'    1.1183       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .93771       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6480E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   20584.75     FROM MIGRAD    STATUS=CONVERGED    217 CALLS     3199 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .17580E-05    152.98       -.36352E-06** at limit **
   2  Prefactor     .29618E-03    94.792       -.17048E-05** at limit **
   3  norm          .36110E-06    7.4206        .16669E-07** at limit **
   4  Prefactor     19.024        1.9715       -.87574E-08    .85387E-02
   5  norm          .68767        .47995       -.73589E-08   -.51840E-02
   6  Prefactor     .77846E-03    1328.3        .79409E-05** at limit **
   7  Prefactor     6.0205        9.5953        .22443E-07    .13497E-01
   8  Prefactor      .0000        1.5921        .32194E-07** at limit **
   9  Prefactor     .41805E-06    7.0654       -.74683E-07** at limit **
  10  Prefactor     .59452E-07    10.095       -.56372E-07** at limit **
  11  Prefactor     20.855        5.6155       -.64718E-07    .54679E-01
  12  Prefactor     .24273E-05    23.734        .37452E-06** at limit **
  13  norm          3.0734        1.4662        .79621E-08    .39391E-02
  14  Prefactor     .49960E-09    5.3627        .23949E-07** at limit **
  15  norm          8.5481        3.0278        .66050E-08    .24414E-02
  16  Prefactor     8.3201        8.6813        .76716E-08    .27983E-02
  17  Prefactor     .19352E-05    81.090        .24922E-06** at limit **
  18  Prefactor      .0000        1.9785        .47461E-08** at limit **
  19  norm          2.2702        4.8554        .13560E-07    .81605E-03
  20  Prefactor      .0000        3.4359        .18879E-07** at limit **
  21  Prefactor     .83822E-07    13.425       -.10394E-06** at limit **
  22  Prefactor     63.981        16.086       -.22496E-06    .96163E-01
  23  norm           .0000        .71242       -.15294E-07** at limit **
  24  norm          4.7371        1.6037       -.29621E-08   -.11525E-02
  25  norm           .0000        1.1208        .11783E-07** at limit **
  26  norm          .26090E-08    5.0474       -.49216E-08** at limit **
  27  Prefactor     3.5239        9.3087        .84448E-07    .17659E-01
  28  Prefactor     .37270E-06    2.5366       -.13645E-06** at limit **
  29  norm          5.1977        1.4944       -.33386E-08   -.99509E-03
  30  Normalizat    1.1185        .14156       -.19811E-06   -.72212E-04
  31  Prefactor     .93769        .86218E-01    .54695E-08   -.99073E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.75798e-06
  Prefactor  = 0.000296177
  norm       = 3.611e-07
  Prefactor  = 19.0243
  norm       = 0.687668
  Prefactor  = 0.00077846
  Prefactor  = 6.02052
  Prefactor  = 0
  Prefactor  = 4.18054e-07
  Prefactor  = 5.94524e-08
  Prefactor  = 20.8548
  Prefactor  = 2.42734e-06
  norm       = 3.07337
  Prefactor  = 4.996e-10
  norm       = 8.54805
  Prefactor  = 8.32006
  Prefactor  = 1.93517e-06
  Prefactor  = 0
  norm       = 2.27015
  Prefactor  = 0
  Prefactor  = 8.38218e-08
  Prefactor  = 63.981
  norm       = 0
  norm       = 4.7371
  norm       = 0
  norm       = 2.60902e-09
  Prefactor  = 3.52393
  Prefactor  = 3.72702e-07
  norm       = 5.19774
  Normalizat = 1.11852
  Prefactor  = 0.937691
/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 = 7525
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1807.2+6429_daily_bin1812
RA = 271.809, Dec = 64.4988
tmin = 708998401, tmax = 709257601
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='18917537', job_status='RUN', time_executed='2023-07-10 13:35:45.264291', time_epoch_executed='1689021345.26' WHERE source_name='4FGL J1807.2+6429' and cadence='daily' and bin_id='1812'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/18917537

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/18917537/ft1_4FGL_J1807.2+6429_daily_bin1812.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/18917537/ft2_4FGL_J1807.2+6429_daily_bin1812.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/18917537/ft1_4FGL_J1807.2+6429_daily_bin1812.fits outfile=/lscratch/kocevski/18917537/ft1_filteredMKT_4FGL_J1807.2+6429_daily_bin1812.fits ra=271.809 dec=64.4988 rad=12.0 tmin=708998401.0 tmax=709257601.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 1.50
user 1.25
sys 0.14

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/18917537/ft2_4FGL_J1807.2+6429_daily_bin1812.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/18917537/ft2_4FGL_J1807.2+6429_daily_bin1812.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/18917537/ft1_filteredMKT_4FGL_J1807.2+6429_daily_bin1812.fits evtable="EVENTS" outfile="/lscratch/kocevski/18917537/ft1_filtered_4FGL_J1807.2+6429_daily_bin1812.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.42
user 0.17
sys 0.14

Number of photons that the gtmktime cut: 1994

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/18917537/ft1_filtered_4FGL_J1807.2+6429_daily_bin1812.fits" evtable="EVENTS" scfile=/lscratch/kocevski/18917537/ft2_4FGL_J1807.2+6429_daily_bin1812.fits sctable="SC_DATA" oDone.

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

Extracting fit parameters...

4FGL J1807.2+6429
   Spectrum: PowerLaw
365    Prefactor:  8.320e+00  8.695e+00  0.000e+00  1.000e+06 ( 1.000e-14)
366        Index:  1.991e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
367        Scale:  3.180e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
645    Prefactor:  9.377e-01  7.471e-02  0.000e+00  1.000e+01 ( 1.000e+00)
646        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
647        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
644   Normalization:  1.119e+00  1.263e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.96
Ra Dec: 271.809 64.499
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 8.22e-09 +/- 8.58e-09
Energy Flux (Fixed Index): 5.81e-06 +/- 6.07e-06

TS (Fixed Index): 1.96
Ra Dec: 271.809 64.499
Photon Flux Upper Limit: 3.23222280668e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00242229617707 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/18916325/likelihoodResults_708998401_709257601_4FGL_J1807.2+6429_daily_bin1812.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) = 20584.6993984
delta logL = 0.0476415622506

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 20584.6989227
delta logL = 0.0481172578075

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   20584.70     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      286 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.428        12.666        .12402E-04   -.12283E-02
   2  Index         1.7875        .66002        .10884E-01   -.67237E-04
   3  Normalizat    1.1205        .13692        .31585E-03    .51168E-03
   4  Prefactor     .93716        .84792E-01    .21067E-03    .84633E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.4282
  Index      = 1.78752
  Normalizat = 1.12052
  Prefactor  = 0.937157
 **********
 **   18 **HESSE 
 **********

 FCN=   20584.70     FROM HESSE     STATUS=OK            25 CALLS      311 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.428        12.255        .49609E-06   -1.5643    
   2  Index         1.7875        .63910        .43537E-03   -.69775    
   3  Normalizat    1.1205        .13700        .12634E-04   -.89096    
   4  Prefactor     .93716        .84853E-01    .42134E-04   -.94855    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.40217e-10
Minuit parameter uncertainties:
  1  12.2554
  2  0.642102
  3  0.137048
  4  0.0848651
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 20584.6989217
delta logL = 0.0481182660515

Extracting fit parameters...

4FGL J1807.2+6429
   Spectrum: PowerLaw
365    Prefactor:  1.043e+01  1.226e+01  0.000e+00  1.000e+06 ( 1.000e-14)
366        Index:  1.788e+00  6.421e-01  0.000e+00  1.000e+01 (-1.000e+00)
367        Scale:  3.180e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
645    Prefactor:  9.372e-01  8.487e-02  0.000e+00  1.000e+01 ( 1.000e+00)
646        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
647        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
644   Normalization:  1.121e+00  1.370e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.05
Ra Dec: 271.809 64.499
Photon Index (Free Index): 1.79 +/- 0.64
Photon Flux (Free Index): 6.39e-09 +/- 8.81e-09
Energy Flux (Free Index): 7.95e-06 +/- 1.18e-05

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/18916325/cmap_HighResolution_708998401_709257601_4FGL_J1807.2+6429_daily_bin1812.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.42e-03', comment='SUCCESS', photon_flux='8.22e-09', energy_flux2='7.95e-06', photon_flux_error='8.58e-09', dlogl='4.81e-02', energy_flux='5.81e-06', photon_flux2='6.39e-09', job_status='DONE', time_completed='2023-07-10 13:36:57.395627', photon_index_error2='0.64', photon_index2='1.79', ts='1.96', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='3.23e-08', energy_flux_error2='1.18e-05', EG='1.12', time_epoch_completed='1689021417.4', return_code='0', job_id='18916325', GAL2='0.94', EG2='1.12', return_code2='0', energy_flux_error='6.07e-06', photon_flux_error2='8.81e-09', ts2='2.05', photon_index='1.99' WHERE bin_id='1812' AND source_name='4FGL J1807.2+6429' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jul 10 13:36:57 PDT 2023

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

 FCN=   20584.75     FROM HESSE     STATUS=OK           696 CALLS     3895 TOTAL
                     EDM=   .69E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .17580E-05    154.67        .71796E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .29618E-03    11.735        .17132E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .36110E-06    8.3478        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     19.024        11.398        .22936E-03   -1.5621    
   5  norm          .68767        .50910        .61747E-03   -1.5691    
   6  Prefactor     .77846E-03    3.8242        .62013E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.0205        9.8528        .40858E-03   -1.5659    
   8  Prefactor      .0000        1.5970        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .41805E-06    8.0087        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .59452E-07    12.628        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     20.855        24.516        .21892E-03   -1.5617    
  12  Prefactor     .24273E-05    68.076        .10386E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.0734        1.4704        .57833E-03   -1.5673    
  14  Prefactor     .49960E-09    5.3764        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          8.5481        3.0390        .34259E-03   -1.5649    
  16  Prefactor     8.3201        8.6947        .34718E-03   -1.5650    
  17  Prefactor     .19352E-05    88.896        .90955E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor      .0000        1.9773        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.2702        4.8724        .67965E-03   -1.5678    
  20  Prefactor      .0000        3.4505        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .83822E-07    14.443        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     63.981        51.987        .12514E-03   -1.5548    
  23  norm           .0000        .70393        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          4.7371        1.6059        .46208E-03   -1.5664    
  25  norm           .0000        1.1230        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .26090E-08    5.0452        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     3.5239        9.5456        .53672E-03   -1.5670    
  28  Prefactor     .37270E-06    1.4382        .57831E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          5.1977        1.4984        .44070E-03   -1.5662    
  30  Normalizat    1.1185        .12624        .71437E-01   -.89159    
  31  Prefactor     .93769        .74703E-01    .45484E-01   -.94836    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.90915e-07
Minuit parameter uncertainties:
  1  0.0329804
  2  0.117909
  3  0.0034725
  4  11.3976
  5  0.509104
  6  0.109124
  7  9.85287
  8  3.38879e-06
  9  0.00365955
  10  0.00173268
  11  24.5158
  12  0.0257099
  13  1.47043
  14  0.000106373
  15  3.039
  16  8.69468
  17  0.0262324
  18  1.14871e-05
  19  4.87244
  20  1.03229e-07
  21  0.00220064
  22  51.9872
  23  2.7524e-06
  24  1.60591
  25  2.24789e-06
  26  0.000228888
  27  9.54564
  28  0.00146422
  29  1.49836
  30  0.126278
  31  0.0747111
utfile=/lscratch/kocevski/18917537/ltcube_708998401_709257601_4FGL_J1807.2+6429_daily_bin1812.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/18917537/ft2_4FGL_J1807.2+6429_daily_bin1812.fits
.....................!
real 7.80
user 7.43
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/18917537/ft1_filtered_4FGL_J1807.2+6429_daily_bin1812.fits evtable="EVENTS" scfile=/lscratch/kocevski/18917537/ft2_4FGL_J1807.2+6429_daily_bin1812.fits sctable="SC_DATA" expcube=/lscratch/kocevski/18917537/ltcube_708998401_709257601_4FGL_J1807.2+6429_daily_bin1812.fits outfile=/lscratch/kocevski/18917537/expmap_708998401_709257601_4FGL_J1807.2+6429_daily_bin1812.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/18917537/ltcube_708998401_709257601_4FGL_J1807.2+6429_daily_bin1812.fits
.....................!
real 59.68
user 55.75
sys 3.41

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 196 point sources and 0 extended sources

Setting source of interest to:
4FGL J1807.2+6429 @ 271.809 64.4988

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/18917537/ft1_filtered_4FGL_J1807.2+6429_daily_bin1812.fits scfile=/lscratch/kocevski/18917537/ft2_4FGL_J1807.2+6429_daily_bin1812.fits outfile=/lscratch/kocevski/18917537/cmap_708998401_709257601_4FGL_J1807.2+6429_daily_bin1812.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=271.809 yref=64.4988 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.36
user 0.21
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/18917537/ft1_filtered_4FGL_J1807.2+6429_daily_bin1812.fits scfile=/lscratch/kocevski/18917537/ft2_4FGL_J1807.2+6429_daily_bin1812.fits outfile=/lscratch/kocevski/18917537/cmap_HighResolution_708998401_709257601_4FGL_J1807.2+6429_daily_bin1812.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=271.809 yref=64.4988 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.37
user 0.21
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/18917537/ft1_filtered_4FGL_J1807.2+6429_daily_bin1812.fits evtable="EVENTS" scfile=/lscratch/kocevski/18917537/ft2_4FGL_J1807.2+6429_daily_bin1812.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/18917537/Model_4FGL_J1807.2+6429_daily_bin1812.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 GADone.

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

Extracting fit parameters...

4FGL J1807.2+6429
   Spectrum: PowerLaw
365    Prefactor:  8.320e+00  8.695e+00  0.000e+00  1.000e+06 ( 1.000e-14)
366        Index:  1.991e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
367        Scale:  3.180e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
645    Prefactor:  9.377e-01  7.471e-02  0.000e+00  1.000e+01 ( 1.000e+00)
646        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
647        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
644   Normalization:  1.119e+00  1.263e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.96
Ra Dec: 271.809 64.499
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 8.22e-09 +/- 8.58e-09
Energy Flux (Fixed Index): 5.81e-06 +/- 6.07e-06

TS (Fixed Index): 1.96
Ra Dec: 271.809 64.499
Photon Flux Upper Limit: 3.23222280668e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00242229617707 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/18916619/likelihoodResults_708998401_709257601_4FGL_J1807.2+6429_daily_bin1812.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) = 20584.6993984
delta logL = 0.0476415622506

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 20584.6989227
delta logL = 0.0481172578075

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   20584.70     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      286 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.428        12.666        .12402E-04   -.12283E-02
   2  Index         1.7875        .66002        .10884E-01   -.67237E-04
   3  Normalizat    1.1205        .13692        .31585E-03    .51168E-03
   4  Prefactor     .93716        .84792E-01    .21067E-03    .84633E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.4282
  Index      = 1.78752
  Normalizat = 1.12052
  Prefactor  = 0.937157
 **********
 **   18 **HESSE 
 **********

 FCN=   20584.70     FROM HESSE     STATUS=OK            25 CALLS      311 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.428        12.255        .49609E-06   -1.5643    
   2  Index         1.7875        .63910        .43537E-03   -.69775    
   3  Normalizat    1.1205        .13700        .12634E-04   -.89096    
   4  Prefactor     .93716        .84853E-01    .42134E-04   -.94855    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.40217e-10
Minuit parameter uncertainties:
  1  12.2554
  2  0.642102
  3  0.137048
  4  0.0848651
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 20584.6989217
delta logL = 0.0481182660515

Extracting fit parameters...

4FGL J1807.2+6429
   Spectrum: PowerLaw
365    Prefactor:  1.043e+01  1.226e+01  0.000e+00  1.000e+06 ( 1.000e-14)
366        Index:  1.788e+00  6.421e-01  0.000e+00  1.000e+01 (-1.000e+00)
367        Scale:  3.180e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
645    Prefactor:  9.372e-01  8.487e-02  0.000e+00  1.000e+01 ( 1.000e+00)
646        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
647        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
644   Normalization:  1.121e+00  1.370e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.05
Ra Dec: 271.809 64.499
Photon Index (Free Index): 1.79 +/- 0.64
Photon Flux (Free Index): 6.39e-09 +/- 8.81e-09
Energy Flux (Free Index): 7.95e-06 +/- 1.18e-05

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/18916619/cmap_HighResolution_708998401_709257601_4FGL_J1807.2+6429_daily_bin1812.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.42e-03', comment='SUCCESS', photon_flux='8.22e-09', energy_flux2='7.95e-06', photon_flux_error='8.58e-09', dlogl='4.81e-02', energy_flux='5.81e-06', photon_flux2='6.39e-09', job_status='DONE', time_completed='2023-07-10 13:39:12.289498', photon_index_error2='0.64', photon_index2='1.79', ts='1.96', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='3.23e-08', energy_flux_error2='1.18e-05', EG='1.12', time_epoch_completed='1689021552.29', return_code='0', job_id='18916619', GAL2='0.94', EG2='1.12', return_code2='0', energy_flux_error='6.07e-06', photon_flux_error2='8.81e-09', ts2='2.05', photon_index='1.99' WHERE bin_id='1812' AND source_name='4FGL J1807.2+6429' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jul 10 13:39:12 PDT 2023

L_V02
Working on...
/lscratch/kocevski/18916941/ft1_filtered_4FGL_J1807.2+6429_daily_bin1812.fits.....................!
real 81.58
user 79.59
sys 1.44

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/18916941/ft1_filtered_4FGL_J1807.2+6429_daily_bin1812.fits', '/lscratch/kocevski/18916941/ft2_4FGL_J1807.2+6429_daily_bin1812.fits', expMap='/lscratch/kocevski/18916941/expmap_708998401_709257601_4FGL_J1807.2+6429_daily_bin1812.fits', expCube='/lscratch/kocevski/18916941/ltcube_708998401_709257601_4FGL_J1807.2+6429_daily_bin1812.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/18916941/Model_4FGL_J1807.2+6429_daily_bin1812.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1807.2+6429'

4FGL J1807.2+6429
   Spectrum: PowerLaw
365    Prefactor:  1.727e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
366        Index:  1.991e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
367        Scale:  3.180e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/18916941/ft1_filtered_4FGL_J1807.2+6429_daily_bin1812.fits
Spacecraft file(s): /lscratch/kocevski/18916941/ft2_4FGL_J1807.2+6429_daily_bin1812.fits
Exposure map: /lscratch/kocevski/18916941/expmap_708998401_709257601_4FGL_J1807.2+6429_daily_bin1812.fits
Exposure cube: /lscratch/kocevski/18916941/ltcube_708998401_709257601_4FGL_J1807.2+6429_daily_bin1812.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/18916941/Model_4FGL_J1807.2+6429_daily_bin1812.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) = 20584.7482307

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .57177       1.0000          .0000       .10000E+07
     2 'Prefactor '    .18576E-01   1.0000          .0000       .10000E+07
     3 'norm      '    .30704E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    19.023       1.0000          .0000       .10000E+07
     5 'norm      '    .68728       1.0000          .0000       .10000E+07
     6 'Prefactor '    .98947E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    6.0319       1.0000          .0000       .10000E+07
     8 'Prefactor '    .11199E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    .82289E-04   1.0000          .0000       .10000E+07
    10 'Prefactor '    .48849E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    20.879       1.0000          .0000       .10000E+07
    12 'Prefactor '    .28768       1.0000          .0000       .10000E+07
    13 'norm      '    3.0734       1.0000          .0000       .10000E+07
    14 'Prefactor '    .17097E-02   1.0000          .0000       .10000E+07
    15 'norm      '    8.5497       1.0000          .0000       .10000E+07
    16 'Prefactor '    8.3264       1.0000          .0000       .10000E+07
    17 'Prefactor '    .38745       1.0000          .0000       .10000E+07
    18 'Prefactor '    .53014E-04   1.0000          .0000       .10000E+07
    19 'norm      '    2.2803       1.0000          .0000       .10000E+07
    20 'Prefactor '    .87157E-03   1.0000          .0000       .10000E+07
    21 'Prefactor '    .25171E-02   1.0000          .0000       .10000E+07
    22 'Prefactor '    63.866       1.0000          .0000       .10000E+07
    23 'norm      '    .48683E-07   1.0000          .0000       .10000E+07
    24 'norm      '    4.7369       1.0000          .0000       .10000E+07
    25 'norm      '    .17658E-06   1.0000          .0000       .10000E+07
    26 'norm      '    .13333E-02   1.0000          .0000       .10000E+07
    27 'Prefactor '    3.5434       1.0000          .0000       .10000E+07
    28 'Prefactor '    .67130E-03   1.0000          .0000       .10000E+07
    29 'norm      '    5.1975       1.0000          .0000       .10000E+07
    30 'Normalizat'    1.1183       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .93771       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6480E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   20584.75     FROM MIGRAD    STATUS=CONVERGED    217 CALLS     3199 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .17580E-05    152.98       -.36352E-06** at limit **
   2  Prefactor     .29618E-03    94.792       -.17048E-05** at limit **
   3  norm          .36110E-06    7.4206        .16669E-07** at limit **
   4  Prefactor     19.024        1.9715       -.87574E-08    .85387E-02
   5  norm          .68767        .47995       -.73589E-08   -.51840E-02
   6  Prefactor     .77846E-03    1328.3        .79409E-05** at limit **
   7  Prefactor     6.0205        9.5953        .22443E-07    .13497E-01
   8  Prefactor      .0000        1.5921        .32194E-07** at limit **
   9  Prefactor     .41805E-06    7.0654       -.74683E-07** at limit **
  10  Prefactor     .59452E-07    10.095       -.56372E-07** at limit **
  11  Prefactor     20.855        5.6155       -.64718E-07    .54679E-01
  12  Prefactor     .24273E-05    23.734        .37452E-06** at limit **
  13  norm          3.0734        1.4662        .79621E-08    .39391E-02
  14  Prefactor     .49960E-09    5.3627        .23949E-07** at limit **
  15  norm          8.5481        3.0278        .66050E-08    .24414E-02
  16  Prefactor     8.3201        8.6813        .76716E-08    .27983E-02
  17  Prefactor     .19352E-05    81.090        .24922E-06** at limit **
  18  Prefactor      .0000        1.9785        .47461E-08** at limit **
  19  norm          2.2702        4.8554        .13560E-07    .81605E-03
  20  Prefactor      .0000        3.4359        .18879E-07** at limit **
  21  Prefactor     .83822E-07    13.425       -.10394E-06** at limit **
  22  Prefactor     63.981        16.086       -.22496E-06    .96163E-01
  23  norm           .0000        .71242       -.15294E-07** at limit **
  24  norm          4.7371        1.6037       -.29621E-08   -.11525E-02
  25  norm           .0000        1.1208        .11783E-07** at limit **
  26  norm          .26090E-08    5.0474       -.49216E-08** at limit **
  27  Prefactor     3.5239        9.3087        .84448E-07    .17659E-01
  28  Prefactor     .37270E-06    2.5366       -.13645E-06** at limit **
  29  norm          5.1977        1.4944       -.33386E-08   -.99509E-03
  30  Normalizat    1.1185        .14156       -.19811E-06   -.72212E-04
  31  Prefactor     .93769        .86218E-01    .54695E-08   -.99073E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.75798e-06
  Prefactor  = 0.000296177
  norm       = 3.611e-07
  Prefactor  = 19.0243
  norm       = 0.687668
  Prefactor  = 0.00077846
  Prefactor  = 6.02052
  Prefactor  = 0
  Prefactor  = 4.18054e-07
  Prefactor  = 5.94524e-08
  Prefactor  = 20.8548
  Prefactor  = 2.42734e-06
  norm       = 3.07337
  Prefactor  = 4.996e-10
  norm       = 8.54805
  Prefactor  = 8.32006
  Prefactor  = 1.93517e-06
  Prefactor  = 0
  norm       = 2.27015
  Prefactor  = 0
  Prefactor  = 8.38218e-08
  Prefactor  = 63.981
  norm       = 0
  norm       = 4.7371
  norm       = 0
  norm       = 2.60902e-09
  Prefactor  = 3.52393
  Prefactor  = 3.72702e-07
  norm       = 5.19774
  Normalizat = 1.11852
  Prefactor  = 0.937691
 **********
 **   18 **HESSE 
 **********

 FCN=   20584.75     FROM HESSE     STATUS=OK           696 CALLS     3895 TOTAL
                     EDM=   .69E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .17580E-05    154.67        .71796E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .29618E-03    11.735        .17132E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .36110E-06    8.3478        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     19.024        11.398        .22936E-03   -1.5621    
   5  norm          .68767        .50910        .61747E-03   -1.5691    
   6  Prefactor     .77846E-03    3.8242        .62013E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.0205        9.8528        .40858E-03   -1.5659    
   8  Prefactor      .0000        1.5970        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .41805E-06    8.0087        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .59452E-07    12.628        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     20.855        24.516        .21892E-03   -1.5617    
  12  Prefactor     .24273E-05    68.076        .10386E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.0734        1.4704        .57833E-03   -1.5673    
  14  Prefactor     .49960E-09    5.3764        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          8.5481        3.0390        .34259E-03   -1.5649    
  16  Prefactor     8.3201        8.6947        .34718E-03   -1.5650    
  17  Prefactor     .19352E-05    88.896        .90955E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor      .0000        1.9773        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.2702        4.8724        .67965E-03   -1.5678    
  20  Prefactor      .0000        3.4505        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .83822E-07    14.443        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     63.981        51.987        .12514E-03   -1.5548    
  23  norm           .0000        .70393        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          4.7371        1.6059        .46208E-03   -1.5664    
  25  norm           .0000        1.1230        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .26090E-08    5.0452        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     3.5239        9.5456        .53672E-03   -1.5670    
  28  Prefactor     .37270E-06    1.4382        .57831E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          5.1977        1.4984        .44070E-03   -1.5662    
  30  Normalizat    1.1185        .12624        .71437E-01   -.89159    
  31  Prefactor     .93769        .74703E-01    .45484E-01   -.94836    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.90915e-07
Minuit parameter uncertainties:
  1  0.0329804
  2  0.117909
  3  0.0034725
  4  11.3976
  5  0.509104
  6  0.109124
  7  9.85287
  8  3.38879e-06
  9  0.00365955
  10  0.00173268
  11  24.5158
  12  0.0257099
  13  1.47043
  14  0.000106373
  15  3.039
  16  8.69468
  17  0.0262324
  18  1.14871e-05
  19  4.87244
  20  1.03229e-07
  21  0.00220064
  22  51.9872
  23  2.7524e-06
  24  1.60591
  25  2.24789e-06
  26  0.000228888
  27  9.54564
  28  0.00146422
  29  1.49836
  30  0.126278
  31  0.0747111
L_V02
Working on...
/lscratch/kocevski/18917537/ft1_filtered_4FGL_J1807.2+6429_daily_bin1812.fits.....................!
real 69.37
user 68.04
sys 0.83

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/18917537/ft1_filtered_4FGL_J1807.2+6429_daily_bin1812.fits', '/lscratch/kocevski/18917537/ft2_4FGL_J1807.2+6429_daily_bin1812.fits', expMap='/lscratch/kocevski/18917537/expmap_708998401_709257601_4FGL_J1807.2+6429_daily_bin1812.fits', expCube='/lscratch/kocevski/18917537/ltcube_708998401_709257601_4FGL_J1807.2+6429_daily_bin1812.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/18917537/Model_4FGL_J1807.2+6429_daily_bin1812.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1807.2+6429'

4FGL J1807.2+6429
   Spectrum: PowerLaw
365    Prefactor:  1.727e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
366        Index:  1.991e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
367        Scale:  3.180e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/18917537/ft1_filtered_4FGL_J1807.2+6429_daily_bin1812.fits
Spacecraft file(s): /lscratch/kocevski/18917537/ft2_4FGL_J1807.2+6429_daily_bin1812.fits
Exposure map: /lscratch/kocevski/18917537/expmap_708998401_709257601_4FGL_J1807.2+6429_daily_bin1812.fits
Exposure cube: /lscratch/kocevski/18917537/ltcube_708998401_709257601_4FGL_J1807.2+6429_daily_bin1812.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/18917537/Model_4FGL_J1807.2+6429_daily_bin1812.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) = 20584.7482307

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .57177       1.0000          .0000       .10000E+07
     2 'Prefactor '    .18576E-01   1.0000          .0000       .10000E+07
     3 'norm      '    .30704E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    19.023       1.0000          .0000       .10000E+07
     5 'norm      '    .68728       1.0000          .0000       .10000E+07
     6 'Prefactor '    .98947E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    6.0319       1.0000          .0000       .10000E+07
     8 'Prefactor '    .11199E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    .82289E-04   1.0000          .0000       .10000E+07
    10 'Prefactor '    .48849E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    20.879       1.0000          .0000       .10000E+07
    12 'Prefactor '    .28768       1.0000          .0000       .10000E+07
    13 'norm      '    3.0734       1.0000          .0000       .10000E+07
    14 'Prefactor '    .17097E-02   1.0000          .0000       .10000E+07
    15 'norm      '    8.5497       1.0000          .0000       .10000E+07
    16 'Prefactor '    8.3264       1.0000          .0000       .10000E+07
    17 'Prefactor '    .38745       1.0000          .0000       .10000E+07
    18 'Prefactor '    .53014E-04   1.0000          .0000       .10000E+07
    19 'norm      '    2.2803       1.0000          .0000       .10000E+07
    20 'Prefactor '    .87157E-03   1.0000          .0000       .10000E+07
    21 'Prefactor '    .25171E-02   1.0000          .0000       .10000E+07
    22 'Prefactor '    63.866       1.0000          .0000       .10000E+07
    23 'norm      '    .48683E-07   1.0000          .0000       .10000E+07
    24 'norm      '    4.7369       1.0000          .0000       .10000E+07
    25 'norm      '    .17658E-06   1.0000          .0000       .10000E+07
    26 'norm      '    .13333E-02   1.0000          .0000       .10000E+07
    27 'Prefactor '    3.5434       1.0000          .0000       .10000E+07
    28 'Prefactor '    .67130E-03   1.0000          .0000       .10000E+07
    29 'norm      '    5.1975       1.0000          .0000       .10000E+07
    30 'Normalizat'    1.1183       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .93771       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6480E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   20584.75     FROM MIGRAD    STATUS=CONVERGED    217 CALLS     3199 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .17580E-05    152.98       -.36352E-06** at limit **
   2  Prefactor     .29618E-03    94.792       -.17048E-05** at limit **
   3  norm          .36110E-06    7.4206        .16669E-07** at limit **
   4  Prefactor     19.024        1.9715       -.87574E-08    .85387E-02
   5  norm          .68767        .47995       -.73589E-08   -.51840E-02
   6  Prefactor     .77846E-03    1328.3        .79409E-05** at limit **
   7  Prefactor     6.0205        9.5953        .22443E-07    .13497E-01
   8  Prefactor      .0000        1.5921        .32194E-07** at limit **
   9  Prefactor     .41805E-06    7.0654       -.74683E-07** at limit **
  10  Prefactor     .59452E-07    10.095       -.56372E-07** at limit **
  11  Prefactor     20.855        5.6155       -.64718E-07    .54679E-01
  12  Prefactor     .24273E-05    23.734        .37452E-06** at limit **
  13  norm          3.0734        1.4662        .79621E-08    .39391E-02
  14  Prefactor     .49960E-09    5.3627        .23949E-07** at limit **
  15  norm          8.5481        3.0278        .66050E-08    .24414E-02
  16  Prefactor     8.3201        8.6813        .76716E-08    .27983E-02
  17  Prefactor     .19352E-05    81.090        .24922E-06** at limit **
  18  Prefactor      .0000        1.9785        .47461E-08** at limit **
  19  norm          2.2702        4.8554        .13560E-07    .81605E-03
  20  Prefactor      .0000        3.4359        .18879E-07** at limit **
  21  Prefactor     .83822E-07    13.425       -.10394E-06** at limit **
  22  Prefactor     63.981        16.086       -.22496E-06    .96163E-01
  23  norm           .0000        .71242       -.15294E-07** at limit **
  24  norm          4.7371        1.6037       -.29621E-08   -.11525E-02
  25  norm           .0000        1.1208        .11783E-07** at limit **
  26  norm          .26090E-08    5.0474       -.49216E-08** at limit **
  27  Prefactor     3.5239        9.3087        .84448E-07    .17659E-01
  28  Prefactor     .37270E-06    2.5366       -.13645E-06** at limit **
  29  norm          5.1977        1.4944       -.33386E-08   -.99509E-03
  30  Normalizat    1.1185        .14156       -.19811E-06   -.72212E-04
  31  Prefactor     .93769        .86218E-01    .54695E-08   -.99073E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.75798e-06
  Prefactor  = 0.000296177
  norm       = 3.611e-07
  Prefactor  = 19.0243
  norm       = 0.687668
  Prefactor  = 0.00077846
  Prefactor  = 6.02052
  Prefactor  = 0
  Prefactor  = 4.18054e-07
  Prefactor  = 5.94524e-08
  Prefactor  = 20.8548
  Prefactor  = 2.42734e-06
  norm       = 3.07337
  Prefactor  = 4.996e-10
  norm       = 8.54805
  Prefactor  = 8.32006
  Prefactor  = 1.93517e-06
  Prefactor  = 0
  norm       = 2.27015
  Prefactor  = 0
  Prefactor  = 8.38218e-08
  Prefactor  = 63.981
  norm       = 0
  norm       = 4.7371
  norm       = 0
  norm       = 2.60902e-09
  Prefactor  = 3.52393
  Prefactor  = 3.72702e-07
  norm       = 5.19774
  Normalizat = 1.11852
  Prefactor  = 0.937691
Done.

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

Extracting fit parameters...

4FGL J1807.2+6429
   Spectrum: PowerLaw
365    Prefactor:  8.320e+00  8.695e+00  0.000e+00  1.000e+06 ( 1.000e-14)
366        Index:  1.991e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
367        Scale:  3.180e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
645    Prefactor:  9.377e-01  7.471e-02  0.000e+00  1.000e+01 ( 1.000e+00)
646        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
647        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
644   Normalization:  1.119e+00  1.263e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.96
Ra Dec: 271.809 64.499
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 8.22e-09 +/- 8.58e-09
Energy Flux (Fixed Index): 5.81e-06 +/- 6.07e-06

TS (Fixed Index): 1.96
Ra Dec: 271.809 64.499
Photon Flux Upper Limit: 3.23222280668e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00242229617707 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/18916941/likelihoodResults_708998401_709257601_4FGL_J1807.2+6429_daily_bin1812.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) = 20584.6993984
delta logL = 0.0476415622506

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 20584.6989227
delta logL = 0.0481172578075

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   20584.70     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      286 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.428        12.666        .12402E-04   -.12283E-02
   2  Index         1.7875        .66002        .10884E-01   -.67237E-04
   3  Normalizat    1.1205        .13692        .31585E-03    .51168E-03
   4  Prefactor     .93716        .84792E-01    .21067E-03    .84633E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.4282
  Index      = 1.78752
  Normalizat = 1.12052
  Prefactor  = 0.937157
 **********
 **   18 **HESSE 
 **********

 FCN=   20584.70     FROM HESSE     STATUS=OK            25 CALLS      311 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.428        12.255        .49609E-06   -1.5643    
   2  Index         1.7875        .63910        .43537E-03   -.69775    
   3  Normalizat    1.1205        .13700        .12634E-04   -.89096    
   4  Prefactor     .93716        .84853E-01    .42134E-04   -.94855    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.40217e-10
Minuit parameter uncertainties:
  1  12.2554
  2  0.642102
  3  0.137048
  4  0.0848651
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 20584.6989217
delta logL = 0.0481182660515

Extracting fit parameters...

4FGL J1807.2+6429
   Spectrum: PowerLaw
365    Prefactor:  1.043e+01  1.226e+01  0.000e+00  1.000e+06 ( 1.000e-14)
366        Index:  1.788e+00  6.421e-01  0.000e+00  1.000e+01 (-1.000e+00)
367        Scale:  3.180e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
645    Prefactor:  9.372e-01  8.487e-02  0.000e+00  1.000e+01 ( 1.000e+00)
646        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
647        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
644   Normalization:  1.121e+00  1.370e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.05
Ra Dec: 271.809 64.499
Photon Index (Free Index): 1.79 +/- 0.64
Photon Flux (Free Index): 6.39e-09 +/- 8.81e-09
Energy Flux (Free Index): 7.95e-06 +/- 1.18e-05

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/18916941/cmap_HighResolution_708998401_709257601_4FGL_J1807.2+6429_daily_bin1812.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.42e-03', comment='SUCCESS', photon_flux='8.22e-09', energy_flux2='7.95e-06', photon_flux_error='8.58e-09', dlogl='4.81e-02', energy_flux='5.81e-06', photon_flux2='6.39e-09', job_status='DONE', time_completed='2023-07-10 13:46:43.023574', photon_index_error2='0.64', photon_index2='1.79', ts='1.96', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='3.23e-08', energy_flux_error2='1.18e-05', EG='1.12', time_epoch_completed='1689022003.02', return_code='0', job_id='18916941', GAL2='0.94', EG2='1.12', return_code2='0', energy_flux_error='6.07e-06', photon_flux_error2='8.81e-09', ts2='2.05', photon_index='1.99' WHERE bin_id='1812' AND source_name='4FGL J1807.2+6429' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jul 10 13:46:43 PDT 2023

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

 FCN=   20584.75     FROM HESSE     STATUS=OK           696 CALLS     3895 TOTAL
                     EDM=   .69E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .17580E-05    154.67        .71796E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .29618E-03    11.735        .17132E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .36110E-06    8.3478        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     19.024        11.398        .22936E-03   -1.5621    
   5  norm          .68767        .50910        .61747E-03   -1.5691    
   6  Prefactor     .77846E-03    3.8242        .62013E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.0205        9.8528        .40858E-03   -1.5659    
   8  Prefactor      .0000        1.5970        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .41805E-06    8.0087        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .59452E-07    12.628        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     20.855        24.516        .21892E-03   -1.5617    
  12  Prefactor     .24273E-05    68.076        .10386E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.0734        1.4704        .57833E-03   -1.5673    
  14  Prefactor     .49960E-09    5.3764        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          8.5481        3.0390        .34259E-03   -1.5649    
  16  Prefactor     8.3201        8.6947        .34718E-03   -1.5650    
  17  Prefactor     .19352E-05    88.896        .90955E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor      .0000        1.9773        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.2702        4.8724        .67965E-03   -1.5678    
  20  Prefactor      .0000        3.4505        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .83822E-07    14.443        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     63.981        51.987        .12514E-03   -1.5548    
  23  norm           .0000        .70393        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          4.7371        1.6059        .46208E-03   -1.5664    
  25  norm           .0000        1.1230        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .26090E-08    5.0452        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     3.5239        9.5456        .53672E-03   -1.5670    
  28  Prefactor     .37270E-06    1.4382        .57831E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          5.1977        1.4984        .44070E-03   -1.5662    
  30  Normalizat    1.1185        .12624        .71437E-01   -.89159    
  31  Prefactor     .93769        .74703E-01    .45484E-01   -.94836    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.90915e-07
Minuit parameter uncertainties:
  1  0.0329804
  2  0.117909
  3  0.0034725
  4  11.3976
  5  0.509104
  6  0.109124
  7  9.85287
  8  3.38879e-06
  9  0.00365955
  10  0.00173268
  11  24.5158
  12  0.0257099
  13  1.47043
  14  0.000106373
  15  3.039
  16  8.69468
  17  0.0262324
  18  1.14871e-05
  19  4.87244
  20  1.03229e-07
  21  0.00220064
  22  51.9872
  23  2.7524e-06
  24  1.60591
  25  2.24789e-06
  26  0.000228888
  27  9.54564
  28  0.00146422
  29  1.49836
  30  0.126278
  31  0.0747111
Done.

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

Extracting fit parameters...

4FGL J1807.2+6429
   Spectrum: PowerLaw
365    Prefactor:  8.320e+00  8.695e+00  0.000e+00  1.000e+06 ( 1.000e-14)
366        Index:  1.991e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
367        Scale:  3.180e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
645    Prefactor:  9.377e-01  7.471e-02  0.000e+00  1.000e+01 ( 1.000e+00)
646        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
647        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
644   Normalization:  1.119e+00  1.263e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.96
Ra Dec: 271.809 64.499
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 8.22e-09 +/- 8.58e-09
Energy Flux (Fixed Index): 5.81e-06 +/- 6.07e-06

TS (Fixed Index): 1.96
Ra Dec: 271.809 64.499
Photon Flux Upper Limit: 3.23222280668e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00242229617707 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/18917537/likelihoodResults_708998401_709257601_4FGL_J1807.2+6429_daily_bin1812.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) = 20584.6993984
delta logL = 0.0476415622506

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 20584.6989227
delta logL = 0.0481172578075

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   20584.70     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      286 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.428        12.666        .12402E-04   -.12283E-02
   2  Index         1.7875        .66002        .10884E-01   -.67237E-04
   3  Normalizat    1.1205        .13692        .31585E-03    .51168E-03
   4  Prefactor     .93716        .84792E-01    .21067E-03    .84633E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.4282
  Index      = 1.78752
  Normalizat = 1.12052
  Prefactor  = 0.937157
 **********
 **   18 **HESSE 
 **********

 FCN=   20584.70     FROM HESSE     STATUS=OK            25 CALLS      311 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.428        12.255        .49609E-06   -1.5643    
   2  Index         1.7875        .63910        .43537E-03   -.69775    
   3  Normalizat    1.1205        .13700        .12634E-04   -.89096    
   4  Prefactor     .93716        .84853E-01    .42134E-04   -.94855    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.40217e-10
Minuit parameter uncertainties:
  1  12.2554
  2  0.642102
  3  0.137048
  4  0.0848651
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 20584.6989217
delta logL = 0.0481182660515

Extracting fit parameters...

4FGL J1807.2+6429
   Spectrum: PowerLaw
365    Prefactor:  1.043e+01  1.226e+01  0.000e+00  1.000e+06 ( 1.000e-14)
366        Index:  1.788e+00  6.421e-01  0.000e+00  1.000e+01 (-1.000e+00)
367        Scale:  3.180e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
645    Prefactor:  9.372e-01  8.487e-02  0.000e+00  1.000e+01 ( 1.000e+00)
646        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
647        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
644   Normalization:  1.121e+00  1.370e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.05
Ra Dec: 271.809 64.499
Photon Index (Free Index): 1.79 +/- 0.64
Photon Flux (Free Index): 6.39e-09 +/- 8.81e-09
Energy Flux (Free Index): 7.95e-06 +/- 1.18e-05

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/18917537/cmap_HighResolution_708998401_709257601_4FGL_J1807.2+6429_daily_bin1812.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.42e-03', comment='SUCCESS', photon_flux='8.22e-09', energy_flux2='7.95e-06', photon_flux_error='8.58e-09', dlogl='4.81e-02', energy_flux='5.81e-06', photon_flux2='6.39e-09', job_status='DONE', time_completed='2023-07-10 13:49:31.944114', photon_index_error2='0.64', photon_index2='1.79', ts='1.96', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='3.23e-08', energy_flux_error2='1.18e-05', EG='1.12', time_epoch_completed='1689022171.94', return_code='0', job_id='18917537', GAL2='0.94', EG2='1.12', return_code2='0', energy_flux_error='6.07e-06', photon_flux_error2='8.81e-09', ts2='2.05', photon_index='1.99' WHERE bin_id='1812' AND source_name='4FGL J1807.2+6429' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jul 10 13:49:31 PDT 2023

