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


Performing analysis on: 4FGL_J0226.5+0938_weekly_bin641
RA = 36.6313, Dec = 9.6351
tmin = 626659201, tmax = 627264001
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='524145', job_status='RUN', time_executed='2021-07-04 17:26:22.834180', time_epoch_executed='1625444782.83' WHERE source_name='4FGL J0226.5+0938' and cadence='weekly' and bin_id='641'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/524145

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/524145/ft1_4FGL_J0226.5+0938_weekly_bin641.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/524145/ft2_4FGL_J0226.5+0938_weekly_bin641.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/524145/ft1_4FGL_J0226.5+0938_weekly_bin641.fits outfile=/scratch/kocevski/524145/ft1_filteredMKT_4FGL_J0226.5+0938_weekly_bin641.fits ra=36.6313 dec=9.6351 rad=12.0 tmin=626659201.0 tmax=627264001.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 12.41
user 5.87
sys 0.32

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/524145/ft2_4FGL_J0226.5+0938_weekly_bin641.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/524145/ft1_filteredMKT_4FGL_J0226.5+0938_weekly_bin641.fits evtable="EVENTS" outfile="/scratch/kocevski/524145/ft1_filtered_4FGL_J0226.5+0938_weekly_bin641.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 5.05
user 0.40
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/524145/ft1_filtered_4FGL_J0226.5+0938_weekly_bin641.fits" evtable="EVENTS" scfile=/scratch/kocevski/524145/ft2_4FGL_J0226.5+0938_weekly_bin641.fits sctable="SC_DATA" outfile=/scratch/kocevski/524145/ltcube_626659201_627264001_4FGL_J0226.5+0938_weekly_bin641.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/524145/ft2_4FGL_J0226.5+0938_weekly_bin641.fits
.....................!
real 32.59
user 26.79
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/524145/ft1_filtered_4FGL_J0226.5+0938_weekly_bin641.fits evtable="EVENTS" scfile=/scratch/kocevski/524145/ft2_4FGL_J0226.5+0938_weekly_bin641.fits sctable="SC_DATA" expcube=/scratch/kocevski/524145/ltcube_626659201_627264001_4FGL_J0226.5+0938_weekly_bin641.fits outfile=/scratch/kocevski/524145/expmap_626659201_627264001_4FGL_J0226.5+0938_weekly_bin641.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/524145/ltcube_626659201_627264001_4FGL_J0226.5+0938_weekly_bin641.fits
.....................!
real 214.84
user 185.42
sys 5.09

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/524145/ft1_filtered_4FGL_J0226.5+0938_weekly_bin641.fits scfile=/scratch/kocevski/524145/ft2_4FGL_J0226.5+0938_weekly_bin641.fits outfile=/scratch/kocevski/524145/cmap_626659201_627264001_4FGL_J0226.5+0938_weekly_bin641.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.56
user 0.42
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/524145/ft1_filtered_4FGL_J0226.5+0938_weekly_bin641.fits scfile=/scratch/kocevski/524145/ft2_4FGL_J0226.5+0938_weekly_bin641.fits outfile=/scratch/kocevski/524145/cmap_HighResolution_626659201_627264001_4FGL_J0226.5+0938_weekly_bin641.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 1.45
user 0.43
sys 0.15

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

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

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 631.69271709

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 627.737670895

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.0974       1.0000         .10000E-03   10000.    
     3 'Prefactor '    54.846       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .52279E-01   1.0000         .10000E-03   10000.    
     5 'norm      '    .27586E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .48596E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.1476       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .35057E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.5171       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .48036E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    124.55       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .14187E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .17384E-01   1.0000         .10000E-03   10000.    
    16 'norm      '    .15383E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.2184       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .38360       1.0000         .10000E-03   10000.    
    19 'norm      '    186.56       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.1966       1.0000         .10000E-03   10000.    
    21 'Prefactor '    13.349       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.5180       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .73497E-02   1.0000         .10000E-03   10000.    
    25 'norm      '    .46336       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .28579E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    2.5279       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0873       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=   627.3968     FROM MIGRAD    STATUS=CONVERGED    494 CALLS      973 TOTAL
                     EDM=   .12E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.6926        .20972E-06** at limit **
   2  norm          4.8741        213.19       -.15283E-04   -.94343E-07
   3  Prefactor     54.792        40.103        .12738E-06   -.31792E-05
   4  Prefactor     .10000E-03    175.74        .37772E-05** at limit **
   5  norm          .10000E-03    13.474       -.17259E-06** at limit **
   6  Prefactor     .10000E-03    5.4601        .51251E-06** at limit **
   7  norm          .10000E-03    .50016       -.18882E-06** at limit **
   8  Prefactor     .10000E-03    73.512       -.13637E-05** at limit **
   9  Prefactor     .10000E-03    2074.7       -.28749E-04** at limit **
  10  Prefactor     .10000E-03    51.404       -.75385E-06** at limit **
  11  Prefactor     .10000E-03    287.89       -.83038E-05** at limit **
  12  Prefactor     .10000E-03    171.55        .19055E-07** at limit **
  13  Prefactor     129.89        149.26        .36853E-05   -.37628E-05
  14  Prefactor     .10000E-03    38.917        .38596E-06** at limit **
  15  Prefactor     .10000E-03    406.76        .10827E-04** at limit **
  16  norm          .10000E-03    69.814       -.30099E-05** at limit **
  17  Prefactor     .10000E-03    1193.5        .77894E-05** at limit **
  18  Prefactor     .10000E-03    101.76        .14597E-05** at limit **
  19  norm          .10000E-03    357.68        .15194E-04** at limit **
  20  Prefactor     3.1966        8584.9         .0000         .0000    
  21  Prefactor     2072.6        2288.9       -.10733E-04   -.22613E-05
  22  Prefactor     2.5180        8576.2         .0000         .0000    
  23  Prefactor     .10000E-03    14.669        .43446E-06** at limit **
  24  norm          .10000E-03    35.087       -.45782E-06** at limit **
  25  norm          .10000E-03    104.67        .29113E-05** at limit **
  26  Prefactor     .10000E-03    30.808        .82864E-06** at limit **
  27  norm          .10001E-03    769.58       -.26128E-04** at limit **
  28  Normalizat    .10000E-01    .67508       -.14710E-04** at limit **
  29  Prefactor     1.0837        .21584       -.41477E-05    .79610E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 4.87409
  Prefactor  = 54.7924
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 129.887
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.19661
  Prefactor  = 2072.58
  Prefactor  = 2.51803
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100007
  Normalizat = 0.01
  Prefactor  = 1.0837
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   627.3968     FROM HESSE     STATUS=FAILED        89 CALLS     1062 TOTAL
                     EDM=   .12E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.6951        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.8741        180.77        .57606E-02   -1.5266    
   3  Prefactor     54.792        39.061        .13541E-02   -1.4226    
   4  Prefactor     .10000E-03    48.332        .56264E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    13.567        .10712E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.2794        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .51216        .79476E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    74.097        .92632E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2082.1        .35115E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    51.464        .98266E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    291.28        .64378E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    172.50        .92605E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     129.89        144.40        .90169E-03   -1.3424    
  14  Prefactor     .10000E-03    38.994        .10257E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    417.93        .91097E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    70.049        .90997E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    1212.8        .56454E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    104.75        .10786E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    368.46        .73905E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     551.80        548.52         .0000       -1.5350    
  21  Prefactor     2072.6        11.109       -.10733E-04   -.62548    
  22  Prefactor     2.5180        1.0212         .0000       -1.5391    
  23  Prefactor     .10000E-03    .20571        .43446E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    .21669       -.45782E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    .30915        .29113E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    .28649        .82864E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10001E-03    .10313       -.26128E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .10000E-01    .25505       -.14710E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     1.0837        1.1556       -.41477E-05   -.89989    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.18337e-11
Minuit parameter uncertainties:
  1  1.29023e-08
  2  59.5602
  3  39.0794
  4  0.000209687
  5  2.24404e-06
  6  1.00181e-07
  7  1.50918e-07
  8  8.49973e-06
  9  0.00617405
  10  1.39282e-05
  11  0.000474475
  12  2.26792e-05
  13  144.793
  14  7.54844e-06
  15  0.000338621
  16  8.99829e-05
  17  0.00198097
  18  9.03467e-05
  19  1.80661e-05
  20  1.01279
  21  11.1095
  22  1.02121
  23  1.08311e-06
  24  2.80166e-06
  25  2.44331e-05
  26  3.49239e-07
  27  5.5362e-05
  28  1.45095e-06
  29  1.184
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 627.396838237

Extracting fit parameters...

4FGL J0226.5+0938
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  4.745e-04  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.084e+00  1.184e+00  0.000e+00  1.000e+01 ( 1.000e+00)
510        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
511        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
508   Normalization:  1.000e-02  1.451e-06  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/524145/likelihoodResults_626659201_627264001_4FGL_J0226.5+0938_weekly_bin641.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 627.396857625
delta logL = -1.93880810002e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 627.152603169
delta logL = 0.244235067939

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    8.4266       1.0000          .0000       10.000    
     3 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0599       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=   627.3968     FROM MIGRAD    STATUS=CONVERGED    136 CALLS      446 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    9118.7        .18142E-01** at limit **
   2  Index         1.4059        7.0611        .11609       -.17737E-07
   3  Normalizat    .10000E-01    .48026E-01    .99795E-02** at limit **
   4  Prefactor     1.0837        .50156E-01    .15348E-03    .67919E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100011
  Index      = 1.4059
  Normalizat = 0.01
  Prefactor  = 1.0837
 **********
 **   18 **HESSE 
 **********

 FCN=   627.3968     FROM HESSE     STATUS=OK            23 CALLS      469 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    439.90        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.4059        8.7724        .46436E-02   -.80210    
   3  Normalizat    .10000E-01    .71131        .19959E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.0837        .19486        .30697E-04   -.89989    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.45964e-10
Minuit parameter uncertainties:
  1  0.00438993
  2  2195.33
  3  3.22199e-06
  4  0.194989
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/524145': 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) = 627.396838187
delta logL = 4.98555436934e-08

Extracting fit parameters...

4FGL J0226.5+0938
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  4.390e-03  1.000e-04  1.000e+04 ( 1.000e-14)
258        Index:  1.406e+00  2.195e+03  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.084e+00  1.950e-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  3.222e-06  1.000e-02  1.000e+01 ( 1.000e+00)


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

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.02e-02', job_status='DONE', photon_flux_upper_limit='7.93e-07', time_completed='2021-07-04 17:34:04.123186', job_id='524145', GAL2='1.08', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1625445244.12', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='101', GAL='1.08', dlogl='4.99e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='641' AND source_name='4FGL J0226.5+0938' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sun Jul  4 17:34:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0140>
Subject: Job 524145: <4FGL_J0226.5+0938_weekly_bin641> in cluster <slac> Done

Job <4FGL_J0226.5+0938_weekly_bin641> 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) <bullet0140>, 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:34:11 2021
Results reported at Sun Jul  4 17:34:11 2021

Your job looked like:

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

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

