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


Performing analysis on: 4FGL_J0818.2+4222_weekly_bin646
RA = 124.557, Dec = 42.3819
tmin = 629683201, tmax = 630288001
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='571763', job_status='RUN', time_executed='2021-07-13 14:53:53.701970', time_epoch_executed='1626213233.7' WHERE source_name='4FGL J0818.2+4222' and cadence='weekly' and bin_id='646'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/571763

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/571763/ft1_4FGL_J0818.2+4222_weekly_bin646.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/571763/ft2_4FGL_J0818.2+4222_weekly_bin646.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/571763/ft1_4FGL_J0818.2+4222_weekly_bin646.fits outfile=/scratch/kocevski/571763/ft1_filteredMKT_4FGL_J0818.2+4222_weekly_bin646.fits ra=124.557 dec=42.3819 rad=12.0 tmin=629683201.0 tmax=630288001.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 9.27
user 8.84
sys 0.32

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/571763/ft1_filtered_4FGL_J0818.2+4222_weekly_bin646.fits evtable="EVENTS" scfile=/scratch/kocevski/571763/ft2_4FGL_J0818.2+4222_weekly_bin646.fits sctable="SC_DATA" expcube=/scratch/kocevski/571763/ltcube_629683201_630288001_4FGL_J0818.2+4222_weekly_bin646.fits outfile=/scratch/kocevski/571763/expmap_629683201_630288001_4FGL_J0818.2+4222_weekly_bin646.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/571763/ltcube_629683201_630288001_4FGL_J0818.2+4222_weekly_bin646.fits
.....................!
real 191.89
user 186.11
sys 5.14

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/571763/ft1_filtered_4FGL_J0818.2+4222_weekly_bin646.fits scfile=/scratch/kocevski/571763/ft2_4FGL_J0818.2+4222_weekly_bin646.fits outfile=/scratch/kocevski/571763/cmap_629683201_630288001_4FGL_J0818.2+4222_weekly_bin646.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.42
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/571763/ft1_filtered_4FGL_J0818.2+4222_weekly_bin646.fits scfile=/scratch/kocevski/571763/ft2_4FGL_J0818.2+4222_weekly_bin646.fits outfile=/scratch/kocevski/571763/cmap_HighResolution_629683201_630288001_4FGL_J0818.2+4222_weekly_bin646.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.63
user 0.42
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .17189E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    71.378       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10268E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.2640       1.0000         .10000E-03   10000.    
     6 'norm      '    .31438       1.0000         .10000E-03   10000.    
     7 'norm      '    1.9243       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10729E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .14734E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.7069       1.0000         .10000E-03   10000.    
    11 'norm      '    2.9458       1.0000         .10000E-03   10000.    
    12 'norm      '    1.1343       1.0000         .10000E-03   10000.    
    13 'norm      '    .91260       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.2859       1.0000         .10000E-03   10000.    
    17 'Prefactor '    17.015       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.7120       1.0000         .10000E-03   10000.    
    20 'norm      '    5.0518       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.4601       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.1728       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .54165E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    4.8897       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .63914       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1548       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=   16020.14     FROM MIGRAD    STATUS=CONVERGED    788 CALLS     3458 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.6412       -.65495E-06** at limit **
   2  Prefactor     .10000E-03    4.3650        .88801E-06** at limit **
   3  Prefactor     71.374        21.867       -.45202E-06   -.31137E-03
   4  Prefactor     .10000E-03    2.5228        .21496E-08** at limit **
   5  Prefactor     2.2654        5.1802        .93264E-06    .37729E-03
   6  norm          .33332        6.2838       -.27847E-05    .12128E-02
   7  norm          1.9245        1.1608       -.21527E-08    .25511E-04
   8  Prefactor     .10000E-03    1.9161       -.87325E-06** at limit **
   9  Prefactor     .10000E-03    46.599        .95498E-06** at limit **
  10  Prefactor     7.7076        3.3327       -.15244E-06   -.68125E-04
  11  norm          2.9458        2.0989        .89124E-07    .27070E-03
  12  norm          1.1343        .74241       -.11174E-07   -.29019E-04
  13  norm          .91258        .32801       -.55455E-08    .27773E-03
  14  Prefactor     .10000E-03    12.507       -.41441E-06** at limit **
  15  Prefactor     .10000E-03    8.2828        .68145E-06** at limit **
  16  Prefactor     1.2844        1.5603        .71777E-06    .17195E-02
  17  Prefactor     17.008        15.201       -.15607E-06    .32979E-04
  18  Prefactor     .10000E-03    3.2046        .10013E-06** at limit **
  19  Prefactor     4.7119        3.8128        .49043E-06    .68017E-03
  20  norm          5.0516        2.9620       -.16622E-07    .33350E-04
  21  norm          .10000E-03    1.4771       -.17018E-07** at limit **
  22  Prefactor     2.4600        1.3255        .46442E-07    .66257E-03
  23  Prefactor     .10000E-03    12.326       -.93483E-06** at limit **
  24  Prefactor     5.1422        18.480       -.18395E-05   -.27179E-03
  25  Prefactor     .10000E-03    .58132       -.24230E-06** at limit **
  26  Prefactor     .10000E-03    4.7900        .98227E-06** at limit **
  27  norm          .10000E-03    .14564       -.11052E-06** at limit **
  28  Prefactor     4.8881        2.4748        .25063E-06    .17909E-02
  29  Normalizat    .63914        .11414        .83462E-06    .68163E-03
  30  Prefactor     1.1548        .89012E-01   -.39914E-06    .85341E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 71.3745
  Prefactor  = 0.0001
  Prefactor  = 2.26538
  norm       = 0.333322
  norm       = 1.92451
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 7.70761
  norm       = 2.94582
  norm       = 1.13433
  norm       = 0.912579
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.28442
  Prefactor  = 17.0079
  Prefactor  = 0.0001
  Prefactor  = 4.71189
  norm       = 5.05157
  norm       = 0.0001
  Prefactor  = 2.46004
  Prefactor  = 0.000100001
  Prefactor  = 5.1422
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 4.8881
  Normalizat = 0.639143
  Prefactor  = 1.1548
 **********
 **   18 **HESSE 
 **********

 FCN=   16020.14     FROM HESSE     STATUS=OK           598 CALLS     4056 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.9174        .30102E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.4184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     71.374        21.888        .47516E-04   -1.4016    
   4  Prefactor     .10000E-03    2.5373        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.2654        5.1864        .27299E-03   -1.5407    
   6  norm          .33332        26.827        .38838E-02   -1.5593    
   7  norm          1.9245        1.1645        .10272E-03   -1.5431    
   8  Prefactor     .10000E-03    5.8315        .31343E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    47.558        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.7076        3.3167        .13989E-03   -1.5153    
  11  norm          2.9458        2.0908        .14820E-03   -1.5365    
  12  norm          1.1343        .73835        .84591E-04   -1.5495    
  13  norm          .91258        .32702        .40993E-04   -1.5517    
  14  Prefactor     .10000E-03    12.615        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.4717        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.2844        1.5641        .16652E-03   -1.5481    
  17  Prefactor     17.008        15.166        .97097E-04   -1.4883    
  18  Prefactor     .10000E-03    3.2308        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.7119        3.8378        .92687E-03   -1.5274    
  20  norm          5.0516        2.9598        .16083E-03   -1.5258    
  21  norm          .10000E-03    1.5000        .15011E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     2.4600        1.3203        .10212E-03   -1.5394    
  23  Prefactor     .10000E-03    12.376        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     5.1422        19.205        .17676E-03   -1.5254    
  25  Prefactor     .10000E-03    1.0668        .18410E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    20.956        .49598E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    .25135        .83580E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     4.8881        2.2525        .12189E-03   -1.5266    
  29  Normalizat    .63914        .12630        .30468E-03   -1.0635    
  30  Prefactor     1.1548        .10017        .19210E-03   -.87734    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.02778e-08
Minuit parameter uncertainties:
  1  5.54473e-05
  2  0.000101706
  3  21.8905
  4  1.19449e-06
  5  5.18739
  6  5.98255
  7  1.16454
  8  0.000173955
  9  0.000376466
  10  3.31674
  11  2.09084
  12  0.738353
  13  0.327023
  14  8.17351e-05
  15  7.65696e-05
  16  1.56414
  17  15.1693
  18  7.68812e-06
  19  3.83803
  20  2.95991
  21  2.83495e-06
  22  1.32034
  23  0.0001829
  24  19.2285
  25  4.69802e-06
  26  0.000427057
  27  4.51025e-06
  28  2.25251
  29  0.126357
  30  0.100186
Done.

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

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  9.126e-01  3.270e-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.155e+00  1.002e-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:  6.391e-01  1.264e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 26.47
Ra Dec: 124.557 42.382
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 4.56e-08 +/- 1.63e-08
Energy Flux (Fixed Index): 2.57e-05 +/- 9.20e-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) = 16020.1333982
delta logL = 0.00914805985485

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 16020.1327472
delta logL = 0.00979910710885

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .90157       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9406       1.0000          .0000       5.0000    
     3 'Normalizat'    .64196       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1539       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=   16020.13     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      212 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .90157        5.5533        .93893E-02    .10421E-02
   2  alpha         1.9406        3.3254        .31539       -.41013E-04
   3  Normalizat    .64195        .11276        .68713E-01   -.15582E-05
   4  Prefactor     1.1539        .59505E-01    .35824E-01    .61968E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.901574
  alpha      = 1.94056
  Normalizat = 0.641955
  Prefactor  = 1.15392
 **********
 **   18 **HESSE 
 **********

 FCN=   16020.13     FROM HESSE     STATUS=OK            31 CALLS      243 TOTAL
                     EDM=   .44E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .90157        .33198        .41327E-04   -1.5518    
   2  alpha         1.9406        .39189        .15856E-01   -.22569    
   3  Normalizat    .64195        .12019        .30409E-03   -1.0623    
   4  Prefactor     1.1539        .98708E-01    .19218E-03   -.87761    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.41895e-11
Minuit parameter uncertainties:
  1  0.331985
  2  0.393596
  3  0.12024
  4  0.0987242
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/571763': 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) = 16020.1327472
delta logL = 0.00979910716524

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  9.016e-01  3.320e-01  1.000e-04  1.000e+04 ( 1.000e-11)
284        alpha:  1.941e+00  3.936e-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.154e+00  9.872e-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:  6.420e-01  1.202e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 26.52
Ra Dec: 124.557 42.382
Photon Index (Free Index): 1.94 +/- 0.39
Photon Flux (Free Index): 4.26e-08 +/- 2.51e-08
Energy Flux (Free Index): 2.65e-05 +/- 1.17e-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/571763/cmap_HighResolution_629683201_630288001_4FGL_J0818.2+4222_weekly_bin646.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.56e-08', energy_flux2='2.65e-05', photon_flux_error='1.63e-08', dlogl='9.80e-03', energy_flux='2.57e-05', photon_flux2='4.26e-08', job_status='DONE', time_completed='2021-07-13 15:25:22.607237', photon_index_error2='0.39', photon_index2='1.94', ts='26.47', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', energy_flux_error2='1.17e-05', EG='0.64', time_epoch_completed='1626215122.61', return_code='0', job_id='571763', GAL2='1.15', EG2='0.64', return_code2='0', energy_flux_error='9.20e-06', photon_flux_error2='2.51e-08', ts2='26.52', photon_index='2.00' WHERE bin_id='646' AND source_name='4FGL J0818.2+4222' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 13 15:25:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0090>
Subject: Job 571763: <4FGL_J0818.2+4222_weekly_bin646> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.2+4222_weekly_bin646 124.557 42.3819 629683201 630288001 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 :                                   1510.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             13.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2145 sec.
    Turnaround time :                            114257 sec.

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

