/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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

/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

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


Performing analysis on: 4FGL_J0226.5+0938_weekly_bin786
RA = 36.6313, Dec = 9.6351
tmin = 714355201, tmax = 714960001
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository job = True

LAT data source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='28599584', job_status='RUN', time_executed='2023-09-19 17:15:50.783800', time_epoch_executed='1695168950.78' WHERE source_name='4FGL J0226.5+0938' and cadence='weekly' and bin_id='786'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/28599584

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/28599584/ft1_4FGL_J0226.5+0938_weekly_bin786.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/28599584/ft2_4FGL_J0226.5+0938_weekly_bin786.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/28599584/ft1_4FGL_J0226.5+0938_weekly_bin786.fits outfile=/lscratch/kocevski/28599584/ft1_filteredMKT_4FGL_J0226.5+0938_weekly_bin786.fits ra=36.6313 dec=9.6351 rad=12.0 tmin=714355201.0 tmax=714960001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 5.38
user 5.03
sys 0.28

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

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/28599584/ft2_4FGL_J0226.5+0938_weekly_bin786.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/lscratch/kocevski/28599584/ft1_filteredMKT_4FGL_J0226.5+0938_weekly_bin786.fits evtable="EVENTS" outfile="/lscratch/kocevski/28599584/ft1_filtered_4FGL_J0226.5+0938_weekly_bin786.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.41
user 0.25
sys 0.13

Number of photons that the gtmktime cut: 1848

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/28599584/ft1_filtered_4FGL_J0226.5+0938_weekly_bin786.fits" evtable="EVENTS" scfile=/lscratch/kocevski/28599584/ft2_4FGL_J0226.5+0938_weekly_bin786.fits sctable="SC_DATA" outfile=/lscratch/kocevski/28599584/ltcube_714355201_714960001_4FGL_J0226.5+0938_weekly_bin786.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Working on file /lscratch/kocevski/28599584/ft2_4FGL_J0226.5+0938_weekly_bin786.fits
.....................!
real 20.19
user 19.78
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/28599584/ft1_filtered_4FGL_J0226.5+0938_weekly_bin786.fits evtable="EVENTS" scfile=/lscratch/kocevski/28599584/ft2_4FGL_J0226.5+0938_weekly_bin786.fits sctable="SC_DATA" expcube=/lscratch/kocevski/28599584/ltcube_714355201_714960001_4FGL_J0226.5+0938_weekly_bin786.fits outfile=/lscratch/kocevski/28599584/expmap_714355201_714960001_4FGL_J0226.5+0938_weekly_bin786.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /lscratch/kocevski/28599584/ltcube_714355201_714960001_4FGL_J0226.5+0938_weekly_bin786.fits
.....................!
real 66.98
user 63.04
sys 3.57

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/28599584/ft1_filtered_4FGL_J0226.5+0938_weekly_bin786.fits scfile=/lscratch/kocevski/28599584/ft2_4FGL_J0226.5+0938_weekly_bin786.fits outfile=/lscratch/kocevski/28599584/cmap_714355201_714960001_4FGL_J0226.5+0938_weekly_bin786.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=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.39
user 0.23
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/28599584/ft1_filtered_4FGL_J0226.5+0938_weekly_bin786.fits scfile=/lscratch/kocevski/28599584/ft2_4FGL_J0226.5+0938_weekly_bin786.fits outfile=/lscratch/kocevski/28599584/cmap_HighResolution_714355201_714960001_4FGL_J0226.5+0938_weekly_bin786.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=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.44
user 0.25
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/28599584/ft1_filtered_4FGL_J0226.5+0938_weekly_bin786.fits evtable="EVENTS" scfile=/lscratch/kocevski/28599584/ft2_4FGL_J0226.5+0938_weekly_bin786.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/28599584/Model_4FGL_J0226.5+0938_weekly_bin786.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source GAL_V02
Working on...
/lscratch/kocevski/28599584/ft1_filtered_4FGL_J0226.5+0938_weekly_bin786.fits.....................!
real 83.45
user 81.99
sys 0.90

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/28599584/ft1_filtered_4FGL_J0226.5+0938_weekly_bin786.fits', '/lscratch/kocevski/28599584/ft2_4FGL_J0226.5+0938_weekly_bin786.fits', expMap='/lscratch/kocevski/28599584/expmap_714355201_714960001_4FGL_J0226.5+0938_weekly_bin786.fits', expCube='/lscratch/kocevski/28599584/ltcube_714355201_714960001_4FGL_J0226.5+0938_weekly_bin786.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/28599584/Model_4FGL_J0226.5+0938_weekly_bin786.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/28599584/ft1_filtered_4FGL_J0226.5+0938_weekly_bin786.fits
Spacecraft file(s): /lscratch/kocevski/28599584/ft2_4FGL_J0226.5+0938_weekly_bin786.fits
Exposure map: /lscratch/kocevski/28599584/expmap_714355201_714960001_4FGL_J0226.5+0938_weekly_bin786.fits
Exposure cube: /lscratch/kocevski/28599584/ltcube_714355201_714960001_4FGL_J0226.5+0938_weekly_bin786.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/28599584/Model_4FGL_J0226.5+0938_weekly_bin786.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .76466       1.0000          .0000       .10000E+07
     2 'norm      '    .26264E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    1.5592       1.0000          .0000       .10000E+07
     4 'Prefactor '    8.8012       1.0000          .0000       .10000E+07
     5 'norm      '    15.048       1.0000          .0000       .10000E+07
     6 'Prefactor '    10.762       1.0000          .0000       .10000E+07
     7 'norm      '    1.6574       1.0000          .0000       .10000E+07
     8 'Prefactor '    7.7044       1.0000          .0000       .10000E+07
     9 'Prefactor '    .88212E-05   1.0000          .0000       .10000E+07
    10 'Prefactor '    .14182E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    2.8340       1.0000          .0000       .10000E+07
    12 'Prefactor '    12.769       1.0000          .0000       .10000E+07
    13 'Prefactor '    8.4985       1.0000          .0000       .10000E+07
    14 'norm      '    1.1248       1.0000          .0000       .10000E+07
    15 'Prefactor '    .19849E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    9.6400       1.0000          .0000       .10000E+07
    17 'norm      '    13.539       1.0000          .0000       .10000E+07
    18 'Prefactor '    14.535       1.0000          .0000       .10000E+07
    19 'Prefactor '    .77734E-03   1.0000          .0000       .10000E+07
    20 'Prefactor '    .11271E-04   1.0000          .0000       .10000E+07
    21 'Prefactor '    1.8014       1.0000          .0000       .10000E+07
    22 'norm      '    8.2620       1.0000          .0000       .10000E+07
    23 'norm      '    .28775E-03   1.0000          .0000       .10000E+07
    24 'Prefactor '    10.033       1.0000          .0000       .10000E+07
    25 'norm      '    .29565E-06   1.0000          .0000       .10000E+07
    26 'Normalizat'    .96266       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .96575       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=   19698.36     FROM MIGRAD    STATUS=CONVERGED    149 CALLS     2346 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .77388        2.9766        .49041E-07    .84943E-03
   2  norm           .0000        2.7524        .54874E-07** at limit **
   3  Prefactor     1.5391        4.0321       -.95543E-07    .77666E-04
   4  Prefactor     8.8000        2.1356        .17337E-07   -.26501E-03
   5  norm          15.068        4.2592        .28730E-07   -.26070E-03
   6  Prefactor     10.761        2.2916        .13267E-07   -.23660E-02
   7  norm          1.6573        .54497        .13595E-07   -.14037E-02
   8  Prefactor     7.7671        2.7331       -.23711E-07    .38384E-01
   9  Prefactor     .48850E-08    5.2534        .46806E-07** at limit **
  10  Prefactor     .10547E-08    38.166        .63308E-06** at limit **
  11  Prefactor     2.8054        5.0022        .29764E-07    .34101E-02
  12  Prefactor     12.679        1.6878       -.71866E-08    .10960E-01
  13  Prefactor     8.4908        2.0002        .10153E-07   -.13064E-01
  14  norm          1.1254        .34813       -.66107E-09    .54510E-03
  15  Prefactor      .0000        11.839       -.71013E-07** at limit **
  16  Prefactor     9.6597        1.8184        .43902E-08   -.97175E-02
  17  norm          13.541        1.2492        .30380E-08   -.13668E-01
  18  Prefactor     14.501        1.0948        .17124E-08   -.21789E-02
  19  Prefactor     .32196E-08    6.1390       -.27649E-07** at limit **
  20  Prefactor     .77716E-09    4.8187       -.67769E-08** at limit **
  21  Prefactor     1.8154        2.8336       -.24241E-07    .24749E-03
  22  norm          8.2672        6.8076       -.10483E-08    .39031E-02
  23  norm           .0000        2.7877        .18175E-06** at limit **
  24  Prefactor     10.026        4.6109       -.47502E-09   -.11942E-03
  25  norm           .0000        .89019        .65490E-07** at limit **
  26  Normalizat    .96280        .14037       -.56934E-06    .28483E-05
  27  Prefactor     .96574        .69782E-01   -.13489E-06    .13769E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.773876
  norm       = 0
  Prefactor  = 1.53907
  Prefactor  = 8.80004
  norm       = 15.0679
  Prefactor  = 10.7611
  norm       = 1.65729
  Prefactor  = 7.76708
  Prefactor  = 4.88498e-09
  Prefactor  = 1.05471e-09
  Prefactor  = 2.80538
  Prefactor  = 12.6787
  Prefactor  = 8.49079
  norm       = 1.12537
  Prefactor  = 0
  Prefactor  = 9.65969
  norm       = 13.5406
  Prefactor  = 14.5012
  Prefactor  = 3.21965e-09
  Prefactor  = 7.77156e-10
  Prefactor  = 1.81536
  norm       = 8.26721
  norm       = 0
  Prefactor  = 10.0263
  norm       = 0
  Normalizat = 0.962797
  Prefactor  = 0.965739
 **********
 **   18 **HESSE 
 **********

 FCN=   19698.36     FROM HESSE     STATUS=OK           550 CALLS     2896 TOTAL
                     EDM=   .24E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .77388        2.9797        .55607E-03   -1.5690    
   2  norm           .0000        2.7580        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.5391        4.0757        .85195E-03   -1.5683    
   4  Prefactor     8.8000        2.1388        .33763E-03   -1.5649    
   5  norm          15.068        4.2763        .25793E-03   -1.5630    
   6  Prefactor     10.761        2.3665        .30515E-03   -1.5642    
   7  norm          1.6573        .54800        .81935E-03   -1.5682    
   8  Prefactor     7.7671        19.678        .36104E-03   -1.5652    
   9  Prefactor     .48850E-08    5.4138        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10547E-08    38.229        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.8054        5.6677        .60381E-03   -1.5674    
  12  Prefactor     12.679        15.944        .28007E-03   -1.5637    
  13  Prefactor     8.4908        7.4695        .34363E-03   -1.5650    
  14  norm          1.1254        .39877        .98988E-03   -1.5687    
  15  Prefactor      .0000        11.848        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     9.6597        11.460        .32252E-03   -1.5646    
  17  norm          13.541        7.1373        .27196E-03   -1.5634    
  18  Prefactor     14.501        12.406        .26245E-03   -1.5632    
  19  Prefactor     .32196E-08    6.2294        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .77716E-09    4.8533        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.8154        2.8646        .77854E-03   -1.5681    
  22  norm          8.2672        6.8145        .34855E-03   -1.5650    
  23  norm           .0000        2.7358        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     10.026        4.6149        .31611E-03   -1.5645    
  25  norm           .0000        .89323        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .96280        .13329        .80614E-01   -.94287    
  27  Prefactor     .96574        .62783E-01    .45838E-01   -.93880    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.40904e-06
Minuit parameter uncertainties:
  1  2.97969
  2  1.15818e-06
  3  4.0757
  4  2.13878
  5  4.27632
  6  2.36651
  7  0.548
  8  19.6786
  9  0.00032615
  10  0.000396765
  11  5.6677
  12  15.9439
  13  7.46951
  14  0.398768
  15  2.52708e-05
  16  11.4596
  17  7.13731
  18  12.4059
  19  0.000283826
  20  0.000120627
  21  2.86455
  22  6.81449
  23  4.19791e-06
  24  4.61487
  25  1.51797e-06
  26  0.133335
  27  0.0627879
Done.

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

Extracting fit parameters...

4FGL J0226.5+0938
   Spectrum: PowerLaw
257    Prefactor:  1.055e-09  3.968e-04  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:  9.657e-01  6.279e-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.628e-01  1.333e-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: 4.58287429521e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00347877475485 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/28599584/likelihoodResults_714355201_714960001_4FGL_J0226.5+0938_weekly_bin786.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 19698.3755095
delta logL = -0.0126262060403

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 19697.9104413
delta logL = 0.45244192356

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .34767E-01   1.0000          .0000       .10000E+07
     2 'Index     '    5.1223       1.0000          .0000       10.000    
     3 'Normalizat'    .93348       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97350       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.

 FCN=   19697.91     FROM MIGRAD    STATUS=CONVERGED     70 CALLS      319 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .32128E-01    .27790        .62316E-03** at limit **
   2  Index         5.1510        1.3867        .11942        .20826E-03
   3  Normalizat    .93333        .18545E-01    .81651E-01   -.12312E-03
   4  Prefactor     .97356        .96029E-02    .45935E-01   -.26174E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0321275
  Index      = 5.15098
  Normalizat = 0.933328
  Prefactor  = 0.973565
 **********
 **   18 **HESSE 
 **********

 FCN=   19697.91     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      350 TOTAL
                     EDM=   .79E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .32128E-01    2.1011        .27401E-05   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         5.1510        7.3287        .73072E-02    .30200E-01
   3  Normalizat    .93333        .10216        .36145E-03   -.95299    
   4  Prefactor     .97356        .52353E-01    .18274E-03   -.93616    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.85449e-09
Minuit parameter uncertainties:
  1  0.519622
  2  5.76191
  3  0.102178
  4  0.0523555
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) = 19697.9104324
delta logL = 0.452450859735

Extracting fit parameters...

4FGL J0226.5+0938
   Spectrum: PowerLaw
257    Prefactor:  3.213e-02  5.196e-01  0.000e+00  1.000e+06 ( 1.000e-14)
258        Index:  5.151e+00  5.762e+00  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:  9.736e-01  5.236e-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.333e-01  1.022e-01  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/28599584/cmap_HighResolution_714355201_714960001_4FGL_J0226.5+0938_weekly_bin786.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.48e-03', job_status='DONE', photon_flux_upper_limit='4.58e-08', time_completed='2023-09-19 17:26:49.698914', job_id='28599584', GAL2='0.97', fit_tolerance='1e-08', EG2='0.93', EG='0.96', time_epoch_completed='1695169609.7', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='4.52e-01', ts2='0.95', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='786' AND source_name='4FGL J0226.5+0938' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep 19 17:26:49 PDT 2023

