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


Performing analysis on: 4FGL_J0022.5+0608_weekly_bin833
RA = 5.6376, Dec = 6.1343
tmin = 742780801, tmax = 743385601
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='52429909', job_status='RUN', time_executed='2024-07-23 00:00:48.522120', time_epoch_executed='1721718048.52' WHERE source_name='4FGL J0022.5+0608' and cadence='weekly' and bin_id='833'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/52429909

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/52429909/ft1_4FGL_J0022.5+0608_weekly_bin833.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/52429909/ft2_4FGL_J0022.5+0608_weekly_bin833.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/52429909/ft1_4FGL_J0022.5+0608_weekly_bin833.fits outfile=/lscratch/kocevski/52429909/ft1_filteredMKT_4FGL_J0022.5+0608_weekly_bin833.fits ra=5.6376 dec=6.1343 rad=12.0 tmin=742780801.0 tmax=743385601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.47
user 3.92
sys 0.24

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/52429909/ft2_4FGL_J0022.5+0608_weekly_bin833.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/52429909/ft2_4FGL_J0022.5+0608_weekly_bin833.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/52429909/ft1_filteredMKT_4FGL_J0022.5+0608_weekly_bin833.fits evtable="EVENTS" outfile="/lscratch/kocevski/52429909/ft1_filtered_4FGL_J0022.5+0608_weekly_bin833.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.61
user 0.20
sys 0.14

Number of photons that the gtmktime cut: 1435

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/52429909/ft1_filtered_4FGL_J0022.5+0608_weekly_bin833.fits" evtable="EVENTS" scfile=/lscratch/kocevski/52429909/ft2_4FGL_J0022.5+0608_weekly_bin833.fits sctable="SC_DATA" outfile=/lscratch/kocevski/52429909/ltcube_742780801_743385601_4FGL_J0022.5+0608_weekly_bin833.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/52429909/ft2_4FGL_J0022.5+0608_weekly_bin833.fits
.....................!
real 19.76
user 19.04
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/52429909/ft1_filtered_4FGL_J0022.5+0608_weekly_bin833.fits evtable="EVENTS" scfile=/lscratch/kocevski/52429909/ft2_4FGL_J0022.5+0608_weekly_bin833.fits sctable="SC_DATA" expcube=/lscratch/kocevski/52429909/ltcube_742780801_743385601_4FGL_J0022.5+0608_weekly_bin833.fits outfile=/lscratch/kocevski/52429909/expmap_742780801_743385601_4FGL_J0022.5+0608_weekly_bin833.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/52429909/ltcube_742780801_743385601_4FGL_J0022.5+0608_weekly_bin833.fits
.....................!
real 69.43
user 65.06
sys 3.73

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

Setting source of interest to:
4FGL J0022.5+0608 @ 5.6376 6.1343

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/52429909/ft1_filtered_4FGL_J0022.5+0608_weekly_bin833.fits scfile=/lscratch/kocevski/52429909/ft2_4FGL_J0022.5+0608_weekly_bin833.fits outfile=/lscratch/kocevski/52429909/cmap_742780801_743385601_4FGL_J0022.5+0608_weekly_bin833.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=5.6376 yref=6.1343 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.23
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/52429909/ft1_filtered_4FGL_J0022.5+0608_weekly_bin833.fits scfile=/lscratch/kocevski/52429909/ft2_4FGL_J0022.5+0608_weekly_bin833.fits outfile=/lscratch/kocevski/52429909/cmap_HighResolution_742780801_743385601_4FGL_J0022.5+0608_weekly_bin833.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=5.6376 yref=6.1343 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.43
user 0.23
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/52429909/ft1_filtered_4FGL_J0022.5+0608_weekly_bin833.fits evtable="EVENTS" scfile=/lscratch/kocevski/52429909/ft2_4FGL_J0022.5+0608_weekly_bin833.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/52429909/Model_4FGL_J0022.5+0608_weekly_bin833.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/52429909/ft1_filtered_4FGL_J0022.5+0608_weekly_bin833.fits.....................!
real 61.12
user 59.42
sys 1.11

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/52429909/ft1_filtered_4FGL_J0022.5+0608_weekly_bin833.fits', '/lscratch/kocevski/52429909/ft2_4FGL_J0022.5+0608_weekly_bin833.fits', expMap='/lscratch/kocevski/52429909/expmap_742780801_743385601_4FGL_J0022.5+0608_weekly_bin833.fits', expCube='/lscratch/kocevski/52429909/ltcube_742780801_743385601_4FGL_J0022.5+0608_weekly_bin833.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/52429909/Model_4FGL_J0022.5+0608_weekly_bin833.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0022.5+0608'

4FGL J0022.5+0608
   Spectrum: LogParabola
103         norm:  3.416e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
104        alpha:  2.071e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
105         beta:  5.138e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
106           Eb:  8.504e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/52429909/ft1_filtered_4FGL_J0022.5+0608_weekly_bin833.fits
Spacecraft file(s): /lscratch/kocevski/52429909/ft2_4FGL_J0022.5+0608_weekly_bin833.fits
Exposure map: /lscratch/kocevski/52429909/expmap_742780801_743385601_4FGL_J0022.5+0608_weekly_bin833.fits
Exposure cube: /lscratch/kocevski/52429909/ltcube_742780801_743385601_4FGL_J0022.5+0608_weekly_bin833.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/52429909/Model_4FGL_J0022.5+0608_weekly_bin833.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) = 16167.587539

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.8615       1.0000          .0000       .10000E+07
     2 'Prefactor '    .34386       1.0000          .0000       .10000E+07
     3 'norm      '    .12935E-03   1.0000          .0000       .10000E+07
     4 'norm      '    .21660E-06   1.0000          .0000       .10000E+07
     5 'norm      '    .63927E-01   1.0000          .0000       .10000E+07
     6 'Prefactor '    .21977E-05   1.0000          .0000       .10000E+07
     7 'norm      '    12.846       1.0000          .0000       .10000E+07
     8 'norm      '    .57339E-05   1.0000          .0000       .10000E+07
     9 'Prefactor '    1.9959       1.0000          .0000       .10000E+07
    10 'Prefactor '    .18052E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    .22777       1.0000          .0000       .10000E+07
    12 'norm      '    .10847E-06   1.0000          .0000       .10000E+07
    13 'Prefactor '    .35920E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    24.076       1.0000          .0000       .10000E+07
    15 'Prefactor '    16.094       1.0000          .0000       .10000E+07
    16 'Normalizat'    .76803       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0570       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5250E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   16167.51     FROM MIGRAD    STATUS=CONVERGED    158 CALLS     1088 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.7885        7.6808       -.62178E-09    .31907E-02
   2  Prefactor     .34466        2.1953        .29639E-07   -.83225E-03
   3  norm          .13253E-01    12.389       -.12583E-07** at limit **
   4  norm          .25535E-08    1.4920       -.61379E-07** at limit **
   5  norm          .54906E-01    25.324       -.46302E-06** at limit **
   6  Prefactor     .34417E-07    5.2776        .33454E-07** at limit **
   7  norm          12.876        5.0349        .76483E-07    .40764E-02
   8  norm          .24675E-06    6.7921        .98806E-09** at limit **
   9  Prefactor     2.0649        11.487       -.13450E-06    .13982E-01
  10  Prefactor     .55511E-09    1.8862        .10145E-06** at limit **
  11  Prefactor     .22801        .89952        .65710E-07** at limit **
  12  norm          .25535E-08    1.9886        .58046E-07** at limit **
  13  Prefactor     .55900E-07    11.912       -.25548E-06** at limit **
  14  Prefactor     23.881        1.4463       -.38601E-08   -.11588E-01
  15  Prefactor     16.298        3.1784        .42878E-08   -.15122E-01
  16  Normalizat    .76787        .12634       -.25238E-05    .11677E-05
  17  Prefactor     1.0569        .93223E-01    .22552E-05    .68347E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.78848
  Prefactor  = 0.344664
  norm       = 0.0132528
  norm       = 2.55351e-09
  norm       = 0.054906
  Prefactor  = 3.44169e-08
  norm       = 12.876
  norm       = 2.46747e-07
  Prefactor  = 2.0649
  Prefactor  = 5.55112e-10
  Prefactor  = 0.228006
  norm       = 2.55351e-09
  Prefactor  = 5.58997e-08
  Prefactor  = 23.8806
  Prefactor  = 16.298
  Normalizat = 0.767865
  Prefactor  = 1.05693
 **********
 **   18 **HESSE 
 **********

 FCN=   16167.51     FROM HESSE     STATUS=OK           273 CALLS     1361 TOTAL
                     EDM=   .81E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.7885        7.7644        .35738E-03   -1.5652    
   2  Prefactor     .34466        2.2275        .96303E-03   -1.5696    
   3  norm          .13253E-01    .41183        .42118E-02   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .25535E-08    1.5411        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .54906E-01    .71964        .82509E-02   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .34417E-07    5.9374        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          12.876        5.0633        .27922E-03   -1.5636    
   8  norm          .24675E-06    11.445        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.0649        14.440        .73292E-03   -1.5679    
  10  Prefactor     .55511E-09    1.9001        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .22801        .67820        .31694E-02   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .25535E-08    2.0339        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .55900E-07    13.017        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     23.881        17.129        .20385E-03   -1.5610    
  15  Prefactor     16.298        11.471        .24939E-03   -1.5627    
  16  Normalizat    .76787        .11228        .66075E-01   -1.0127    
  17  Prefactor     1.0569        .81248E-01    .39519E-01   -.90855    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.14508e-08
Minuit parameter uncertainties:
  1  7.76443
  2  1.7524
  3  0.147755
  4  0.000125215
  5  0.397555
  6  0.00090398
  7  5.06327
  8  0.00336111
  9  10.921
  10  6.44058e-05
  11  0.678203
  12  0.000144811
  13  0.00170569
  14  17.1293
  15  11.4709
  16  0.112318
  17  0.0812578
Done.

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

Extracting fit parameters...

4FGL J0022.5+0608
   Spectrum: LogParabola
103         norm:  5.491e-02  3.976e-01  0.000e+00  1.000e+06 ( 1.000e-12)
104        alpha:  2.071e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
105         beta:  5.138e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
106           Eb:  8.504e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
522    Prefactor:  1.057e+00  8.126e-02  0.000e+00  1.000e+01 ( 1.000e+00)
523        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
524        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
521   Normalization:  7.679e-01  1.123e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 5.638 6.134
Photon Flux Upper Limit: 4.10386874575e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.17146960347e-05 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/52429909/likelihoodResults_742780801_743385601_4FGL_J0022.5+0608_weekly_bin833.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): 102
logL (Free Index) = 16167.4747492
delta logL = 0.0386991727355

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 16167.4159154
delta logL = 0.0975330167203

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   16167.42     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      237 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .42966        25.403        .86102E-03    .41549E-01
   2  alpha         3.0221        3.7293        .42351        .12367E-03
   3  Normalizat    .75724        .20235E-01    .66494E-01    .65897E-04
   4  Prefactor     1.0597        .15395E-01    .39375E-01    .72101E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.429656
  alpha      = 3.02209
  Normalizat = 0.757238
  Prefactor  = 1.05966
 **********
 **   18 **HESSE 
 **********

 FCN=   16167.42     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      270 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .42966        115.51        .18204E-04   -1.5695    
   2  alpha         3.0221        3.6527        .44531E-01    .21038    
   3  Normalizat    .75724        .13004        .29420E-03   -1.0168    
   4  Prefactor     1.0597        .10794        .19073E-03   -.90766    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.22878e-07
Minuit parameter uncertainties:
  1  14.0897
  2  17.8179
  3  0.13009
  4  0.107963
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 16167.4159149
delta logL = 0.0975334823925

Extracting fit parameters...

4FGL J0022.5+0608
   Spectrum: LogParabola
103         norm:  4.297e-01  1.409e+01  0.000e+00  1.000e+06 ( 1.000e-12)
104        alpha:  3.022e+00  1.782e+01  0.000e+00  5.000e+00 ( 1.000e+00)
105         beta:  5.138e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
106           Eb:  8.504e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
522    Prefactor:  1.060e+00  1.080e-01  0.000e+00  1.000e+01 ( 1.000e+00)
523        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
524        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
521   Normalization:  7.572e-01  1.301e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 5.638 6.134

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/52429909/cmap_HighResolution_742780801_743385601_4FGL_J0022.5+0608_weekly_bin833.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.17e-05', job_status='DONE', photon_flux_upper_limit='4.10e-08', time_completed='2024-07-23 00:11:01.821122', job_id='52429909', GAL2='1.06', fit_tolerance='1e-08', EG2='0.76', EG='0.77', time_epoch_completed='1721718661.82', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='9.75e-02', ts2='0.21', photon_index_error='0.00', photon_index='2.07' WHERE bin_id='833' AND source_name='4FGL J0022.5+0608' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 23 00:11:01 PDT 2024

