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


Performing analysis on: 4FGL_J0818.2+4222_weekly_bin599
RA = 124.557, Dec = 42.3819
tmin = 601257601, tmax = 601862401
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='571696', job_status='RUN', time_executed='2021-07-13 14:54:18.086481', time_epoch_executed='1626213258.09' WHERE source_name='4FGL J0818.2+4222' and cadence='weekly' and bin_id='599'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/571696

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/571696/ft1_4FGL_J0818.2+4222_weekly_bin599.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/571696/ft2_4FGL_J0818.2+4222_weekly_bin599.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/571696/ft1_4FGL_J0818.2+4222_weekly_bin599.fits outfile=/scratch/kocevski/571696/ft1_filteredMKT_4FGL_J0818.2+4222_weekly_bin599.fits ra=124.557 dec=42.3819 rad=12.0 tmin=601257601.0 tmax=601862401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 7.71
user 7.38
sys 0.28

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/571696/ft1_filtered_4FGL_J0818.2+4222_weekly_bin599.fits" evtable="EVENTS" scfile=/scratch/kocevski/571696/ft2_4FGL_J0818.2+4222_weekly_bin599.fits sctable="SC_DATA" outfile=/scratch/kocevski/571696/ltcube_601257601_601862401_4FGL_J0818.2+4222_weekly_bin599.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/571696/ft2_4FGL_J0818.2+4222_weekly_bin599.fits
.....................!
real 27.64
user 26.98
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/571696/ft1_filtered_4FGL_J0818.2+4222_weekly_bin599.fits evtable="EVENTS" scfile=/scratch/kocevski/571696/ft2_4FGL_J0818.2+4222_weekly_bin599.fits sctable="SC_DATA" expcube=/scratch/kocevski/571696/ltcube_601257601_601862401_4FGL_J0818.2+4222_weekly_bin599.fits outfile=/scratch/kocevski/571696/expmap_601257601_601862401_4FGL_J0818.2+4222_weekly_bin599.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/571696/ltcube_601257601_601862401_4FGL_J0818.2+4222_weekly_bin599.fits
.....................!
real 192.36
user 185.92
sys 5.49

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/571696/ft1_filtered_4FGL_J0818.2+4222_weekly_bin599.fits scfile=/scratch/kocevski/571696/ft2_4FGL_J0818.2+4222_weekly_bin599.fits outfile=/scratch/kocevski/571696/cmap_601257601_601862401_4FGL_J0818.2+4222_weekly_bin599.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.60
user 0.39
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/571696/ft1_filtered_4FGL_J0818.2+4222_weekly_bin599.fits scfile=/scratch/kocevski/571696/ft2_4FGL_J0818.2+4222_weekly_bin599.fits outfile=/scratch/kocevski/571696/cmap_HighResolution_601257601_601862401_4FGL_J0818.2+4222_weekly_bin599.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.41
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .69466       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.6776       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.258       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.8577       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.3517       1.0000         .10000E-03   10000.    
     6 'norm      '    10.689       1.0000         .10000E-03   10000.    
     7 'norm      '    2.7792       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    74.310       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.8695       1.0000         .10000E-03   10000.    
    11 'norm      '    6.4307       1.0000         .10000E-03   10000.    
    12 'norm      '    2.3832       1.0000         .10000E-03   10000.    
    13 'norm      '    .80061       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.6590       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .95407E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.8255       1.0000         .10000E-03   10000.    
    17 'Prefactor '    40.440       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    18.503       1.0000         .10000E-03   10000.    
    21 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.1112       1.0000         .10000E-03   10000.    
    23 'Prefactor '    11.175       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .75042       1.0000         .10000E-03   10000.    
    26 'Prefactor '    7.7524       1.0000         .10000E-03   10000.    
    27 'norm      '    .13818       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .59780       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0341       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0037       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=   16900.09     FROM MIGRAD    STATUS=CONVERGED    778 CALLS     4021 TOTAL
                     EDM=   .77E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .69369        1.8087        .10157E-05   -.21581E-03
   2  Prefactor     3.6765        7.7267        .16712E-05    .31781E-03
   3  Prefactor     10.258        16.456       -.57618E-06   -.14117E-03
   4  Prefactor     5.8560        9.5612       -.49607E-07   -.13169E-03
   5  Prefactor     3.3539        11.052        .20303E-05    .16347E-03
   6  norm          10.689        7.8004       -.24770E-06   -.28070E-03
   7  norm          2.7794        1.8403        .86436E-07   -.88970E-04
   8  Prefactor     .10000E-03    3.4375       -.85724E-07** at limit **
   9  Prefactor     74.319        33.339       -.68645E-06   -.18959E-03
  10  Prefactor     2.8694        3.6225        .35747E-06   -.63783E-03
  11  norm          6.4309        2.9831        .26220E-08   -.15264E-03
  12  norm          2.3833        1.2498        .39833E-07   -.26048E-04
  13  norm          .80082        .38832        .43649E-07    .26772E-03
  14  Prefactor     5.6553        11.976       -.52278E-06   -.14979E-03
  15  Prefactor     .10000E-03    4.9334       -.22113E-06** at limit **
  16  Prefactor     1.8256        1.6181        .27302E-06    .18217E-03
  17  Prefactor     40.441        18.319       -.74178E-06   -.49376E-03
  18  Prefactor     .10000E-03    1.9510       -.65780E-07** at limit **
  19  Prefactor     .10000E-03    3.7511        .10028E-06** at limit **
  20  norm          18.506        5.2835       -.18205E-06   -.53628E-03
  21  norm          .10000E-03    1.2377        .59885E-08** at limit **
  22  Prefactor     2.1127        1.6136        .11988E-06    .34838E-03
  23  Prefactor     11.022        33.777       -.80917E-06   -.30781E-04
  24  Prefactor     .10000E-03    17.310        .73033E-07** at limit **
  25  Prefactor     .75108        1.7053        .11180E-05    .12884E-03
  26  Prefactor     7.7553        12.499       -.11999E-06    .71744E-04
  27  norm          .13836        .36347        .48105E-06    .21726E-03
  28  Prefactor     .59652        3.1320       -.18644E-05    .84614E-03
  29  Normalizat    1.0338        .12907        .37138E-06   -.17074E-04
  30  Prefactor     1.0040        .93211E-01   -.66287E-06    .55080E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.693691
  Prefactor  = 3.67648
  Prefactor  = 10.2582
  Prefactor  = 5.85597
  Prefactor  = 3.35393
  norm       = 10.6895
  norm       = 2.77942
  Prefactor  = 0.0001
  Prefactor  = 74.319
  Prefactor  = 2.8694
  norm       = 6.43092
  norm       = 2.38326
  norm       = 0.80082
  Prefactor  = 5.65529
  Prefactor  = 0.000100003
  Prefactor  = 1.8256
  Prefactor  = 40.4412
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 18.5062
  norm       = 0.0001
  Prefactor  = 2.1127
  Prefactor  = 11.0224
  Prefactor  = 0.0001
  Prefactor  = 0.751078
  Prefactor  = 7.7553
  norm       = 0.138359
  Prefactor  = 0.596521
  Normalizat = 1.03376
  Prefactor  = 1.00396
 **********
 **   18 **HESSE 
 **********

 FCN=   16900.09     FROM HESSE     STATUS=OK           608 CALLS     4629 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .69369        1.8467        .27566E-03   -1.5541    
   2  Prefactor     3.6765        7.7892        .21062E-03   -1.5324    
   3  Prefactor     10.258        16.478        .12510E-03   -1.5067    
   4  Prefactor     5.8560        9.4930        .16593E-03   -1.5224    
   5  Prefactor     3.3539        11.092        .22106E-03   -1.5342    
   6  norm          10.689        7.8333        .12254E-03   -1.5054    
   7  norm          2.7794        1.8242        .13125E-03   -1.5375    
   8  Prefactor     .10000E-03    3.5042        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     74.319        33.379        .46576E-04   -1.3982    
  10  Prefactor     2.8694        3.6511        .23996E-03   -1.5369    
  11  norm          6.4309        2.9789        .14339E-03   -1.5201    
  12  norm          2.3833        1.2471        .98413E-04   -1.5399    
  13  norm          .80082        .37014        .51661E-04   -1.5529    
  14  Prefactor     5.6553        12.026        .16886E-03   -1.5232    
  15  Prefactor     .10000E-03    44.478        .49474E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.8256        1.5541        .14148E-03   -1.5438    
  17  Prefactor     40.441        18.443        .63033E-04   -1.4435    
  18  Prefactor     .10000E-03    1.9578        .17724E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.8610        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          18.506        5.3030        .93110E-04   -1.4847    
  21  norm          .10000E-03    1.2458        .14119E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     2.1127        1.6034        .13446E-03   -1.5417    
  23  Prefactor     11.022        33.812        .11985E-03   -1.5044    
  24  Prefactor     .10000E-03    17.343        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .75108        1.7122        .24242E-03   -1.5535    
  26  Prefactor     7.7553        12.464        .14402E-03   -1.5151    
  27  norm          .13836        .53323        .77018E-03   -1.5634    
  28  Prefactor     .59652        10.645        .25340E-02   -1.5554    
  29  Normalizat    1.0338        .15146        .28673E-03   -.91908    
  30  Prefactor     1.0040        .10825        .22464E-03   -.92597    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.07683e-09
Minuit parameter uncertainties:
  1  1.84684
  2  7.79134
  3  16.485
  4  9.49542
  5  11.0992
  6  7.83406
  7  1.82423
  8  3.57308e-06
  9  33.3876
  10  3.65143
  11  2.97894
  12  1.24713
  13  0.370137
  14  12.031
  15  0.000734988
  16  1.55416
  17  18.4453
  18  2.10179e-06
  19  8.06258e-06
  20  5.30318
  21  1.69761e-06
  22  1.60344
  23  33.871
  24  1.33969e-05
  25  1.71233
  26  12.4678
  27  0.533246
  28  5.04048
  29  0.15152
  30  0.108269
Done.

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

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  8.008e-01  3.701e-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.004e+00  1.083e-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.034e+00  1.515e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.46
Ra Dec: 124.557 42.382
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 4.00e-08 +/- 1.85e-08
Energy Flux (Fixed Index): 2.25e-05 +/- 1.04e-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) = 16899.6300431
delta logL = 0.457256084293

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 16899.629898
delta logL = 0.457401169439

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .75075       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4703       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0081       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0141       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=   16899.63     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      210 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .75079        2.8745        .98486E-02    .20136E-02
   2  alpha         2.4704        3.5922        .41155        .72187E-04
   3  Normalizat    1.0081        .37183E-01    .46269E-01    .40890E-04
   4  Prefactor     1.0141        .25562E-01    .42783E-01    .15941E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.750787
  alpha      = 2.47035
  Normalizat = 1.00809
  Prefactor  = 1.01413
 **********
 **   18 **HESSE 
 **********

 FCN=   16899.63     FROM HESSE     STATUS=OK            33 CALLS      243 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .75079        .38017        .44361E-04   -1.5535    
   2  alpha         2.4704        .52256        .14358E-01   -.11860E-01
   3  Normalizat    1.0081        .13638        .28947E-03   -.92760    
   4  Prefactor     1.0141        .10406        .22354E-03   -.92260    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.74687e-09
Minuit parameter uncertainties:
  1  0.380171
  2  0.526441
  3  0.136426
  4  0.104078
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/571696': 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) = 16899.629898
delta logL = 0.457401192885

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  7.508e-01  3.802e-01  1.000e-04  1.000e+04 ( 1.000e-11)
284        alpha:  2.470e+00  5.264e-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.014e+00  1.041e-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.008e+00  1.364e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.37
Ra Dec: 124.557 42.382
Photon Index (Free Index): 2.47 +/- 0.53
Photon Flux (Free Index): 6.52e-08 +/- 3.61e-08
Energy Flux (Free Index): 1.97e-05 +/- 8.30e-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/571696/cmap_HighResolution_601257601_601862401_4FGL_J0818.2+4222_weekly_bin599.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.00e-08', energy_flux2='1.97e-05', photon_flux_error='1.85e-08', dlogl='4.57e-01', energy_flux='2.25e-05', photon_flux2='6.52e-08', job_status='DONE', time_completed='2021-07-13 15:30:05.157887', photon_index_error2='0.53', photon_index2='2.47', ts='10.46', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='8.30e-06', EG='1.03', time_epoch_completed='1626215405.16', return_code='0', job_id='571696', GAL2='1.01', EG2='1.01', return_code2='0', energy_flux_error='1.04e-05', photon_flux_error2='3.61e-08', ts2='11.37', photon_index='2.00' WHERE bin_id='599' AND source_name='4FGL J0818.2+4222' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 13 15:30:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0123>
Subject: Job 571696: <4FGL_J0818.2+4222_weekly_bin599> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.2+4222_weekly_bin599 124.557 42.3819 601257601 601862401 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 :                                   1676.07 sec.
    Max Memory :                                 1096 MB
    Average Memory :                             75.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2489 sec.
    Turnaround time :                            114555 sec.

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

