/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_J1814.4+2953_weekly_bin802
RA = 273.615, Dec = 29.8943
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='36607413', job_status='RUN', time_executed='2023-12-19 01:10:51.994679', time_epoch_executed='1702977051.99' WHERE source_name='4FGL J1814.4+2953' and cadence='weekly' and bin_id='802'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/36607413

Creating custom pfile directory:
/lscratch/kocevski/36607413/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/36607413/ft1_4FGL_J1814.4+2953_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/36607413/ft2_4FGL_J1814.4+2953_weekly_bin802.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/36607413/ft1_4FGL_J1814.4+2953_weekly_bin802.fits outfile=/lscratch/kocevski/36607413/ft1_filteredMKT_4FGL_J1814.4+2953_weekly_bin802.fits ra=273.615 dec=29.8943 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.01
user 3.74
sys 0.17

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/36607413/ft2_4FGL_J1814.4+2953_weekly_bin802.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/36607413/ft2_4FGL_J1814.4+2953_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/36607413/ft1_filteredMKT_4FGL_J1814.4+2953_weekly_bin802.fits evtable="EVENTS" outfile="/lscratch/kocevski/36607413/ft1_filtered_4FGL_J1814.4+2953_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.38
user 0.20
sys 0.12

Number of photons that the gtmktime cut: 2382

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/36607413/ft1_filtered_4FGL_J1814.4+2953_weekly_bin802.fits" evtable="EVENTS" scfile=/lscratch/kocevski/36607413/ft2_4FGL_J1814.4+2953_weekly_bin802.fits sctable="SC_DATA" outfile=/lscratch/kocevski/36607413/ltcube_724032001_724636801_4FGL_J1814.4+2953_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/36607413/ft2_4FGL_J1814.4+2953_weekly_bin802.fits
.....................!
real 16.28
user 15.94
sys 0.20

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/36607413/ft1_filtered_4FGL_J1814.4+2953_weekly_bin802.fits evtable="EVENTS" scfile=/lscratch/kocevski/36607413/ft2_4FGL_J1814.4+2953_weekly_bin802.fits sctable="SC_DATA" expcube=/lscratch/kocevski/36607413/ltcube_724032001_724636801_4FGL_J1814.4+2953_weekly_bin802.fits outfile=/lscratch/kocevski/36607413/expmap_724032001_724636801_4FGL_J1814.4+2953_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/36607413/ltcube_724032001_724636801_4FGL_J1814.4+2953_weekly_bin802.fits
.....................!
real 59.43
user 55.84
sys 3.32

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

Setting source of interest to:
4FGL J1814.4+2953 @ 273.615 29.8943

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/36607413/ft1_filtered_4FGL_J1814.4+2953_weekly_bin802.fits scfile=/lscratch/kocevski/36607413/ft2_4FGL_J1814.4+2953_weekly_bin802.fits outfile=/lscratch/kocevski/36607413/cmap_724032001_724636801_4FGL_J1814.4+2953_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=273.615 yref=29.8943 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.21
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/36607413/ft1_filtered_4FGL_J1814.4+2953_weekly_bin802.fits scfile=/lscratch/kocevski/36607413/ft2_4FGL_J1814.4+2953_weekly_bin802.fits outfile=/lscratch/kocevski/36607413/cmap_HighResolution_724032001_724636801_4FGL_J1814.4+2953_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=273.615 yref=29.8943 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.21
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/36607413/ft1_filtered_4FGL_J1814.4+2953_weekly_bin802.fits evtable="EVENTS" scfile=/lscratch/kocevski/36607413/ft2_4FGL_J1814.4+2953_weekly_bin802.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/36607413/Model_4FGL_J1814.4+2953_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/36607413/ft1_filtered_4FGL_J1814.4+2953_weekly_bin802.fits.....................!
real 66.91
user 65.78
sys 0.82

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/36607413/ft1_filtered_4FGL_J1814.4+2953_weekly_bin802.fits', '/lscratch/kocevski/36607413/ft2_4FGL_J1814.4+2953_weekly_bin802.fits', expMap='/lscratch/kocevski/36607413/expmap_724032001_724636801_4FGL_J1814.4+2953_weekly_bin802.fits', expCube='/lscratch/kocevski/36607413/ltcube_724032001_724636801_4FGL_J1814.4+2953_weekly_bin802.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/36607413/Model_4FGL_J1814.4+2953_weekly_bin802.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1814.4+2953'

4FGL J1814.4+2953
   Spectrum: PowerLaw
352    Prefactor:  2.583e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
353        Index:  2.553e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
354        Scale:  1.024e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/36607413/ft1_filtered_4FGL_J1814.4+2953_weekly_bin802.fits
Spacecraft file(s): /lscratch/kocevski/36607413/ft2_4FGL_J1814.4+2953_weekly_bin802.fits
Exposure map: /lscratch/kocevski/36607413/expmap_724032001_724636801_4FGL_J1814.4+2953_weekly_bin802.fits
Exposure cube: /lscratch/kocevski/36607413/ltcube_724032001_724636801_4FGL_J1814.4+2953_weekly_bin802.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/36607413/Model_4FGL_J1814.4+2953_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) = 24401.5108779

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .24138E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    .40799E-05   1.0000          .0000       .10000E+07
     3 'Prefactor '    .71038E-05   1.0000          .0000       .10000E+07
     4 'Prefactor '    .40297E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    4.2526       1.0000          .0000       .10000E+07
     6 'norm      '    .72555       1.0000          .0000       .10000E+07
     7 'norm      '    .48036E-01   1.0000          .0000       .10000E+07
     8 'Prefactor '    8.8894       1.0000          .0000       .10000E+07
     9 'norm      '    17.069       1.0000          .0000       .10000E+07
    10 'Prefactor '    2.0126       1.0000          .0000       .10000E+07
    11 'Prefactor '    25.731       1.0000          .0000       .10000E+07
    12 'Prefactor '    1.5189       1.0000          .0000       .10000E+07
    13 'norm      '    9.6759       1.0000          .0000       .10000E+07
    14 'norm      '    .11324E-07   1.0000          .0000       .10000E+07
    15 'norm      '    1.7798       1.0000          .0000       .10000E+07
    16 'Prefactor '    .19557E-01   1.0000          .0000       .10000E+07
    17 'Normalizat'    1.1389       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .97999       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7690E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   24401.49     FROM MIGRAD    STATUS=CONVERGED    116 CALLS     1339 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .54401E-08    25.485        .44227E-07** at limit **
   2  Prefactor     .66613E-09    7.8204        .25154E-07** at limit **
   3  Prefactor     .33307E-09    6.8491       -.50153E-07** at limit **
   4  Prefactor     .10547E-08    11.584        .36727E-06** at limit **
   5  Prefactor     4.2673        3.2953       -.70695E-07   -.42312E-03
   6  norm          .72561        .65529       -.14573E-07    .12365E-03
   7  norm          .34400E-04    1.3786        .62541E-07** at limit **
   8  Prefactor     8.8823        3.9978        .55786E-07   -.20567E-03
   9  norm          17.074        6.5362        .13438E-07   -.41790E-03
  10  Prefactor     2.0145        1.9981        .66821E-08   -.45553E-03
  11  Prefactor     25.670        1.3611        .36316E-08    .55847E-02
  12  Prefactor     1.4867        5.0560        .26382E-06    .45218E-04
  13  norm          9.6370        1.0809       -.26648E-08    .19713E-01
  14  norm           .0000        3.1828        .31049E-07** at limit **
  15  norm          1.7814        1.2490        .13276E-08   -.46650E-03
  16  Prefactor     .20660E-01    .75856       -.10235E-07** at limit **
  17  Normalizat    1.1390        .15175       -.23027E-05   -.55320E-04
  18  Prefactor     .98000        .54089E-01   -.10353E-05   -.12826E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.44009e-09
  Prefactor  = 6.66134e-10
  Prefactor  = 3.33067e-10
  Prefactor  = 1.05471e-09
  Prefactor  = 4.26727
  norm       = 0.725614
  norm       = 3.43999e-05
  Prefactor  = 8.8823
  norm       = 17.0744
  Prefactor  = 2.01454
  Prefactor  = 25.6704
  Prefactor  = 1.48674
  norm       = 9.63698
  norm       = 0
  norm       = 1.78136
  Prefactor  = 0.0206597
  Normalizat = 1.13903
  Prefactor  = 0.98
 **********
 **   18 **HESSE 
 **********

 FCN=   24401.49     FROM HESSE     STATUS=OK           302 CALLS     1641 TOTAL
                     EDM=   .22E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .54401E-08    25.593        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .66613E-09    7.7701        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .33307E-09    6.8299        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10547E-08    11.620        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.2673        3.2943        .48836E-03   -1.5667    
   6  norm          .72561        .65150        .58658E-03   -1.5691    
   7  norm          .34400E-04    12.631        .21129E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.8823        3.9944        .33594E-03   -1.5648    
   9  norm          17.074        6.8637        .24215E-03   -1.5625    
  10  Prefactor     2.0145        2.0428        .72941E-03   -1.5680    
  11  Prefactor     25.670        14.902        .19718E-03   -1.5607    
  12  Prefactor     1.4867        5.0885        .86675E-03   -1.5684    
  13  norm          9.6370        18.367        .32191E-03   -1.5646    
  14  norm           .0000        3.1390        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.7814        1.2849        .78422E-03   -1.5681    
  16  Prefactor     .20660E-01    1.7610        .13069E-01   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.1390        .13805        .89619E-01   -.88508    
  18  Prefactor     .98000        .48664E-01    .34589E-01   -.93399    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.23361e-06
Minuit parameter uncertainties:
  1  0.000745497
  2  0.000144339
  3  9.20658e-05
  4  0.000222033
  5  3.29435
  6  0.651495
  7  0.0416895
  8  3.99439
  9  6.86372
  10  2.04276
  11  14.9016
  12  5.08854
  13  18.367
  14  4.16125e-06
  15  1.28489
  16  0.381483
  17  0.138093
  18  0.048666
Done.

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

Extracting fit parameters...

4FGL J1814.4+2953
   Spectrum: PowerLaw
352    Prefactor:  2.567e+01  1.490e+01  0.000e+00  1.000e+06 ( 1.000e-13)
353        Index:  2.553e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
354        Scale:  1.024e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
766    Prefactor:  9.800e-01  4.867e-02  0.000e+00  1.000e+01 ( 1.000e+00)
767        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
768        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
765   Normalization:  1.139e+00  1.381e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.24
Ra Dec: 273.615 29.894
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 6.28e-08 +/- 3.64e-08
Energy Flux (Fixed Index): 1.72e-05 +/- 1.00e-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) = 24401.3516395
delta logL = 0.134594659328

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 24401.3026129
delta logL = 0.183621286706

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.508       1.0000          .0000       .10000E+07
     2 'Index     '    2.8365       1.0000          .0000       10.000    
     3 'Normalizat'    1.1263       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98262       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7690E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   24401.30     FROM MIGRAD    STATUS=FAILED        93 CALLS      295 TOTAL
                     EDM=   .84E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.501        20.657        .93014E-05   -.40090E-02
   2  Index         2.8372        .63254        .77699E-02    .19310E-02
   3  Normalizat    1.1264        .15163        .39877E-03   -.35180E-03
   4  Prefactor     .98256        .54006E-01    .15265E-03   -.10587E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   24401.30     FROM SIMPLEX   STATUS=UNCHANGED     74 CALLS      369 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.501        20.657        .15627E-04   -1.5622    
   2  Index         2.8372        .63254        .39941E-03   -.44734    
   3  Normalizat    1.1264        .15163        .18141E-03   -.88909    
   4  Prefactor     .98256        .54006E-01    .78022E-04   -.93313    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   24401.30     FROM MIGRAD    STATUS=CONVERGED     38 CALLS      407 TOTAL
                     EDM=   .81E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.501        16.835        .37206E-06    .31745E-03
   2  Index         2.8372        .51559        .15540E-02   -.15071E-04
   3  Normalizat    1.1264        .15143        .15951E-04    .28509E-05
   4  Prefactor     .98256        .53942E-01    .30531E-04    .41705E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.5009
  Index      = 2.83716
  Normalizat = 1.12638
  Prefactor  = 0.982558
 **********
 **   18 **HESSE 
 **********

 FCN=   24401.30     FROM HESSE     STATUS=OK            23 CALLS      430 TOTAL
                     EDM=   .94E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.501        16.264        .37246E-06   -1.5622    
   2  Index         2.8372        .49795        .62159E-04   -.44734    
   3  Normalizat    1.1264        .15149        .31902E-05   -.88909    
   4  Prefactor     .98256        .53956E-01    .61061E-05   -.93313    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.40266e-12
Minuit parameter uncertainties:
  1  16.2641
  2  0.498968
  3  0.151545
  4  0.0539588
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) = 24401.3026108
delta logL = 0.183623344681

Extracting fit parameters...

4FGL J1814.4+2953
   Spectrum: PowerLaw
352    Prefactor:  1.850e+01  1.626e+01  0.000e+00  1.000e+06 ( 1.000e-13)
353        Index:  2.837e+00  4.990e-01  0.000e+00  1.000e+01 (-1.000e+00)
354        Scale:  1.024e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
766    Prefactor:  9.826e-01  5.396e-02  0.000e+00  1.000e+01 ( 1.000e+00)
767        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
768        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
765   Normalization:  1.126e+00  1.515e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.69
Ra Dec: 273.615 29.894
Photon Index (Free Index): 2.84 +/- 0.50
Photon Flux (Free Index): 7.41e-08 +/- 4.09e-08
Energy Flux (Free Index): 1.62e-05 +/- 8.71e-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/36607413/cmap_HighResolution_724032001_724636801_4FGL_J1814.4+2953_weekly_bin802.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.28e-08', energy_flux2='1.62e-05', photon_flux_error='3.64e-08', dlogl='1.84e-01', energy_flux='1.72e-05', photon_flux2='7.41e-08', job_status='DONE', time_completed='2023-12-19 01:20:30.674005', photon_index_error2='0.50', photon_index2='2.84', ts='4.24', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='8.71e-06', EG='1.14', time_epoch_completed='1702977630.67', return_code='0', job_id='36607413', GAL2='0.98', EG2='1.13', return_code2='0', energy_flux_error='1.00e-05', photon_flux_error2='4.09e-08', ts2='4.69', photon_index='2.55' WHERE bin_id='802' AND source_name='4FGL J1814.4+2953' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 19 01:20:30 PST 2023

