/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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

/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

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


Performing analysis on: 4FGL_J0638.6+7320_weekly_bin801
RA = 99.6711, Dec = 73.3438
tmin = 723427201, tmax = 724032001
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='35828956', job_status='RUN', time_executed='2023-12-12 01:15:55.290736', time_epoch_executed='1702372555.29' WHERE source_name='4FGL J0638.6+7320' and cadence='weekly' and bin_id='801'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/35828956

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/35828956/ft1_4FGL_J0638.6+7320_weekly_bin801.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/35828956/ft2_4FGL_J0638.6+7320_weekly_bin801.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/35828956/ft1_4FGL_J0638.6+7320_weekly_bin801.fits outfile=/lscratch/kocevski/35828956/ft1_filteredMKT_4FGL_J0638.6+7320_weekly_bin801.fits ra=99.6711 dec=73.3438 rad=12.0 tmin=723427201.0 tmax=724032001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.68
user 4.41
sys 0.21

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/35828956/ft2_4FGL_J0638.6+7320_weekly_bin801.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/35828956/ft2_4FGL_J0638.6+7320_weekly_bin801.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/35828956/ft1_filteredMKT_4FGL_J0638.6+7320_weekly_bin801.fits evtable="EVENTS" outfile="/lscratch/kocevski/35828956/ft1_filtered_4FGL_J0638.6+7320_weekly_bin801.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.43
user 0.22
sys 0.12

Number of photons that the gtmktime cut: 1867

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/35828956/ft1_filtered_4FGL_J0638.6+7320_weekly_bin801.fits" evtable="EVENTS" scfile=/lscratch/kocevski/35828956/ft2_4FGL_J0638.6+7320_weekly_bin801.fits sctable="SC_DATA" outfile=/lscratch/kocevski/35828956/ltcube_723427201_724032001_4FGL_J0638.6+7320_weekly_bin801.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/35828956/ft2_4FGL_J0638.6+7320_weekly_bin801.fits
.....................!
real 20.47
user 20.04
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/35828956/ft1_filtered_4FGL_J0638.6+7320_weekly_bin801.fits evtable="EVENTS" scfile=/lscratch/kocevski/35828956/ft2_4FGL_J0638.6+7320_weekly_bin801.fits sctable="SC_DATA" expcube=/lscratch/kocevski/35828956/ltcube_723427201_724032001_4FGL_J0638.6+7320_weekly_bin801.fits outfile=/lscratch/kocevski/35828956/expmap_723427201_724032001_4FGL_J0638.6+7320_weekly_bin801.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/35828956/ltcube_723427201_724032001_4FGL_J0638.6+7320_weekly_bin801.fits
.....................!
real 68.63
user 64.49
sys 3.69

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

Setting source of interest to:
4FGL J0638.6+7320 @ 99.6711 73.3438

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/35828956/ft1_filtered_4FGL_J0638.6+7320_weekly_bin801.fits scfile=/lscratch/kocevski/35828956/ft2_4FGL_J0638.6+7320_weekly_bin801.fits outfile=/lscratch/kocevski/35828956/cmap_723427201_724032001_4FGL_J0638.6+7320_weekly_bin801.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=99.6711 yref=73.3438 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.42
user 0.23
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/35828956/ft1_filtered_4FGL_J0638.6+7320_weekly_bin801.fits scfile=/lscratch/kocevski/35828956/ft2_4FGL_J0638.6+7320_weekly_bin801.fits outfile=/lscratch/kocevski/35828956/cmap_HighResolution_723427201_724032001_4FGL_J0638.6+7320_weekly_bin801.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=99.6711 yref=73.3438 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.40
user 0.23
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/35828956/ft1_filtered_4FGL_J0638.6+7320_weekly_bin801.fits evtable="EVENTS" scfile=/lscratch/kocevski/35828956/ft2_4FGL_J0638.6+7320_weekly_bin801.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/35828956/Model_4FGL_J0638.6+7320_weekly_bin801.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/35828956/ft1_filtered_4FGL_J0638.6+7320_weekly_bin801.fits.....................!
real 86.36
user 84.62
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/35828956/ft1_filtered_4FGL_J0638.6+7320_weekly_bin801.fits', '/lscratch/kocevski/35828956/ft2_4FGL_J0638.6+7320_weekly_bin801.fits', expMap='/lscratch/kocevski/35828956/expmap_723427201_724032001_4FGL_J0638.6+7320_weekly_bin801.fits', expCube='/lscratch/kocevski/35828956/ltcube_723427201_724032001_4FGL_J0638.6+7320_weekly_bin801.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/35828956/Model_4FGL_J0638.6+7320_weekly_bin801.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0638.6+7320'

4FGL J0638.6+7320
   Spectrum: PowerLaw
267    Prefactor:  9.247e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
268        Index:  3.027e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
269        Scale:  3.246e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/35828956/ft1_filtered_4FGL_J0638.6+7320_weekly_bin801.fits
Spacecraft file(s): /lscratch/kocevski/35828956/ft2_4FGL_J0638.6+7320_weekly_bin801.fits
Exposure map: /lscratch/kocevski/35828956/expmap_723427201_724032001_4FGL_J0638.6+7320_weekly_bin801.fits
Exposure cube: /lscratch/kocevski/35828956/ltcube_723427201_724032001_4FGL_J0638.6+7320_weekly_bin801.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/35828956/Model_4FGL_J0638.6+7320_weekly_bin801.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) = 20008.6954388

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.5280       1.0000          .0000       .10000E+07
     2 'Prefactor '    .13045E-07   1.0000          .0000       .10000E+07
     3 'Prefactor '    10.441       1.0000          .0000       .10000E+07
     4 'Prefactor '    7.5482       1.0000          .0000       .10000E+07
     5 'Prefactor '    33.435       1.0000          .0000       .10000E+07
     6 'Prefactor '    1.7465       1.0000          .0000       .10000E+07
     7 'Prefactor '    53.306       1.0000          .0000       .10000E+07
     8 'norm      '    .26901E-06   1.0000          .0000       .10000E+07
     9 'norm      '    1.0419       1.0000          .0000       .10000E+07
    10 'norm      '    .11474E-06   1.0000          .0000       .10000E+07
    11 'Prefactor '    21.216       1.0000          .0000       .10000E+07
    12 'Prefactor '    11.390       1.0000          .0000       .10000E+07
    13 'Prefactor '    .22277E-06   1.0000          .0000       .10000E+07
    14 'norm      '    2.4089       1.0000          .0000       .10000E+07
    15 'Prefactor '    .59952E-08   1.0000          .0000       .10000E+07
    16 'Normalizat'    .81236       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0955       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6810E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   20006.69     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      781 TOTAL
                     EDM=   .92E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5273        3.4323       -.11237E-06   -.12353E-02
   2  Prefactor     .19429E-08    9.6433        .43533E-06** at limit **
   3  Prefactor     10.441        7.1860        .69607E-07    .38551E-01
   4  Prefactor     7.7359        9.0034        .36365E-06   -.52656E-01
   5  Prefactor     33.389        6.6407       -.13232E-06    .13553    
   6  Prefactor     1.7185        1.6205       -.77563E-07   -.36868E-02
   7  Prefactor     53.317        1.9599        .28007E-07   -.74736E-01
   8  norm           .0000        2.5584        .11139E-06** at limit **
   9  norm          1.0420        .39553       -.18342E-07   -.45241E-02
  10  norm          .49960E-09    4.8515        .12458E-06** at limit **
  11  Prefactor     21.267        1.2191        .16241E-07   -.30344E-01
  12  Prefactor     11.479        17.772        .55523E-06    .63688E-01
  13  Prefactor      .0000        4.0151        .35233E-06** at limit **
  14  norm          2.4101        1.4629        .57233E-08    .44565E-04
  15  Prefactor      .0000        3.8641        .10278E-06** at limit **
  16  Normalizat    .81208        .13005       -.21772E-05    .81986E-04
  17  Prefactor     1.0956        .67117E-01    .16362E-05    .25171E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.52733
  Prefactor  = 1.94289e-09
  Prefactor  = 10.4413
  Prefactor  = 7.73586
  Prefactor  = 33.3895
  Prefactor  = 1.71854
  Prefactor  = 53.3171
  norm       = 0
  norm       = 1.042
  norm       = 4.996e-10
  Prefactor  = 21.2675
  Prefactor  = 11.4789
  Prefactor  = 0
  norm       = 2.41012
  Prefactor  = 0
  Normalizat = 0.812085
  Prefactor  = 1.09555
 **********
 **   18 **HESSE 
 **********

 FCN=   20006.69     FROM HESSE     STATUS=OK           267 CALLS     1048 TOTAL
                     EDM=   .88E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.5273        3.4311        .53795E-03   -1.5670    
   2  Prefactor     .19429E-08    9.6430        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.441        7.2194        .30984E-03   -1.5643    
   4  Prefactor     7.7359        22.853        .36479E-03   -1.5652    
   5  Prefactor     33.389        28.603        .17296E-03   -1.5592    
   6  Prefactor     1.7185        56.932        .79326E-03   -1.5682    
   7  Prefactor     53.317        26.222        .13698E-03   -1.5562    
   8  norm           .0000        2.5600        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.0420        .40683        .11904E-02   -1.5688    
  10  norm          .49960E-09    4.8468        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     21.267        18.300        .21717E-03   -1.5616    
  12  Prefactor     11.479        19.634        .29660E-03   -1.5640    
  13  Prefactor      .0000        .76997        .63259E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.4101        1.4653        .65936E-03   -1.5677    
  15  Prefactor      .0000        3.8635        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    .81208        .12111        .79252E-01   -.99622    
  17  Prefactor     1.0956        .60711E-01    .37759E-01   -.89609    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.82196e-07
Minuit parameter uncertainties:
  1  3.43111
  2  0.000273745
  3  7.21945
  4  22.8532
  5  28.6033
  6  19.7831
  7  26.2222
  8  7.88787e-06
  9  0.406828
  10  9.63988e-05
  11  18.3001
  12  19.6337
  13  7.57732e-06
  14  1.4653
  15  1.78847e-05
  16  0.121153
  17  0.0607145
Done.

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

Extracting fit parameters...

4FGL J0638.6+7320
   Spectrum: PowerLaw
267    Prefactor:  5.332e+01  2.622e+01  0.000e+00  1.000e+06 ( 1.000e-12)
268        Index:  3.027e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
269        Scale:  3.246e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
678    Prefactor:  1.096e+00  6.071e-02  0.000e+00  1.000e+01 ( 1.000e+00)
679        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
680        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
677   Normalization:  8.121e-01  1.212e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.73
Ra Dec: 99.671 73.344
Photon Index (Fixed Index): 3.03 +/- 0.00
Photon Flux (Fixed Index): 9.30e-08 +/- 4.57e-08
Energy Flux (Fixed Index): 1.83e-05 +/- 9.01e-06

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) = 20006.0927055
delta logL = 0.592326678347

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 20006.0413267
delta logL = 0.643705495015

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   20006.04     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      217 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     60.933        35.768        .12812E-03    .22910E-01
   2  Index         2.4963        .42740        .23548       -.14330E-03
   3  Normalizat    .83655        .11035        .78208E-01    .73727E-04
   4  Prefactor     1.0854        .60047E-01    .38167E-01   -.10597E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 60.9329
  Index      = 2.49633
  Normalizat = 0.836553
  Prefactor  = 1.08545
 **********
 **   18 **HESSE 
 **********

 FCN=   20006.04     FROM HESSE     STATUS=OK            31 CALLS      248 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     60.933        25.465        .51246E-05   -1.5552    
   2  Index         2.4963        .39669        .94111E-02   -.52445    
   3  Normalizat    .83655        .12334        .34620E-03   -.98727    
   4  Prefactor     1.0854        .66051E-01    .16752E-03   -.89933    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.00311e-09
Minuit parameter uncertainties:
  1  25.4647
  2  0.397248
  3  0.123386
  4  0.0660562
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) = 20006.0413267
delta logL = 0.643705563543

Extracting fit parameters...

4FGL J0638.6+7320
   Spectrum: PowerLaw
267    Prefactor:  6.093e+01  2.546e+01  0.000e+00  1.000e+06 ( 1.000e-12)
268        Index:  2.496e+00  3.972e-01  0.000e+00  1.000e+01 (-1.000e+00)
269        Scale:  3.246e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
678    Prefactor:  1.085e+00  6.606e-02  0.000e+00  1.000e+01 ( 1.000e+00)
679        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
680        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
677   Normalization:  8.366e-01  1.234e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.90
Ra Dec: 99.671 73.344
Photon Index (Free Index): 2.50 +/- 0.40
Photon Flux (Free Index): 7.70e-08 +/- 3.80e-08
Energy Flux (Free Index): 2.25e-05 +/- 1.00e-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/35828956/cmap_HighResolution_723427201_724032001_4FGL_J0638.6+7320_weekly_bin801.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.30e-08', energy_flux2='2.25e-05', photon_flux_error='4.57e-08', dlogl='6.44e-01', energy_flux='1.83e-05', photon_flux2='7.70e-08', job_status='DONE', time_completed='2023-12-12 01:23:30.282383', photon_index_error2='0.40', photon_index2='2.50', ts='7.73', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', energy_flux_error2='1.00e-05', EG='0.81', time_epoch_completed='1702373010.28', return_code='0', job_id='35828956', GAL2='1.09', EG2='0.84', return_code2='0', energy_flux_error='9.01e-06', photon_flux_error2='3.80e-08', ts2='8.90', photon_index='3.03' WHERE bin_id='801' AND source_name='4FGL J0638.6+7320' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 12 01:23:30 PST 2023

