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


Performing analysis on: 4FGL_J0226.5+0938_weekly_bin664
RA = 36.6313, Dec = 9.6351
tmin = 640569601, tmax = 641174401
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='524179', job_status='RUN', time_executed='2021-07-04 17:24:24.677535', time_epoch_executed='1625444664.68' WHERE source_name='4FGL J0226.5+0938' and cadence='weekly' and bin_id='664'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/524179

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/524179/ft1_4FGL_J0226.5+0938_weekly_bin664.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/524179/ft2_4FGL_J0226.5+0938_weekly_bin664.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/524179/ft1_4FGL_J0226.5+0938_weekly_bin664.fits outfile=/scratch/kocevski/524179/ft1_filteredMKT_4FGL_J0226.5+0938_weekly_bin664.fits ra=36.6313 dec=9.6351 rad=12.0 tmin=640569601.0 tmax=641174401.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.82
user 6.17
sys 0.28

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/524179/ft1_filtered_4FGL_J0226.5+0938_weekly_bin664.fits" evtable="EVENTS" scfile=/scratch/kocevski/524179/ft2_4FGL_J0226.5+0938_weekly_bin664.fits sctable="SC_DATA" outfile=/scratch/kocevski/524179/ltcube_640569601_641174401_4FGL_J0226.5+0938_weekly_bin664.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/524179/ft2_4FGL_J0226.5+0938_weekly_bin664.fits
.....................!
real 31.40
user 29.93
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/524179/ft1_filtered_4FGL_J0226.5+0938_weekly_bin664.fits evtable="EVENTS" scfile=/scratch/kocevski/524179/ft2_4FGL_J0226.5+0938_weekly_bin664.fits sctable="SC_DATA" expcube=/scratch/kocevski/524179/ltcube_640569601_641174401_4FGL_J0226.5+0938_weekly_bin664.fits outfile=/scratch/kocevski/524179/expmap_640569601_641174401_4FGL_J0226.5+0938_weekly_bin664.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/524179/ltcube_640569601_641174401_4FGL_J0226.5+0938_weekly_bin664.fits
.....................!
real 198.13
user 187.31
sys 4.90

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/524179/ft1_filtered_4FGL_J0226.5+0938_weekly_bin664.fits scfile=/scratch/kocevski/524179/ft2_4FGL_J0226.5+0938_weekly_bin664.fits outfile=/scratch/kocevski/524179/cmap_640569601_641174401_4FGL_J0226.5+0938_weekly_bin664.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=36.6313 yref=9.6351 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.73
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/524179/ft1_filtered_4FGL_J0226.5+0938_weekly_bin664.fits scfile=/scratch/kocevski/524179/ft2_4FGL_J0226.5+0938_weekly_bin664.fits outfile=/scratch/kocevski/524179/cmap_HighResolution_640569601_641174401_4FGL_J0226.5+0938_weekly_bin664.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.32
user 0.43
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    51.625       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.1414       1.0000         .10000E-03   10000.    
     7 'norm      '    .92966       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11257E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .35945E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10347E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    209.01       1.0000         .10000E-03   10000.    
    16 'norm      '    .10840E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .19271E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .19159E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .81848E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .11559E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    17.104       1.0000         .10000E-03   10000.    
    27 'norm      '    13.435       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .87004       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .78270       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=   1599.365     FROM MIGRAD    STATUS=CONVERGED    706 CALLS     5197 TOTAL
                     EDM=   .87E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.2846        .76746E-07** at limit **
   2  norm          .10000E-03    35.934        .20138E-06** at limit **
   3  Prefactor     .10000E-03    101.49       -.42790E-06** at limit **
   4  Prefactor     .10000E-03    26.982        .11947E-06** at limit **
   5  norm          51.610        48.075       -.30033E-05   -.16070E-04
   6  Prefactor     5.1404        12.708        .67745E-05    .52512E-04
   7  norm          .92820        1.9279        .27953E-06    .15468E-04
   8  Prefactor     .10000E-03    71.791       -.22923E-06** at limit **
   9  Prefactor    10000.0        6371.0        .39606E-05** at limit **
  10  Prefactor     .10000E-03    68.482        .17068E-06** at limit **
  11  Prefactor     .10000E-03    332.47        .58953E-06** at limit **
  12  Prefactor     .10000E-03    731.29       -.55229E-05** at limit **
  13  Prefactor     .10000E-03    138.50       -.27920E-06** at limit **
  14  Prefactor     .10000E-03    29.392       -.96670E-07** at limit **
  15  Prefactor     208.85        315.52       -.22196E-04   -.17172E-04
  16  norm          .10000E-03    10.879       -.14218E-05** at limit **
  17  Prefactor     .10000E-03    432.95       -.27255E-05** at limit **
  18  Prefactor     .10000E-03    439.52       -.13150E-05** at limit **
  19  norm          .10000E-03    37.494       -.55666E-06** at limit **
  20  Prefactor     .10000E-03    142.81       -.29121E-06** at limit **
  21  Prefactor     .10011E-03    2268.3       -.48289E-04** at limit **
  22  Prefactor     .10000E-03    54.423       -.34863E-06** at limit **
  23  Prefactor     .10000E-03    8.7966        .16525E-06** at limit **
  24  norm          .10000E-03    12.424        .78284E-07** at limit **
  25  norm          .10000E-03    28.373        .59718E-06** at limit **
  26  Prefactor     17.105        12.248        .70929E-07   -.12658E-04
  27  norm          13.451        21.843        .21407E-06    .28695E-05
  28  Normalizat    .87075        .40369       -.32583E-05   -.16883E-04
  29  Prefactor     .78245        .21531       -.20882E-06   -.65891E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 51.61
  Prefactor  = 5.1404
  norm       = 0.928198
  Prefactor  = 0.0001
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 208.852
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100113
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 17.1055
  norm       = 13.4509
  Normalizat = 0.870752
  Prefactor  = 0.782454
 **********
 **   18 **HESSE 
 **********

 FCN=   1599.365     FROM HESSE     STATUS=OK           535 CALLS     5732 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.2964        .80850E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    35.975        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    102.20        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    27.032        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          51.610        48.083        .55818E-04   -1.4270    
   6  Prefactor     5.1404        12.871        .88651E-03   -1.5254    
   7  norm          .92820        1.8885        .67702E-04   -1.5515    
   8  Prefactor     .10000E-03    71.827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor    10000.0        6372.8        .21166E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    68.515        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    333.38        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    731.14        .21312E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    138.89        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    29.438        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     208.85        310.27        .13981E-03   -1.2807    
  16  norm          .10000E-03    10.807        .12817E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    433.00        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    449.32        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    37.495        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    142.85        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10011E-03    2277.6        .18438E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    54.436        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    8.8472        .11581E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    12.440        .13770E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    29.425        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     17.105        12.264        .96845E-04   -1.4881    
  27  norm          13.451        22.409        .10928E-03   -1.4974    
  28  Normalizat    .87075        .45486        .33054E-03   -.97496    
  29  Prefactor     .78245        .24886        .18781E-03   -1.0038    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.66169e-10
Minuit parameter uncertainties:
  1  4.43515e-06
  2  0.000104877
  3  0.00044429
  4  4.32619e-05
  5  48.1192
  6  12.8777
  7  1.88861
  8  7.49567e-06
  9  0.0179843
  10  0.000228621
  11  0.00195617
  12  0.00238384
  13  1.79079e-05
  14  7.80742e-06
  15  312.753
  16  0.000124596
  17  0.000324575
  18  0.000434486
  19  4.02654e-06
  20  0.000398486
  21  0.0333819
  22  9.92906e-05
  23  2.04563e-05
  24  8.67846e-06
  25  0.000175245
  26  12.2657
  27  22.4234
  28  0.456884
  29  0.249217
Done.

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

Extracting fit parameters...

4FGL J0226.5+0938
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  1.956e-03  1.000e-04  1.000e+04 ( 1.000e-14)
258        Index:  2.151e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
259        Scale:  1.918e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
509    Prefactor:  7.825e-01  2.492e-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:  8.708e-01  4.569e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/524179/likelihoodResults_640569601_641174401_4FGL_J0226.5+0938_weekly_bin664.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) = 1599.3649009
delta logL = -1.40695606206e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1599.36490083
delta logL = -1.40052213737e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .95410E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1506       1.0000          .0000       10.000    
     3 'Normalizat'    .87070       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78248       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=   1599.365     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      203 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    524.76        .90805E-02** at limit **
   2  Index         2.1132        8.6637        .50000        .85326E-06
   3  Normalizat    .87075        .12990E-01    .74685E-01    .14117E-04
   4  Prefactor     .78246        .70710E-02    .43489E-01    .31718E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.11317
  Normalizat = 0.870751
  Prefactor  = 0.782455
 **********
 **   18 **HESSE 
 **********

 FCN=   1599.365     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      234 TOTAL
                     EDM=   .89E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6217.9        .18161E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1132        5.8509        .50000       -.61550    
   3  Normalizat    .87075        .29118E-01    .33054E-03   -.97496    
   4  Prefactor     .78246        .15875E-01    .18781E-03   -1.0038    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.90752e-08
Minuit parameter uncertainties:
  1  0.0017331
  2  1416.35
  3  0.0291185
  4  0.0158754
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/524179': 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) = 1599.36488682
delta logL = 8.20750756247e-09

Extracting fit parameters...

4FGL J0226.5+0938
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  1.733e-03  1.000e-04  1.000e+04 ( 1.000e-14)
258        Index:  2.113e+00  1.416e+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:  7.825e-01  1.588e-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:  8.708e-01  2.912e-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/524179/cmap_HighResolution_640569601_641174401_4FGL_J0226.5+0938_weekly_bin664.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.40e-02', job_status='DONE', photon_flux_upper_limit='5.79e-07', time_completed='2021-07-04 17:33:21.189603', job_id='524179', GAL2='0.78', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1625445201.19', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='8.21e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='664' AND source_name='4FGL J0226.5+0938' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sun Jul  4 17:33:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 524179: <4FGL_J0226.5+0938_weekly_bin664> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0226.5+0938_weekly_bin664 36.6313 9.6351 640569601 641174401 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 :                                   493.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             187.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   840 sec.
    Turnaround time :                            843 sec.

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

