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

 FCN=   9108.941     FROM HESSE     STATUS=OK           694 CALLS     3681 TOTAL
                     EDM=   .41E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .45460        .67371        .83466E-03   -1.5694    
   2  Prefactor     .31692        1.7341        .65072E-02   -1.5697    
   3  Prefactor     .10910E-05    10.815        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        2.2048        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     12.035        7.9365        .29005E-03   -1.5639    
   6  norm           .0000        5.1023        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.0214        31.858        .44767E-03   -1.5663    
   8  norm          .84691        .48309        .49467E-03   -1.5690    
   9  norm          5.4059        7.5537        .43174E-03   -1.5661    
  10  Prefactor      .0000        4.3608        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.2727        .68607        .98563E-03   -1.5685    
  12  norm          2.8477        2.2705        .60244E-03   -1.5674    
  13  Prefactor     .61062E-09    8.0500        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          19.738        16.471        .22525E-03   -1.5619    
  15  Prefactor     .10020E-05    16.339        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          15.885        3.2621        .25105E-03   -1.5628    
  17  norm          2.4777        1.4501        .64926E-03   -1.5676    
  18  Prefactor     .19673E-06    50.604        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     45.847        76.946        .14829E-03   -1.5573    
  20  norm          .24945        .83198        .40338E-02   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .67322E-05    23.203        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     26.911        19.967        .19279E-03   -1.5604    
  23  Prefactor     .10606E-04    21.393        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .17020E-05    11.195        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor      .0000        2.2999        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .49405E-08    11.005        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm           .0000        2.9810        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .58744        6.4455        .73517E-03   -1.5693    
  29  Prefactor     8.8760        7.7393        .33735E-03   -1.5648    
  30  Normalizat    1.1962        .14590        .54248E-01   -.86719    
  31  Prefactor     1.0283        .17322        .70145E-01   -.91793    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.1369e-06
Minuit parameter uncertainties:
  1  0.673707
  2  1.48268
  3  0.00686983
  4  2.87206e-06
  5  7.93649
  6  1.31501e-05
  7  25.2961
  8  0.483086
  9  7.55376
  10  6.68934e-06
  11  0.686068
  12  2.27054
  13  0.000140053
  14  16.4707
  15  0.00809232
  16  3.2621
  17  1.45013
  18  0.00631051
  19  76.9481
  20  0.831981
  21  0.0249969
  22  19.967
  23  0.0301265
  24  0.00872996
  25  4.23391e-07
  26  0.000465375
  27  9.3995e-06
  28  3.89171
  29  7.73931
  30  0.14595
  31  0.173311
/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) = 9108.9405885

Extracting fit parameters...

4FGL J1037.7+5711
   Spectrum: LogParabola
416         norm:  2.478e+00  1.450e+00  0.000e+00  1.000e+06 ( 1.000e-12)
417        alpha:  1.758e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
418         beta:  7.199e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
419           Eb:  1.415e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
765    Prefactor:  1.028e+00  1.733e-01  0.000e+00  1.000e+01 ( 1.000e+00)
766        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
767        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
764   Normalization:  1.196e+00  1.460e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.84
Ra Dec: 159.429 57.192
Photon Index (Fixed Index): 1.76 +/- 0.00
Photon Flux (Fixed Index): 2.73e-08 +/- 1.60e-08
Energy Flux (Fixed Index): 3.16e-05 +/- 1.85e-05

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) = 9108.72925404
delta logL = 0.211334466425

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9108.71728666
delta logL = 0.223301846243

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.3637       1.0000          .0000       .10000E+07
     2 'alpha     '    2.0943       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1805       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0368       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7680E+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=   9108.717     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      292 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.3638        1.4260        .75543E-05   -.46382E-02
   2  alpha         2.0944        .50113        .13451E-01    .28061E-03
   3  Normalizat    1.1804        .16458        .24110E-03    .26029E-04
   4  Prefactor     1.0369        .19737        .30907E-03   -.52233E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.3638
  alpha      = 2.09435
  Normalizat = 1.18043
  Prefactor  = 1.03691
 **********
 **   18 **HESSE 
 **********

 FCN=   9108.717     FROM HESSE     STATUS=OK            25 CALLS      317 TOTAL
                     EDM=   .39E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.3638        1.3955        .30217E-06   -1.5677    
   2  alpha         2.0944        .49024        .26901E-02   -.16298    
   3  Normalizat    1.1804        .16458        .96439E-05   -.87210    
   4  Prefactor     1.0369        .19746        .12363E-04   -.91509    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.91418e-11
Minuit parameter uncertainties:
  1  1.3955
  2  0.493528
  3  0.164654
  4  0.197598
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) = 9108.71728657
delta logL = 0.223301929082

Extracting fit parameters...

4FGL J1037.7+5711
   Spectrum: LogParabola
416         norm:  2.364e+00  1.395e+00  0.000e+00  1.000e+06 ( 1.000e-12)
417        alpha:  2.094e+00  4.935e-01  0.000e+00  5.000e+00 ( 1.000e+00)
418         beta:  7.199e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
419           Eb:  1.415e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
765    Prefactor:  1.037e+00  1.976e-01  0.000e+00  1.000e+01 ( 1.000e+00)
766        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
767        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
764   Normalization:  1.180e+00  1.647e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.28
Ra Dec: 159.429 57.192
Photon Index (Free Index): 2.09 +/- 0.49
Photon Flux (Free Index): 4.26e-08 +/- 3.26e-08
Energy Flux (Free Index): 2.40e-05 +/- 1.51e-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/18898960/cmap_HighResolution_709257601_709516801_4FGL_J1037.7+5711_daily_bin1813.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.73e-08', energy_flux2='2.40e-05', photon_flux_error='1.60e-08', dlogl='2.23e-01', energy_flux='3.16e-05', photon_flux2='4.26e-08', job_status='DONE', time_completed='2023-07-10 11:08:41.348301', photon_index_error2='0.49', photon_index2='2.09', ts='9.84', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='1.51e-05', EG='1.20', time_epoch_completed='1689012521.35', return_code='0', job_id='18898960', GAL2='1.04', EG2='1.18', return_code2='0', energy_flux_error='1.85e-05', photon_flux_error2='3.26e-08', ts2='10.28', photon_index='1.76' WHERE bin_id='1813' AND source_name='4FGL J1037.7+5711' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jul 10 11:08:41 PDT 2023

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


Performing analysis on: 4FGL_J1037.7+5711_daily_bin1813
RA = 159.429, Dec = 57.192
tmin = 709257601, tmax = 709516801
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='18899779', job_status='RUN', time_executed='2023-07-10 11:08:23.045531', time_epoch_executed='1689012503.05' WHERE source_name='4FGL J1037.7+5711' and cadence='daily' and bin_id='1813'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/18899779

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/18899779/ft1_4FGL_J1037.7+5711_daily_bin1813.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/18899779/ft2_4FGL_J1037.7+5711_daily_bin1813.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/18899779/ft1_4FGL_J1037.7+5711_daily_bin1813.fits outfile=/lscratch/kocevski/18899779/ft1_filteredMKT_4FGL_J1037.7+5711_daily_bin1813.fits ra=159.429 dec=57.192 rad=12.0 tmin=709257601.0 tmax=709516801.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.58
user 1.39
sys 0.16

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/18899779/ft2_4FGL_J1037.7+5711_daily_bin1813.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/18899779/ft2_4FGL_J1037.7+5711_daily_bin1813.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/18899779/ft1_filteredMKT_4FGL_J1037.7+5711_daily_bin1813.fits evtable="EVENTS" outfile="/lscratch/kocevski/18899779/ft1_filtered_4FGL_J1037.7+5711_daily_bin1813.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.38
user 0.21
sys 0.13

Number of photons that the gtmktime cut: 839

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/18899779/ft1_filtered_4FGL_J1037.7+5711_daily_bin1813.fits" evtable="EVENTS" scfile=/lscratch/kocevski/18899779/ft2_4FGL_J1037.7+5711_daily_bin1813.fits sctable="SC_DATA" outfile=/lscratch/kocevski/18899779/ltcube_709257601_709516801_4FGL_J1037.7+5711_daily_bin1813.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/18899779/ft2_4FGL_J1037.7+5711_daily_bin1813.fits
.....................!
real 8.65
user 8.35
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/18899779/ft1_filtered_4FGL_J1037.7+5711_daily_bin1813.fits evtable="EVENTS" scfile=/lscratch/kocevski/18899779/ft2_4FGL_J1037.7+5711_daily_bin1813.fits sctable="SC_DATA" expcube=/lscratch/kocevski/18899779/ltcube_709257601_709516801_4FGL_J1037.7+5711_daily_bin1813.fits outfile=/lscratch/kocevski/18899779/expmap_709257601_709516801_4FGL_J1037.7+5711_daily_bin1813.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/18899779/ltcube_709257601_709516801_4FGL_J1037.7+5711_daily_bin1813.fits
.....................!
real 69.25
user 64.78
sys 4.01

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

Setting source of interest to:
4FGL J1037.7+5711 @ 159.429 57.192

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/18899779/ft1_filtered_4FGL_J1037.7+5711_daily_bin1813.fits scfile=/lscratch/kocevski/18899779/ft2_4FGL_J1037.7+5711_daily_bin1813.fits outfile=/lscratch/kocevski/18899779/cmap_709257601_709516801_4FGL_J1037.7+5711_daily_bin1813.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=159.429 yref=57.192 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.38
user 0.23
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/18899779/ft1_filtered_4FGL_J1037.7+5711_daily_bin1813.fits scfile=/lscratch/kocevski/18899779/ft2_4FGL_J1037.7+5711_daily_bin1813.fits outfile=/lscratch/kocevski/18899779/cmap_HighResolution_709257601_709516801_4FGL_J1037.7+5711_daily_bin1813.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=159.429 yref=57.192 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.39
user 0.25
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/18899779/ft1_filtered_4FGL_J1037.7+5711_daily_bin1813.fits evtable="EVENTS" scfile=/lscratch/kocevski/18899779/ft2_4FGL_J1037.7+5711_daily_bin1813.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/18899779/Model_4FGL_J1037.7+5711_daily_bin1813.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/18899779/ft1_filtered_4FGL_J1037.7+5711_daily_bin1813.fits.....................!
real 32.95
user 31.93
sys 0.78

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/18899779/ft1_filtered_4FGL_J1037.7+5711_daily_bin1813.fits', '/lscratch/kocevski/18899779/ft2_4FGL_J1037.7+5711_daily_bin1813.fits', expMap='/lscratch/kocevski/18899779/expmap_709257601_709516801_4FGL_J1037.7+5711_daily_bin1813.fits', expCube='/lscratch/kocevski/18899779/ltcube_709257601_709516801_4FGL_J1037.7+5711_daily_bin1813.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/18899779/Model_4FGL_J1037.7+5711_daily_bin1813.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1037.7+5711'

4FGL J1037.7+5711
   Spectrum: LogParabola
416         norm:  1.718e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
417        alpha:  1.758e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
418         beta:  7.199e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
419           Eb:  1.415e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/18899779/ft1_filtered_4FGL_J1037.7+5711_daily_bin1813.fits
Spacecraft file(s): /lscratch/kocevski/18899779/ft2_4FGL_J1037.7+5711_daily_bin1813.fits
Exposure map: /lscratch/kocevski/18899779/expmap_709257601_709516801_4FGL_J1037.7+5711_daily_bin1813.fits
Exposure cube: /lscratch/kocevski/18899779/ltcube_709257601_709516801_4FGL_J1037.7+5711_daily_bin1813.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/18899779/Model_4FGL_J1037.7+5711_daily_bin1813.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) = 9108.95907656

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .45412       1.0000          .0000       .10000E+07
     2 'Prefactor '    .32138       1.0000          .0000       .10000E+07
     3 'Prefactor '    .15656E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .65294E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    11.907       1.0000          .0000       .10000E+07
     6 'norm      '    .10550E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    5.0399       1.0000          .0000       .10000E+07
     8 'norm      '    .84739       1.0000          .0000       .10000E+07
     9 'norm      '    5.4115       1.0000          .0000       .10000E+07
    10 'Prefactor '    .13645E-03   1.0000          .0000       .10000E+07
    11 'norm      '    1.2722       1.0000          .0000       .10000E+07
    12 'norm      '    2.8461       1.0000          .0000       .10000E+07
    13 'Prefactor '    .12666E-03   1.0000          .0000       .10000E+07
    14 'norm      '    19.722       1.0000          .0000       .10000E+07
    15 'Prefactor '    .28503E-05   1.0000          .0000       .10000E+07
    16 'norm      '    15.882       1.0000          .0000       .10000E+07
    17 'norm      '    2.4776       1.0000          .0000       .10000E+07
    18 'Prefactor '    .87400E-05   1.0000          .0000       .10000E+07
    19 'Prefactor '    45.486       1.0000          .0000       .10000E+07
    20 'norm      '    .25071       1.0000          .0000       .10000E+07
    21 'Prefactor '    .14571E-01   1.0000          .0000       .10000E+07
    22 'Prefactor '    26.916       1.0000          .0000       .10000E+07
    23 'Prefactor '    .82069E-02   1.0000          .0000       .10000E+07
    24 'norm      '    .16751E-02   1.0000          .0000       .10000E+07
    25 'Prefactor '    .11993E-04   1.0000          .0000       .10000E+07
    26 'Prefactor '    .15980E-02   1.0000          .0000       .10000E+07
    27 'norm      '    .32964E-03   1.0000          .0000       .10000E+07
    28 'norm      '    .55332       1.0000          .0000       .10000E+07
    29 'Prefactor '    8.8155       1.0000          .0000       .10000E+07
    30 'Normalizat'    1.1969       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0282       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7680E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9108.941     FROM MIGRAD    STATUS=CONVERGED    197 CALLS     2987 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .45460        .65849        .13264E-08   -.16345E-03
   2  Prefactor     .31692        7.2366       -.18321E-06   -.10942E-03
   3  Prefactor     .10910E-05    7.5576       -.69190E-06** at limit **
   4  Prefactor      .0000        2.2045        .41083E-07** at limit **
   5  Prefactor     12.035        7.7946        .10715E-06   -.63869E-03
   6  norm           .0000        5.1008       -.93211E-08** at limit **
   7  Prefactor     5.0214        7.2009       -.89837E-06   -.47301E-01
   8  norm          .84691        .47726       -.73773E-08   -.13713E-02
   9  norm          5.4059        7.5450       -.81511E-07   -.20154E-03
  10  Prefactor      .0000        4.3840        .28957E-07** at limit **
  11  norm          1.2727        .67800       -.11341E-07   -.13248E-02
  12  norm          2.8477        2.2688        .10470E-07   -.22382E-04
  13  Prefactor     .61062E-09    8.0442        .13884E-06** at limit **
  14  norm          19.738        1.2611        .33618E-07   -.42880E-02
  15  Prefactor     .10020E-05    15.788        .14993E-06** at limit **
  16  norm          15.885        3.2539       -.99397E-08   -.24301E-02
  17  norm          2.4777        1.4478       -.26862E-07   -.10129E-02
  18  Prefactor     .19673E-06    50.501       -.34186E-06** at limit **
  19  Prefactor     45.847        66.110        .22136E-05   -.60570E-01
  20  norm          .24945        .90991       -.50116E-07** at limit **
  21  Prefactor     .67322E-05    16.854        .76653E-06** at limit **
  22  Prefactor     26.911        1.4578       -.50367E-07   -.57155E-02
  23  Prefactor     .10606E-04    13.368       -.14864E-05** at limit **
  24  norm          .17020E-05    9.1838        .62451E-06** at limit **
  25  Prefactor      .0000        2.2976       -.34688E-07** at limit **
  26  Prefactor     .49405E-08    3.7826       -.21946E-06** at limit **
  27  norm           .0000        2.9797        .21336E-07** at limit **
  28  norm          .58744        6.1245        .82331E-07   -.34365E-03
  29  Prefactor     8.8760        7.5095       -.65066E-07   -.20843E-04
  30  Normalizat    1.1962        .16702       -.75939E-06   -.42887E-04
  31  Prefactor     1.0283        .20213       -.17590E-06   -.31785E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.454599
  Prefactor  = 0.316921
  Prefactor  = 1.09096e-06
  Prefactor  = 0
  Prefactor  = 12.035
  norm       = 0
  Prefactor  = 5.0214
  norm       = 0.846908
  norm       = 5.40591
  Prefactor  = 0
  norm       = 1.27267
  norm       = 2.84775
  Prefactor  = 6.10623e-10
  norm       = 19.738
  Prefactor  = 1.00198e-06
  norm       = 15.8848
  norm       = 2.47765
  Prefactor  = 1.96732e-07
  Prefactor  = 45.8472
  norm       = 0.249454
  Prefactor  = 6.73223e-06
  Prefactor  = 26.9112
  Prefactor  = 1.06061e-05
  norm       = 1.70197e-06
  Prefactor  = 0
  Prefactor  = 4.94049e-09
  norm       = 0
  norm       = 0.587442
  Prefactor  = 8.87603
  Normalizat = 1.19625
  Prefactor  = 1.02826
 **********
 **   18 **HESSE 
 **********

 FCN=   9108.941     FROM HESSE     STATUS=OK           694 CALLS     3681 TOTAL
                     EDM=   .41E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .45460        .67371        .83466E-03   -1.5694    
   2  Prefactor     .31692        1.7341        .65072E-02   -1.5697    
   3  Prefactor     .10910E-05    10.815        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        2.2048        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     12.035        7.9365        .29005E-03   -1.5639    
   6  norm           .0000        5.1023        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.0214        31.858        .44767E-03   -1.5663    
   8  norm          .84691        .48309        .49467E-03   -1.5690    
   9  norm          5.4059        7.5537        .43174E-03   -1.5661    
  10  Prefactor      .0000        4.3608        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.2727        .68607        .98563E-03   -1.5685    
  12  norm          2.8477        2.2705        .60244E-03   -1.5674    
  13  Prefactor     .61062E-09    8.0500        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          19.738        16.471        .22525E-03   -1.5619    
  15  Prefactor     .10020E-05    16.339        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          15.885        3.2621        .25105E-03   -1.5628    
  17  norm          2.4777        1.4501        .64926E-03   -1.5676    
  18  Prefactor     .19673E-06    50.604        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     45.847        76.946        .14829E-03   -1.5573    
  20  norm          .24945        .83198        .40338E-02   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .67322E-05    23.203        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     26.911        19.967        .19279E-03   -1.5604    
  23  Prefactor     .10606E-04    21.393        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .17020E-05    11.195        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor      .0000        2.2999        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .49405E-08    11.005        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm           .0000        2.9810        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .58744        6.4455        .73517E-03   -1.5693    
  29  Prefactor     8.8760        7.7393        .33735E-03   -1.5648    
  30  Normalizat    1.1962        .14590        .54248E-01   -.86719    
  31  Prefactor     1.0283        .17322        .70145E-01   -.91793    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.1369e-06
Minuit parameter uncertainties:
  1  0.673707
  2  1.48268
  3  0.00686983
  4  2.87206e-06
  5  7.93649
  6  1.31501e-05
  7  25.2961
  8  0.483086
  9  7.55376
  10  6.68934e-06
  11  0.686068
  12  2.27054
  13  0.000140053
  14  16.4707
  15  0.00809232
  16  3.2621
  17  1.45013
  18  0.00631051
  19  76.9481
  20  0.831981
  21  0.0249969
  22  19.967
  23  0.0301265
  24  0.00872996
  25  4.23391e-07
  26  0.000465375
  27  9.3995e-06
  28  3.89171
  29  7.73931
  30  0.14595
  31  0.173311
Done.

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

Extracting fit parameters...

4FGL J1037.7+5711
   Spectrum: LogParabola
416         norm:  2.478e+00  1.450e+00  0.000e+00  1.000e+06 ( 1.000e-12)
417        alpha:  1.758e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
418         beta:  7.199e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
419           Eb:  1.415e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
765    Prefactor:  1.028e+00  1.733e-01  0.000e+00  1.000e+01 ( 1.000e+00)
766        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
767        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
764   Normalization:  1.196e+00  1.460e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.84
Ra Dec: 159.429 57.192
Photon Index (Fixed Index): 1.76 +/- 0.00
Photon Flux (Fixed Index): 2.73e-08 +/- 1.60e-08
Energy Flux (Fixed Index): 3.16e-05 +/- 1.85e-05

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) = 9108.72925404
delta logL = 0.211334466425

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9108.71728666
delta logL = 0.223301846243

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.3637       1.0000          .0000       .10000E+07
     2 'alpha     '    2.0943       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1805       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0368       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7680E+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=   9108.717     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      292 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.3638        1.4260        .75543E-05   -.46382E-02
   2  alpha         2.0944        .50113        .13451E-01    .28061E-03
   3  Normalizat    1.1804        .16458        .24110E-03    .26029E-04
   4  Prefactor     1.0369        .19737        .30907E-03   -.52233E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.3638
  alpha      = 2.09435
  Normalizat = 1.18043
  Prefactor  = 1.03691
 **********
 **   18 **HESSE 
 **********

 FCN=   9108.717     FROM HESSE     STATUS=OK            25 CALLS      317 TOTAL
                     EDM=   .39E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.3638        1.3955        .30217E-06   -1.5677    
   2  alpha         2.0944        .49024        .26901E-02   -.16298    
   3  Normalizat    1.1804        .16458        .96439E-05   -.87210    
   4  Prefactor     1.0369        .19746        .12363E-04   -.91509    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.91418e-11
Minuit parameter uncertainties:
  1  1.3955
  2  0.493528
  3  0.164654
  4  0.197598
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) = 9108.71728657
delta logL = 0.223301929082

Extracting fit parameters...

4FGL J1037.7+5711
   Spectrum: LogParabola
416         norm:  2.364e+00  1.395e+00  0.000e+00  1.000e+06 ( 1.000e-12)
417        alpha:  2.094e+00  4.935e-01  0.000e+00  5.000e+00 ( 1.000e+00)
418         beta:  7.199e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
419           Eb:  1.415e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
765    Prefactor:  1.037e+00  1.976e-01  0.000e+00  1.000e+01 ( 1.000e+00)
766        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
767        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
764   Normalization:  1.180e+00  1.647e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.28
Ra Dec: 159.429 57.192
Photon Index (Free Index): 2.09 +/- 0.49
Photon Flux (Free Index): 4.26e-08 +/- 3.26e-08
Energy Flux (Free Index): 2.40e-05 +/- 1.51e-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/18899779/cmap_HighResolution_709257601_709516801_4FGL_J1037.7+5711_daily_bin1813.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.73e-08', energy_flux2='2.40e-05', photon_flux_error='1.60e-08', dlogl='2.23e-01', energy_flux='3.16e-05', photon_flux2='4.26e-08', job_status='DONE', time_completed='2023-07-10 11:16:02.417113', photon_index_error2='0.49', photon_index2='2.09', ts='9.84', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='1.51e-05', EG='1.20', time_epoch_completed='1689012962.42', return_code='0', job_id='18899779', GAL2='1.04', EG2='1.18', return_code2='0', energy_flux_error='1.85e-05', photon_flux_error2='3.26e-08', ts2='10.28', photon_index='1.76' WHERE bin_id='1813' AND source_name='4FGL J1037.7+5711' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jul 10 11:16:02 PDT 2023

