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


Performing analysis on: 4FGL_J0348.8+4610_weekly_bin786
RA = 57.2185, Dec = 46.1695
tmin = 714355201, tmax = 714960001
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='28613079', job_status='RUN', time_executed='2023-09-19 21:45:55.933433', time_epoch_executed='1695185155.93' WHERE source_name='4FGL J0348.8+4610' and cadence='weekly' and bin_id='786'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/28613079

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/28613079/ft1_4FGL_J0348.8+4610_weekly_bin786.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/28613079/ft2_4FGL_J0348.8+4610_weekly_bin786.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/28613079/ft1_4FGL_J0348.8+4610_weekly_bin786.fits outfile=/lscratch/kocevski/28613079/ft1_filteredMKT_4FGL_J0348.8+4610_weekly_bin786.fits ra=57.2185 dec=46.1695 rad=12.0 tmin=714355201.0 tmax=714960001.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 5.72
user 5.33
sys 0.25

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/28613079/ft2_4FGL_J0348.8+4610_weekly_bin786.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/28613079/ft2_4FGL_J0348.8+4610_weekly_bin786.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/28613079/ft1_filteredMKT_4FGL_J0348.8+4610_weekly_bin786.fits evtable="EVENTS" outfile="/lscratch/kocevski/28613079/ft1_filtered_4FGL_J0348.8+4610_weekly_bin786.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.21
sys 0.14

Number of photons that the gtmktime cut: 7684

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/28613079/ft1_filtered_4FGL_J0348.8+4610_weekly_bin786.fits" evtable="EVENTS" scfile=/lscratch/kocevski/28613079/ft2_4FGL_J0348.8+4610_weekly_bin786.fits sctable="SC_DATA" outfile=/lscratch/kocevski/28613079/ltcube_714355201_714960001_4FGL_J0348.8+4610_weekly_bin786.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/28613079/ft2_4FGL_J0348.8+4610_weekly_bin786.fits
.....................!
real 18.63
user 18.15
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/28613079/ft1_filtered_4FGL_J0348.8+4610_weekly_bin786.fits evtable="EVENTS" scfile=/lscratch/kocevski/28613079/ft2_4FGL_J0348.8+4610_weekly_bin786.fits sctable="SC_DATA" expcube=/lscratch/kocevski/28613079/ltcube_714355201_714960001_4FGL_J0348.8+4610_weekly_bin786.fits outfile=/lscratch/kocevski/28613079/expmap_714355201_714960001_4FGL_J0348.8+4610_weekly_bin786.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/28613079/ltcube_714355201_714960001_4FGL_J0348.8+4610_weekly_bin786.fits
.....................!
real 68.71
user 64.31
sys 3.88

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
Extended source G150.3+4.5 in ROI with RadialDisk spatial model.
Extended source HB 9 in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/HB9.fits is the correct path to the extended template.
Extended source HB 3 in ROI with RadialDisk spatial model.
Extended source W 3 in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/W3.fits is the correct path to the extended template.
Added 169 point sources and 4 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0348.8+4610 @ 57.2185 46.1695

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/28613079/ft1_filtered_4FGL_J0348.8+4610_weekly_bin786.fits scfile=/lscratch/kocevski/28613079/ft2_4FGL_J0348.8+4610_weekly_bin786.fits outfile=/lscratch/kocevski/28613079/cmap_714355201_714960001_4FGL_J0348.8+4610_weekly_bin786.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=57.2185 yref=46.1695 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.26
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/28613079/ft1_filtered_4FGL_J0348.8+4610_weekly_bin786.fits scfile=/lscratch/kocevski/28613079/ft2_4FGL_J0348.8+4610_weekly_bin786.fits outfile=/lscratch/kocevski/28613079/cmap_HighResolution_714355201_714960001_4FGL_J0348.8+4610_weekly_bin786.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=57.2185 yref=46.1695 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.25
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/28613079/ft1_filtered_4FGL_J0348.8+4610_weekly_bin786.fits evtable="EVENTS" scfile=/lscratch/kocevski/28613079/ft2_4FGL_J0348.8+4610_weekly_bin786.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/28613079/Model_4FGL_J0348.8+4610_weekly_bin786.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 G150.3+4.5
adding source GAL_V02
adding source HB 3
adding source HB 9
adding source W 3
Working on...
/lscratch/kocevski/28613079/ft1_filtered_4FGL_J0348.8+4610_weekly_bin786.fits.....................!
real 465.33
user 461.69
sys 0.91

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/28613079/ft1_filtered_4FGL_J0348.8+4610_weekly_bin786.fits', '/lscratch/kocevski/28613079/ft2_4FGL_J0348.8+4610_weekly_bin786.fits', expMap='/lscratch/kocevski/28613079/expmap_714355201_714960001_4FGL_J0348.8+4610_weekly_bin786.fits', expCube='/lscratch/kocevski/28613079/ltcube_714355201_714960001_4FGL_J0348.8+4610_weekly_bin786.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/28613079/Model_4FGL_J0348.8+4610_weekly_bin786.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0348.8+4610'

4FGL J0348.8+4610
   Spectrum: LogParabola
299         norm:  8.952e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
300        alpha:  2.791e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
301         beta:  7.194e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
302           Eb:  9.019e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/28613079/ft1_filtered_4FGL_J0348.8+4610_weekly_bin786.fits
Spacecraft file(s): /lscratch/kocevski/28613079/ft2_4FGL_J0348.8+4610_weekly_bin786.fits
Exposure map: /lscratch/kocevski/28613079/expmap_714355201_714960001_4FGL_J0348.8+4610_weekly_bin786.fits
Exposure cube: /lscratch/kocevski/28613079/ltcube_714355201_714960001_4FGL_J0348.8+4610_weekly_bin786.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/28613079/Model_4FGL_J0348.8+4610_weekly_bin786.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) = 72515.2845374

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .76050E-08   1.0000          .0000       .10000E+07
     2 'norm      '    4.5132       1.0000          .0000       .10000E+07
     3 'Prefactor '    .45558E-03   1.0000          .0000       .10000E+07
     4 'norm      '    2.7500       1.0000          .0000       .10000E+07
     5 'Prefactor '    3.1519       1.0000          .0000       .10000E+07
     6 'Prefactor '    .17092E-06   1.0000          .0000       .10000E+07
     7 'norm      '    30.401       1.0000          .0000       .10000E+07
     8 'Prefactor '    .81633E-01   1.0000          .0000       .10000E+07
     9 'Prefactor '    .24919E-06   1.0000          .0000       .10000E+07
    10 'norm      '    9.9537       1.0000          .0000       .10000E+07
    11 'Prefactor '    .15693E-02   1.0000          .0000       .10000E+07
    12 'norm      '    5.0282       1.0000          .0000       .10000E+07
    13 'Normalizat'    1.4651       1.0000         .10000E-01   10.000    
    14 'Prefactor '    .97382       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   72515.18     FROM MIGRAD    STATUS=CONVERGED    120 CALLS      963 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        2.3481       -.29374E-07** at limit **
   2  norm          4.5116        2.1928       -.11951E-06   -.20057E-04
   3  Prefactor     .11102E-09    17.938        .11600E-05** at limit **
   4  norm          2.7500        .40144        .44526E-07    .78842E-02
   5  Prefactor     1.4608        200.13       -.11119E-04    .18582E-02
   6  Prefactor      .0000        5.8208        .60247E-06** at limit **
   7  norm          32.471        30.334       -.12224E-05    .16925E-03
   8  Prefactor     .55511E-10    29.486        .22449E-05** at limit **
   9  Prefactor      .0000        1.0589       -.20954E-06** at limit **
  10  norm          9.9636        5.1025       -.26749E-06    .52989E-03
  11  Prefactor     .22204E-09    15.494       -.74921E-06** at limit **
  12  norm          5.0289        2.2292       -.32993E-06    .12793E-02
  13  Normalizat    1.4660        .16855        .79032E-05    .12850E-03
  14  Prefactor     .97372        .20333E-01   -.53584E-07    .33301E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 4.51159
  Prefactor  = 1.11022e-10
  norm       = 2.74996
  Prefactor  = 1.46081
  Prefactor  = 0
  norm       = 32.471
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  norm       = 9.9636
  Prefactor  = 2.22045e-10
  norm       = 5.02886
  Normalizat = 1.46601
  Prefactor  = 0.97372
 **********
 **   18 **HESSE 
 **********

 FCN=   72515.18     FROM HESSE     STATUS=OK           208 CALLS     1171 TOTAL
                     EDM=   .83E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        2.2405        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.5116        2.2028        .47367E-03   -1.5665    
   3  Prefactor     .11102E-09    17.861        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.7500        .40344        .61361E-03   -1.5675    
   5  Prefactor     1.4608        216.89        .57069E-03   -1.5684    
   6  Prefactor      .0000        5.8668        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          32.471        31.090        .18139E-03   -1.5594    
   8  Prefactor     .55511E-10    2.4141        .20896E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        1.0365        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          9.9636        5.1203        .31737E-03   -1.5645    
  11  Prefactor     .22204E-09    1.2169        .85833E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.0289        2.2464        .44820E-03   -1.5663    
  13  Normalizat    1.4660        .16555        .18235       -.78738    
  14  Prefactor     .97372        .19682E-01    .27051E-01   -.93611    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.32717e-08
Minuit parameter uncertainties:
  1  2.24184e-07
  2  2.20283
  3  9.40915e-05
  4  0.403444
  5  35.6007
  6  1.45236e-05
  7  31.0899
  8  1.87831e-05
  9  6.4754e-07
  10  5.12026
  11  3.48027e-05
  12  2.24636
  13  0.165612
  14  0.0196826
Done.

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

Extracting fit parameters...

4FGL J0348.8+4610
   Spectrum: LogParabola
299         norm:  3.247e+01  3.109e+01  0.000e+00  1.000e+06 ( 1.000e-13)
300        alpha:  2.791e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
301         beta:  7.194e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
302           Eb:  9.019e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
579    Prefactor:  9.737e-01  1.968e-02  0.000e+00  1.000e+01 ( 1.000e+00)
580        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
581        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
574   Normalization:  1.466e+00  1.656e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.45
Ra Dec: 57.218 46.169
Photon Index (Fixed Index): 2.79 +/- 0.00
Photon Flux (Fixed Index): 1.63e-08 +/- 1.56e-08
Energy Flux (Fixed Index): 6.69e-06 +/- 6.41e-06

TS (Fixed Index): 1.45
Ra Dec: 57.218 46.169
Photon Flux Upper Limit: 5.0110013024e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.05811478119e-05 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/28613079/likelihoodResults_714355201_714960001_4FGL_J0348.8+4610_weekly_bin786.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) = 72515.0239565
delta logL = 0.158574603556

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 72515.0103603
delta logL = 0.172170798411

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    38.230       1.0000          .0000       .10000E+07
     2 'alpha     '    2.0195       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4700       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97374       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5940E+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=   72515.01     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      260 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          38.248        61.137        .64700E-05    .37673E-03
   2  alpha         2.0214        1.7570        .50000       -.22419E-04
   3  Normalizat    1.4701        .16113        .81113E-03    .67186E-03
   4  Prefactor     .97376        .19983E-01    .11955E-03    .20297E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 38.2485
  alpha      = 2.02135
  Normalizat = 1.4701
  Prefactor  = 0.97376
 **********
 **   18 **HESSE 
 **********

 FCN=   72515.01     FROM HESSE     STATUS=OK            27 CALLS      287 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          38.248        35.521        .12940E-05   -1.5584    
   2  alpha         2.0214        1.2221        .12101       -.19265    
   3  Normalizat    1.4701        .15993        .32445E-04   -.78622    
   4  Prefactor     .97376        .19976E-01    .47820E-05   -.93609    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.17842e-10
Minuit parameter uncertainties:
  1  35.5212
  2  1.27929
  3  0.159986
  4  0.0199759
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) = 72515.0103574
delta logL = 0.172173725427

Extracting fit parameters...

4FGL J0348.8+4610
   Spectrum: LogParabola
299         norm:  3.825e+01  3.552e+01  0.000e+00  1.000e+06 ( 1.000e-13)
300        alpha:  2.021e+00  1.279e+00  0.000e+00  5.000e+00 ( 1.000e+00)
301         beta:  7.194e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
302           Eb:  9.019e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
579    Prefactor:  9.738e-01  1.998e-02  0.000e+00  1.000e+01 ( 1.000e+00)
580        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
581        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
574   Normalization:  1.470e+00  1.600e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.79
Ra Dec: 57.218 46.169
Photon Index (Free Index): 2.02 +/- 1.28
Photon Flux (Free Index): 9.97e-09 +/- 1.24e-08
Energy Flux (Free Index): 6.47e-06 +/- 6.01e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /lscratch/kocevski/28613079/cmap_HighResolution_714355201_714960001_4FGL_J0348.8+4610_weekly_bin786.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.06e-05', comment='SUCCESS', photon_flux='1.63e-08', energy_flux2='6.47e-06', photon_flux_error='1.56e-08', dlogl='1.72e-01', energy_flux='6.69e-06', photon_flux2='9.97e-09', job_status='DONE', time_completed='2023-09-19 22:10:06.175503', photon_index_error2='1.28', photon_index2='2.02', ts='1.45', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='5.01e-08', energy_flux_error2='6.01e-06', EG='1.47', time_epoch_completed='1695186606.18', return_code='0', job_id='28613079', GAL2='0.97', EG2='1.47', return_code2='0', energy_flux_error='6.41e-06', photon_flux_error2='1.24e-08', ts2='1.79', photon_index='2.79' WHERE bin_id='786' AND source_name='4FGL J0348.8+4610' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep 19 22:10:06 PDT 2023

