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


Performing analysis on: 4FGL_J2053.8+2922_weekly_bin853
RA = 313.454, Dec = 29.3693
tmin = 754876801, tmax = 755481601
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='59979092', job_status='RUN', time_executed='2024-12-10 01:16:21.717639', time_epoch_executed='1733822181.72' WHERE source_name='4FGL J2053.8+2922' and cadence='weekly' and bin_id='853'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/59979092

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/59979092/ft1_4FGL_J2053.8+2922_weekly_bin853.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/59979092/ft2_4FGL_J2053.8+2922_weekly_bin853.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/59979092/ft1_4FGL_J2053.8+2922_weekly_bin853.fits outfile=/lscratch/kocevski/59979092/ft1_filteredMKT_4FGL_J2053.8+2922_weekly_bin853.fits ra=313.454 dec=29.3693 rad=12.0 tmin=754876801.0 tmax=755481601.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.91
user 3.29
sys 0.31

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/59979092/ft2_4FGL_J2053.8+2922_weekly_bin853.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/59979092/ft2_4FGL_J2053.8+2922_weekly_bin853.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/59979092/ft1_filteredMKT_4FGL_J2053.8+2922_weekly_bin853.fits evtable="EVENTS" outfile="/lscratch/kocevski/59979092/ft1_filtered_4FGL_J2053.8+2922_weekly_bin853.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.91
user 0.21
sys 0.15

Number of photons that the gtmktime cut: 12779

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/59979092/ft1_filtered_4FGL_J2053.8+2922_weekly_bin853.fits" evtable="EVENTS" scfile=/lscratch/kocevski/59979092/ft2_4FGL_J2053.8+2922_weekly_bin853.fits sctable="SC_DATA" outfile=/lscratch/kocevski/59979092/ltcube_754876801_755481601_4FGL_J2053.8+2922_weekly_bin853.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/59979092/ft2_4FGL_J2053.8+2922_weekly_bin853.fits
.....................!
real 26.07
user 25.29
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/59979092/ft1_filtered_4FGL_J2053.8+2922_weekly_bin853.fits evtable="EVENTS" scfile=/lscratch/kocevski/59979092/ft2_4FGL_J2053.8+2922_weekly_bin853.fits sctable="SC_DATA" expcube=/lscratch/kocevski/59979092/ltcube_754876801_755481601_4FGL_J2053.8+2922_weekly_bin853.fits outfile=/lscratch/kocevski/59979092/expmap_754876801_755481601_4FGL_J2053.8+2922_weekly_bin853.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/59979092/ltcube_754876801_755481601_4FGL_J2053.8+2922_weekly_bin853.fits
.....................!
real 69.29
user 64.82
sys 3.97

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 Cygnus Loop in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/CygnusLoop.fits is the correct path to the extended template.
Extended source gamma Cygni in ROI with RadialDisk spatial model.
Extended source Cygnus Cocoon in ROI with RadialGaussian spatial model.
Extended source HB 21 in ROI with RadialDisk spatial model.
Added 209 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 J2053.8+2922 @ 313.454 29.3693

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/59979092/ft1_filtered_4FGL_J2053.8+2922_weekly_bin853.fits scfile=/lscratch/kocevski/59979092/ft2_4FGL_J2053.8+2922_weekly_bin853.fits outfile=/lscratch/kocevski/59979092/cmap_754876801_755481601_4FGL_J2053.8+2922_weekly_bin853.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=313.454 yref=29.3693 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.44
user 0.25
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/59979092/ft1_filtered_4FGL_J2053.8+2922_weekly_bin853.fits scfile=/lscratch/kocevski/59979092/ft2_4FGL_J2053.8+2922_weekly_bin853.fits outfile=/lscratch/kocevski/59979092/cmap_HighResolution_754876801_755481601_4FGL_J2053.8+2922_weekly_bin853.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=313.454 yref=29.3693 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.46
user 0.26
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/59979092/ft1_filtered_4FGL_J2053.8+2922_weekly_bin853.fits evtable="EVENTS" scfile=/lscratch/kocevski/59979092/ft2_4FGL_J2053.8+2922_weekly_bin853.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/59979092/Model_4FGL_J2053.8+2922_weekly_bin853.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 Cygnus Cocoon
adding source Cygnus Loop
adding source EG_v02
adding source GAL_V02
adding source HB 21
adding source gamma Cygni
Working on...
/lscratch/kocevski/59979092/ft1_filtered_4FGL_J2053.8+2922_weekly_bin853.fits.....................!
real 876.28
user 869.50
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/59979092/ft1_filtered_4FGL_J2053.8+2922_weekly_bin853.fits', '/lscratch/kocevski/59979092/ft2_4FGL_J2053.8+2922_weekly_bin853.fits', expMap='/lscratch/kocevski/59979092/expmap_754876801_755481601_4FGL_J2053.8+2922_weekly_bin853.fits', expCube='/lscratch/kocevski/59979092/ltcube_754876801_755481601_4FGL_J2053.8+2922_weekly_bin853.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/59979092/Model_4FGL_J2053.8+2922_weekly_bin853.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2053.8+2922'

4FGL J2053.8+2922
   Spectrum: LogParabola
453         norm:  5.603e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
454        alpha:  1.451e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
455         beta:  2.140e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
456           Eb:  4.763e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/59979092/ft1_filtered_4FGL_J2053.8+2922_weekly_bin853.fits
Spacecraft file(s): /lscratch/kocevski/59979092/ft2_4FGL_J2053.8+2922_weekly_bin853.fits
Exposure map: /lscratch/kocevski/59979092/expmap_754876801_755481601_4FGL_J2053.8+2922_weekly_bin853.fits
Exposure cube: /lscratch/kocevski/59979092/ltcube_754876801_755481601_4FGL_J2053.8+2922_weekly_bin853.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/59979092/Model_4FGL_J2053.8+2922_weekly_bin853.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) = 114942.84804

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19079E-03   1.0000          .0000       .10000E+07
     2 'norm      '    3.7458       1.0000          .0000       .10000E+07
     3 'norm      '    .41633E-08   1.0000          .0000       .10000E+07
     4 'Prefactor '    .30599       1.0000         .10000E-03   10000.    
     5 'norm      '    13.680       1.0000          .0000       .10000E+07
     6 'Prefactor '    .42948E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    17.532       1.0000          .0000       .10000E+07
     8 'Prefactor '    4.4789       1.0000          .0000       .10000E+07
     9 'Prefactor '    .16798E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    .10765E-04   1.0000          .0000       .10000E+07
    11 'norm      '    1.7360       1.0000          .0000       .10000E+07
    12 'norm      '    .17375E-07   1.0000          .0000       .10000E+07
    13 'norm      '    .32805E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    .14500E-06   1.0000          .0000       .10000E+07
    15 'Normalizat'    .89854       1.0000         .10000E-01   10.000    
    16 'Prefactor '    1.0582       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7660E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   114942.8     FROM MIGRAD    STATUS=CONVERGED    121 CALLS     1142 TOTAL
                     EDM=   .96E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .33307E-09    14.634       -.70008E-05** at limit **
   2  norm          3.7402        2.2219       -.30329E-06    .60279E-03
   3  norm           .0000        .31698       -.80919E-06** at limit **
   4  Prefactor     .30511        1.5718        .14954E-04   -.46328E-03
   5  norm          13.687        1.4623       -.45879E-06   -.43594E-02
   6  Prefactor      .0000        2.2519       -.15092E-05** at limit **
   7  Prefactor     19.616        34.811        .19758E-05    .11169E-02
   8  Prefactor     4.5258        13.128       -.97074E-05    .18821E-02
   9  Prefactor      .0000        23.414       -.17810E-05** at limit **
  10  Prefactor      .0000        4.1786        .78198E-06** at limit **
  11  norm          1.7360        1.8546       -.61224E-06   -.11268E-01
  12  norm          .11102E-09    .28213       -.15404E-06** at limit **
  13  norm          .11102E-09    2.2119       -.18392E-05** at limit **
  14  Prefactor      .0000        .75827       -.73686E-06** at limit **
  15  Normalizat    .89662        .11282        .26789E-04    .42213E-03
  16  Prefactor     1.0583        .15564E-01   -.16874E-05   -.18172E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.33067e-10
  norm       = 3.74023
  norm       = 0
  Prefactor  = 0.305109
  norm       = 13.6872
  Prefactor  = 0
  Prefactor  = 19.6156
  Prefactor  = 4.52584
  Prefactor  = 0
  Prefactor  = 0
  norm       = 1.73597
  norm       = 1.11022e-10
  norm       = 1.11022e-10
  Prefactor  = 0
  Normalizat = 0.896618
  Prefactor  = 1.05825
 **********
 **   18 **HESSE 
 **********

 FCN=   114942.8     FROM HESSE     STATUS=OK           237 CALLS     1379 TOTAL
                     EDM=   .43E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .33307E-09    14.538        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.7402        2.2213        .52144E-03   -1.5669    
   3  norm           .0000        .31574        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .30511        .60342        .10451       -1.5598    
   5  norm          13.687        12.462        .27055E-03   -1.5634    
   6  Prefactor      .0000        2.2502        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     19.616        34.500        .23893E-03   -1.5619    
   8  Prefactor     4.5258        13.247        .47553E-03   -1.5665    
   9  Prefactor      .0000        23.187        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        4.0037        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.7360        1.8738        .79617E-03   -1.5682    
  12  norm          .11102E-09    .27507        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .11102E-09    2.2057        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor      .0000        .76000        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Normalizat    .89662        .11581        .21153       -.96579    
  16  Prefactor     1.0583        .15642E-01    .28286E-01   -.90812    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.26052e-06
Minuit parameter uncertainties:
  1  0.000141977
  2  2.22133
  3  1.46404e-06
  4  0.603435
  5  12.4621
  6  4.18873e-06
  7  34.5
  8  13.2467
  9  1.67164e-05
  10  1.92674e-05
  11  1.87378
  12  1.23327e-05
  13  3.05187e-05
  14  3.17213e-06
  15  0.115841
  16  0.0156424
Done.

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

Extracting fit parameters...

4FGL J2053.8+2922
   Spectrum: LogParabola
453         norm:  1.369e+01  1.246e+01  0.000e+00  1.000e+06 ( 1.000e-14)
454        alpha:  1.451e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
455         beta:  2.140e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
456           Eb:  4.763e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
755    Prefactor:  1.058e+00  1.564e-02  0.000e+00  1.000e+01 ( 1.000e+00)
756        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
757        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
754   Normalization:  8.966e-01  1.158e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.83
Ra Dec: 313.454 29.369
Photon Index (Fixed Index): 1.45 +/- 0.00
Photon Flux (Fixed Index): 3.05e-09 +/- 2.78e-09
Energy Flux (Fixed Index): 1.48e-05 +/- 1.35e-05

TS (Fixed Index): 3.83
Ra Dec: 313.454 29.369
Photon Flux Upper Limit: 1.06872259211e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.18376670929e-05 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/59979092/likelihoodResults_754876801_755481601_4FGL_J2053.8+2922_weekly_bin853.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) = 114940.285603
delta logL = 2.53575243517

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 114940.281153
delta logL = 2.54020320762

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   114940.3     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      345 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.0343        28.561        .35437E-03    .29612E-02
   2  alpha         2.8361        .80544        .41642        .52501E-03
   3  Normalizat    .88021        .34154E-01    .21308        .58149E-03
   4  Prefactor     1.0580        .43504E-02    .28283E-01   -.18593E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.03432
  alpha      = 2.83608
  Normalizat = 0.880213
  Prefactor  = 1.05796
 **********
 **   18 **HESSE 
 **********

 FCN=   114940.3     FROM HESSE     STATUS=OK            33 CALLS      378 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.0343        11.475        .14175E-04   -1.5651    
   2  alpha         2.8361        .70606        .14326E-01    .13484    
   3  Normalizat    .88021        .10700        .95175E-03   -.97159    
   4  Prefactor     1.0580        .15271E-01    .12499E-03   -.90822    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.86381e-10
Minuit parameter uncertainties:
  1  11.4746
  2  0.715982
  3  0.107025
  4  0.0152711
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) = 114940.281121
delta logL = 2.54023437365

Extracting fit parameters...

4FGL J2053.8+2922
   Spectrum: LogParabola
453         norm:  8.034e+00  1.147e+01  0.000e+00  1.000e+06 ( 1.000e-14)
454        alpha:  2.836e+00  7.160e-01  0.000e+00  5.000e+00 ( 1.000e+00)
455         beta:  2.140e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
456           Eb:  4.763e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
755    Prefactor:  1.058e+00  1.527e-02  0.000e+00  1.000e+01 ( 1.000e+00)
756        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
757        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
754   Normalization:  8.802e-01  1.070e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.95
Ra Dec: 313.454 29.369
Photon Index (Free Index): 2.84 +/- 0.72
Photon Flux (Free Index): 2.94e-08 +/- 2.34e-08
Energy Flux (Free Index): 1.41e-05 +/- 7.04e-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/59979092/cmap_HighResolution_754876801_755481601_4FGL_J2053.8+2922_weekly_bin853.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.18e-05', comment='SUCCESS', photon_flux='3.05e-09', energy_flux2='1.41e-05', photon_flux_error='2.78e-09', dlogl='2.54e+00', energy_flux='1.48e-05', photon_flux2='2.94e-08', job_status='DONE', time_completed='2024-12-10 02:05:18.063065', photon_index_error2='0.72', photon_index2='2.84', ts='3.83', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', photon_flux_upper_limit='1.07e-08', energy_flux_error2='7.04e-06', EG='0.90', time_epoch_completed='1733825118.06', return_code='0', job_id='59979092', GAL2='1.06', EG2='0.88', return_code2='0', energy_flux_error='1.35e-05', photon_flux_error2='2.34e-08', ts2='8.95', photon_index='1.45' WHERE bin_id='853' AND source_name='4FGL J2053.8+2922' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 10 02:05:18 PST 2024

