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


Performing analysis on: 4FGL_J1608.7+1029_weekly_bin802
RA = 242.176, Dec = 10.4938
tmin = 724032001, tmax = 724636801
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='36607015', job_status='RUN', time_executed='2023-12-19 01:00:50.594913', time_epoch_executed='1702976450.59' WHERE source_name='4FGL J1608.7+1029' and cadence='weekly' and bin_id='802'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/36607015

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/36607015/ft1_4FGL_J1608.7+1029_weekly_bin802.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/36607015/ft2_4FGL_J1608.7+1029_weekly_bin802.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/36607015/ft1_4FGL_J1608.7+1029_weekly_bin802.fits outfile=/lscratch/kocevski/36607015/ft1_filteredMKT_4FGL_J1608.7+1029_weekly_bin802.fits ra=242.176 dec=10.4938 rad=12.0 tmin=724032001.0 tmax=724636801.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.82
user 4.19
sys 0.29

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/36607015/ft2_4FGL_J1608.7+1029_weekly_bin802.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/36607015/ft2_4FGL_J1608.7+1029_weekly_bin802.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/36607015/ft1_filteredMKT_4FGL_J1608.7+1029_weekly_bin802.fits evtable="EVENTS" outfile="/lscratch/kocevski/36607015/ft1_filtered_4FGL_J1608.7+1029_weekly_bin802.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.47
user 0.22
sys 0.14

Number of photons that the gtmktime cut: 2006

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/36607015/ft1_filtered_4FGL_J1608.7+1029_weekly_bin802.fits" evtable="EVENTS" scfile=/lscratch/kocevski/36607015/ft2_4FGL_J1608.7+1029_weekly_bin802.fits sctable="SC_DATA" outfile=/lscratch/kocevski/36607015/ltcube_724032001_724636801_4FGL_J1608.7+1029_weekly_bin802.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/36607015/ft2_4FGL_J1608.7+1029_weekly_bin802.fits
.....................!
real 20.35
user 19.92
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/36607015/ft1_filtered_4FGL_J1608.7+1029_weekly_bin802.fits evtable="EVENTS" scfile=/lscratch/kocevski/36607015/ft2_4FGL_J1608.7+1029_weekly_bin802.fits sctable="SC_DATA" expcube=/lscratch/kocevski/36607015/ltcube_724032001_724636801_4FGL_J1608.7+1029_weekly_bin802.fits outfile=/lscratch/kocevski/36607015/expmap_724032001_724636801_4FGL_J1608.7+1029_weekly_bin802.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/36607015/ltcube_724032001_724636801_4FGL_J1608.7+1029_weekly_bin802.fits
.....................!
real 67.64
user 63.63
sys 3.70

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

Setting source of interest to:
4FGL J1608.7+1029 @ 242.176 10.4938

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/36607015/ft1_filtered_4FGL_J1608.7+1029_weekly_bin802.fits scfile=/lscratch/kocevski/36607015/ft2_4FGL_J1608.7+1029_weekly_bin802.fits outfile=/lscratch/kocevski/36607015/cmap_724032001_724636801_4FGL_J1608.7+1029_weekly_bin802.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=242.176 yref=10.4938 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.24
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/36607015/ft1_filtered_4FGL_J1608.7+1029_weekly_bin802.fits scfile=/lscratch/kocevski/36607015/ft2_4FGL_J1608.7+1029_weekly_bin802.fits outfile=/lscratch/kocevski/36607015/cmap_HighResolution_724032001_724636801_4FGL_J1608.7+1029_weekly_bin802.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=242.176 yref=10.4938 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.23
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/36607015/ft1_filtered_4FGL_J1608.7+1029_weekly_bin802.fits evtable="EVENTS" scfile=/lscratch/kocevski/36607015/ft2_4FGL_J1608.7+1029_weekly_bin802.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/36607015/Model_4FGL_J1608.7+1029_weekly_bin802.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/36607015/ft1_filtered_4FGL_J1608.7+1029_weekly_bin802.fits.....................!
real 59.14
user 57.83
sys 1.03

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/36607015/ft1_filtered_4FGL_J1608.7+1029_weekly_bin802.fits', '/lscratch/kocevski/36607015/ft2_4FGL_J1608.7+1029_weekly_bin802.fits', expMap='/lscratch/kocevski/36607015/expmap_724032001_724636801_4FGL_J1608.7+1029_weekly_bin802.fits', expCube='/lscratch/kocevski/36607015/ltcube_724032001_724636801_4FGL_J1608.7+1029_weekly_bin802.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/36607015/Model_4FGL_J1608.7+1029_weekly_bin802.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1608.7+1029'

4FGL J1608.7+1029
   Spectrum: LogParabola
261         norm:  8.130e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
262        alpha:  2.458e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
263         beta:  1.591e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
264           Eb:  5.195e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/36607015/ft1_filtered_4FGL_J1608.7+1029_weekly_bin802.fits
Spacecraft file(s): /lscratch/kocevski/36607015/ft2_4FGL_J1608.7+1029_weekly_bin802.fits
Exposure map: /lscratch/kocevski/36607015/expmap_724032001_724636801_4FGL_J1608.7+1029_weekly_bin802.fits
Exposure cube: /lscratch/kocevski/36607015/ltcube_724032001_724636801_4FGL_J1608.7+1029_weekly_bin802.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/36607015/Model_4FGL_J1608.7+1029_weekly_bin802.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) = 21520.4596982

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.7515       1.0000          .0000       .10000E+07
     2 'Prefactor '    16.992       1.0000          .0000       .10000E+07
     3 'norm      '    .53402       1.0000          .0000       .10000E+07
     4 'Prefactor '    5.9578       1.0000          .0000       .10000E+07
     5 'norm      '    .93347       1.0000          .0000       .10000E+07
     6 'Prefactor '    .19446E-06   1.0000          .0000       .10000E+07
     7 'norm      '    1.4279       1.0000          .0000       .10000E+07
     8 'norm      '    4.0249       1.0000          .0000       .10000E+07
     9 'norm      '    20.273       1.0000          .0000       .10000E+07
    10 'Prefactor '    .45942E-05   1.0000          .0000       .10000E+07
    11 'Prefactor '    .13641E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    .76459E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    20.778       1.0000          .0000       .10000E+07
    14 'Prefactor '    .14737E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    .48659       1.0000          .0000       .10000E+07
    16 'Prefactor '    .22091E-05   1.0000          .0000       .10000E+07
    17 'Normalizat'    1.6347       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .85920       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5220E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   21520.39     FROM MIGRAD    STATUS=CONVERGED    132 CALLS     1064 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.1014        16.328        .43091E-05   -.11766E-01
   2  Prefactor     16.950        6.6366        .12501E-05    .42450E-01
   3  norm          .53357        1.1486       -.73445E-07    .49322E-02
   4  Prefactor     5.9513        2.9466        .18018E-06    .26522E-02
   5  norm          .94260        1.4414        .11787E-06    .17350E-02
   6  Prefactor      .0000        30.428        .21648E-05** at limit **
   7  norm          1.4187        3.6597        .27108E-06   -.98079E-04
   8  norm          4.0241        1.1941        .30061E-07   -.12629E-01
   9  norm          20.477        9.9200       -.22218E-07   -.14443E-02
  10  Prefactor      .0000        5.2531        .71264E-06** at limit **
  11  Prefactor     .39413E-08    39.870        .10679E-06** at limit **
  12  Prefactor     .15543E-08    11.082        .14937E-05** at limit **
  13  Prefactor     20.750        6.9457       -.92824E-07   -.51160E-02
  14  Prefactor      .0000        3.2186       -.10207E-06** at limit **
  15  Prefactor     .51314        8.1634       -.14967E-05    .78926E-03
  16  Prefactor      .0000        1.3956        .28160E-06** at limit **
  17  Normalizat    1.6336        .18721       -.11407E-04   -.35256E-03
  18  Prefactor     .85938        .78329E-01    .22085E-05   -.10209E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.10136
  Prefactor  = 16.9497
  norm       = 0.533574
  Prefactor  = 5.95131
  norm       = 0.9426
  Prefactor  = 0
  norm       = 1.41867
  norm       = 4.02408
  norm       = 20.4773
  Prefactor  = 0
  Prefactor  = 3.94129e-09
  Prefactor  = 1.55431e-09
  Prefactor  = 20.7505
  Prefactor  = 0
  Prefactor  = 0.513138
  Prefactor  = 0
  Normalizat = 1.63362
  Prefactor  = 0.85938
 **********
 **   18 **HESSE 
 **********

 FCN=   21520.39     FROM HESSE     STATUS=OK           284 CALLS     1348 TOTAL
                     EDM=   .30E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.1014        18.152        .35993E-03   -1.5651    
   2  Prefactor     16.950        14.315        .24270E-03   -1.5626    
   3  norm          .53357        1.1726        .75358E-03   -1.5693    
   4  Prefactor     5.9513        2.9611        .41116E-03   -1.5659    
   5  norm          .94260        1.4589        .43473E-03   -1.5689    
   6  Prefactor      .0000        30.442        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.4187        3.7004        .90403E-03   -1.5684    
   8  norm          4.0241        1.1974        .50241E-03   -1.5668    
   9  norm          20.477        9.9028        .22216E-03   -1.5617    
  10  Prefactor      .0000        5.2465        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .39413E-08    39.933        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .15543E-08    11.110        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     20.750        6.9422        .21945E-03   -1.5617    
  14  Prefactor      .0000        3.2007        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .51314        7.8690        .80070E-03   -1.5694    
  16  Prefactor      .0000        1.3901        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.6336        .15431        .76124E-01   -.74090    
  18  Prefactor     .85938        .64383E-01    .44483E-01   -.97575    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.97199e-06
Minuit parameter uncertainties:
  1  18.152
  2  14.3154
  3  1.17264
  4  2.96111
  5  1.45891
  6  1.24236e-05
  7  3.70044
  8  1.19744
  9  9.90284
  10  9.91611e-06
  11  0.000794096
  12  0.000263329
  13  6.94216
  14  3.68624e-06
  15  4.0189
  16  7.69283e-06
  17  0.154354
  18  0.0643882
Done.

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

Extracting fit parameters...

4FGL J1608.7+1029
   Spectrum: LogParabola
261         norm:  2.048e+01  9.903e+00  0.000e+00  1.000e+06 ( 1.000e-12)
262        alpha:  2.458e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
263         beta:  1.591e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
264           Eb:  5.195e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
519    Prefactor:  8.594e-01  6.439e-02  0.000e+00  1.000e+01 ( 1.000e+00)
520        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
521        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
518   Normalization:  1.634e+00  1.544e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.05
Ra Dec: 242.176 10.494
Photon Index (Fixed Index): 2.46 +/- 0.00
Photon Flux (Fixed Index): 6.53e-08 +/- 3.16e-08
Energy Flux (Fixed Index): 1.87e-05 +/- 9.03e-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) = 21520.3742065
delta logL = 0.0169866369797

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 21520.3735502
delta logL = 0.0176429963249

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    20.282       1.0000          .0000       .10000E+07
     2 'alpha     '    2.5696       1.0000          .0000       5.0000    
     3 'Normalizat'    1.6245       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86187       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5220E+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=   21520.37     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      280 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          20.284        9.9608        .88848E-05    .11363E-02
   2  alpha         2.5693        .60185        .25058E-01    .23195E-03
   3  Normalizat    1.6247        .18944        .33758E-03    .92544E-04
   4  Prefactor     .86178        .78576E-01    .18856E-03   -.29760E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 20.2839
  alpha      = 2.56928
  Normalizat = 1.62466
  Prefactor  = 0.861781
 **********
 **   18 **HESSE 
 **********

 FCN=   21520.37     FROM HESSE     STATUS=OK            25 CALLS      305 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          20.284        9.8162        .35539E-06   -1.5618    
   2  alpha         2.5693        .59232        .50115E-02    .27715E-01
   3  Normalizat    1.6247        .18949        .13503E-04   -.74333    
   4  Prefactor     .86178        .78598E-01    .75426E-05   -.97490    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.84327e-10
Minuit parameter uncertainties:
  1  9.81619
  2  0.598015
  3  0.189576
  4  0.0786082
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) = 21520.3735495
delta logL = 0.0176436767433

Extracting fit parameters...

4FGL J1608.7+1029
   Spectrum: LogParabola
261         norm:  2.028e+01  9.816e+00  0.000e+00  1.000e+06 ( 1.000e-12)
262        alpha:  2.569e+00  5.980e-01  0.000e+00  5.000e+00 ( 1.000e+00)
263         beta:  1.591e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
264           Eb:  5.195e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
519    Prefactor:  8.618e-01  7.861e-02  0.000e+00  1.000e+01 ( 1.000e+00)
520        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
521        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
518   Normalization:  1.625e+00  1.896e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.10
Ra Dec: 242.176 10.494
Photon Index (Free Index): 2.57 +/- 0.60
Photon Flux (Free Index): 7.18e-08 +/- 4.76e-08
Energy Flux (Free Index): 1.90e-05 +/- 9.04e-06

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/36607015/cmap_HighResolution_724032001_724636801_4FGL_J1608.7+1029_weekly_bin802.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.53e-08', energy_flux2='1.90e-05', photon_flux_error='3.16e-08', dlogl='1.76e-02', energy_flux='1.87e-05', photon_flux2='7.18e-08', job_status='DONE', time_completed='2023-12-19 01:08:04.923112', photon_index_error2='0.60', photon_index2='2.57', ts='7.05', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', energy_flux_error2='9.04e-06', EG='1.63', time_epoch_completed='1702976884.92', return_code='0', job_id='36607015', GAL2='0.86', EG2='1.62', return_code2='0', energy_flux_error='9.03e-06', photon_flux_error2='4.76e-08', ts2='7.10', photon_index='2.46' WHERE bin_id='802' AND source_name='4FGL J1608.7+1029' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 19 01:08:04 PST 2023

