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


Performing analysis on: 4FGL_J0818.2+4222_weekly_bin287
RA = 124.557, Dec = 42.3819
tmin = 412560001, tmax = 413164801
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='569032', job_status='RUN', time_executed='2021-07-12 07:38:57.431414', time_epoch_executed='1626100737.43' WHERE source_name='4FGL J0818.2+4222' and cadence='weekly' and bin_id='287'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/569032

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/569032/ft1_4FGL_J0818.2+4222_weekly_bin287.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/569032/ft2_4FGL_J0818.2+4222_weekly_bin287.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/569032/ft1_4FGL_J0818.2+4222_weekly_bin287.fits outfile=/scratch/kocevski/569032/ft1_filteredMKT_4FGL_J0818.2+4222_weekly_bin287.fits ra=124.557 dec=42.3819 rad=12.0 tmin=412560001.0 tmax=413164801.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.02
user 7.14
sys 0.32

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/569032/ft2_4FGL_J0818.2+4222_weekly_bin287.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/569032/ft2_4FGL_J0818.2+4222_weekly_bin287.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/569032/ft1_filteredMKT_4FGL_J0818.2+4222_weekly_bin287.fits evtable="EVENTS" outfile="/scratch/kocevski/569032/ft1_filtered_4FGL_J0818.2+4222_weekly_bin287.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 3.37
user 0.40
sys 0.19

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/569032/ft1_filtered_4FGL_J0818.2+4222_weekly_bin287.fits" evtable="EVENTS" scfile=/scratch/kocevski/569032/ft2_4FGL_J0818.2+4222_weekly_bin287.fits sctable="SC_DATA" outfile=/scratch/kocevski/569032/ltcube_412560001_413164801_4FGL_J0818.2+4222_weekly_bin287.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/569032/ft2_4FGL_J0818.2+4222_weekly_bin287.fits
.....................!
real 33.48
user 29.38
sys 0.41

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/569032/ft1_filtered_4FGL_J0818.2+4222_weekly_bin287.fits evtable="EVENTS" scfile=/scratch/kocevski/569032/ft2_4FGL_J0818.2+4222_weekly_bin287.fits sctable="SC_DATA" expcube=/scratch/kocevski/569032/ltcube_412560001_413164801_4FGL_J0818.2+4222_weekly_bin287.fits outfile=/scratch/kocevski/569032/expmap_412560001_413164801_4FGL_J0818.2+4222_weekly_bin287.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/569032/ltcube_412560001_413164801_4FGL_J0818.2+4222_weekly_bin287.fits
.....................!
real 200.54
user 186.72
sys 4.73

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 195 point sources and 0 extended sources

Setting source of interest to:
4FGL J0818.2+4222 @ 124.557 42.3819

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/569032/ft1_filtered_4FGL_J0818.2+4222_weekly_bin287.fits scfile=/scratch/kocevski/569032/ft2_4FGL_J0818.2+4222_weekly_bin287.fits outfile=/scratch/kocevski/569032/cmap_412560001_413164801_4FGL_J0818.2+4222_weekly_bin287.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=124.557 yref=42.3819 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.51
user 0.43
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/569032/ft1_filtered_4FGL_J0818.2+4222_weekly_bin287.fits scfile=/scratch/kocevski/569032/ft2_4FGL_J0818.2+4222_weekly_bin287.fits outfile=/scratch/kocevski/569032/cmap_HighResolution_412560001_413164801_4FGL_J0818.2+4222_weekly_bin287.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=124.557 yref=42.3819 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 2.04
user 0.44
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/569032/ft1_filtered_4FGL_J0818.2+4222_weekly_bin287.fits evtable="EVENTS" scfile=/scratch/kocevski/569032/ft2_4FGL_J0818.2+4222_weekly_bin287.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/569032/Model_4FGL_J0818.2+4222_weekly_bin287.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/569032/ft1_filtered_4FGL_J0818.2+4222_weekly_bin287.fits.....................!
real 112217.13
user 271.91
sys 1.58

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/569032/ft1_filtered_4FGL_J0818.2+4222_weekly_bin287.fits', '/scratch/kocevski/569032/ft2_4FGL_J0818.2+4222_weekly_bin287.fits', expMap='/scratch/kocevski/569032/expmap_412560001_413164801_4FGL_J0818.2+4222_weekly_bin287.fits', expCube='/scratch/kocevski/569032/ltcube_412560001_413164801_4FGL_J0818.2+4222_weekly_bin287.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/569032/Model_4FGL_J0818.2+4222_weekly_bin287.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0818.2+4222'

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  1.121e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
284        alpha:  1.996e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
285         beta:  8.301e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
286           Eb:  7.677e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/569032/ft1_filtered_4FGL_J0818.2+4222_weekly_bin287.fits
Spacecraft file(s): /scratch/kocevski/569032/ft2_4FGL_J0818.2+4222_weekly_bin287.fits
Exposure map: /scratch/kocevski/569032/expmap_412560001_413164801_4FGL_J0818.2+4222_weekly_bin287.fits
Exposure cube: /scratch/kocevski/569032/ltcube_412560001_413164801_4FGL_J0818.2+4222_weekly_bin287.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/569032/Model_4FGL_J0818.2+4222_weekly_bin287.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) = 32931.9289043

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .22711       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.4965       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.613       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.9015       1.0000         .10000E-03   10000.    
     6 'norm      '    4.2497       1.0000         .10000E-03   10000.    
     7 'norm      '    1.7560       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.4013       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .21077E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.1398       1.0000         .10000E-03   10000.    
    12 'norm      '    .94913       1.0000         .10000E-03   10000.    
    13 'norm      '    1.0644       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.3188       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.9775       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.5827       1.0000         .10000E-03   10000.    
    20 'norm      '    4.4716       1.0000         .10000E-03   10000.    
    21 'norm      '    19.352       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.0520       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .42880E-02   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.5852       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .42943E-01   1.0000         .10000E-03   10000.    
    28 'Prefactor '    3.8120       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1967       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .89122       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6230E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   32931.79     FROM MIGRAD    STATUS=CONVERGED    779 CALLS     3463 TOTAL
                     EDM=   .86E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .22905        .91322        .68678E-08   -.19452E-03
   2  Prefactor     2.4967        2.8642       -.74471E-07   -.88328E-03
   3  Prefactor     10.612        8.4935        .10777E-05    .69440E-05
   4  Prefactor     .10000E-03    1.8787       -.10367E-06** at limit **
   5  Prefactor     6.9016        5.8066       -.35750E-07   -.16665E-03
   6  norm          4.2499        4.0334       -.41512E-07   -.17296E-04
   7  norm          1.7559        .80533       -.13848E-07    .13934E-04
   8  Prefactor     3.4016        2.5318        .20080E-06   -.49701E-03
   9  Prefactor     .10000E-03    6.1094       -.47896E-05** at limit **
  10  Prefactor     .10001E-03    .47795        .57252E-07** at limit **
  11  norm          2.1398        1.2880       -.46308E-08   -.76913E-04
  12  norm          .94913        .54071        .71957E-07    .34191E-04
  13  norm          1.0644        .27657        .31972E-07    .10564E-02
  14  Prefactor     2.3192        11.450       -.17480E-06   -.17125E-03
  15  Prefactor     .10000E-03    4.0822       -.19992E-05** at limit **
  16  Prefactor     .10000E-03    .33114       -.86746E-07** at limit **
  17  Prefactor     .10000E-03    3.2460        .29548E-06** at limit **
  18  Prefactor     2.9778        3.2467       -.32655E-06   -.31028E-05
  19  Prefactor     3.5827        2.4553        .77109E-06   -.38472E-05
  20  norm          4.4713        2.2246       -.33169E-07   -.23775E-04
  21  norm          19.351        3.6431       -.66429E-09    .41293E-05
  22  Prefactor     1.0520        .97553        .26907E-07   -.19530E-03
  23  Prefactor     .10000E-03    70.617       -.25206E-05** at limit **
  24  Prefactor     .10000E-03    5.6982        .46692E-05** at limit **
  25  Prefactor     1.5877        1.5584       -.35826E-08   -.45043E-03
  26  Prefactor     .10000E-03    4.3035        .23943E-05** at limit **
  27  norm          .43596E-01    .14331        .39688E-07   -.15052E-02
  28  Prefactor     3.8073        2.0940       -.24633E-07   -.14617E-02
  29  Normalizat    1.1967        .81845E-01    .17016E-06    .99455E-04
  30  Prefactor     .89121        .61230E-01   -.34708E-07    .19151E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.229049
  Prefactor  = 2.49672
  Prefactor  = 10.6125
  Prefactor  = 0.0001
  Prefactor  = 6.90163
  norm       = 4.24995
  norm       = 1.7559
  Prefactor  = 3.40161
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  norm       = 2.13985
  norm       = 0.949126
  norm       = 1.06442
  Prefactor  = 2.31918
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.97779
  Prefactor  = 3.58269
  norm       = 4.47131
  norm       = 19.3511
  Prefactor  = 1.05201
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.58768
  Prefactor  = 0.0001
  norm       = 0.043596
  Prefactor  = 3.80727
  Normalizat = 1.19668
  Prefactor  = 0.891206
 **********
 **   18 **HESSE 
 **********

 FCN=   32931.79     FROM HESSE     STATUS=OK           614 CALLS     4077 TOTAL
                     EDM=   .91E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .22905        4.2717        .33522E-02   -1.5612    
   2  Prefactor     2.4967        4.5159        .12934E-02   -1.5392    
   3  Prefactor     10.612        8.4943        .12298E-03   -1.5056    
   4  Prefactor     .10000E-03    1.9097        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.9016        5.8525        .76359E-03   -1.5182    
   6  norm          4.2499        4.0290        .19546E-03   -1.5296    
   7  norm          1.7559        .80715        .10695E-03   -1.5443    
   8  Prefactor     3.4016        2.6264        .10968E-02   -1.5339    
   9  Prefactor     .10000E-03    6.1341        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    .75126        .43589E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.1398        1.2810        .15337E-03   -1.5415    
  12  norm          .94913        .52510        .96601E-04   -1.5513    
  13  norm          1.0644        .27321        .45988E-04   -1.5502    
  14  Prefactor     2.3192        13.883        .13469E-02   -1.5403    
  15  Prefactor     .10000E-03    4.1885        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    .80047        .20049E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.2550        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.9778        3.2443        .23529E-03   -1.5363    
  19  Prefactor     3.5827        2.4516        .21350E-03   -1.5329    
  20  norm          4.4713        2.2212        .18242E-03   -1.5285    
  21  norm          19.351        3.6433        .91048E-04   -1.4828    
  22  Prefactor     1.0520        .95032        .16343E-03   -1.5503    
  23  Prefactor     .10000E-03    73.549        .38813E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    5.6946        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     1.5877        1.5546        .21040E-03   -1.5456    
  26  Prefactor     .10000E-03    4.3142        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .43596E-01    .52404        .89867E-03   -1.5666    
  28  Prefactor     3.8073        3.0717        .73293E-03   -1.5318    
  29  Normalizat    1.1967        .95654E-01    .25594E-03   -.86705    
  30  Prefactor     .89121        .71387E-01    .22607E-03   -.96449    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.09306e-07
Minuit parameter uncertainties:
  1  1.97804
  2  4.51647
  3  8.49524
  4  4.24756e-06
  5  5.85295
  6  4.02925
  7  0.807155
  8  2.62644
  9  2.57244e-06
  10  0.000124232
  11  1.28101
  12  0.525101
  13  0.27321
  14  11.3523
  15  9.0866e-06
  16  1.14046e-05
  17  8.45035e-07
  18  3.24445
  19  2.45168
  20  2.22123
  21  3.64332
  22  0.950329
  23  3.17365e-05
  24  3.62729e-06
  25  1.55461
  26  5.61241e-06
  27  0.301953
  28  3.07186
  29  0.0956683
  30  0.0713942
Done.

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

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  1.064e+00  2.732e-01  1.000e-04  1.000e+04 ( 1.000e-11)
284        alpha:  1.996e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
285         beta:  8.301e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
286           Eb:  7.677e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
620    Prefactor:  8.912e-01  7.139e-02  0.000e+00  1.000e+01 ( 1.000e+00)
621        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
622        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
619   Normalization:  1.197e+00  9.567e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 41.95
Ra Dec: 124.557 42.382
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 5.31e-08 +/- 1.36e-08
Energy Flux (Fixed Index): 2.99e-05 +/- 7.68e-06

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 32931.2314733
delta logL = 0.559515350629

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 32931.2308474
delta logL = 0.560141232054

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0404       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2199       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1837       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89519       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6230E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   32931.23     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      216 TOTAL
                     EDM=   .89E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0406        2.9433        .95727E-02    .51880E-03
   2  alpha         2.2199        1.8281        .32038        .13238E-03
   3  Normalizat    1.1837        .38121E-01    .58134E-01    .88751E-04
   4  Prefactor     .89519        .25437E-01    .44944E-01    .80775E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.04057
  alpha      = 2.21986
  Normalizat = 1.18371
  Prefactor  = 0.895194
 **********
 **   18 **HESSE 
 **********

 FCN=   32931.23     FROM HESSE     STATUS=OK            33 CALLS      249 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0406        .26059        .42655E-04   -1.5504    
   2  alpha         2.2199        .21388        .12188E-01   -.11229    
   3  Normalizat    1.1837        .89938E-01    .25709E-03   -.87108    
   4  Prefactor     .89519        .69339E-01    .22555E-03   -.96309    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.42817e-09
Minuit parameter uncertainties:
  1  0.260587
  2  0.214143
  3  0.0899501
  4  0.0693458
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/569032': 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) = 32931.2308473
delta logL = 0.560141366666

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  1.041e+00  2.606e-01  1.000e-04  1.000e+04 ( 1.000e-11)
284        alpha:  2.220e+00  2.141e-01  0.000e+00  5.000e+00 ( 1.000e+00)
285         beta:  8.301e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
286           Eb:  7.677e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
620    Prefactor:  8.952e-01  6.935e-02  0.000e+00  1.000e+01 ( 1.000e+00)
621        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
622        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
619   Normalization:  1.184e+00  8.995e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 42.94
Ra Dec: 124.557 42.382
Photon Index (Free Index): 2.22 +/- 0.21
Photon Flux (Free Index): 6.63e-08 +/- 1.95e-08
Energy Flux (Free Index): 2.66e-05 +/- 6.97e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/569032/cmap_HighResolution_412560001_413164801_4FGL_J0818.2+4222_weekly_bin287.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.31e-08', energy_flux2='2.66e-05', photon_flux_error='1.36e-08', dlogl='5.60e-01', energy_flux='2.99e-05', photon_flux2='6.63e-08', job_status='DONE', time_completed='2021-07-13 15:31:00.300323', photon_index_error2='0.21', photon_index2='2.22', ts='41.95', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='6.97e-06', EG='1.20', time_epoch_completed='1626215460.3', return_code='0', job_id='569032', GAL2='0.90', EG2='1.18', return_code2='0', energy_flux_error='7.68e-06', photon_flux_error2='1.95e-08', ts2='42.94', photon_index='2.00' WHERE bin_id='287' AND source_name='4FGL J0818.2+4222' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 13 15:31:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0302>
Subject: Job 569032: <4FGL_J0818.2+4222_weekly_bin287> in cluster <slac> Done

Job <4FGL_J0818.2+4222_weekly_bin287> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Jul 12 07:31:49 2021
Job was executed on host(s) <bullet0302>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jul 12 07:32:38 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Jul 12 07:32:38 2021
Terminated at Tue Jul 13 15:31:08 2021
Results reported at Tue Jul 13 15:31:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.2+4222_weekly_bin287 124.557 42.3819 412560001 413164801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0818.2+4222 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   2721.00 sec.
    Max Memory :                                 622 MB
    Average Memory :                             613.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   3190 sec.
    Turnaround time :                            115159 sec.

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

