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 113 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 = 17315
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0226.5+0938_weekly_bin612
RA = 36.6313, Dec = 9.6351
tmin = 609120001, tmax = 609724801
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='524103', job_status='RUN', time_executed='2021-07-04 17:24:51.688147', time_epoch_executed='1625444691.69' WHERE source_name='4FGL J0226.5+0938' and cadence='weekly' and bin_id='612'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/524103

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/524103/ft1_4FGL_J0226.5+0938_weekly_bin612.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/524103/ft2_4FGL_J0226.5+0938_weekly_bin612.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/524103/ft1_4FGL_J0226.5+0938_weekly_bin612.fits outfile=/scratch/kocevski/524103/ft1_filteredMKT_4FGL_J0226.5+0938_weekly_bin612.fits ra=36.6313 dec=9.6351 rad=12.0 tmin=609120001.0 tmax=609724801.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 7.77
user 5.86
sys 0.29

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/524103/ft1_filtered_4FGL_J0226.5+0938_weekly_bin612.fits" evtable="EVENTS" scfile=/scratch/kocevski/524103/ft2_4FGL_J0226.5+0938_weekly_bin612.fits sctable="SC_DATA" outfile=/scratch/kocevski/524103/ltcube_609120001_609724801_4FGL_J0226.5+0938_weekly_bin612.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/524103/ft2_4FGL_J0226.5+0938_weekly_bin612.fits
.....................!
real 28.43
user 27.42
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/524103/ft1_filtered_4FGL_J0226.5+0938_weekly_bin612.fits evtable="EVENTS" scfile=/scratch/kocevski/524103/ft2_4FGL_J0226.5+0938_weekly_bin612.fits sctable="SC_DATA" expcube=/scratch/kocevski/524103/ltcube_609120001_609724801_4FGL_J0226.5+0938_weekly_bin612.fits outfile=/scratch/kocevski/524103/expmap_609120001_609724801_4FGL_J0226.5+0938_weekly_bin612.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/524103/ltcube_609120001_609724801_4FGL_J0226.5+0938_weekly_bin612.fits
.....................!
real 206.10
user 185.34
sys 4.26

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/524103/ft1_filtered_4FGL_J0226.5+0938_weekly_bin612.fits scfile=/scratch/kocevski/524103/ft2_4FGL_J0226.5+0938_weekly_bin612.fits outfile=/scratch/kocevski/524103/cmap_609120001_609724801_4FGL_J0226.5+0938_weekly_bin612.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.61
user 0.41
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/524103/ft1_filtered_4FGL_J0226.5+0938_weekly_bin612.fits scfile=/scratch/kocevski/524103/ft2_4FGL_J0226.5+0938_weekly_bin612.fits outfile=/scratch/kocevski/524103/cmap_HighResolution_609120001_609724801_4FGL_J0226.5+0938_weekly_bin612.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.71
user 0.42
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.5687       1.0000         .10000E-03   10000.    
     2 'norm      '    162.71       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
     5 'norm      '    .10096E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10328E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .72077       1.0000         .10000E-03   10000.    
     8 'Prefactor '    58.647       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    320.70       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    46.459       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10224E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    41.653       1.0000         .10000E-03   10000.    
    16 'norm      '    .10327E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    81.584       1.0000         .10000E-03   10000.    
    19 'norm      '    .10092E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.001       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.1937       1.0000         .10000E-03   10000.    
    24 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    5.2063       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .85962       1.0000         .10000E-03   10000.    
    27 'norm      '    .94881E-01   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.3440       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=   2712.081     FROM MIGRAD    STATUS=CONVERGED    117 CALLS     4035 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.5624        1.1535        .39792E-07    .83928E-04
   2  norm          162.71        1.0041       -.11064E-07    .36492E-03
   3  Prefactor     .14012E-03    44.874        .10269E-04** at limit **
   4  Prefactor    10000.0        51.015        .17610E-04** at limit **
   5  norm          .10338E-03    24.653        .45948E-05** at limit **
   6  Prefactor     .10000E-03    8.1578        .55109E-05** at limit **
   7  norm          .72142        1.7918        .14364E-05   -.22060E-04
   8  Prefactor     58.632        1.9886       -.32565E-06    .26899E-02
   9  Prefactor     .10000E-03    41.907        .12769E-04** at limit **
  10  Prefactor     .10060E-03    12.679        .33041E-05** at limit **
  11  Prefactor     320.70        1.0272       -.19968E-07    .10365E-02
  12  Prefactor     .10003E-03    15.718        .38685E-05** at limit **
  13  Prefactor     46.434        2.8334       -.54898E-06    .27350E-02
  14  Prefactor     .10034E-03    19.116        .73780E-07** at limit **
  15  Prefactor     41.751        7.3411        .11217E-05    .11901E-02
  16  norm          .10000E-03    13.941       -.15743E-04** at limit **
  17  Prefactor     .10003E-03    39.391        .10091E-05** at limit **
  18  Prefactor     81.551        3.6062       -.53391E-06    .41771E-02
  19  norm          .10147E-03    19.866        .66040E-05** at limit **
  20  Prefactor     11.033        2.6090       -.30704E-06    .26792E-02
  21  Prefactor     .11829E-03    38.095        .11047E-04** at limit **
  22  Prefactor     .10156E-03    19.664        .10240E-05** at limit **
  23  Prefactor     2.1880        1.2563        .16970E-06    .85513E-04
  24  norm          .10019E-03    16.991       -.10118E-04** at limit **
  25  norm          5.2050        1.0223        .85726E-07   -.45053E-04
  26  Prefactor     .85674        8.7415       -.11860E-05   -.23752E-04
  27  norm          .10010E-03    437.37       -.43470E-04** at limit **
  28  Normalizat    .10000E-01    .32008       -.26917E-04** at limit **
  29  Prefactor     1.3441        .11501       -.97697E-05   -.54657E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.56244
  norm       = 162.712
  Prefactor  = 0.000140117
  Prefactor  = 10000
  norm       = 0.00010338
  Prefactor  = 0.0001
  norm       = 0.721417
  Prefactor  = 58.6319
  Prefactor  = 0.0001
  Prefactor  = 0.000100599
  Prefactor  = 320.702
  Prefactor  = 0.000100026
  Prefactor  = 46.4343
  Prefactor  = 0.00010034
  Prefactor  = 41.7507
  norm       = 0.000100002
  Prefactor  = 0.000100027
  Prefactor  = 81.5511
  norm       = 0.000101468
  Prefactor  = 11.0325
  Prefactor  = 0.000118291
  Prefactor  = 0.00010156
  Prefactor  = 2.18799
  norm       = 0.000100188
  norm       = 5.20498
  Prefactor  = 0.856742
  norm       = 0.000100098
  Normalizat = 0.01
  Prefactor  = 1.34406
 **********
 **   18 **HESSE 
 **********

 FCN=   2712.081     FROM HESSE     STATUS=OK           615 CALLS     4650 TOTAL
                     EDM=   .15E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.5624        16.862        .39145E-02   -1.5196    
   2  norm          162.71        238.64        .79041E-03   -1.3150    
   3  Prefactor     .14012E-03    139.56        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor    10000.0        516.43        .90712E-02    1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10338E-03    44.226        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.1493        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .72142        1.9083        .12141E-01   -1.5538    
   8  Prefactor     58.632        155.26        .13097E-02   -1.4175    
   9  Prefactor     .10000E-03    113.36        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10060E-03    29.747        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     320.70        286.23        .56758E-03   -1.2107    
  12  Prefactor     .10003E-03    15.825        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     46.434        81.720        .14706E-02   -1.4344    
  14  Prefactor     .10034E-03    19.823        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     41.751        54.852        .15528E-02   -1.4415    
  16  norm          .10000E-03    2.0566        .41465E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10003E-03    57.971        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     81.551        66.733        .11117E-02   -1.3899    
  19  norm          .10147E-03    33.763        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     11.033        47.133        .30198E-02   -1.5044    
  21  Prefactor     .11829E-03    92.722        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10156E-03    26.074        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     2.1880        18.320        .69462E-02   -1.5412    
  24  norm          .10019E-03    17.308        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          5.2050        8.6953        .44044E-02   -1.5252    
  26  Prefactor     .85674        8.9407        .12660E-01   -1.5523    
  27  norm          .10010E-03    17.714        .70338E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .10000E-01    .22513        .32252       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     1.3441        .16797        .31884E-01   -.82006    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.47481e-06
Minuit parameter uncertainties:
  1  16.8741
  2  240.08
  3  0.150002
  4  0.520202
  5  0.0244699
  6  1.55349e-05
  7  1.90844
  8  156.347
  9  0.000426287
  10  0.0084457
  11  287.506
  12  0.00128267
  13  81.9182
  14  0.00519536
  15  54.9188
  16  0.000115132
  17  0.00248494
  18  66.794
  19  0.0140871
  20  45.6681
  21  0.082493
  22  0.0127602
  23  12.6672
  24  0.00360592
  25  8.69737
  26  5.53602
  27  0.00263535
  28  1.52819e-06
  29  0.168041
Done.

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

Extracting fit parameters...

4FGL J0226.5+0938
   Spectrum: PowerLaw
257    Prefactor:  3.207e+02  2.875e+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:  1.344e+00  1.680e-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  1.528e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.77
Ra Dec: 36.631 9.635
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 1.60e-07 +/- 1.43e-07
Energy Flux (Fixed Index): 7.91e-05 +/- 7.09e-05

TS (Fixed Index): 2.77
Ra Dec: 36.631 9.635
Photon Flux Upper Limit: 5.43e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.12e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/524103/likelihoodResults_609120001_609724801_4FGL_J0226.5+0938_weekly_bin612.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) = 2711.79018294
delta logL = 0.290547976037

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2711.79015453
delta logL = 0.290576388862

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    470.56       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6621       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3466       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=   2711.790     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      298 TOTAL
                     EDM=   .83E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     469.65        410.02        .94447E-04    .93889E-06
   2  Index         1.6603        .60586        .70701E-02    .69626E-05
   3  Normalizat    .10000E-01    .33414        .12169E-01** at limit **
   4  Prefactor     1.3467        .11087        .16461E-03    .98035E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 469.65
  Index      = 1.66026
  Normalizat = 0.01
  Prefactor  = 1.34667
 **********
 **   18 **HESSE 
 **********

 FCN=   2711.790     FROM HESSE     STATUS=OK            25 CALLS      323 TOTAL
                     EDM=   .84E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     469.65        408.14        .18889E-04   -1.1339    
   2  Index         1.6603        .60316        .28280E-03   -.73145    
   3  Normalizat    .10000E-01    .33436        .24337E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.3467        .11079        .65845E-05   -.81930    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.42475e-11
Minuit parameter uncertainties:
  1  410.711
  2  0.605835
  3  5.82411e-06
  4  0.110809
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/524103': 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) = 2711.79014486
delta logL = 0.290586059653

Extracting fit parameters...

4FGL J0226.5+0938
   Spectrum: PowerLaw
257    Prefactor:  4.697e+02  4.107e+02  1.000e-04  1.000e+04 ( 1.000e-14)
258        Index:  1.660e+00  6.058e-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.347e+00  1.108e-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  5.824e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.35
Ra Dec: 36.631 9.635
Photon Index (Free Index): 1.66 +/- 0.61
Photon Flux (Free Index): 9.50e-08 +/- 1.08e-07
Energy Flux (Free Index): 1.76e-04 +/- 2.63e-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/524103/cmap_HighResolution_609120001_609724801_4FGL_J0226.5+0938_weekly_bin612.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.12e-02', comment='SUCCESS', photon_flux='1.60e-07', energy_flux2='1.76e-04', photon_flux_error='1.43e-07', dlogl='2.91e-01', energy_flux='7.91e-05', photon_flux2='9.50e-08', job_status='DONE', time_completed='2021-07-04 17:35:12.570280', photon_index_error2='0.61', photon_index2='1.66', ts='2.77', fit_tolerance='1e-08', GAL='1.34', photon_index_error='0.00', photon_flux_upper_limit='5.43e-07', energy_flux_error2='2.63e-04', EG='0.01', time_epoch_completed='1625445312.57', return_code='0', job_id='524103', GAL2='1.35', EG2='0.01', return_code2='0', energy_flux_error='7.09e-05', photon_flux_error2='1.08e-07', ts2='3.35', photon_index='2.15' WHERE bin_id='612' AND source_name='4FGL J0226.5+0938' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sun Jul  4 17:35:12 PDT 2021


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

Job <4FGL_J0226.5+0938_weekly_bin612> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Sun Jul  4 17:19:18 2021
Job was executed on host(s) <bullet0167>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jul  4 17:19:20 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:20 2021
Terminated at Sun Jul  4 17:35:17 2021
Results reported at Sun Jul  4 17:35:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0226.5+0938_weekly_bin612 36.6313 9.6351 609120001 609724801 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 :                                   558.02 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             236.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   956 sec.
    Turnaround time :                            959 sec.

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

