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


Performing analysis on: 4FGL_J0226.5+0938_weekly_bin505
RA = 36.6313, Dec = 9.6351
tmin = 544406401, tmax = 545011201
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='522873', job_status='RUN', time_executed='2021-07-04 17:19:01.797865', time_epoch_executed='1625444341.8' WHERE source_name='4FGL J0226.5+0938' and cadence='weekly' and bin_id='505'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/522873

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

Retrieving the FT1 file...

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

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

Retrieving 97 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/522873/ft1_4FGL_J0226.5+0938_weekly_bin505.fits


Retrieving the FT1 file...

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

Retrieving 97 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/522873/ft2_4FGL_J0226.5+0938_weekly_bin505.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/522873/ft1_4FGL_J0226.5+0938_weekly_bin505.fits outfile=/scratch/kocevski/522873/ft1_filteredMKT_4FGL_J0226.5+0938_weekly_bin505.fits ra=36.6313 dec=9.6351 rad=12.0 tmin=544406401.0 tmax=545011201.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 13.46
user 11.97
sys 0.68

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/522873/ft2_4FGL_J0226.5+0938_weekly_bin505.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/522873/ft1_filteredMKT_4FGL_J0226.5+0938_weekly_bin505.fits evtable="EVENTS" outfile="/scratch/kocevski/522873/ft1_filtered_4FGL_J0226.5+0938_weekly_bin505.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 2.11
user 0.36
sys 0.20

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/522873/ft1_filtered_4FGL_J0226.5+0938_weekly_bin505.fits" evtable="EVENTS" scfile=/scratch/kocevski/522873/ft2_4FGL_J0226.5+0938_weekly_bin505.fits sctable="SC_DATA" outfile=/scratch/kocevski/522873/ltcube_544406401_545011201_4FGL_J0226.5+0938_weekly_bin505.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/522873/ft2_4FGL_J0226.5+0938_weekly_bin505.fits
.....................!
real 22.32
user 21.26
sys 0.40

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/522873/ft1_filtered_4FGL_J0226.5+0938_weekly_bin505.fits evtable="EVENTS" scfile=/scratch/kocevski/522873/ft2_4FGL_J0226.5+0938_weekly_bin505.fits sctable="SC_DATA" expcube=/scratch/kocevski/522873/ltcube_544406401_545011201_4FGL_J0226.5+0938_weekly_bin505.fits outfile=/scratch/kocevski/522873/expmap_544406401_545011201_4FGL_J0226.5+0938_weekly_bin505.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/522873/ltcube_544406401_545011201_4FGL_J0226.5+0938_weekly_bin505.fits
.....................!
real 196.93
user 185.50
sys 5.51

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/522873/ft1_filtered_4FGL_J0226.5+0938_weekly_bin505.fits scfile=/scratch/kocevski/522873/ft2_4FGL_J0226.5+0938_weekly_bin505.fits outfile=/scratch/kocevski/522873/cmap_544406401_545011201_4FGL_J0226.5+0938_weekly_bin505.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.46
user 0.41
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/522873/ft1_filtered_4FGL_J0226.5+0938_weekly_bin505.fits scfile=/scratch/kocevski/522873/ft2_4FGL_J0226.5+0938_weekly_bin505.fits outfile=/scratch/kocevski/522873/cmap_HighResolution_544406401_545011201_4FGL_J0226.5+0938_weekly_bin505.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.40
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .25256E-02   1.0000         .10000E-03   10000.    
     2 'norm      '    .43159       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10075       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .29146E-02   1.0000         .10000E-03   10000.    
     5 'norm      '    .15406E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    21.923       1.0000         .10000E-03   10000.    
     7 'norm      '    1.5829       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.3999       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.4285       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .40368E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.4707       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.7716       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .54074       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .22870E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.9562       1.0000         .10000E-03   10000.    
    16 'norm      '    1.7400       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.2214       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .73153E-01   1.0000         .10000E-03   10000.    
    19 'norm      '    2.7189       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.1966       1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.1829       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.5180       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11721E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .27191E-01   1.0000         .10000E-03   10000.    
    25 'norm      '    .12172       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .14390E-02   1.0000         .10000E-03   10000.    
    27 'norm      '    4.6270       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0780       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .42529       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   274.4163     FROM MIGRAD    STATUS=CONVERGED    226 CALLS      465 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.555        .10004E-01** at limit **
   2  norm          .10000E-03    83.036        .10988E-01** at limit **
   3  Prefactor     .10000E-03    47.771        .95148E-02** at limit **
   4  Prefactor     .13794E-03    146.18        .99297E-02** at limit **
   5  norm          .10000E-03    43.764        .90712E-02** at limit **
   6  Prefactor     22.007        25.673        .21387E-02   -.13168E-01
   7  norm          1.5845        2.6490        .76509E-02    1.3392    
   8  Prefactor     .10029E-03    312.13        .91689E-02** at limit **
   9  Prefactor     9.4285        1.0014         .0000         .0000    
  10  Prefactor     .14449E-03    .23724       -.51749E-03** at limit **
  11  Prefactor     .10003E-03    .33641E-01   -.48123E-03** at limit **
  12  Prefactor     4.7716        1.0056         .0000         .0000    
  13  Prefactor     .10007E-03    .32695       -.50233E-04** at limit **
  14  Prefactor     .12197E-03    .25262        .18244E-03** at limit **
  15  Prefactor     1.9562        1.0371         .0000         .0000    
  16  norm          1.7400        1.0487         .0000         .0000    
  17  Prefactor     3.2214        1.0126         .0000         .0000    
  18  Prefactor     .10000E-03    .22007        .53797E-04** at limit **
  19  norm          .10049E-03    .95317E-01    .23459E-03** at limit **
  20  Prefactor     3.1966        1.0128         .0000         .0000    
  21  Prefactor     6.1829        1.0033         .0000         .0000    
  22  Prefactor     2.5180        1.0212         .0000         .0000    
  23  Prefactor     .10000E-03    .20571        .25538E-04** at limit **
  24  norm          .10066E-03    .20968        .81560E-04** at limit **
  25  norm          .10001E-03    .23108        .45462E-04** at limit **
  26  Prefactor     .10000E-03    .26273       -.33018E-04** at limit **
  27  norm          4.6270        1.0060         .0000         .0000    
  28  Normalizat    1.0796        1.1737       -.58933E-04   -.73924E-05
  29  Prefactor     .42427        .75913        .71815E-05   -.14666E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.000137935
  norm       = 0.000100003
  Prefactor  = 22.0067
  norm       = 1.58453
  Prefactor  = 0.000100293
  Prefactor  = 9.42854
  Prefactor  = 0.000144493
  Prefactor  = 0.000100025
  Prefactor  = 4.77158
  Prefactor  = 0.00010007
  Prefactor  = 0.000121967
  Prefactor  = 1.95624
  norm       = 1.74003
  Prefactor  = 3.22138
  Prefactor  = 0.000100001
  norm       = 0.000100489
  Prefactor  = 3.19661
  Prefactor  = 6.1829
  Prefactor  = 2.51803
  Prefactor  = 0.0001
  norm       = 0.000100663
  norm       = 0.000100006
  Prefactor  = 0.0001
  norm       = 4.62701
  Normalizat = 1.07965
  Prefactor  = 0.42427
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   274.4163     FROM HESSE     STATUS=FAILED        27 CALLS      492 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    21.555        .10004E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    83.036        .10988E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    47.771        .95148E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .13794E-03    146.18        .99297E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    43.764        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     22.007        25.673        .21387E-02   -1.4769    
   7  norm          1.5845        2.6490        .76509E-02   -1.5456    
   8  Prefactor     .10029E-03    312.13        .91689E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     494.68        485.22         .0000       -1.5094    
  10  Prefactor     .14449E-03    .23724       -.51749E-03   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10003E-03    .33641E-01   -.48123E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.7716        1.0056         .0000       -1.5271    
  13  Prefactor     .10007E-03    .32695       -.50233E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .12197E-03    .25262        .18244E-03   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.9562        1.0371         .0000       -1.5428    
  16  norm          1.7400        1.0487         .0000       -1.5444    
  17  Prefactor     3.2214        1.0126         .0000       -1.5349    
  18  Prefactor     .10000E-03    .22007        .53797E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10049E-03    .95317E-01    .23459E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.1966        1.0128         .0000       -1.5350    
  21  Prefactor     6.1829        1.0033         .0000       -1.5211    
  22  Prefactor     2.5180        1.0212         .0000       -1.5391    
  23  Prefactor     .10000E-03    .20571        .25538E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10066E-03    .20968        .81560E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10001E-03    .23108        .45462E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    .26273       -.33018E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          4.6270        1.0060         .0000       -1.5278    
  28  Normalizat    1.0796        1.1737       -.58933E-04   -.90408    
  29  Prefactor     .42427        .75913        .71815E-05   -1.1559    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.14409e-09
Minuit parameter uncertainties:
  1  1.25974e-05
  2  0.00105739
  3  0.000220725
  4  0.149302
  5  0.000754568
  6  25.686
  7  2.64924
  8  0.0192138
  9  1.00141
  10  0.00649789
  11  5.80339e-05
  12  1.0056
  13  0.000302952
  14  0.00471144
  15  1.0371
  16  1.04876
  17  1.01258
  18  2.24272e-05
  19  0.000431923
  20  1.01279
  21  1.00331
  22  1.02121
  23  9.90229e-07
  24  0.00074589
  25  7.64949e-05
  26  1.73976e-06
  27  1.00596
  28  1.20398
  29  0.778329
Done.

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

Extracting fit parameters...

4FGL J0226.5+0938
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  5.803e-05  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.243e-01  7.783e-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.080e+00  1.204e+00  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/522873/likelihoodResults_544406401_545011201_4FGL_J0226.5+0938_weekly_bin505.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) = 274.416261384
delta logL = -4.28938193409e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 274.416261379
delta logL = -4.28484338499e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96171E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1507       1.0000          .0000       10.000    
     3 'Normalizat'    1.0796       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .42428       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=   274.4163     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      199 TOTAL
                     EDM=   .87E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10895E-03    1505.5        .90731E-02** at limit **
   2  Index         2.1099        8.8381        .50000        .31656E-06
   3  Normalizat    1.0796        .22360E-01    .38896E-01   -.52622E-04
   4  Prefactor     .42428        .16488E-01    .57927E-01    .16861E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000108951
  Index      = 2.10987
  Normalizat = 1.07963
  Prefactor  = 0.424284
 **********
 **   18 **HESSE 
 **********

 FCN=   274.4163     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      230 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10895E-03    7893.2        .18146E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1099        5.6919        .50000       -.61631    
   3  Normalizat    1.0796        .48727E-01    .22682E-03   -.90409    
   4  Prefactor     .42428        .35867E-01    .25632E-03   -1.1559    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.11241e-09
Minuit parameter uncertainties:
  1  0.517229
  2  1980.09
  3  0.0487294
  4  0.0358693
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/522873': 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): 102
logL (Free Index) = 274.416257095
delta logL = -9.10347353056e-10

Extracting fit parameters...

4FGL J0226.5+0938
   Spectrum: PowerLaw
257    Prefactor:  1.090e-04  5.172e-01  1.000e-04  1.000e+04 ( 1.000e-14)
258        Index:  2.110e+00  1.980e+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:  4.243e-01  3.587e-02  0.000e+00  1.000e+01 ( 1.000e+00)
510        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
511        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
508   Normalization:  1.080e+00  4.873e-02  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/522873/cmap_HighResolution_544406401_545011201_4FGL_J0226.5+0938_weekly_bin505.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.04e-01', job_status='DONE', photon_flux_upper_limit='2.69e-06', time_completed='2021-07-04 17:26:59.712058', job_id='522873', GAL2='0.42', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1625444819.71', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.42', dlogl='-9.10e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='505' AND source_name='4FGL J0226.5+0938' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sun Jul  4 17:26:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 522873: <4FGL_J0226.5+0938_weekly_bin505> in cluster <slac> Done

Job <4FGL_J0226.5+0938_weekly_bin505> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Jul  4 17:15:00 2021
Job was executed on host(s) <bullet0075>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jul  4 17:15:02 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:15:02 2021
Terminated at Sun Jul  4 17:27:03 2021
Results reported at Sun Jul  4 17:27:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0226.5+0938_weekly_bin505 36.6313 9.6351 544406401 545011201 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 :                                   386.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             294.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   721 sec.
    Turnaround time :                            723 sec.

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

