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


Performing analysis on: 4FGL_J1501.0+2238_weekly_bin511
RA = 225.257, Dec = 22.6364
tmin = 548035201, tmax = 548640001
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='698003', job_status='RUN', time_executed='2021-07-22 13:10:07.963868', time_epoch_executed='1626984607.96' WHERE source_name='4FGL J1501.0+2238' and cadence='weekly' and bin_id='511'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/698003

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/698003/ft1_4FGL_J1501.0+2238_weekly_bin511.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/698003/ft2_4FGL_J1501.0+2238_weekly_bin511.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/698003/ft1_4FGL_J1501.0+2238_weekly_bin511.fits outfile=/scratch/kocevski/698003/ft1_filteredMKT_4FGL_J1501.0+2238_weekly_bin511.fits ra=225.257 dec=22.6364 rad=12.0 tmin=548035201.0 tmax=548640001.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 8.21
user 7.90
sys 0.29

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/698003/ft2_4FGL_J1501.0+2238_weekly_bin511.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/698003/ft2_4FGL_J1501.0+2238_weekly_bin511.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/698003/ft1_filteredMKT_4FGL_J1501.0+2238_weekly_bin511.fits evtable="EVENTS" outfile="/scratch/kocevski/698003/ft1_filtered_4FGL_J1501.0+2238_weekly_bin511.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.54
user 0.37
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/698003/ft1_filtered_4FGL_J1501.0+2238_weekly_bin511.fits" evtable="EVENTS" scfile=/scratch/kocevski/698003/ft2_4FGL_J1501.0+2238_weekly_bin511.fits sctable="SC_DATA" outfile=/scratch/kocevski/698003/ltcube_548035201_548640001_4FGL_J1501.0+2238_weekly_bin511.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/698003/ft2_4FGL_J1501.0+2238_weekly_bin511.fits
.....................!
real 29.37
user 28.89
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/698003/ft1_filtered_4FGL_J1501.0+2238_weekly_bin511.fits evtable="EVENTS" scfile=/scratch/kocevski/698003/ft2_4FGL_J1501.0+2238_weekly_bin511.fits sctable="SC_DATA" expcube=/scratch/kocevski/698003/ltcube_548035201_548640001_4FGL_J1501.0+2238_weekly_bin511.fits outfile=/scratch/kocevski/698003/expmap_548035201_548640001_4FGL_J1501.0+2238_weekly_bin511.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/698003/ltcube_548035201_548640001_4FGL_J1501.0+2238_weekly_bin511.fits
.....................!
real 194.25
user 187.89
sys 5.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 161 point sources and 0 extended sources

Setting source of interest to:
4FGL J1501.0+2238 @ 225.257 22.6364

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/698003/ft1_filtered_4FGL_J1501.0+2238_weekly_bin511.fits scfile=/scratch/kocevski/698003/ft2_4FGL_J1501.0+2238_weekly_bin511.fits outfile=/scratch/kocevski/698003/cmap_548035201_548640001_4FGL_J1501.0+2238_weekly_bin511.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=225.257 yref=22.6364 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.58
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/698003/ft1_filtered_4FGL_J1501.0+2238_weekly_bin511.fits scfile=/scratch/kocevski/698003/ft2_4FGL_J1501.0+2238_weekly_bin511.fits outfile=/scratch/kocevski/698003/cmap_HighResolution_548035201_548640001_4FGL_J1501.0+2238_weekly_bin511.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=225.257 yref=22.6364 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.58
user 0.41
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/698003/ft1_filtered_4FGL_J1501.0+2238_weekly_bin511.fits evtable="EVENTS" scfile=/scratch/kocevski/698003/ft2_4FGL_J1501.0+2238_weekly_bin511.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/698003/Model_4FGL_J1501.0+2238_weekly_bin511.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/698003/ft1_filtered_4FGL_J1501.0+2238_weekly_bin511.fits.....................!
real 39.23
user 37.86
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/698003/ft1_filtered_4FGL_J1501.0+2238_weekly_bin511.fits', '/scratch/kocevski/698003/ft2_4FGL_J1501.0+2238_weekly_bin511.fits', expMap='/scratch/kocevski/698003/expmap_548035201_548640001_4FGL_J1501.0+2238_weekly_bin511.fits', expCube='/scratch/kocevski/698003/ltcube_548035201_548640001_4FGL_J1501.0+2238_weekly_bin511.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/698003/Model_4FGL_J1501.0+2238_weekly_bin511.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1501.0+2238'

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  3.674e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
240        Index:  2.002e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
241        Scale:  1.799e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/698003/ft1_filtered_4FGL_J1501.0+2238_weekly_bin511.fits
Spacecraft file(s): /scratch/kocevski/698003/ft2_4FGL_J1501.0+2238_weekly_bin511.fits
Exposure map: /scratch/kocevski/698003/expmap_548035201_548640001_4FGL_J1501.0+2238_weekly_bin511.fits
Exposure cube: /scratch/kocevski/698003/ltcube_548035201_548640001_4FGL_J1501.0+2238_weekly_bin511.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/698003/Model_4FGL_J1501.0+2238_weekly_bin511.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) = 4352.84326085

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.467       1.0000         .10000E-03   10000.    
     2 'norm      '    12.772       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .23930       1.0000         .10000E-03   10000.    
     4 'norm      '    7.6594       1.0000         .10000E-03   10000.    
     5 'norm      '    19.407       1.0000         .10000E-03   10000.    
     6 'Prefactor '    74.689       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.2896       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    20.065       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.1291       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .87162       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .87539       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5200E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4352.840     FROM MIGRAD    STATUS=CONVERGED    497 CALLS     2376 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.387        16.797        .97880E-07   -.15355E-03
   2  norm          12.773        5.4033       -.35349E-07   -.22735E-04
   3  Prefactor     .32598        18.758        .15468E-05   -.29057E-03
   4  norm          7.6535        4.8696        .37418E-07   -.13165E-03
   5  norm          19.411        9.1771        .69298E-07   -.10815E-05
   6  Prefactor     74.736        54.166       -.26835E-05   -.35744E-04
   7  Prefactor     .10000E-03    18.147        .89504E-06** at limit **
   8  Prefactor     2.2864        39.164        .54412E-05    .47006E-04
   9  Prefactor     .10000E-03    15.969        .56146E-06** at limit **
  10  Prefactor     .10000E-03    36.492        .12858E-05** at limit **
  11  Prefactor     .10000E-03    4.3047       -.21358E-07** at limit **
  12  norm          .10000E-03    66.608       -.17278E-05** at limit **
  13  Prefactor     20.076        50.054       -.15309E-05   -.49721E-05
  14  Prefactor     .10000E-03    2.9176       -.20451E-07** at limit **
  15  norm          5.1310        1.9747        .79740E-07    .31887E-03
  16  Prefactor     .10000E-03    9.8806       -.16599E-06** at limit **
  17  Prefactor     .10000E-03    11.610       -.11998E-05** at limit **
  18  Prefactor     .10000E-03    20.897       -.13542E-05** at limit **
  19  Prefactor     .10000E-03    1.2475       -.61565E-07** at limit **
  20  Prefactor     .10000E-03    11.157        .10764E-05** at limit **
  21  Normalizat    .87083        .25093       -.11962E-05   -.47403E-04
  22  Prefactor     .87577        .15922        .10311E-05   -.24128E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.3867
  norm       = 12.7734
  Prefactor  = 0.325976
  norm       = 7.6535
  norm       = 19.4106
  Prefactor  = 74.736
  Prefactor  = 0.0001
  Prefactor  = 2.28641
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 20.0762
  Prefactor  = 0.0001
  norm       = 5.131
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.870828
  Prefactor  = 0.875769
 **********
 **   18 **HESSE 
 **********

 FCN=   4352.840     FROM HESSE     STATUS=OK           344 CALLS     2720 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.387        18.264        .10531E-03   -1.4949    
   2  norm          12.773        5.4049        .95770E-04   -1.4993    
   3  Prefactor     .32598        138.91        .39408E-02   -1.5594    
   4  norm          7.6535        4.8751        .10823E-03   -1.5155    
   5  norm          19.411        9.1865        .90918E-04   -1.4827    
   6  Prefactor     74.736        55.012        .23230E-03   -1.3977    
   7  Prefactor     .10000E-03    18.202        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.2864        40.354        .13564E-02   -1.5406    
   9  Prefactor     .10000E-03    15.997        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    36.509        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.3106        .13368E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    66.721        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     20.076        50.146        .89416E-04   -1.4812    
  14  Prefactor     .10000E-03    2.9215        .11006E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.1310        1.9791        .54659E-04   -1.5255    
  16  Prefactor     .10000E-03    9.8852        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    11.719        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    20.912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.2612        .71945E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    11.153        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .87083        .29097        .29926E-03   -.97493    
  22  Prefactor     .87577        .18640        .20331E-03   -.96993    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.93513e-09
Minuit parameter uncertainties:
  1  18.2713
  2  5.40511
  3  13.4876
  4  4.87539
  5  9.18717
  6  55.0491
  7  5.03242e-07
  8  19.2258
  9  9.89146e-07
  10  1.90533e-05
  11  1.55332e-06
  12  8.68001e-05
  13  50.2519
  14  7.93004e-07
  15  1.97914
  16  5.05921e-06
  17  2.3052e-05
  18  3.34813e-05
  19  1.5776e-06
  20  1.4959e-05
  21  0.291496
  22  0.186533
Done.

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

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  1.000e-04  1.553e-06  1.000e-04  1.000e+04 ( 1.000e-13)
240        Index:  2.002e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
241        Scale:  1.799e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
517    Prefactor:  8.758e-01  1.865e-01  0.000e+00  1.000e+01 ( 1.000e+00)
518        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
519        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
516   Normalization:  8.708e-01  2.915e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 225.257 22.636
Photon Flux Upper Limit: 6.97e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.23e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/698003/likelihoodResults_548035201_548640001_4FGL_J1501.0+2238_weekly_bin511.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) = 4352.8414132
delta logL = -0.00110038258572

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4352.84031275
delta logL = 6.69533619657e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9873       1.0000          .0000       10.000    
     3 'Normalizat'    .87082       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87578       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5200E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4352.840     FROM MIGRAD    STATUS=FAILED        90 CALLS      242 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10140E-03    98.706        .13477E-02** at limit **
   2  Index         1.9104        5.5938        .50000        .19715E-04
   3  Normalizat    .87083        .27826E-01    .29927E-03   -.74457E-05
   4  Prefactor     .87577        .19084E-01    .20331E-03   -.10065E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4352.840     FROM SIMPLEX   STATUS=UNCHANGED    131 CALLS      373 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10140E-03    98.706        .37163E-03** at limit **
   2  Index         1.9104        5.5938        .31436E-03    .19715E-04
   3  Normalizat    .87083        .27826E-01    .49883E-05   -.74457E-05
   4  Prefactor     .87577        .19084E-01    .33547E-05   -.10065E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4352.840     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      416 TOTAL
                     EDM=   .60E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    79.413        .26953E-02** at limit **
   2  Index         1.6633        7.6755        .50000        .56139E-07
   3  Normalizat    .87083        .24104E-01    .11971E-04    .81295E-04
   4  Prefactor     .87577        .16533E-01    .81324E-05    .11966E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.66326
  Normalizat = 0.870829
  Prefactor  = 0.875768
 **********
 **   18 **HESSE 
 **********

 FCN=   4352.840     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      445 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    372.67        .53906E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6633        9.0830        .50000       -.73064    
   3  Normalizat    .87083        .56960E-01    .23942E-05   -.97493    
   4  Prefactor     .87577        .39067E-01    .16265E-05   -.96993    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.81201e-10
Minuit parameter uncertainties:
  1  7.95355e-06
  2  1162.25
  3  0.0569639
  4  0.0390678
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/698003': 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) = 4352.84031167
delta logL = 1.14934755402e-06

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  1.000e-04  7.954e-06  1.000e-04  1.000e+04 ( 1.000e-13)
240        Index:  1.663e+00  1.162e+03  0.000e+00  1.000e+01 (-1.000e+00)
241        Scale:  1.799e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
517    Prefactor:  8.758e-01  3.907e-02  0.000e+00  1.000e+01 ( 1.000e+00)
518        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
519        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
516   Normalization:  8.708e-01  5.696e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 225.257 22.636

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/698003/cmap_HighResolution_548035201_548640001_4FGL_J1501.0+2238_weekly_bin511.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.23e-03', job_status='DONE', photon_flux_upper_limit='6.97e-08', time_completed='2021-07-22 13:21:10.920816', job_id='698003', GAL2='0.88', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1626985270.92', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='1.15e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='511' AND source_name='4FGL J1501.0+2238' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Thu Jul 22 13:21:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0227>
Subject: Job 698003: <4FGL_J1501.0+2238_weekly_bin511> in cluster <slac> Done

Job <4FGL_J1501.0+2238_weekly_bin511> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Jul 22 13:05:50 2021
Job was executed on host(s) <bullet0227>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jul 22 13:08:51 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jul 22 13:08:51 2021
Terminated at Thu Jul 22 13:21:11 2021
Results reported at Thu Jul 22 13:21:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1501.0+2238_weekly_bin511 225.257 22.6364 548035201 548640001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1501.0+2238 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   577.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             267.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   740 sec.
    Turnaround time :                            921 sec.

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

