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


Performing analysis on: 4FGL_J0818.2+4222_weekly_bin618
RA = 124.557, Dec = 42.3819
tmin = 612748801, tmax = 613353601
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='571720', job_status='RUN', time_executed='2021-07-13 14:53:46.895768', time_epoch_executed='1626213226.9' WHERE source_name='4FGL J0818.2+4222' and cadence='weekly' and bin_id='618'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/571720

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/571720/ft1_4FGL_J0818.2+4222_weekly_bin618.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/571720/ft2_4FGL_J0818.2+4222_weekly_bin618.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/571720/ft1_4FGL_J0818.2+4222_weekly_bin618.fits outfile=/scratch/kocevski/571720/ft1_filteredMKT_4FGL_J0818.2+4222_weekly_bin618.fits ra=124.557 dec=42.3819 rad=12.0 tmin=612748801.0 tmax=613353601.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 6.14
user 5.79
sys 0.28

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/571720/ft2_4FGL_J0818.2+4222_weekly_bin618.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/571720/ft1_filteredMKT_4FGL_J0818.2+4222_weekly_bin618.fits evtable="EVENTS" outfile="/scratch/kocevski/571720/ft1_filtered_4FGL_J0818.2+4222_weekly_bin618.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.83
user 0.38
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/571720/ft1_filtered_4FGL_J0818.2+4222_weekly_bin618.fits" evtable="EVENTS" scfile=/scratch/kocevski/571720/ft2_4FGL_J0818.2+4222_weekly_bin618.fits sctable="SC_DATA" outfile=/scratch/kocevski/571720/ltcube_612748801_613353601_4FGL_J0818.2+4222_weekly_bin618.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/571720/ft2_4FGL_J0818.2+4222_weekly_bin618.fits
.....................!
real 29.01
user 28.57
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/571720/ft1_filtered_4FGL_J0818.2+4222_weekly_bin618.fits evtable="EVENTS" scfile=/scratch/kocevski/571720/ft2_4FGL_J0818.2+4222_weekly_bin618.fits sctable="SC_DATA" expcube=/scratch/kocevski/571720/ltcube_612748801_613353601_4FGL_J0818.2+4222_weekly_bin618.fits outfile=/scratch/kocevski/571720/expmap_612748801_613353601_4FGL_J0818.2+4222_weekly_bin618.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/571720/ltcube_612748801_613353601_4FGL_J0818.2+4222_weekly_bin618.fits
.....................!
real 191.31
user 185.50
sys 5.35

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/571720/ft1_filtered_4FGL_J0818.2+4222_weekly_bin618.fits scfile=/scratch/kocevski/571720/ft2_4FGL_J0818.2+4222_weekly_bin618.fits outfile=/scratch/kocevski/571720/cmap_612748801_613353601_4FGL_J0818.2+4222_weekly_bin618.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 0.61
user 0.40
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10056E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10123E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.0106       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    13.225       1.0000         .10000E-03   10000.    
     7 'norm      '    2.4232       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .28888       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.7862       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.3992       1.0000         .10000E-03   10000.    
    12 'norm      '    1.0595       1.0000         .10000E-03   10000.    
    13 'norm      '    1.1531       1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.693       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12042E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.5876       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.0835       1.0000         .10000E-03   10000.    
    20 'norm      '    .95061       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.8339       1.0000         .10000E-03   10000.    
    24 'Prefactor '    7.8347       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    3.5662       1.0000         .10000E-03   10000.    
    27 'norm      '    .10209       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0414       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0292       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=   16443.41     FROM MIGRAD    STATUS=CONVERGED    800 CALLS     3480 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10005E-03    3.2211        .28292E-06** at limit **
   2  Prefactor     .10000E-03    16.828        .23970E-06** at limit **
   3  Prefactor     .10000E-03    4.4904        .14772E-07** at limit **
   4  Prefactor     8.0112        6.8991        .83857E-07    .47826E-04
   5  Prefactor     .10000E-03    9.3212        .17999E-07** at limit **
   6  norm          13.225        8.8774        .58919E-07   -.43869E-05
   7  norm          2.4234        1.4731        .93003E-08    .14282E-03
   8  Prefactor     .31181        3.9987       -.14616E-05    .10226E-02
   9  Prefactor     6.7867        32.243       -.51650E-06    .83509E-04
  10  Prefactor     .10000E-03    2.0961        .22573E-07** at limit **
  11  norm          3.3991        2.0900        .34911E-07    .36844E-04
  12  norm          1.0596        .81678        .57397E-07    .13034E-03
  13  norm          1.1530        .37048       -.65177E-08    .95088E-03
  14  Prefactor     16.694        13.738        .36369E-07    .84494E-05
  15  Prefactor     .10000E-03    4.8270       -.22030E-06** at limit **
  16  Prefactor     1.5872        1.7143        .34988E-06    .50308E-03
  17  Prefactor     .10000E-03    10.128       -.53386E-07** at limit **
  18  Prefactor     .10000E-03    1.6411        .27752E-07** at limit **
  19  Prefactor     6.0834        3.6242        .26778E-07    .42490E-04
  20  norm          .95373        1.8026       -.31374E-06   -.75711E-03
  21  norm          .10000E-03    .61124       -.54520E-07** at limit **
  22  Prefactor     .10000E-03    .39643       -.22260E-06** at limit **
  23  Prefactor     3.7986        63.815       -.71284E-06   -.69985E-04
  24  Prefactor     7.8344        13.775        .31715E-07    .71717E-05
  25  Prefactor     .10000E-03    .42181        .55563E-07** at limit **
  26  Prefactor     3.5655        6.2744        .29284E-06    .68718E-04
  27  norm          .10213        .16400        .32706E-06    .30760E-02
  28  Prefactor     .10000E-03    .64776       -.47797E-06** at limit **
  29  Normalizat    1.0414        .11510        .21790E-06    .40206E-03
  30  Prefactor     1.0292        .92265E-01   -.41369E-06    .40285E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100046
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.01117
  Prefactor  = 0.0001
  norm       = 13.2251
  norm       = 2.42337
  Prefactor  = 0.311815
  Prefactor  = 6.78672
  Prefactor  = 0.0001
  norm       = 3.39912
  norm       = 1.05962
  norm       = 1.15301
  Prefactor  = 16.6935
  Prefactor  = 0.0001
  Prefactor  = 1.58716
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.08338
  norm       = 0.95373
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.7986
  Prefactor  = 7.83442
  Prefactor  = 0.0001
  Prefactor  = 3.56551
  norm       = 0.102128
  Prefactor  = 0.0001
  Normalizat = 1.04136
  Prefactor  = 1.02921
 **********
 **   18 **HESSE 
 **********

 FCN=   16443.41     FROM HESSE     STATUS=OK           614 CALLS     4094 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10005E-03    4.1988        .73480E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    17.553        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.4924        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.0112        6.8820        .14166E-03   -1.5142    
   5  Prefactor     .10000E-03    9.4010        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          13.225        8.8702        .11015E-03   -1.4980    
   7  norm          2.4234        1.4702        .11616E-03   -1.5397    
   8  Prefactor     .31181        17.625        .38823E-02   -1.5596    
   9  Prefactor     6.7867        31.690        .15402E-03   -1.5187    
  10  Prefactor     .10000E-03    2.1543        .36158E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.3991        2.0810        .13856E-03   -1.5339    
  12  norm          1.0596        .80358        .96878E-04   -1.5502    
  13  norm          1.1530        .36201        .41499E-04   -1.5493    
  14  Prefactor     16.694        13.733        .98028E-04   -1.4891    
  15  Prefactor     .10000E-03    39.967        .49296E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.5872        1.6017        .15553E-03   -1.5456    
  17  Prefactor     .10000E-03    10.191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.6493        .16039E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.0834        3.6238        .16278E-03   -1.5215    
  20  norm          .95373        1.3742        .23296E-02   -1.5513    
  21  norm          .10000E-03    .61231        .97843E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    .59336        .15258E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     3.7986        64.776        .20612E-03   -1.5318    
  24  Prefactor     7.8344        13.743        .14326E-03   -1.5148    
  25  Prefactor     .10000E-03    .64421        .16032E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     3.5655        6.2387        .21401E-03   -1.5330    
  27  norm          .10213        .16776        .64088E-04   -1.5644    
  28  Prefactor     .10000E-03    1.2030        .19416E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0414        .12659        .25891E-03   -.91657    
  30  Prefactor     1.0292        .10428        .21899E-03   -.91762    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0105e-08
Minuit parameter uncertainties:
  1  0.000878278
  2  1.77452e-05
  3  1.21321e-06
  4  6.88269
  5  4.24882e-05
  6  8.87111
  7  1.47021
  8  4.68927
  9  29.356
  10  5.81253e-06
  11  2.08107
  12  0.803588
  13  0.362014
  14  13.7359
  15  3.57494e-05
  16  1.60175
  17  3.17527e-05
  18  1.5141e-06
  19  3.62388
  20  1.37429
  21  1.23685e-07
  22  6.8751e-06
  23  31.412
  24  13.7481
  25  5.20103e-06
  26  6.23986
  27  0.167763
  28  2.70702e-05
  29  0.126625
  30  0.104298
Done.

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

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  1.153e+00  3.620e-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.029e+00  1.043e-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:  1.041e+00  1.266e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 31.02
Ra Dec: 124.557 42.382
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 5.76e-08 +/- 1.81e-08
Energy Flux (Fixed Index): 3.24e-05 +/- 1.02e-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) = 16442.7427514
delta logL = 0.668582639064

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 16442.7390622
delta logL = 0.672271829539

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0396       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6548       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0563       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0266       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=   16442.74     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      209 TOTAL
                     EDM=   .73E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0397        .36038        .95846E-02    .40763E-04
   2  alpha         1.6549        .24172        .30782       -.79119E-04
   3  Normalizat    1.0563        .10598        .58235E-01    .87917E-04
   4  Prefactor     1.0266        .89305E-01    .41535E-01    .91342E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.03974
  alpha      = 1.65486
  Normalizat = 1.0563
  Prefactor  = 1.0266
 **********
 **   18 **HESSE 
 **********

 FCN=   16442.74     FROM HESSE     STATUS=OK            33 CALLS      242 TOTAL
                     EDM=   .48E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0397        .39379        .42258E-04   -1.5504    
   2  alpha         1.6549        .29097        .12277E-01   -.34485    
   3  Normalizat    1.0563        .12183        .25753E-03   -.91167    
   4  Prefactor     1.0266        .10288        .21933E-03   -.91848    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.81246e-12
Minuit parameter uncertainties:
  1  0.393792
  2  0.29172
  3  0.121861
  4  0.102902
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/571720': 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) = 16442.7390622
delta logL = 0.672271873667

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  1.040e+00  3.938e-01  1.000e-04  1.000e+04 ( 1.000e-11)
284        alpha:  1.655e+00  2.917e-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.027e+00  1.029e-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:  1.056e+00  1.219e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 32.38
Ra Dec: 124.557 42.382
Photon Index (Free Index): 1.65 +/- 0.29
Photon Flux (Free Index): 3.90e-08 +/- 1.93e-08
Energy Flux (Free Index): 4.46e-05 +/- 2.10e-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/571720/cmap_HighResolution_612748801_613353601_4FGL_J0818.2+4222_weekly_bin618.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.76e-08', energy_flux2='4.46e-05', photon_flux_error='1.81e-08', dlogl='6.72e-01', energy_flux='3.24e-05', photon_flux2='3.90e-08', job_status='DONE', time_completed='2021-07-13 15:25:34.671899', photon_index_error2='0.29', photon_index2='1.65', ts='31.02', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='2.10e-05', EG='1.04', time_epoch_completed='1626215134.67', return_code='0', job_id='571720', GAL2='1.03', EG2='1.06', return_code2='0', energy_flux_error='1.02e-05', photon_flux_error2='1.93e-08', ts2='32.38', photon_index='2.00' WHERE bin_id='618' AND source_name='4FGL J0818.2+4222' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 13 15:25:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 571720: <4FGL_J0818.2+4222_weekly_bin618> in cluster <slac> Done

Job <4FGL_J0818.2+4222_weekly_bin618> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Mon Jul 12 07:41:03 2021
Job was executed on host(s) <bullet0224>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jul 12 07:43:50 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:43:50 2021
Terminated at Tue Jul 13 15:25:36 2021
Results reported at Tue Jul 13 15:25:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.2+4222_weekly_bin618 124.557 42.3819 612748801 613353601 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 :                                   1518.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             12.98 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2187 sec.
    Turnaround time :                            114273 sec.

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

