 **********
 **   18 **HESSE 
 **********

 FCN=   10220.91     FROM HESSE     STATUS=OK           560 CALLS     2995 TOTAL
                     EDM=   .23E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        2.2211        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          9.4655        10.364        .32537E-03   -1.5646    
   3  Prefactor     .35916E-07    14.467        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     18.029        3.9342        .23561E-03   -1.5623    
   5  norm          14.727        5.7273        .26016E-03   -1.5631    
   6  Prefactor     7.3365        2.6888        .37041E-03   -1.5654    
   7  norm          .11854        .40437        .22273E-02   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .21326        17.845        .10729E-01   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     21.884        29.897        .21371E-03   -1.5614    
  10  Prefactor     .83822E-08    37.880        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.8063        9.3053        .38469E-03   -1.5656    
  12  Prefactor     .23981E-07    10.324        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .14710E-07    8.6719        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .12651        .35160        .22168E-02   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .13216E-05    54.435        .10887E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .88818E-09    6.2119        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          9.4984        10.068        .32496E-03   -1.5646    
  18  Prefactor     24.734        20.403        .20104E-03   -1.5608    
  19  Prefactor     .49960E-09    14.563        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.8240        47.113        .76868E-03   -1.5681    
  21  Prefactor      .0000        3.0249        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          9.6959        6.8783        .32146E-03   -1.5646    
  23  norm          3.3503        3.4246        .55225E-03   -1.5671    
  24  Prefactor      .0000        2.2175        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          6.4067        6.6026        .39587E-03   -1.5657    
  26  Normalizat    .99879        .18006        .80889E-01   -.93071    
  27  Prefactor     1.0064        .92302E-01    .43927E-01   -.92516    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.3282e-07
Minuit parameter uncertainties:
  1  1.45882e-05
  2  10.3636
  3  0.0014414
  4  3.93418
  5  5.72727
  6  2.68878
  7  0.404374
  8  3.9016
  9  29.8976
  10  0.00112831
  11  9.30532
  12  0.000995044
  13  0.000713913
  14  0.351597
  15  0.0169635
  16  0.000149568
  17  10.0685
  18  20.4029
  19  0.000165844
  20  18.5406
  21  9.08265e-06
  22  6.87829
  23  3.42458
  24  6.56769e-06
  25  6.6026
  26  0.180172
  27  0.0923166
/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).

Done.

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

Extracting fit parameters...

4FGL J0226.5+0938
   Spectrum: PowerLaw
257    Prefactor:  8.382e-09  1.128e-03  0.000e+00  1.000e+06 ( 1.000e-14)
258        Index:  2.151e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
259        Scale:  1.918e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
509    Prefactor:  1.006e+00  9.232e-02  0.000e+00  1.000e+01 ( 1.000e+00)
510        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
511        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
508   Normalization:  9.988e-01  1.802e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 36.631 9.635
Photon Flux Upper Limit: 6.30413295544e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00478535023305 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/19649140/likelihoodResults_711072001_711331201_4FGL_J0226.5+0938_daily_bin1820.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) = 10220.9259194
delta logL = -0.0126526190888

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10220.9132668
delta logL = -1.58397597261e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .91183E-06   1.0000          .0000       .10000E+07
     2 'Index     '    2.6910       1.0000          .0000       10.000    
     3 'Normalizat'    .99879       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0064       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5120E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   10220.91     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      228 TOTAL
                     EDM=   .13E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        7.4144        .42118E-03** at limit **
   2  Index         .65401        .56162       -.95719E-04     .0000    
   3  Normalizat    .99879        1.3285        .64131E-06    .29298E-04
   4  Prefactor     1.0064        1.2790        .47964E-06    .52169E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 0.65401
  Normalizat = 0.998793
  Prefactor  = 1.00642
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   10220.91     FROM HESSE     STATUS=FAILED         9 CALLS      237 TOTAL
                     EDM=   .13E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        7.4144        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .13025E-03    .76750       -.95719E-04   -1.0536    
   3  Normalizat    .99879        1.3285        .64131E-06   -.93071    
   4  Prefactor     1.0064        1.2790        .47964E-06   -.92516    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.28343e-12
Minuit parameter uncertainties:
  1  1.1624e-05
  2  0.566571
  3  1.37687
  4  1.3211
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 10220.9132668
delta logL = 1.4370016288e-10

Extracting fit parameters...

4FGL J0226.5+0938
   Spectrum: PowerLaw
257    Prefactor:  0.000e+00  1.162e-05  0.000e+00  1.000e+06 ( 1.000e-14)
258        Index:  6.540e-01  5.666e-01  0.000e+00  1.000e+01 (-1.000e+00)
259        Scale:  1.918e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
509    Prefactor:  1.006e+00  1.321e+00  0.000e+00  1.000e+01 ( 1.000e+00)
510        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
511        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
508   Normalization:  9.988e-01  1.377e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 36.631 9.635

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/19649140/cmap_HighResolution_711072001_711331201_4FGL_J0226.5+0938_daily_bin1820.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.79e-03', job_status='DONE', photon_flux_upper_limit='6.30e-08', time_completed='2023-07-18 00:23:16.906387', job_id='19649140', GAL2='1.01', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1689664996.91', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='1.44e-10', ts2='0.00', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='1820' AND source_name='4FGL J0226.5+0938' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jul 18 00:23:17 PDT 2023

number of points = 7459
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0226.5+0938_daily_bin1820
RA = 36.6313, Dec = 9.6351
tmin = 711072001, tmax = 711331201
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='19650072', job_status='RUN', time_executed='2023-07-18 00:22:40.408696', time_epoch_executed='1689664960.41' WHERE source_name='4FGL J0226.5+0938' and cadence='daily' and bin_id='1820'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/19650072

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/19650072/ft1_4FGL_J0226.5+0938_daily_bin1820.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/19650072/ft2_4FGL_J0226.5+0938_daily_bin1820.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/19650072/ft1_4FGL_J0226.5+0938_daily_bin1820.fits outfile=/lscratch/kocevski/19650072/ft1_filteredMKT_4FGL_J0226.5+0938_daily_bin1820.fits ra=36.6313 dec=9.6351 rad=12.0 tmin=711072001.0 tmax=711331201.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 2.26
user 1.73
sys 0.18

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/19650072/ft2_4FGL_J0226.5+0938_daily_bin1820.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/19650072/ft2_4FGL_J0226.5+0938_daily_bin1820.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/19650072/ft1_filteredMKT_4FGL_J0226.5+0938_daily_bin1820.fits evtable="EVENTS" outfile="/lscratch/kocevski/19650072/ft1_filtered_4FGL_J0226.5+0938_daily_bin1820.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.64
user 0.18
sys 0.14

Number of photons that the gtmktime cut: 934

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/19650072/ft1_filtered_4FGL_J0226.5+0938_daily_bin1820.fits" evtable="EVENTS" scfile=/lscratch/kocevski/19650072/ft2_4FGL_J0226.5+0938_daily_bin1820.fits sctable="SC_DATA" outfile=/lscratch/kocevski/19650072/ltcube_711072001_711331201_4FGL_J0226.5+0938_daily_bin1820.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/19650072/ft2_4FGL_J0226.5+0938_daily_bin1820.fits
.....................!
real 7.85
user 7.30
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/19650072/ft1_filtered_4FGL_J0226.5+0938_daily_bin1820.fits evtable="EVENTS" scfile=/lscratch/kocevski/19650072/ft2_4FGL_J0226.5+0938_daily_bin1820.fits sctable="SC_DATA" expcube=/lscratch/kocevski/19650072/ltcube_711072001_711331201_4FGL_J0226.5+0938_daily_bin1820.fits outfile=/lscratch/kocevski/19650072/expmap_711072001_711331201_4FGL_J0226.5+0938_daily_bin1820.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/19650072/ltcube_711072001_711331201_4FGL_J0226.5+0938_daily_bin1820.fits
.....................!
real 64.08
user 59.61
sys 3.80

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

Setting source of interest to:
4FGL J0226.5+0938 @ 36.6313 9.6351

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/19650072/ft1_filtered_4FGL_J0226.5+0938_daily_bin1820.fits scfile=/lscratch/kocevski/19650072/ft2_4FGL_J0226.5+0938_daily_bin1820.fits outfile=/lscratch/kocevski/19650072/cmap_711072001_711331201_4FGL_J0226.5+0938_daily_bin1820.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=36.6313 yref=9.6351 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.66
user 0.21
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/19650072/ft1_filtered_4FGL_J0226.5+0938_daily_bin1820.fits scfile=/lscratch/kocevski/19650072/ft2_4FGL_J0226.5+0938_daily_bin1820.fits outfile=/lscratch/kocevski/19650072/cmap_HighResolution_711072001_711331201_4FGL_J0226.5+0938_daily_bin1820.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=36.6313 yref=9.6351 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.63
user 0.21
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/19650072/ft1_filtered_4FGL_J0226.5+0938_daily_bin1820.fits evtable="EVENTS" scfile=/lscratch/kocevski/19650072/ft2_4FGL_J0226.5+0938_daily_bin1820.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/19650072/Model_4FGL_J0226.5+0938_daily_bin1820.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/19650072/ft1_filtered_4FGL_J0226.5+0938_daily_bin1820.fits.....................!
real 47.58
user 46.00
sys 1.02

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/19650072/ft1_filtered_4FGL_J0226.5+0938_daily_bin1820.fits', '/lscratch/kocevski/19650072/ft2_4FGL_J0226.5+0938_daily_bin1820.fits', expMap='/lscratch/kocevski/19650072/expmap_711072001_711331201_4FGL_J0226.5+0938_daily_bin1820.fits', expCube='/lscratch/kocevski/19650072/ltcube_711072001_711331201_4FGL_J0226.5+0938_daily_bin1820.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/19650072/Model_4FGL_J0226.5+0938_daily_bin1820.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0226.5+0938'

4FGL J0226.5+0938
   Spectrum: PowerLaw
257    Prefactor:  8.451e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
258        Index:  2.151e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
259        Scale:  1.918e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/19650072/ft1_filtered_4FGL_J0226.5+0938_daily_bin1820.fits
Spacecraft file(s): /lscratch/kocevski/19650072/ft2_4FGL_J0226.5+0938_daily_bin1820.fits
Exposure map: /lscratch/kocevski/19650072/expmap_711072001_711331201_4FGL_J0226.5+0938_daily_bin1820.fits
Exposure cube: /lscratch/kocevski/19650072/ltcube_711072001_711331201_4FGL_J0226.5+0938_daily_bin1820.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/19650072/Model_4FGL_J0226.5+0938_daily_bin1820.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) = 10220.9315447

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17635E-04   1.0000          .0000       .10000E+07
     2 'norm      '    9.4726       1.0000          .0000       .10000E+07
     3 'Prefactor '    .75095E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    18.028       1.0000          .0000       .10000E+07
     5 'norm      '    14.792       1.0000          .0000       .10000E+07
     6 'Prefactor '    7.3226       1.0000          .0000       .10000E+07
     7 'norm      '    .11874       1.0000          .0000       .10000E+07
     8 'Prefactor '    .57967       1.0000          .0000       .10000E+07
     9 'Prefactor '    21.908       1.0000          .0000       .10000E+07
    10 'Prefactor '    .10164E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    6.7945       1.0000          .0000       .10000E+07
    12 'Prefactor '    .21597E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    .76178E-03   1.0000          .0000       .10000E+07
    14 'norm      '    .12603       1.0000          .0000       .10000E+07
    15 'Prefactor '    .25379       1.0000          .0000       .10000E+07
    16 'Prefactor '    .19148E-02   1.0000          .0000       .10000E+07
    17 'norm      '    9.4965       1.0000          .0000       .10000E+07
    18 'Prefactor '    24.752       1.0000          .0000       .10000E+07
    19 'Prefactor '    .11134E-03   1.0000          .0000       .10000E+07
    20 'Prefactor '    1.8401       1.0000          .0000       .10000E+07
    21 'Prefactor '    .43471E-04   1.0000          .0000       .10000E+07
    22 'norm      '    9.7032       1.0000          .0000       .10000E+07
    23 'norm      '    3.3552       1.0000          .0000       .10000E+07
    24 'Prefactor '    .20235E-05   1.0000          .0000       .10000E+07
    25 'norm      '    6.4202       1.0000          .0000       .10000E+07
    26 'Normalizat'    .99836       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0063       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5120E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10220.91     FROM MIGRAD    STATUS=CONVERGED    182 CALLS     2435 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        2.2299        .68289E-07** at limit **
   2  norm          9.4655        9.7702        .92011E-06    .24688E-02
   3  Prefactor     .35916E-07    13.783        .45901E-05** at limit **
   4  Prefactor     18.029        3.9289        .40739E-08    .14493E-01
   5  norm          14.727        5.7175        .91938E-07    .41950E-02
   6  Prefactor     7.3365        2.6741        .10521E-07   -.73806E-02
   7  norm          .11854        .54272       -.50550E-07** at limit **
   8  Prefactor     .21326        414.91       -.33173E-04** at limit **
   9  Prefactor     21.884        3.0536       -.27216E-06   -.17011E-01
  10  Prefactor     .83822E-08    37.799        .14821E-05** at limit **
  11  Prefactor     6.8063        8.2522        .23212E-06    .48142E-02
  12  Prefactor     .23981E-07    9.9206       -.17290E-05** at limit **
  13  Prefactor     .14710E-07    8.1885       -.31139E-06** at limit **
  14  norm          .12651        .37579        .48943E-07** at limit **
  15  Prefactor     .13216E-05    9.1594        .37713E-05** at limit **
  16  Prefactor     .88818E-09    6.2008        .34851E-07** at limit **
  17  norm          9.4984        4.7871       -.45746E-06   -.17329E-01
  18  Prefactor     24.734        1.1041       -.67181E-07    .42035E-02
  19  Prefactor     .49960E-09    14.501       -.79536E-06** at limit **
  20  Prefactor     1.8240        1.2614        .14719E-06   -.37300E-04
  21  Prefactor      .0000        3.0364       -.11455E-06** at limit **
  22  norm          9.6959        6.8750        .21414E-07   -.20703E-02
  23  norm          3.3503        3.3875       -.88681E-07   -.56437E-02
  24  Prefactor      .0000        2.2202       -.50765E-08** at limit **
  25  norm          6.4067        6.6134       -.60249E-07    .13952E-02
  26  Normalizat    .99879        .19610        .26700E-05   -.18520E-03
  27  Prefactor     1.0064        .10166        .93221E-07   -.13577E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 9.46549
  Prefactor  = 3.59157e-08
  Prefactor  = 18.029
  norm       = 14.727
  Prefactor  = 7.33654
  norm       = 0.118545
  Prefactor  = 0.213256
  Prefactor  = 21.884
  Prefactor  = 8.38218e-09
  Prefactor  = 6.8063
  Prefactor  = 2.39808e-08
  Prefactor  = 1.47105e-08
  norm       = 0.126511
  Prefactor  = 1.32155e-06
  Prefactor  = 8.88178e-10
  norm       = 9.49839
  Prefactor  = 24.7345
  Prefactor  = 4.996e-10
  Prefactor  = 1.82404
  Prefactor  = 0
  norm       = 9.69588
  norm       = 3.35032
  Prefactor  = 0
  norm       = 6.40673
  Normalizat = 0.998792
  Prefactor  = 1.00642
 **********
 **   18 **HESSE 
 **********

 FCN=   10220.91     FROM HESSE     STATUS=OK           560 CALLS     2995 TOTAL
                     EDM=   .23E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        2.2211        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          9.4655        10.364        .32537E-03   -1.5646    
   3  Prefactor     .35916E-07    14.467        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     18.029        3.9342        .23561E-03   -1.5623    
   5  norm          14.727        5.7273        .26016E-03   -1.5631    
   6  Prefactor     7.3365        2.6888        .37041E-03   -1.5654    
   7  norm          .11854        .40437        .22273E-02   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .21326        17.845        .10729E-01   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     21.884        29.897        .21371E-03   -1.5614    
  10  Prefactor     .83822E-08    37.880        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.8063        9.3053        .38469E-03   -1.5656    
  12  Prefactor     .23981E-07    10.324        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .14710E-07    8.6719        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .12651        .35160        .22168E-02   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .13216E-05    54.435        .10887E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .88818E-09    6.2119        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          9.4984        10.068        .32496E-03   -1.5646    
  18  Prefactor     24.734        20.403        .20104E-03   -1.5608    
  19  Prefactor     .49960E-09    14.563        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.8240        47.113        .76868E-03   -1.5681    
  21  Prefactor      .0000        3.0249        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          9.6959        6.8783        .32146E-03   -1.5646    
  23  norm          3.3503        3.4246        .55225E-03   -1.5671    
  24  Prefactor      .0000        2.2175        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          6.4067        6.6026        .39587E-03   -1.5657    
  26  Normalizat    .99879        .18006        .80889E-01   -.93071    
  27  Prefactor     1.0064        .92302E-01    .43927E-01   -.92516    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.3282e-07
Minuit parameter uncertainties:
  1  1.45882e-05
  2  10.3636
  3  0.0014414
  4  3.93418
  5  5.72727
  6  2.68878
  7  0.404374
  8  3.9016
  9  29.8976
  10  0.00112831
  11  9.30532
  12  0.000995044
  13  0.000713913
  14  0.351597
  15  0.0169635
  16  0.000149568
  17  10.0685
  18  20.4029
  19  0.000165844
  20  18.5406
  21  9.08265e-06
  22  6.87829
  23  3.42458
  24  6.56769e-06
  25  6.6026
  26  0.180172
  27  0.0923166
Done.

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

Extracting fit parameters...

4FGL J0226.5+0938
   Spectrum: PowerLaw
257    Prefactor:  8.382e-09  1.128e-03  0.000e+00  1.000e+06 ( 1.000e-14)
258        Index:  2.151e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
259        Scale:  1.918e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
509    Prefactor:  1.006e+00  9.232e-02  0.000e+00  1.000e+01 ( 1.000e+00)
510        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
511        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
508   Normalization:  9.988e-01  1.802e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 36.631 9.635
Photon Flux Upper Limit: 6.30413295544e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00478535023305 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/19650072/likelihoodResults_711072001_711331201_4FGL_J0226.5+0938_daily_bin1820.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) = 10220.9259194
delta logL = -0.0126526190888

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10220.9132668
delta logL = -1.58397597261e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .91183E-06   1.0000          .0000       .10000E+07
     2 'Index     '    2.6910       1.0000          .0000       10.000    
     3 'Normalizat'    .99879       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0064       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5120E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   10220.91     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      228 TOTAL
                     EDM=   .13E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        7.4144        .42118E-03** at limit **
   2  Index         .65401        .56162       -.95719E-04     .0000    
   3  Normalizat    .99879        1.3285        .64131E-06    .29298E-04
   4  Prefactor     1.0064        1.2790        .47964E-06    .52169E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 0.65401
  Normalizat = 0.998793
  Prefactor  = 1.00642
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   10220.91     FROM HESSE     STATUS=FAILED         9 CALLS      237 TOTAL
                     EDM=   .13E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        7.4144        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .13025E-03    .76750       -.95719E-04   -1.0536    
   3  Normalizat    .99879        1.3285        .64131E-06   -.93071    
   4  Prefactor     1.0064        1.2790        .47964E-06   -.92516    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.28343e-12
Minuit parameter uncertainties:
  1  1.1624e-05
  2  0.566571
  3  1.37687
  4  1.3211
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 10220.9132668
delta logL = 1.4370016288e-10

Extracting fit parameters...

4FGL J0226.5+0938
   Spectrum: PowerLaw
257    Prefactor:  0.000e+00  1.162e-05  0.000e+00  1.000e+06 ( 1.000e-14)
258        Index:  6.540e-01  5.666e-01  0.000e+00  1.000e+01 (-1.000e+00)
259        Scale:  1.918e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
509    Prefactor:  1.006e+00  1.321e+00  0.000e+00  1.000e+01 ( 1.000e+00)
510        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
511        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
508   Normalization:  9.988e-01  1.377e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 36.631 9.635

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/19650072/cmap_HighResolution_711072001_711331201_4FGL_J0226.5+0938_daily_bin1820.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.79e-03', job_status='DONE', photon_flux_upper_limit='6.30e-08', time_completed='2023-07-18 00:30:36.415473', job_id='19650072', GAL2='1.01', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1689665436.42', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='1.44e-10', ts2='0.00', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='1820' AND source_name='4FGL J0226.5+0938' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jul 18 00:30:36 PDT 2023

