aklog: Couldn't determine realm of user:aklog: unknown RPC error (-1765328189)  while getting realm
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 12 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 = 16994
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0226.5+0938_weekly_bin642
RA = 36.6313, Dec = 9.6351
tmin = 627264001, tmax = 627868801
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='524146', job_status='RUN', time_executed='2021-07-04 17:23:36.100862', time_epoch_executed='1625444616.1' WHERE source_name='4FGL J0226.5+0938' and cadence='weekly' and bin_id='642'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/524146

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/524146/ft1_4FGL_J0226.5+0938_weekly_bin642.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/524146/ft2_4FGL_J0226.5+0938_weekly_bin642.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/524146/ft1_4FGL_J0226.5+0938_weekly_bin642.fits outfile=/scratch/kocevski/524146/ft1_filteredMKT_4FGL_J0226.5+0938_weekly_bin642.fits ra=36.6313 dec=9.6351 rad=12.0 tmin=627264001.0 tmax=627868801.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 6.22
user 5.23
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/524146/ft2_4FGL_J0226.5+0938_weekly_bin642.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/524146/ft1_filteredMKT_4FGL_J0226.5+0938_weekly_bin642.fits evtable="EVENTS" outfile="/scratch/kocevski/524146/ft1_filtered_4FGL_J0226.5+0938_weekly_bin642.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.91
user 0.37
sys 0.19

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/524146/ft1_filtered_4FGL_J0226.5+0938_weekly_bin642.fits" evtable="EVENTS" scfile=/scratch/kocevski/524146/ft2_4FGL_J0226.5+0938_weekly_bin642.fits sctable="SC_DATA" outfile=/scratch/kocevski/524146/ltcube_627264001_627868801_4FGL_J0226.5+0938_weekly_bin642.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/524146/ft2_4FGL_J0226.5+0938_weekly_bin642.fits
.....................!
real 31.36
user 28.99
sys 0.44

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/524146/ft1_filtered_4FGL_J0226.5+0938_weekly_bin642.fits evtable="EVENTS" scfile=/scratch/kocevski/524146/ft2_4FGL_J0226.5+0938_weekly_bin642.fits sctable="SC_DATA" expcube=/scratch/kocevski/524146/ltcube_627264001_627868801_4FGL_J0226.5+0938_weekly_bin642.fits outfile=/scratch/kocevski/524146/expmap_627264001_627868801_4FGL_J0226.5+0938_weekly_bin642.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/524146/ltcube_627264001_627868801_4FGL_J0226.5+0938_weekly_bin642.fits
.....................!
real 198.34
user 187.49
sys 5.02

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/524146/ft1_filtered_4FGL_J0226.5+0938_weekly_bin642.fits scfile=/scratch/kocevski/524146/ft2_4FGL_J0226.5+0938_weekly_bin642.fits outfile=/scratch/kocevski/524146/cmap_627264001_627868801_4FGL_J0226.5+0938_weekly_bin642.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 1.82
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/524146/ft1_filtered_4FGL_J0226.5+0938_weekly_bin642.fits scfile=/scratch/kocevski/524146/ft2_4FGL_J0226.5+0938_weekly_bin642.fits outfile=/scratch/kocevski/524146/cmap_HighResolution_627264001_627868801_4FGL_J0226.5+0938_weekly_bin642.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.67
user 0.40
sys 0.18

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/524146/ft1_filtered_4FGL_J0226.5+0938_weekly_bin642.fits', '/scratch/kocevski/524146/ft2_4FGL_J0226.5+0938_weekly_bin642.fits', expMap='/scratch/kocevski/524146/expmap_627264001_627868801_4FGL_J0226.5+0938_weekly_bin642.fits', expCube='/scratch/kocevski/524146/ltcube_627264001_627868801_4FGL_J0226.5+0938_weekly_bin642.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/524146/Model_4FGL_J0226.5+0938_weekly_bin642.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/524146/ft1_filtered_4FGL_J0226.5+0938_weekly_bin642.fits
Spacecraft file(s): /scratch/kocevski/524146/ft2_4FGL_J0226.5+0938_weekly_bin642.fits
Exposure map: /scratch/kocevski/524146/expmap_627264001_627868801_4FGL_J0226.5+0938_weekly_bin642.fits
Exposure cube: /scratch/kocevski/524146/ltcube_627264001_627868801_4FGL_J0226.5+0938_weekly_bin642.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/524146/Model_4FGL_J0226.5+0938_weekly_bin642.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) = 706.69859522

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    25.089       1.0000         .10000E-03   10000.    
     5 'norm      '    29.094       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10568E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .91592       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10171E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .34191E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    906.21       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    52.044       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .22338E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .13933E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10833E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    80.404       1.0000         .10000E-03   10000.    
    19 'norm      '    .10102E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    468.09       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11846E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11472E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10448E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    32.596       1.0000         .10000E-03   10000.    
    27 'norm      '    .12518E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.8006       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .69978E-06   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=   706.5991     FROM MIGRAD    STATUS=CONVERGED    743 CALLS     3716 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.8929        .28972E-08** at limit **
   2  norm          .10000E-03    14.298       -.49348E-08** at limit **
   3  Prefactor     .10000E-03    8.2620       -.21634E-07** at limit **
   4  Prefactor     25.091        16.285       -.31461E-06   -.36673E-03
   5  norm          29.095        24.462       -.10718E-06   -.13004E-03
   6  Prefactor     .10000E-03    9.4046       -.12263E-05** at limit **
   7  norm          .91700        3.6205       -.26905E-06   -.41419E-03
   8  Prefactor     .10000E-03    68.284       -.75238E-06** at limit **
   9  Prefactor     .10001E-03    415.68        .33406E-05** at limit **
  10  Prefactor     .10000E-03    21.468       -.44343E-07** at limit **
  11  Prefactor     904.94        801.38       -.83001E-06   -.32339E-04
  12  Prefactor     .10000E-03    49.803        .31749E-07** at limit **
  13  Prefactor     52.084        176.66        .87534E-06   -.31818E-04
  14  Prefactor     .10010E-03    1199.8       -.13062E-04** at limit **
  15  Prefactor     .10000E-03    85.786        .10773E-05** at limit **
  16  norm          .10000E-03    5.9969        .28869E-05** at limit **
  17  Prefactor     .10000E-03    390.41        .79006E-07** at limit **
  18  Prefactor     80.403        114.88       -.61051E-06   -.37519E-04
  19  norm          .10000E-03    113.27        .51351E-08** at limit **
  20  Prefactor     469.03        639.30       -.35141E-05   -.52205E-05
  21  Prefactor     .10000E-03    721.18        .93374E-06** at limit **
  22  Prefactor     .10001E-03    6184.0       -.17112E-05** at limit **
  23  Prefactor     .10000E-03    27.361       -.90442E-08** at limit **
  24  norm          .10000E-03    92.378        .64497E-08** at limit **
  25  norm          .10000E-03    56.266       -.25638E-07** at limit **
  26  Prefactor     32.623        46.642       -.95556E-06   -.66735E-04
  27  norm          .10001E-03    2287.2       -.15621E-05** at limit **
  28  Normalizat    1.8001        .39227       -.61581E-05   -.32772E-03
  29  Prefactor     .43421E-11    .42052        .26659E-04** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.0912
  norm       = 29.0951
  Prefactor  = 0.000100001
  norm       = 0.916995
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 904.939
  Prefactor  = 0.0001
  Prefactor  = 52.084
  Prefactor  = 0.000100105
  Prefactor  = 0.000100001
  norm       = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 80.4035
  norm       = 0.0001
  Prefactor  = 469.033
  Prefactor  = 0.000100001
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 32.6228
  norm       = 0.000100006
  Normalizat = 1.80009
  Prefactor  = 4.34208e-12
 **********
 **   18 **HESSE 
 **********

 FCN=   706.5991     FROM HESSE     STATUS=OK           527 CALLS     4243 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.8932        .51239E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    14.299        .98216E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.2637        .74646E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     25.091        16.342        .78904E-04   -1.4706    
   5  norm          29.095        24.457        .74277E-04   -1.4629    
   6  Prefactor     .10000E-03    9.3331        .79028E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .91700        3.5110        .85574E-04   -1.5516    
   8  Prefactor     .10000E-03    68.259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10001E-03    414.71        .21334E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    21.469        .12036E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     904.94        800.71        .69670E-04   -.95969    
  12  Prefactor     .10000E-03    49.805        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     52.084        174.68        .55594E-04   -1.4263    
  14  Prefactor     .10010E-03    1192.8        .18268E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    85.687        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    5.4146        .60328E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    390.38        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     80.403        115.00        .44790E-04   -1.3912    
  19  norm          .10000E-03    113.27        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     469.03        639.93        .94684E-04   -1.1342    
  21  Prefactor     .10000E-03    720.93        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10001E-03    6183.6        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    27.362        .13587E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    92.378        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    56.266        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     32.623        46.678        .70184E-04   -1.4565    
  27  norm          .10001E-03    2286.6        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.8001        .39577        .22316E-03   -.69661    
  29  Prefactor     .43421E-11    .86860        .95221E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.96223e-09
Minuit parameter uncertainties:
  1  1.29802e-06
  2  4.21253e-06
  3  8.96107e-06
  4  16.3448
  5  24.465
  6  0.000202175
  7  3.51179
  8  0.000344734
  9  0.00358977
  10  1.67616e-05
  11  811.485
  12  5.41746e-06
  13  176.445
  14  0.0228049
  15  0.000522116
  16  0.000317889
  17  0.000563232
  18  115.322
  19  4.39571e-05
  20  650.131
  21  0.00162456
  22  0.00820138
  23  1.64992e-05
  24  2.79571e-05
  25  4.86628e-06
  26  46.7303
  27  0.00780948
  28  0.396479
  29  3.94272e-06
Done.

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

Extracting fit parameters...

4FGL J0226.5+0938
   Spectrum: PowerLaw
257    Prefactor:  9.049e+02  8.115e+02  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.342e-12  3.943e-06  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.800e+00  3.965e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.87
Ra Dec: 36.631 9.635
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 4.52e-07 +/- 4.05e-07
Energy Flux (Fixed Index): 2.23e-04 +/- 2.00e-04

TS (Fixed Index): 3.87
Ra Dec: 36.631 9.635
Photon Flux Upper Limit: 1.46e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.11e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/524146/likelihoodResults_627264001_627868801_4FGL_J0226.5+0938_weekly_bin642.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) = 706.188985093
delta logL = 0.410135845882

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 706.187138792
delta logL = 0.411982147377

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    307.85       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9337       1.0000          .0000       10.000    
     3 'Normalizat'    1.7681       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .54084E-06   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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   706.1871     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      319 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     307.90        550.10        .11578E-03   -.10329E-03
   2  Index         2.9337        .90956        .19963E-03   -.15286E-03
   3  Normalizat    1.7681        .33146        .22325E-03   -.60036E-04
   4  Prefactor     .99959E-11    1.2171        .10100E-01** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 307.903
  Index      = 2.93366
  Normalizat = 1.76809
  Prefactor  = 9.99589e-12
 **********
 **   18 **HESSE 
 **********

 FCN=   706.1871     FROM HESSE     STATUS=OK            23 CALLS      342 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     307.90        544.67        .23157E-04   -1.2180    
   2  Index         2.9337        .90038        .79850E-05   -.42604    
   3  Normalizat    1.7681        .33045        .44650E-04   -.70500    
   4  Prefactor     .99959E-11    1.2191        .20200E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.91203e-10
Minuit parameter uncertainties:
  1  554.124
  2  0.90635
  3  0.330867
  4  7.1321e-06
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/524146': 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) = 706.187138574
delta logL = 0.411982365205

Extracting fit parameters...

4FGL J0226.5+0938
   Spectrum: PowerLaw
257    Prefactor:  3.079e+02  5.541e+02  1.000e-04  1.000e+04 ( 1.000e-14)
258        Index:  2.934e+00  9.063e-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:  9.996e-12  7.132e-06  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.768e+00  3.309e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.73
Ra Dec: 36.631 9.635
Photon Index (Free Index): 2.93 +/- 0.91
Photon Flux (Free Index): 9.26e-07 +/- 8.42e-07
Energy Flux (Free Index): 1.91e-04 +/- 1.38e-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/524146/cmap_HighResolution_627264001_627868801_4FGL_J0226.5+0938_weekly_bin642.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.11e-01', comment='SUCCESS', photon_flux='4.52e-07', energy_flux2='1.91e-04', photon_flux_error='4.05e-07', dlogl='4.12e-01', energy_flux='2.23e-04', photon_flux2='9.26e-07', job_status='DONE', time_completed='2021-07-04 17:31:26.385303', photon_index_error2='0.91', photon_index2='2.93', ts='3.87', fit_tolerance='1e-08', GAL='0.00', photon_index_error='0.00', photon_flux_upper_limit='1.46e-06', energy_flux_error2='1.38e-04', EG='1.80', time_epoch_completed='1625445086.39', return_code='0', job_id='524146', GAL2='0.00', EG2='1.77', return_code2='0', energy_flux_error='2.00e-04', photon_flux_error2='8.42e-07', ts2='4.73', photon_index='2.15' WHERE bin_id='642' AND source_name='4FGL J0226.5+0938' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sun Jul  4 17:31:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0142>
Subject: Job 524146: <4FGL_J0226.5+0938_weekly_bin642> in cluster <slac> Done

Job <4FGL_J0226.5+0938_weekly_bin642> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Sun Jul  4 17:19:21 2021
Job was executed on host(s) <bullet0142>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jul  4 17:19:23 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jul  4 17:19:23 2021
Terminated at Sun Jul  4 17:31:33 2021
Results reported at Sun Jul  4 17:31:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0226.5+0938_weekly_bin642 36.6313 9.6351 627264001 627868801 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 :                                   406.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             245.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   730 sec.
    Turnaround time :                            732 sec.

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

