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


Performing analysis on: 4FGL_J0028.4+2001_weekly_bin819
RA = 7.1222, Dec = 20.0311
tmin = 734313601, tmax = 734918401
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='44246029', job_status='RUN', time_executed='2024-04-19 11:55:49.798585', time_epoch_executed='1713552949.8' WHERE source_name='4FGL J0028.4+2001' and cadence='weekly' and bin_id='819'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/44246029

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/44246029/ft1_4FGL_J0028.4+2001_weekly_bin819.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/44246029/ft2_4FGL_J0028.4+2001_weekly_bin819.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/44246029/ft1_4FGL_J0028.4+2001_weekly_bin819.fits outfile=/lscratch/kocevski/44246029/ft1_filteredMKT_4FGL_J0028.4+2001_weekly_bin819.fits ra=7.1222 dec=20.0311 rad=12.0 tmin=734313601.0 tmax=734918401.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 7.17
user 5.35
sys 0.22

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/44246029/ft2_4FGL_J0028.4+2001_weekly_bin819.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/44246029/ft2_4FGL_J0028.4+2001_weekly_bin819.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/44246029/ft1_filteredMKT_4FGL_J0028.4+2001_weekly_bin819.fits evtable="EVENTS" outfile="/lscratch/kocevski/44246029/ft1_filtered_4FGL_J0028.4+2001_weekly_bin819.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 1.15
user 0.21
sys 0.14

Number of photons that the gtmktime cut: 1290

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/44246029/ft1_filtered_4FGL_J0028.4+2001_weekly_bin819.fits" evtable="EVENTS" scfile=/lscratch/kocevski/44246029/ft2_4FGL_J0028.4+2001_weekly_bin819.fits sctable="SC_DATA" outfile=/lscratch/kocevski/44246029/ltcube_734313601_734918401_4FGL_J0028.4+2001_weekly_bin819.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/44246029/ft2_4FGL_J0028.4+2001_weekly_bin819.fits
.....................!
real 17.91
user 17.51
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/44246029/ft1_filtered_4FGL_J0028.4+2001_weekly_bin819.fits evtable="EVENTS" scfile=/lscratch/kocevski/44246029/ft2_4FGL_J0028.4+2001_weekly_bin819.fits sctable="SC_DATA" expcube=/lscratch/kocevski/44246029/ltcube_734313601_734918401_4FGL_J0028.4+2001_weekly_bin819.fits outfile=/lscratch/kocevski/44246029/expmap_734313601_734918401_4FGL_J0028.4+2001_weekly_bin819.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/44246029/ltcube_734313601_734918401_4FGL_J0028.4+2001_weekly_bin819.fits
.....................!
real 59.39
user 55.81
sys 3.14

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

Setting source of interest to:
4FGL J0028.4+2001 @ 7.1222 20.0311

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/44246029/ft1_filtered_4FGL_J0028.4+2001_weekly_bin819.fits scfile=/lscratch/kocevski/44246029/ft2_4FGL_J0028.4+2001_weekly_bin819.fits outfile=/lscratch/kocevski/44246029/cmap_734313601_734918401_4FGL_J0028.4+2001_weekly_bin819.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=7.1222 yref=20.0311 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.37
user 0.21
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/44246029/ft1_filtered_4FGL_J0028.4+2001_weekly_bin819.fits scfile=/lscratch/kocevski/44246029/ft2_4FGL_J0028.4+2001_weekly_bin819.fits outfile=/lscratch/kocevski/44246029/cmap_HighResolution_734313601_734918401_4FGL_J0028.4+2001_weekly_bin819.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=7.1222 yref=20.0311 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.22
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/44246029/ft1_filtered_4FGL_J0028.4+2001_weekly_bin819.fits evtable="EVENTS" scfile=/lscratch/kocevski/44246029/ft2_4FGL_J0028.4+2001_weekly_bin819.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/44246029/Model_4FGL_J0028.4+2001_weekly_bin819.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/44246029/ft1_filtered_4FGL_J0028.4+2001_weekly_bin819.fits.....................!
real 49.81
user 48.48
sys 0.91

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/44246029/ft1_filtered_4FGL_J0028.4+2001_weekly_bin819.fits', '/lscratch/kocevski/44246029/ft2_4FGL_J0028.4+2001_weekly_bin819.fits', expMap='/lscratch/kocevski/44246029/expmap_734313601_734918401_4FGL_J0028.4+2001_weekly_bin819.fits', expCube='/lscratch/kocevski/44246029/ltcube_734313601_734918401_4FGL_J0028.4+2001_weekly_bin819.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/44246029/Model_4FGL_J0028.4+2001_weekly_bin819.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0028.4+2001'

4FGL J0028.4+2001
   Spectrum: PowerLaw
112    Prefactor:  1.480e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
113        Index:  2.414e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
114        Scale:  7.971e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/44246029/ft1_filtered_4FGL_J0028.4+2001_weekly_bin819.fits
Spacecraft file(s): /lscratch/kocevski/44246029/ft2_4FGL_J0028.4+2001_weekly_bin819.fits
Exposure map: /lscratch/kocevski/44246029/expmap_734313601_734918401_4FGL_J0028.4+2001_weekly_bin819.fits
Exposure cube: /lscratch/kocevski/44246029/ltcube_734313601_734918401_4FGL_J0028.4+2001_weekly_bin819.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/44246029/Model_4FGL_J0028.4+2001_weekly_bin819.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) = 15029.9533951

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.5218       1.0000          .0000       .10000E+07
     2 'Prefactor '    .50431E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    .84214       1.0000          .0000       .10000E+07
     4 'Prefactor '    4.9653       1.0000          .0000       .10000E+07
     5 'norm      '    2.1422       1.0000          .0000       .10000E+07
     6 'Prefactor '    56.410       1.0000          .0000       .10000E+07
     7 'Prefactor '    .20783E-04   1.0000          .0000       .10000E+07
     8 'norm      '    .43974       1.0000          .0000       .10000E+07
     9 'Prefactor '    3.4194       1.0000          .0000       .10000E+07
    10 'Prefactor '    17.523       1.0000          .0000       .10000E+07
    11 'Prefactor '    29.035       1.0000          .0000       .10000E+07
    12 'norm      '    .61080E-01   1.0000          .0000       .10000E+07
    13 'Prefactor '    5.5168       1.0000          .0000       .10000E+07
    14 'Normalizat'    .68812       1.0000         .10000E-01   10.000    
    15 'Prefactor '    1.3418       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4930E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   15029.91     FROM MIGRAD    STATUS=CONVERGED    123 CALLS     1122 TOTAL
                     EDM=   .23E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5324        2.3021        .24057E-06   -.97449E-04
   2  Prefactor     .55511E-10    6.8548        .98978E-06** at limit **
   3  Prefactor     .75085        15.711       -.30271E-05   -.56732E-03
   4  Prefactor     4.9427        3.0785        .85891E-07   -.31527E-03
   5  norm          2.1459        4.5368       -.43206E-06    .43561E-03
   6  Prefactor     57.178        27.386       -.12852E-06   -.35955E-03
   7  Prefactor      .0000        3.3661       -.84452E-06** at limit **
   8  norm          .48927        12.491       -.89344E-06   -.21917E-03
   9  Prefactor     3.4293        4.2670       -.50070E-06    .40994E-03
  10  Prefactor     17.499        12.989        .81240E-06   -.12197E-03
  11  Prefactor     28.280        36.694       -.24083E-05    .24591E-03
  12  norm          .61024E-01    .53584       -.57149E-06** at limit **
  13  Prefactor     5.4652        4.7061       -.87320E-07    .63259E-03
  14  Normalizat    .68819        .17144        .17165E-04    .32011E-04
  15  Prefactor     1.3417        .11303       -.84135E-05    .10748E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.53237
  Prefactor  = 5.55112e-11
  Prefactor  = 0.750845
  Prefactor  = 4.94272
  norm       = 2.14591
  Prefactor  = 57.1784
  Prefactor  = 0
  norm       = 0.489267
  Prefactor  = 3.42927
  Prefactor  = 17.4991
  Prefactor  = 28.2805
  norm       = 0.0610245
  Prefactor  = 5.46523
  Normalizat = 0.688192
  Prefactor  = 1.34172
 **********
 **   18 **HESSE 
 **********

 FCN=   15029.91     FROM HESSE     STATUS=OK           224 CALLS     1346 TOTAL
                     EDM=   .22E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5324        2.3218        .64303E-03   -1.5676    
   2  Prefactor     .55511E-10    6.8513        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .75085        15.771        .49845E-03   -1.5691    
   4  Prefactor     4.9427        3.0922        .45109E-03   -1.5663    
   5  norm          2.1459        4.5598        .70388E-03   -1.5679    
   6  Prefactor     57.178        27.496        .13315E-03   -1.5557    
   7  Prefactor      .0000        3.3774        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .48927        12.337        .85019E-03   -1.5694    
   9  Prefactor     3.4293        4.2769        .54679E-03   -1.5671    
  10  Prefactor     17.499        13.193        .23899E-03   -1.5624    
  11  Prefactor     28.280        36.749        .18561E-03   -1.5602    
  12  norm          .61024E-01    .22333        .20744E-02   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.4652        4.7110        .42753E-03   -1.5661    
  14  Normalizat    .68819        .15564        .85978E-01   -1.0436    
  15  Prefactor     1.3417        .10110        .31918E-01   -.82075    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.16745e-06
Minuit parameter uncertainties:
  1  2.32175
  2  3.13058e-05
  3  6.88229
  4  3.0922
  5  4.5598
  6  27.4958
  7  7.00426e-06
  8  4.91368
  9  4.27687
  10  13.1926
  11  36.7498
  12  0.223327
  13  4.71098
  14  0.155736
  15  0.101116
Done.

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

Extracting fit parameters...

4FGL J0028.4+2001
   Spectrum: PowerLaw
112    Prefactor:  4.943e+00  3.092e+00  0.000e+00  1.000e+06 ( 1.000e-12)
113        Index:  2.414e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
114        Scale:  7.971e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
490    Prefactor:  1.342e+00  1.011e-01  0.000e+00  1.000e+01 ( 1.000e+00)
491        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
492        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
489   Normalization:  6.882e-01  1.557e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.37
Ra Dec: 7.122 20.031
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 5.25e-08 +/- 3.28e-08
Energy Flux (Fixed Index): 1.69e-05 +/- 1.06e-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) = 15029.8891599
delta logL = 0.0161525000185

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15029.8864468
delta logL = 0.0188655574239

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   15029.89     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      208 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.1350        60.092        .44353E-03    .60117E-02
   2  Index         2.2905        6.1436        .24354        .17433E-03
   3  Normalizat    .69542        .79303E-01    .85570E-01    .66310E-04
   4  Prefactor     1.3387        .35103E-01    .31969E-01   -.48480E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.13501
  Index      = 2.29049
  Normalizat = 0.695423
  Prefactor  = 1.33868
 **********
 **   18 **HESSE 
 **********

 FCN=   15029.89     FROM HESSE     STATUS=OK            31 CALLS      239 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.1350        3.2475        .16279E-04   -1.5663    
   2  Index         2.2905        .63834        .10786E-01   -.57270    
   3  Normalizat    .69542        .16734        .37901E-03   -1.0407    
   4  Prefactor     1.3387        .11267        .19269E-03   -.82164    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.65113e-10
Minuit parameter uncertainties:
  1  3.24749
  2  0.640825
  3  0.167462
  4  0.112689
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) = 15029.8864438
delta logL = 0.0188685260036

Extracting fit parameters...

4FGL J0028.4+2001
   Spectrum: PowerLaw
112    Prefactor:  5.135e+00  3.247e+00  0.000e+00  1.000e+06 ( 1.000e-12)
113        Index:  2.290e+00  6.408e-01  0.000e+00  1.000e+01 (-1.000e+00)
114        Scale:  7.971e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
490    Prefactor:  1.339e+00  1.127e-01  0.000e+00  1.000e+01 ( 1.000e+00)
491        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
492        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
489   Normalization:  6.954e-01  1.675e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.42
Ra Dec: 7.122 20.031
Photon Index (Free Index): 2.29 +/- 0.64
Photon Flux (Free Index): 4.62e-08 +/- 4.19e-08
Energy Flux (Free Index): 1.78e-05 +/- 1.25e-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/44246029/cmap_HighResolution_734313601_734918401_4FGL_J0028.4+2001_weekly_bin819.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.25e-08', energy_flux2='1.78e-05', photon_flux_error='3.28e-08', dlogl='1.89e-02', energy_flux='1.69e-05', photon_flux2='4.62e-08', job_status='DONE', time_completed='2024-04-19 12:01:03.753352', photon_index_error2='0.64', photon_index2='2.29', ts='5.37', fit_tolerance='1e-08', GAL='1.34', photon_index_error='0.00', energy_flux_error2='1.25e-05', EG='0.69', time_epoch_completed='1713553263.75', return_code='0', job_id='44246029', GAL2='1.34', EG2='0.70', return_code2='0', energy_flux_error='1.06e-05', photon_flux_error2='4.19e-08', ts2='5.42', photon_index='2.41' WHERE bin_id='819' AND source_name='4FGL J0028.4+2001' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Fri Apr 19 12:01:03 PDT 2024

