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


Performing analysis on: 4FGL_J0022.5+0608_weekly_bin821
RA = 5.6376, Dec = 6.1343
tmin = 735523201, tmax = 736128001
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='45339231', job_status='RUN', time_executed='2024-04-30 00:07:54.182586', time_epoch_executed='1714460874.18' WHERE source_name='4FGL J0022.5+0608' and cadence='weekly' and bin_id='821'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/45339231

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/45339231/ft1_4FGL_J0022.5+0608_weekly_bin821.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/45339231/ft2_4FGL_J0022.5+0608_weekly_bin821.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/45339231/ft1_4FGL_J0022.5+0608_weekly_bin821.fits outfile=/lscratch/kocevski/45339231/ft1_filteredMKT_4FGL_J0022.5+0608_weekly_bin821.fits ra=5.6376 dec=6.1343 rad=12.0 tmin=735523201.0 tmax=736128001.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.98
user 4.32
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/45339231/ft2_4FGL_J0022.5+0608_weekly_bin821.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/45339231/ft1_filteredMKT_4FGL_J0022.5+0608_weekly_bin821.fits evtable="EVENTS" outfile="/lscratch/kocevski/45339231/ft1_filtered_4FGL_J0022.5+0608_weekly_bin821.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.52
user 0.21
sys 0.12

Number of photons that the gtmktime cut: 1289

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/45339231/ft1_filtered_4FGL_J0022.5+0608_weekly_bin821.fits" evtable="EVENTS" scfile=/lscratch/kocevski/45339231/ft2_4FGL_J0022.5+0608_weekly_bin821.fits sctable="SC_DATA" outfile=/lscratch/kocevski/45339231/ltcube_735523201_736128001_4FGL_J0022.5+0608_weekly_bin821.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/45339231/ft2_4FGL_J0022.5+0608_weekly_bin821.fits
.....................!
real 16.79
user 16.12
sys 0.20

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/45339231/ft1_filtered_4FGL_J0022.5+0608_weekly_bin821.fits evtable="EVENTS" scfile=/lscratch/kocevski/45339231/ft2_4FGL_J0022.5+0608_weekly_bin821.fits sctable="SC_DATA" expcube=/lscratch/kocevski/45339231/ltcube_735523201_736128001_4FGL_J0022.5+0608_weekly_bin821.fits outfile=/lscratch/kocevski/45339231/expmap_735523201_736128001_4FGL_J0022.5+0608_weekly_bin821.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/45339231/ltcube_735523201_736128001_4FGL_J0022.5+0608_weekly_bin821.fits
.....................!
real 63.12
user 59.02
sys 3.70

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/45339231/ft1_filtered_4FGL_J0022.5+0608_weekly_bin821.fits scfile=/lscratch/kocevski/45339231/ft2_4FGL_J0022.5+0608_weekly_bin821.fits outfile=/lscratch/kocevski/45339231/cmap_735523201_736128001_4FGL_J0022.5+0608_weekly_bin821.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.62
user 0.22
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/45339231/ft1_filtered_4FGL_J0022.5+0608_weekly_bin821.fits scfile=/lscratch/kocevski/45339231/ft2_4FGL_J0022.5+0608_weekly_bin821.fits outfile=/lscratch/kocevski/45339231/cmap_HighResolution_735523201_736128001_4FGL_J0022.5+0608_weekly_bin821.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.45
user 0.21
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/45339231/ft1_filtered_4FGL_J0022.5+0608_weekly_bin821.fits', '/lscratch/kocevski/45339231/ft2_4FGL_J0022.5+0608_weekly_bin821.fits', expMap='/lscratch/kocevski/45339231/expmap_735523201_736128001_4FGL_J0022.5+0608_weekly_bin821.fits', expCube='/lscratch/kocevski/45339231/ltcube_735523201_736128001_4FGL_J0022.5+0608_weekly_bin821.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/45339231/Model_4FGL_J0022.5+0608_weekly_bin821.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/45339231/ft1_filtered_4FGL_J0022.5+0608_weekly_bin821.fits
Spacecraft file(s): /lscratch/kocevski/45339231/ft2_4FGL_J0022.5+0608_weekly_bin821.fits
Exposure map: /lscratch/kocevski/45339231/expmap_735523201_736128001_4FGL_J0022.5+0608_weekly_bin821.fits
Exposure cube: /lscratch/kocevski/45339231/ltcube_735523201_736128001_4FGL_J0022.5+0608_weekly_bin821.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/45339231/Model_4FGL_J0022.5+0608_weekly_bin821.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) = 14767.1052198

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.4384       1.0000          .0000       .10000E+07
     2 'Prefactor '    .66122E-05   1.0000          .0000       .10000E+07
     3 'norm      '    2.2100       1.0000          .0000       .10000E+07
     4 'norm      '    .19781       1.0000          .0000       .10000E+07
     5 'norm      '    .84332E-01   1.0000          .0000       .10000E+07
     6 'Prefactor '    10.424       1.0000          .0000       .10000E+07
     7 'norm      '    2.4661       1.0000          .0000       .10000E+07
     8 'norm      '    4.6763       1.0000          .0000       .10000E+07
     9 'Prefactor '    .11089E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    1.6308       1.0000          .0000       .10000E+07
    11 'Prefactor '    1.1248       1.0000          .0000       .10000E+07
    12 'norm      '    13.702       1.0000          .0000       .10000E+07
    13 'Prefactor '    .11739E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    4.8237       1.0000          .0000       .10000E+07
    15 'Prefactor '    7.8383       1.0000          .0000       .10000E+07
    16 'Normalizat'    .94802       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0097       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=   14766.45     FROM MIGRAD    STATUS=CONVERGED    127 CALLS     1010 TOTAL
                     EDM=   .25E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.4718        6.9483       -.14485E-06   -.12757E-03
   2  Prefactor      .0000        1.7218        .41124E-08** at limit **
   3  norm          2.2066        1.6642       -.94978E-08   -.87653E-04
   4  norm          .19758        1.8287       -.16184E-07** at limit **
   5  norm          .70519E-01    16.125        .61980E-06** at limit **
   6  Prefactor     10.475        8.0153        .22200E-07   -.13396E-03
   7  norm          2.4648        2.6290       -.50624E-07   -.67290E-03
   8  norm          4.6761        4.0287        .63975E-07   -.40876E-03
   9  Prefactor      .0000        9.7704       -.13318E-07** at limit **
  10  Prefactor     1.6293        2.9965       -.97046E-07   -.23780E-03
  11  Prefactor     1.1241        1.5425       -.28313E-07   -.14184E-03
  12  norm          13.629        10.782        .94318E-07    .93296E-04
  13  Prefactor      .0000        23.975        .73216E-06** at limit **
  14  Prefactor     4.7595        3.7580        .32801E-07   -.26715E-02
  15  Prefactor     7.7508        15.351        .63307E-07    .78111E-03
  16  Normalizat    .94804        .14815        .65287E-06   -.13864E-04
  17  Prefactor     1.0098        .10419       -.11065E-05   -.15952E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.47176
  Prefactor  = 0
  norm       = 2.20658
  norm       = 0.197579
  norm       = 0.0705193
  Prefactor  = 10.4747
  norm       = 2.46477
  norm       = 4.67611
  Prefactor  = 0
  Prefactor  = 1.62929
  Prefactor  = 1.12409
  norm       = 13.6294
  Prefactor  = 0
  Prefactor  = 4.75946
  Prefactor  = 7.75081
  Normalizat = 0.948041
  Prefactor  = 1.0098
 **********
 **   18 **HESSE 
 **********

 FCN=   14766.45     FROM HESSE     STATUS=OK           275 CALLS     1285 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.4718        6.9692        .39531E-03   -1.5657    
   2  Prefactor      .0000        1.7146        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.2066        1.6774        .69164E-03   -1.5678    
   4  norm          .19758        .77991        .36833E-02   -1.5717    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .70519E-01    .91195        .71432E-02   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.475        8.0477        .31009E-03   -1.5643    
   7  norm          2.4648        2.6539        .65093E-03   -1.5677    
   8  norm          4.6761        4.0412        .46513E-03   -1.5665    
   9  Prefactor      .0000        9.7172        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.6293        3.0247        .82775E-03   -1.5682    
  11  Prefactor     1.1241        1.5660        .11044E-02   -1.5687    
  12  norm          13.629        10.774        .27034E-03   -1.5634    
  13  Prefactor      .0000        24.018        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.7595        24.688        .45781E-03   -1.5664    
  15  Prefactor     7.7508        16.038        .35792E-03   -1.5652    
  16  Normalizat    .94804        .12785        .65948E-01   -.94792    
  17  Prefactor     1.0098        .89305E-01    .43372E-01   -.92403    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07622e-08
Minuit parameter uncertainties:
  1  6.96923
  2  1.35317e-06
  3  1.67738
  4  0.779911
  5  0.507188
  6  8.04774
  7  2.65394
  8  4.04124
  9  2.42817e-06
  10  3.02474
  11  1.56605
  12  10.7743
  13  2.14189e-05
  14  21.6796
  15  16.0381
  16  0.127895
  17  0.0893185
Done.

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

Extracting fit parameters...

4FGL J0022.5+0608
   Spectrum: LogParabola
103         norm:  7.052e-02  5.072e-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.010e+00  8.932e-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:  9.480e-01  1.279e-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.11440710378e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.17704573798e-05 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/45339231/likelihoodResults_735523201_736128001_4FGL_J0022.5+0608_weekly_bin821.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) = 14766.2500956
delta logL = 0.195284708258

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 14766.1653672
delta logL = 0.280013103118

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .44329       1.0000          .0000       .10000E+07
     2 'alpha     '    3.5495       1.0000          .0000       5.0000    
     3 'Normalizat'    .91848       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0204       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=   14766.17     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      244 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .44389        9.3291        .84633E-03    .44062E-01
   2  alpha         3.5493        4.2531        .47064        .11605E-03
   3  Normalizat    .91843        .23334E-01    .66870E-01    .42152E-04
   4  Prefactor     1.0204        .16992E-01    .42105E-01   -.56687E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.443885
  alpha      = 3.5493
  Normalizat = 0.918431
  Prefactor  = 1.02036
 **********
 **   18 **HESSE 
 **********

 FCN=   14766.17     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      277 TOTAL
                     EDM=   .77E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .44389        38.959        .10549E-04   -1.5695    
   2  alpha         3.5493        3.2212        .31395E-01    .43314    
   3  Normalizat    .91843        .14078        .29581E-03   -.95815    
   4  Prefactor     1.0204        .95827E-01    .20512E-03   -.92054    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.68974e-09
Minuit parameter uncertainties:
  1  8.31707
  2  11.8613
  3  0.140836
  4  0.0958434
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) = 14766.1653668
delta logL = 0.28001352633

Extracting fit parameters...

4FGL J0022.5+0608
   Spectrum: LogParabola
103         norm:  4.439e-01  8.317e+00  0.000e+00  1.000e+06 ( 1.000e-12)
104        alpha:  3.549e+00  1.186e+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.020e+00  9.584e-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:  9.184e-01  1.408e-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/45339231/cmap_HighResolution_735523201_736128001_4FGL_J0022.5+0608_weekly_bin821.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.18e-05', job_status='DONE', photon_flux_upper_limit='4.11e-08', time_completed='2024-04-30 00:18:32.847921', job_id='45339231', GAL2='1.02', fit_tolerance='1e-08', EG2='0.92', EG='0.95', time_epoch_completed='1714461512.85', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='2.80e-01', ts2='0.60', photon_index_error='0.00', photon_index='2.07' WHERE bin_id='821' AND source_name='4FGL J0022.5+0608' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Apr 30 00:18:32 PDT 2024

