aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/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)


Waiting 209 seconds before starting...
Proceeding.

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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/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 = 7445
number of fields = 31
RA_SUN column already exists. File will not be modified.DDone.


Performing analysis on: 4FGL_J0226.5+0938_daily_bin1673
RA = 36.6313, Dec = 9.6351
tmin = 672969601, tmax = 673228801
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='351114', job_status='RUN', time_executed='2022-05-03 00:11:35.081412', time_epoch_executed='1651561895.08' WHERE source_name='4FGL J0226.5+0938' and cadence='daily' and bin_id='1673'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/351114

Creating custom pfile directory:
/scratch/kocevski/351114/pfiles/

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=672969601.0 && nMetStart<673228801.0' /Data/Flight/Reprocess/P305

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=672969601.0 && nMetStart<673228801.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/351114/ft1_4FGL_J0226.5+0938_daily_bin1673.fits


Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT2 --filter 'nMetStop>=672969601.0 && nMetStart<673228801.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/351114/ft2_4FGL_J0226.5+0938_daily_bin1673.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/351114/ft1_4FGL_J0226.5+0938_daily_bin1673.fits outfile=/scratch/kocevski/351114/ft1_filteredMKT_4FGL_J0226.5+0938_daily_bin1673.fits ra=36.6313 dec=9.6351 rad=12.0 tmin=672969601.0 tmax=673228801.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.96
user 2.74
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/351114/ft2_4FGL_J0226.5+0938_daily_bin1673.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/351114/ft2_4FGL_J0226.5+0938_daily_bin1673.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/351114/ft1_filteredMKT_4FGL_J0226.5+0938_daily_bin1673.fits evtable="EVENTS" outfile="/scratch/kocevski/351114/ft1_filtered_4FGL_J0226.5+0938_daily_bin1673.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('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.32
sys 0.16

Number of photons that the gtmktime cut: 27

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/351114/ft1_filtered_4FGL_J0226.5+0938_daily_bin1673.fits" evtable="EVENTS" scfile=/scratch/kocevski/351114/ft2_4FGL_J0226.5+0938_daily_bin1673.fits sctable="SC_DATA" outfile=/scratch/kocevski/351114/ltcube_672969601_673228801_4FGL_J0226.5+0938_daily_bin1673.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 /scratch/kocevski/351114/ft2_4FGL_J0226.5+0938_daily_bin1673.fits
.....................!
real 15.07
user 14.66
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/351114/ft1_filtered_4FGL_J0226.5+0938_daily_bin1673.fits evtable="EVENTS" scfile=/scratch/kocevski/351114/ft2_4FGL_J0226.5+0938_daily_bin1673.fits sctable="SC_DATA" expcube=/scratch/kocevski/351114/ltcube_672969601_673228801_4FGL_J0226.5+0938_daily_bin1673.fits outfile=/scratch/kocevski/351114/expmap_672969601_673228801_4FGL_J0226.5+0938_daily_bin1673.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 /scratch/kocevski/351114/ltcube_672969601_673228801_4FGL_J0226.5+0938_daily_bin1673.fits
.....................!
real 191.31
user 185.51
sys 5.06

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=/scratch/kocevski/351114/ft1_filtered_4FGL_J0226.5+0938_daily_bin1673.fits scfile=/scratch/kocevski/351114/ft2_4FGL_J0226.5+0938_daily_bin1673.fits outfile=/scratch/kocevski/351114/cmap_672969601_673228801_4FGL_J0226.5+0938_daily_bin1673.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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/351114/ft1_filtered_4FGL_J0226.5+0938_daily_bin1673.fits scfile=/scratch/kocevski/351114/ft2_4FGL_J0226.5+0938_daily_bin1673.fits outfile=/scratch/kocevski/351114/cmap_HighResolution_672969601_673228801_4FGL_J0226.5+0938_daily_bin1673.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.56
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/351114/ft1_filtered_4FGL_J0226.5+0938_daily_bin1673.fits evtable="EVENTS" scfile=/scratch/kocevski/351114/ft2_4FGL_J0226.5+0938_daily_bin1673.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/351114/Model_4FGL_J0226.5+0938_daily_bin1673.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...
/scratch/kocevski/351114/ft1_filtered_4FGL_J0226.5+0938_daily_bin1673.fits...........................!
real 17.01
user 15.69
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/351114/ft1_filtered_4FGL_J0226.5+0938_daily_bin1673.fits', '/scratch/kocevski/351114/ft2_4FGL_J0226.5+0938_daily_bin1673.fits', expMap='/scratch/kocevski/351114/expmap_672969601_673228801_4FGL_J0226.5+0938_daily_bin1673.fits', expCube='/scratch/kocevski/351114/ltcube_672969601_673228801_4FGL_J0226.5+0938_daily_bin1673.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/351114/Model_4FGL_J0226.5+0938_daily_bin1673.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  1.000e-04  1.000e+04 ( 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): /scratch/kocevski/351114/ft1_filtered_4FGL_J0226.5+0938_daily_bin1673.fits
Spacecraft file(s): /scratch/kocevski/351114/ft2_4FGL_J0226.5+0938_daily_bin1673.fits
Exposure map: /scratch/kocevski/351114/expmap_672969601_673228801_4FGL_J0226.5+0938_daily_bin1673.fits
Exposure cube: /scratch/kocevski/351114/ltcube_672969601_673228801_4FGL_J0226.5+0938_daily_bin1673.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/351114/Model_4FGL_J0226.5+0938_daily_bin1673.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) = 360.512295632

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    103.03       1.0000         .10000E-03   10000.    
     3 'Prefactor '    47.419       1.0000         .10000E-03   10000.    
     4 'Prefactor '    24.220       1.0000         .10000E-03   10000.    
     5 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    54.868       1.0000         .10000E-03   10000.    
     7 'norm      '    4.2195       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .83972E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .24404E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6510.5       1.0000         .10000E-03   10000.    
    12 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11113E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10215E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    16 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    17 'Prefactor '    534.97       1.0000         .10000E-03   10000.    
    18 'Prefactor '    99.623       1.0000         .10000E-03   10000.    
    19 'norm      '    9999.9       1.0000         .10000E-03   10000.    
    20 'Prefactor '    9987.1       1.0000         .10000E-03   10000.    
    21 'Prefactor '    907.49       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .29806E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10450E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10298E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10063E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    29 'Prefactor '    .40772       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   352.2817     FROM MIGRAD    STATUS=CONVERGED    757 CALLS     4382 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.3042        .32017E-06** at limit **
   2  norm          102.93        99.102        .54444E-05    .67460E-04
   3  Prefactor     47.403        49.990        .36056E-05    .75738E-04
   4  Prefactor     24.183        28.439       -.48610E-05   -.38392E-03
   5  norm          .10001E-03    83.369        .80229E-05** at limit **
   6  Prefactor     54.853        63.100        .22649E-05    .54607E-04
   7  norm          4.2223        3.6209        .16134E-05    .54080E-03
   8  Prefactor     .10139E-03    918.60       -.16750E-03** at limit **
   9  Prefactor    10000.0        7076.2       -.62133E-04** at limit **
  10  Prefactor     .10002E-03    840.72        .83729E-04** at limit **
  11  Prefactor     6519.4        8248.1       -.83086E-04   -.27361E-05
  12  Prefactor    10000.0        9232.5       -.36466E-04** at limit **
  13  Prefactor     .10000E-03    461.82       -.16759E-04** at limit **
  14  Prefactor     .10012E-03    648.31       -.42437E-04** at limit **
  15  Prefactor    10000.0        9799.2       -.11592E-03** at limit **
  16  norm         10000.0        2169.9       -.30703E-04** at limit **
  17  Prefactor    10000.0        9945.8        .66306E-03** at limit **
  18  Prefactor     99.655        136.92        .54617E-05    .19843E-04
  19  norm         10000.0        5884.1       -.56137E-03** at limit **
  20  Prefactor    10000.0        5075.4       -.49113E-03** at limit **
  21  Prefactor    10000.0        9852.6        .28291E-03** at limit **
  22  Prefactor     .11104E-03    6151.7        .27111E-04** at limit **
  23  Prefactor     .10000E-03    30.033       -.69566E-06** at limit **
  24  norm          .10000E-03    76.032       -.38988E-05** at limit **
  25  norm          .10000E-03    42.366       -.23225E-05** at limit **
  26  Prefactor     .10000E-03    16.846       -.32997E-06** at limit **
  27  norm          .10000E-03    67.547        .70954E-05** at limit **
  28  Normalizat    .10000E-01    .35603        .41781E-04** at limit **
  29  Prefactor     .40724        .24629       -.86434E-07   -.11141E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 102.932
  Prefactor  = 47.4028
  Prefactor  = 24.1826
  norm       = 0.000100012
  Prefactor  = 54.8526
  norm       = 4.22229
  Prefactor  = 0.000101387
  Prefactor  = 10000
  Prefactor  = 0.000100023
  Prefactor  = 6519.44
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 0.000100117
  Prefactor  = 10000
  norm       = 10000
  Prefactor  = 10000
  Prefactor  = 99.6548
  norm       = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 0.000111039
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Normalizat = 0.01
  Prefactor  = 0.407237
 **********
 **   18 **HESSE 
 **********

 FCN=   352.2817     FROM HESSE     STATUS=OK           533 CALLS     4915 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.3310        .49649E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          102.93        100.14        .19806E-03   -1.3675    
   3  Prefactor     47.403        50.191        .58229E-04   -1.4330    
   4  Prefactor     24.183        28.606        .81394E-04   -1.4724    
   5  norm          .10001E-03    86.191        .17043E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     54.853        63.311        .54152E-04   -1.4225    
   7  norm          4.2223        3.6723        .30885E-04   -1.5297    
   8  Prefactor     .10139E-03    940.47        .20873E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor    10000.0        7063.5        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10002E-03    840.40        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6519.4        8242.0        .41961E-04    .30877    
  12  Prefactor    10000.0        9232.1        .20791E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    460.21        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10012E-03    650.69        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor    10000.0        9800.5        .18334E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm         10000.0        2175.9        .21282E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor    10000.0        9952.6        .88880E-02    1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     99.655        138.27        .20139E-03   -1.3708    
  19  norm         10000.0        5879.6        .19453E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor    10000.0        5178.4        .55730E-03    1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor    10000.0        9862.6        .69625E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .11104E-03    5198.6        .19835E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    30.479        .10118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    77.470        .16164E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    43.143        .12054E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    16.966        .75567E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    68.927        .15247E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .10000E-01    .35711        .64209E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .40724        .25003        .20091E-03   -1.1644    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.64705e-09
Minuit parameter uncertainties:
  1  3.98628e-06
  2  100.306
  3  50.2354
  4  28.6224
  5  0.00201609
  6  63.3889
  7  3.67249
  8  0.0734215
  9  0.0245974
  10  0.00890308
  11  9520.83
  12  0.0493511
  13  0.000960574
  14  0.0176759
  15  0.472304
  16  0.0270541
  17  3.34014
  18  138.718
  19  0.0662157
  20  3.48563
  21  2.2018
  22  1.95425
  23  4.52581e-05
  24  0.000128768
  25  0.000297318
  26  2.63021e-05
  27  0.00058664
  28  7.5371e-06
  29  0.250697
Done.

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

Extracting fit parameters...

4FGL J0226.5+0938
   Spectrum: PowerLaw
257    Prefactor:  6.519e+03  9.521e+03  1.000e-04  1.000e+04 ( 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:  4.072e-01  2.507e-01  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:  1.000e-02  7.537e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.30
Ra Dec: 36.631 9.635
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 3.26e-06 +/- 4.75e-06
Energy Flux (Fixed Index): 1.61e-03 +/- 2.35e-03
calc_int error: parameter max 10000.0 is not large enough
delta logLike = -0.0876061721278

TS (Fixed Index): 1.30
Ra Dec: 36.631 9.635
Photon Flux Upper Limit: -1.00e+00 ph cm-2 s-1
Energy Flux Upper Limit: -7.59e+04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/351114/likelihoodResults_672969601_673228801_4FGL_J0226.5+0938_daily_bin1673.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) = 352.280508438
delta logL = 0.00122244203544

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 352.280508251
delta logL = 0.00122262837732

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Index     '    2.1837       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=   352.2805     FROM MIGRAD    STATUS=CONVERGED     22 CALLS       69 TOTAL
                     EDM=   .12E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1    Index       2.1837        .63047        .65472E-01    .71255E-05
                               ERR DEF=  .500    
Final values: 
  Index      = 2.18373
 **********
 **   18 **HESSE 
 **********

 FCN=   352.2805     FROM HESSE     STATUS=OK             9 CALLS       78 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1    Index       2.1837        .65218        .28101E-02   -.59832    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.10233e-11
Minuit parameter uncertainties:
  1  0.654915
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/351114': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 352.280508251
delta logL = 0.00122262837738

Extracting fit parameters...

4FGL J0226.5+0938
   Spectrum: PowerLaw
257    Prefactor:  6.517e+03  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14) fixed
258        Index:  2.184e+00  6.549e-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:  4.068e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
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:  1.000e-02  0.000e+00  1.000e-02  1.000e+01 ( 1.000e+00) fixed


TS (Free Index): 1.30
Ra Dec: 36.631 9.635
Photon Index (Free Index): 2.18 +/- 0.65
Photon Flux (Free Index): 3.49e-06 +/- 4.82e-06
Energy Flux (Free Index): 1.61e-03 +/- 2.24e-04

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/351114/cmap_HighResolution_672969601_673228801_4FGL_J0226.5+0938_daily_bin1673.png

Cleaning up...

** Nuclear option initiated! **
rmdir /scratch/kocevski/351114

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='-7.59e+04', comment='SUCCESS', photon_flux='3.26e-06', energy_flux2='1.61e-03', photon_flux_error='4.75e-06', dlogl='1.22e-03', energy_flux='1.61e-03', photon_flux2='3.49e-06', job_status='DONE', time_completed='2022-05-03 00:17:20.537727', photon_index_error2='0.65', photon_index2='2.18', ts='1.30', fit_tolerance='1e-08', GAL='0.41', photon_index_error='0.00', photon_flux_upper_limit='-1.00e+00', energy_flux_error2='2.24e-04', EG='0.01', time_epoch_completed='1651562240.54', return_code='0', job_id='351114', GAL2='0.41', EG2='0.01', return_code2='0', energy_flux_error='2.35e-03', photon_flux_error2='4.82e-06', ts2='1.30', photon_index='2.15' WHERE bin_id='1673' AND source_name='4FGL J0226.5+0938' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue May  3 00:17:20 PDT 2022

------------------------------------------------------------
Sender: LSF System <lsf@bullet0167>
Subject: Job 351216: <4FGL_J0226.5+0938_daily_bin1673> in cluster <slac> Done

Job <4FGL_J0226.5+0938_daily_bin1673> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue May  3 00:05:40 2022
Job was executed on host(s) <bullet0167>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May  3 00:08:45 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May  3 00:08:45 2022
Terminated at Tue May  3 00:15:07 2022
Results reported at Tue May  3 00:15:07 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0226.5+0938_daily_bin1673 36.6313 9.6351 672969601 673228801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0226.5+0938 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   350.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             312.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   382 sec.
    Turnaround time :                            567 sec.

The output (if any) is above this job summary.


------------------------------------------------------------
Sender: LSF System <lsf@bullet0238>
Subject: Job 351114: <4FGL_J0226.5+0938_daily_bin1673> in cluster <slac> Done

Job <4FGL_J0226.5+0938_daily_bin1673> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Tue May  3 00:05:35 2022
Job was executed on host(s) <bullet0238>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May  3 00:07:55 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May  3 00:07:55 2022
Terminated at Tue May  3 00:17:21 2022
Results reported at Tue May  3 00:17:21 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0226.5+0938_daily_bin1673 36.6313 9.6351 672969601 673228801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0226.5+0938 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   347.18 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             269.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   565 sec.
    Turnaround time :                            706 sec.

The output (if any) is above this job summary.

