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 39 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_J0818.2+4222_weekly_bin383
RA = 124.557, Dec = 42.3819
tmin = 470620801, tmax = 471225601
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='569179', job_status='RUN', time_executed='2021-07-12 07:39:48.581958', time_epoch_executed='1626100788.58' WHERE source_name='4FGL J0818.2+4222' and cadence='weekly' and bin_id='383'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/569179

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/569179/ft1_4FGL_J0818.2+4222_weekly_bin383.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/569179/ft2_4FGL_J0818.2+4222_weekly_bin383.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/569179/ft1_4FGL_J0818.2+4222_weekly_bin383.fits outfile=/scratch/kocevski/569179/ft1_filteredMKT_4FGL_J0818.2+4222_weekly_bin383.fits ra=124.557 dec=42.3819 rad=12.0 tmin=470620801.0 tmax=471225601.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.77
user 7.19
sys 0.32

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/569179/ft1_filtered_4FGL_J0818.2+4222_weekly_bin383.fits" evtable="EVENTS" scfile=/scratch/kocevski/569179/ft2_4FGL_J0818.2+4222_weekly_bin383.fits sctable="SC_DATA" outfile=/scratch/kocevski/569179/ltcube_470620801_471225601_4FGL_J0818.2+4222_weekly_bin383.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/569179/ft2_4FGL_J0818.2+4222_weekly_bin383.fits
.....................!
real 29.75
user 27.88
sys 0.47

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/569179/ft1_filtered_4FGL_J0818.2+4222_weekly_bin383.fits evtable="EVENTS" scfile=/scratch/kocevski/569179/ft2_4FGL_J0818.2+4222_weekly_bin383.fits sctable="SC_DATA" expcube=/scratch/kocevski/569179/ltcube_470620801_471225601_4FGL_J0818.2+4222_weekly_bin383.fits outfile=/scratch/kocevski/569179/expmap_470620801_471225601_4FGL_J0818.2+4222_weekly_bin383.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/569179/ltcube_470620801_471225601_4FGL_J0818.2+4222_weekly_bin383.fits
.....................!
real 198.38
user 188.19
sys 4.75

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/569179/ft1_filtered_4FGL_J0818.2+4222_weekly_bin383.fits scfile=/scratch/kocevski/569179/ft2_4FGL_J0818.2+4222_weekly_bin383.fits outfile=/scratch/kocevski/569179/cmap_470620801_471225601_4FGL_J0818.2+4222_weekly_bin383.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.74
user 0.41
sys 0.20

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/569179/ft1_filtered_4FGL_J0818.2+4222_weekly_bin383.fits scfile=/scratch/kocevski/569179/ft2_4FGL_J0818.2+4222_weekly_bin383.fits outfile=/scratch/kocevski/569179/cmap_HighResolution_470620801_471225601_4FGL_J0818.2+4222_weekly_bin383.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 1.95
user 0.42
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/569179/ft1_filtered_4FGL_J0818.2+4222_weekly_bin383.fits', '/scratch/kocevski/569179/ft2_4FGL_J0818.2+4222_weekly_bin383.fits', expMap='/scratch/kocevski/569179/expmap_470620801_471225601_4FGL_J0818.2+4222_weekly_bin383.fits', expCube='/scratch/kocevski/569179/ltcube_470620801_471225601_4FGL_J0818.2+4222_weekly_bin383.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/569179/Model_4FGL_J0818.2+4222_weekly_bin383.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/569179/ft1_filtered_4FGL_J0818.2+4222_weekly_bin383.fits
Spacecraft file(s): /scratch/kocevski/569179/ft2_4FGL_J0818.2+4222_weekly_bin383.fits
Exposure map: /scratch/kocevski/569179/expmap_470620801_471225601_4FGL_J0818.2+4222_weekly_bin383.fits
Exposure cube: /scratch/kocevski/569179/ltcube_470620801_471225601_4FGL_J0818.2+4222_weekly_bin383.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/569179/Model_4FGL_J0818.2+4222_weekly_bin383.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) = 14808.9688277

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .30717E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    32.625       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12898E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.1179       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.4544       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10154E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.5754       1.0000         .10000E-03   10000.    
    12 'norm      '    1.5549       1.0000         .10000E-03   10000.    
    13 'norm      '    1.2743       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .65574E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.1004       1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.810       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.4090       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.3489       1.0000         .10000E-03   10000.    
    20 'norm      '    8.4499       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.2206       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    7.0995       1.0000         .10000E-03   10000.    
    26 'Prefactor '    5.9064       1.0000         .10000E-03   10000.    
    27 'norm      '    1.1645       1.0000         .10000E-03   10000.    
    28 'Prefactor '    4.0994       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .87644       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0202       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=   14808.85     FROM MIGRAD    STATUS=CONVERGED    779 CALLS     3398 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.4020       -.12316E-06** at limit **
   2  Prefactor     .10023E-03    3.2415       -.49485E-06** at limit **
   3  Prefactor     32.629        20.030        .31116E-06    .15530E-03
   4  Prefactor     .10000E-03    2.2485       -.34543E-06** at limit **
   5  Prefactor     .10000E-03    3.2328        .35010E-07** at limit **
   6  norm          .10000E-03    1.4572        .12309E-07** at limit **
   7  norm          2.1186        1.5472        .68020E-07    .63679E-04
   8  Prefactor     4.4565        4.3549        .47942E-06    .17887E-03
   9  Prefactor     .10004E-03    30.684        .76087E-05** at limit **
  10  Prefactor     .10000E-03    1.3216        .22918E-07** at limit **
  11  norm          1.5753        2.0900        .21609E-06   -.77728E-04
  12  norm          1.5549        .91500       -.12969E-07    .28204E-04
  13  norm          1.2746        .41493        .11438E-07    .27040E-02
  14  Prefactor     .10000E-03    6.1659        .35359E-06** at limit **
  15  Prefactor     .10096E-03    4.7368       -.18235E-05** at limit **
  16  Prefactor     2.1028        1.9454        .26135E-06    .13502E-02
  17  Prefactor     10.814        13.257        .77764E-08    .15918E-03
  18  Prefactor     3.4090        4.5781        .22683E-06    .39192E-04
  19  Prefactor     3.3484        3.3592        .31457E-07    .11620E-03
  20  norm          8.4468        4.9194       -.30106E-07   -.18270E-03
  21  norm          .10000E-03    2.7576        .45202E-08** at limit **
  22  Prefactor     1.2203        1.6200        .33084E-06   -.16418E-03
  23  Prefactor     .10001E-03    23.200       -.30701E-05** at limit **
  24  Prefactor     .10000E-03    12.010        .39993E-06** at limit **
  25  Prefactor     7.0993        2.5867       -.19438E-06   -.10230E-03
  26  Prefactor     5.9043        13.747        .47935E-05   -.22601E-03
  27  norm          1.1645        .56020       -.15730E-07    .21085E-04
  28  Prefactor     4.0986        4.1860        .16255E-06   -.24728E-03
  29  Normalizat    .87650        .12076       -.55419E-06    .45795E-03
  30  Prefactor     1.0202        .90949E-01   -.26578E-07    .47181E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.000100228
  Prefactor  = 32.6286
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.11862
  Prefactor  = 4.45651
  Prefactor  = 0.000100044
  Prefactor  = 0.0001
  norm       = 1.57534
  norm       = 1.5549
  norm       = 1.27457
  Prefactor  = 0.0001
  Prefactor  = 0.000100962
  Prefactor  = 2.10283
  Prefactor  = 10.814
  Prefactor  = 3.40901
  Prefactor  = 3.34839
  norm       = 8.44675
  norm       = 0.0001
  Prefactor  = 1.2203
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 7.09926
  Prefactor  = 5.90426
  norm       = 1.16454
  Prefactor  = 4.09863
  Normalizat = 0.876495
  Prefactor  = 1.0202
 **********
 **   18 **HESSE 
 **********

 FCN=   14808.85     FROM HESSE     STATUS=OK           608 CALLS     4006 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.6254        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10023E-03    54.526        .41642E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     32.629        19.914        .70153E-04   -1.4565    
   4  Prefactor     .10000E-03    7.9772        .34627E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.2463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.4607        .14346E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.1186        1.5318        .12400E-03   -1.5417    
   8  Prefactor     4.4565        4.3305        .19079E-03   -1.5286    
   9  Prefactor     .10004E-03    35.179        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.3528        .27279E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.5753        2.0695        .19415E-03   -1.5457    
  12  norm          1.5549        .91742        .85534E-04   -1.5459    
  13  norm          1.2746        .41403        .41988E-04   -1.5482    
  14  Prefactor     .10000E-03    6.1953        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10096E-03    5.4129        .73700E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.1028        1.9302        .14525E-03   -1.5418    
  17  Prefactor     10.814        13.226        .12185E-03   -1.5050    
  18  Prefactor     3.4090        4.5637        .21911E-03   -1.5339    
  19  Prefactor     3.3484        3.3617        .21778E-03   -1.5342    
  20  norm          8.4468        4.9033        .13791E-03   -1.5127    
  21  norm          .10000E-03    2.8248        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.2203        1.5929        .16618E-03   -1.5487    
  23  Prefactor     .10001E-03    24.063        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    12.049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     7.0993        2.5943        .10811E-03   -1.5175    
  26  Prefactor     5.9043        14.565        .82617E-03   -1.5222    
  27  norm          1.1645        .63401        .46059E-04   -1.5492    
  28  Prefactor     4.0986        4.8018        .17804E-03   -1.5303    
  29  Normalizat    .87650        .13665        .27720E-03   -.97291    
  30  Prefactor     1.0202        .10343        .20771E-03   -.92059    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.37356e-09
Minuit parameter uncertainties:
  1  1.39602e-05
  2  0.00705716
  3  19.9181
  4  0.000194985
  5  1.13999e-06
  6  8.63136e-07
  7  1.53182
  8  4.33077
  9  0.00248025
  10  3.36557e-06
  11  2.06964
  12  0.917432
  13  0.414035
  14  5.01211e-05
  15  0.00456383
  16  1.93025
  17  13.2295
  18  4.56417
  19  3.36187
  20  4.90356
  21  2.43665e-06
  22  1.593
  23  0.0008636
  24  8.81303e-05
  25  2.59429
  26  14.5736
  27  0.634016
  28  4.80225
  29  0.136702
  30  0.103451
Done.

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

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  1.275e+00  4.140e-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:  1.020e+00  1.035e-01  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:  8.765e-01  1.367e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 40.13
Ra Dec: 124.557 42.382
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 6.36e-08 +/- 2.07e-08
Energy Flux (Fixed Index): 3.58e-05 +/- 1.16e-05

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) = 14807.7846242
delta logL = 1.06461867076

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14807.7729637
delta logL = 1.07627913192

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .96925       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4978       1.0000          .0000       5.0000    
     3 'Normalizat'    .90066       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0169       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=   14807.77     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      208 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .96957        .35577        .96281E-02   -.16938E-03
   2  alpha         1.4977        .22945        .28799       -.97698E-04
   3  Normalizat    .90068        .11118        .44910E-01    .39377E-04
   4  Prefactor     1.0169        .89457E-01    .42460E-01    .97800E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.969572
  alpha      = 1.49772
  Normalizat = 0.90068
  Prefactor  = 1.01687
 **********
 **   18 **HESSE 
 **********

 FCN=   14807.77     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .60E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .96957        .50662        .42055E-04   -1.5511    
   2  alpha         1.4977        .35084        .11684E-01   -.41251    
   3  Normalizat    .90068        .12549        .27402E-03   -.96436    
   4  Prefactor     1.0169        .10108        .20822E-03   -.92169    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.98861e-12
Minuit parameter uncertainties:
  1  0.506618
  2  0.352224
  3  0.125529
  4  0.101097
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/569179': 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) = 14807.7729627
delta logL = 1.0762802013

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  9.696e-01  5.066e-01  1.000e-04  1.000e+04 ( 1.000e-11)
284        alpha:  1.498e+00  3.522e-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:  1.017e+00  1.011e-01  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:  9.007e-01  1.255e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 42.28
Ra Dec: 124.557 42.382
Photon Index (Free Index): 1.50 +/- 0.35
Photon Flux (Free Index): 3.35e-08 +/- 2.12e-08
Energy Flux (Free Index): 5.67e-05 +/- 3.08e-05

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/569179/cmap_HighResolution_470620801_471225601_4FGL_J0818.2+4222_weekly_bin383.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.36e-08', energy_flux2='5.67e-05', photon_flux_error='2.07e-08', dlogl='1.08e+00', energy_flux='3.58e-05', photon_flux2='3.35e-08', job_status='DONE', time_completed='2021-07-13 15:09:43.060577', photon_index_error2='0.35', photon_index2='1.50', ts='40.13', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='3.08e-05', EG='0.88', time_epoch_completed='1626214183.06', return_code='0', job_id='569179', GAL2='1.02', EG2='0.90', return_code2='0', energy_flux_error='1.16e-05', photon_flux_error2='2.12e-08', ts2='42.28', photon_index='2.00' WHERE bin_id='383' AND source_name='4FGL J0818.2+4222' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 13 15:09:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 569179: <4FGL_J0818.2+4222_weekly_bin383> in cluster <slac> Done

Job <4FGL_J0818.2+4222_weekly_bin383> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Jul 12 07:32:07 2021
Job was executed on host(s) <bullet0202>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jul 12 07:34:11 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:34:11 2021
Terminated at Tue Jul 13 15:09:44 2021
Results reported at Tue Jul 13 15:09:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.2+4222_weekly_bin383 124.557 42.3819 470620801 471225601 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 :                                   1402.04 sec.
    Max Memory :                                 622 MB
    Average Memory :                             615.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              6
    Max Threads :                                22
    Run time :                                   1817 sec.
    Turnaround time :                            113857 sec.

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

