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


Performing analysis on: 4FGL_J0001.5+2113_weekly_bin823
RA = 0.3815, Dec = 21.2183
tmin = 736732801, tmax = 737337601
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='47868380', job_status='RUN', time_executed='2024-05-14 00:01:15.936117', time_epoch_executed='1715670075.94' WHERE source_name='4FGL J0001.5+2113' and cadence='weekly' and bin_id='823'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/47868380

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/47868380/ft1_4FGL_J0001.5+2113_weekly_bin823.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/47868380/ft2_4FGL_J0001.5+2113_weekly_bin823.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/47868380/ft1_4FGL_J0001.5+2113_weekly_bin823.fits outfile=/lscratch/kocevski/47868380/ft1_filteredMKT_4FGL_J0001.5+2113_weekly_bin823.fits ra=0.3815 dec=21.2183 rad=12.0 tmin=736732801.0 tmax=737337601.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 3.09
user 2.78
sys 0.22

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/47868380/ft2_4FGL_J0001.5+2113_weekly_bin823.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/47868380/ft2_4FGL_J0001.5+2113_weekly_bin823.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/47868380/ft1_filteredMKT_4FGL_J0001.5+2113_weekly_bin823.fits evtable="EVENTS" outfile="/lscratch/kocevski/47868380/ft1_filtered_4FGL_J0001.5+2113_weekly_bin823.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.39
user 0.20
sys 0.16

Number of photons that the gtmktime cut: 1221

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/47868380/ft1_filtered_4FGL_J0001.5+2113_weekly_bin823.fits" evtable="EVENTS" scfile=/lscratch/kocevski/47868380/ft2_4FGL_J0001.5+2113_weekly_bin823.fits sctable="SC_DATA" outfile=/lscratch/kocevski/47868380/ltcube_736732801_737337601_4FGL_J0001.5+2113_weekly_bin823.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/47868380/ft2_4FGL_J0001.5+2113_weekly_bin823.fits
.....................!
real 18.42
user 17.93
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/47868380/ft1_filtered_4FGL_J0001.5+2113_weekly_bin823.fits evtable="EVENTS" scfile=/lscratch/kocevski/47868380/ft2_4FGL_J0001.5+2113_weekly_bin823.fits sctable="SC_DATA" expcube=/lscratch/kocevski/47868380/ltcube_736732801_737337601_4FGL_J0001.5+2113_weekly_bin823.fits outfile=/lscratch/kocevski/47868380/expmap_736732801_737337601_4FGL_J0001.5+2113_weekly_bin823.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/47868380/ltcube_736732801_737337601_4FGL_J0001.5+2113_weekly_bin823.fits
.....................!
real 66.75
user 62.10
sys 4.06

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

Setting source of interest to:
4FGL J0001.5+2113 @ 0.3815 21.2183

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/47868380/ft1_filtered_4FGL_J0001.5+2113_weekly_bin823.fits scfile=/lscratch/kocevski/47868380/ft2_4FGL_J0001.5+2113_weekly_bin823.fits outfile=/lscratch/kocevski/47868380/cmap_736732801_737337601_4FGL_J0001.5+2113_weekly_bin823.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=0.3815 yref=21.2183 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.24
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/47868380/ft1_filtered_4FGL_J0001.5+2113_weekly_bin823.fits scfile=/lscratch/kocevski/47868380/ft2_4FGL_J0001.5+2113_weekly_bin823.fits outfile=/lscratch/kocevski/47868380/cmap_HighResolution_736732801_737337601_4FGL_J0001.5+2113_weekly_bin823.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=0.3815 yref=21.2183 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.24
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/47868380/ft1_filtered_4FGL_J0001.5+2113_weekly_bin823.fits evtable="EVENTS" scfile=/lscratch/kocevski/47868380/ft2_4FGL_J0001.5+2113_weekly_bin823.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/47868380/Model_4FGL_J0001.5+2113_weekly_bin823.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/47868380/ft1_filtered_4FGL_J0001.5+2113_weekly_bin823.fits.....................!
real 52.80
user 51.57
sys 0.76

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/47868380/ft1_filtered_4FGL_J0001.5+2113_weekly_bin823.fits', '/lscratch/kocevski/47868380/ft2_4FGL_J0001.5+2113_weekly_bin823.fits', expMap='/lscratch/kocevski/47868380/expmap_736732801_737337601_4FGL_J0001.5+2113_weekly_bin823.fits', expCube='/lscratch/kocevski/47868380/ltcube_736732801_737337601_4FGL_J0001.5+2113_weekly_bin823.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/47868380/Model_4FGL_J0001.5+2113_weekly_bin823.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0001.5+2113'

4FGL J0001.5+2113
   Spectrum: LogParabola
3           norm:  4.533e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-11)
4          alpha:  2.548e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
5           beta:  1.588e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
6             Eb:  3.558e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/47868380/ft1_filtered_4FGL_J0001.5+2113_weekly_bin823.fits
Spacecraft file(s): /lscratch/kocevski/47868380/ft2_4FGL_J0001.5+2113_weekly_bin823.fits
Exposure map: /lscratch/kocevski/47868380/expmap_736732801_737337601_4FGL_J0001.5+2113_weekly_bin823.fits
Exposure cube: /lscratch/kocevski/47868380/ltcube_736732801_737337601_4FGL_J0001.5+2113_weekly_bin823.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/47868380/Model_4FGL_J0001.5+2113_weekly_bin823.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) = 13525.658962

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.5056       1.0000          .0000       .10000E+07
     2 'Prefactor '    .89267E-06   1.0000          .0000       .10000E+07
     3 'Prefactor '    .88707E-07   1.0000          .0000       .10000E+07
     4 'Prefactor '    3.0795       1.0000          .0000       .10000E+07
     5 'Prefactor '    3.4528       1.0000          .0000       .10000E+07
     6 'norm      '    6.6489       1.0000          .0000       .10000E+07
     7 'Prefactor '    30.893       1.0000          .0000       .10000E+07
     8 'norm      '    20.397       1.0000          .0000       .10000E+07
     9 'Prefactor '    .54101E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    .71532E-06   1.0000          .0000       .10000E+07
    11 'Prefactor '    .22403E-02   1.0000          .0000       .10000E+07
    12 'norm      '    2.2355       1.0000          .0000       .10000E+07
    13 'Prefactor '    1.1044       1.0000          .0000       .10000E+07
    14 'Prefactor '    20.719       1.0000          .0000       .10000E+07
    15 'Normalizat'    .81105       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .94232       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   13525.54     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      873 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5083        1.9260       -.90817E-06    .75586E-03
   2  Prefactor     .38858E-09    1.8635       -.14504E-05** at limit **
   3  Prefactor     .44409E-09    1.5090       -.14459E-05** at limit **
   4  Prefactor     3.0769        3.9123       -.25385E-05    .71638E-02
   5  Prefactor     3.4520        2.5186        .23062E-05    .47193E-02
   6  norm          6.6406        1.0320        .60855E-07    .23935E-01
   7  Prefactor     30.812        6.6548       -.19162E-05   -.86566E-01
   8  norm          20.699        8.4262        .20054E-05    .11427E-01
   9  Prefactor     .37853E-06    206.37       -.47943E-04** at limit **
  10  Prefactor     .11102E-09    1.5043        .27601E-06** at limit **
  11  Prefactor     .55511E-10    8.7773       -.28616E-05** at limit **
  12  norm          2.2053        5.0512        .35640E-05   -.34064E-02
  13  Prefactor     1.1053        3.0057        .14455E-05    .28343E-02
  14  Prefactor     20.942        9.4426        .34801E-05   -.50048E-01
  15  Normalizat    .81089        .14414        .92633E-05    .48942E-03
  16  Prefactor     .94228        .92406E-01    .16178E-05    .90360E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.50828
  Prefactor  = 3.88578e-10
  Prefactor  = 4.44089e-10
  Prefactor  = 3.07692
  Prefactor  = 3.45201
  norm       = 6.6406
  Prefactor  = 30.8121
  norm       = 20.6992
  Prefactor  = 3.78531e-07
  Prefactor  = 1.11022e-10
  Prefactor  = 5.55112e-11
  norm       = 2.20525
  Prefactor  = 1.10528
  Prefactor  = 20.9421
  Normalizat = 0.810891
  Prefactor  = 0.942278
 **********
 **   18 **HESSE 
 **********

 FCN=   13525.54     FROM HESSE     STATUS=OK           243 CALLS     1116 TOTAL
                     EDM=   .47E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5083        1.9360        .64530E-03   -1.5676    
   2  Prefactor     .38858E-09    1.8688        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .44409E-09    1.5140        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.0769        3.9300        .57774E-03   -1.5673    
   5  Prefactor     3.4520        2.5681        .54403E-03   -1.5671    
   6  norm          6.6406        6.0170        .38892E-03   -1.5656    
   7  Prefactor     30.812        20.649        .17994E-03   -1.5597    
   8  norm          20.699        8.8422        .22149E-03   -1.5617    
   9  Prefactor     .37853E-06    7.6312        .10421E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .11102E-09    1.5017        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .55511E-10    8.7337        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.2053        5.0758        .68722E-03   -1.5678    
  13  Prefactor     1.1053        3.0333        .11275E-02   -1.5687    
  14  Prefactor     20.942        23.285        .21976E-03   -1.5616    
  15  Normalizat    .81089        .12504        .66149E-01   -.99666    
  16  Prefactor     .94228        .78384E-01    .45542E-01   -.94679    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.74407e-07
Minuit parameter uncertainties:
  1  1.936
  2  5.47676e-05
  3  5.1073e-05
  4  3.92999
  5  2.56809
  6  6.01703
  7  20.6488
  8  8.84223
  9  0.00339917
  10  2.24716e-05
  11  4.14574e-05
  12  5.07584
  13  3.03327
  14  23.2851
  15  0.125085
  16  0.0783936
Done.

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

Extracting fit parameters...

4FGL J0001.5+2113
   Spectrum: LogParabola
3           norm:  2.508e+00  1.936e+00  0.000e+00  1.000e+06 ( 1.000e-11)
4          alpha:  2.548e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
5           beta:  1.588e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
6             Eb:  3.558e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
511    Prefactor:  9.423e-01  7.839e-02  0.000e+00  1.000e+01 ( 1.000e+00)
512        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
513        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
510   Normalization:  8.109e-01  1.251e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.14
Ra Dec: 0.382 21.218
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 3.64e-08 +/- 2.81e-08
Energy Flux (Fixed Index): 9.03e-06 +/- 6.97e-06

TS (Fixed Index): 2.14
Ra Dec: 0.382 21.218
Photon Flux Upper Limit: 9.01479145622e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.23349940405e-05 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/47868380/likelihoodResults_736732801_737337601_4FGL_J0001.5+2113_weekly_bin823.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13524.9136325
delta logL = 0.627265540617

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13524.9121653
delta logL = 0.628732669726

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5455       1.0000          .0000       .10000E+07
     2 'alpha     '    3.8683       1.0000          .0000       5.0000    
     3 'Normalizat'    .76473       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96492       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   13524.91     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      245 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5452        15.880        .85687E-03    .15397E-01
   2  alpha         3.8686        3.4316        .50000        .71503E-04
   3  Normalizat    .76476        .42094E-01    .67949E-01    .50164E-04
   4  Prefactor     .96491        .28158E-01    .45827E-01    .47423E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 1.54518
  alpha      = 3.86865
  Normalizat = 0.764757
  Prefactor  = 0.964913
 **********
 **   18 **HESSE 
 **********

 FCN=   13524.91     FROM HESSE     STATUS=OK            33 CALLS      278 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5452        5.4207        .82088E-05   -1.5683    
   2  alpha         3.8686        4.3873        .36292E-01    .57932    
   3  Normalizat    .76476        .15338        .30065E-03   -1.0139    
   4  Prefactor     .96491        .99928E-01    .17644E-03   -.93908    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.14133e-10
Minuit parameter uncertainties:
  1  5.42076
  2  3.92265
  3  0.153468
  4  0.099947
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) = 13524.9121653
delta logL = 0.628732731935

Extracting fit parameters...

4FGL J0001.5+2113
   Spectrum: LogParabola
3           norm:  1.545e+00  5.421e+00  0.000e+00  1.000e+06 ( 1.000e-11)
4          alpha:  3.869e+00  3.923e+00  0.000e+00  5.000e+00 ( 1.000e+00)
5           beta:  1.588e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
6             Eb:  3.558e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
511    Prefactor:  9.649e-01  9.995e-02  0.000e+00  1.000e+01 ( 1.000e+00)
512        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
513        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
510   Normalization:  7.648e-01  1.535e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.61
Ra Dec: 0.382 21.218
Photon Index (Free Index): 3.87 +/- 3.92
Photon Flux (Free Index): 6.30e-08 +/- 3.89e-08
Energy Flux (Free Index): 9.89e-06 +/- 8.92e-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/47868380/cmap_HighResolution_736732801_737337601_4FGL_J0001.5+2113_weekly_bin823.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.23e-05', comment='SUCCESS', photon_flux='3.64e-08', energy_flux2='9.89e-06', photon_flux_error='2.81e-08', dlogl='6.29e-01', energy_flux='9.03e-06', photon_flux2='6.30e-08', job_status='DONE', time_completed='2024-05-14 00:08:40.798099', photon_index_error2='3.92', photon_index2='3.87', ts='2.14', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='9.01e-08', energy_flux_error2='8.92e-06', EG='0.81', time_epoch_completed='1715670520.8', return_code='0', job_id='47868380', GAL2='0.96', EG2='0.76', return_code2='0', energy_flux_error='6.97e-06', photon_flux_error2='3.89e-08', ts2='3.61', photon_index='2.55' WHERE bin_id='823' AND source_name='4FGL J0001.5+2113' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May 14 00:08:40 PDT 2024

