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 89 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 = 17391
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0818.2+4222_weekly_bin156
RA = 124.557, Dec = 42.3819
tmin = 333331201, tmax = 333936001
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='567855', job_status='RUN', time_executed='2021-07-12 07:31:45.685627', time_epoch_executed='1626100305.69' WHERE source_name='4FGL J0818.2+4222' and cadence='weekly' and bin_id='156'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/567855

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

Retrieving the FT1 file...

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

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

Retrieving 112 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/567855/ft1_4FGL_J0818.2+4222_weekly_bin156.fits


Retrieving the FT1 file...

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

Retrieving 112 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/567855/ft2_4FGL_J0818.2+4222_weekly_bin156.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/567855/ft1_4FGL_J0818.2+4222_weekly_bin156.fits outfile=/scratch/kocevski/567855/ft1_filteredMKT_4FGL_J0818.2+4222_weekly_bin156.fits ra=124.557 dec=42.3819 rad=12.0 tmin=333331201.0 tmax=333936001.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 16.95
user 10.05
sys 0.35

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/567855/ft1_filtered_4FGL_J0818.2+4222_weekly_bin156.fits" evtable="EVENTS" scfile=/scratch/kocevski/567855/ft2_4FGL_J0818.2+4222_weekly_bin156.fits sctable="SC_DATA" outfile=/scratch/kocevski/567855/ltcube_333331201_333936001_4FGL_J0818.2+4222_weekly_bin156.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/567855/ft2_4FGL_J0818.2+4222_weekly_bin156.fits
.....................!
real 36.87
user 29.71
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/567855/ft1_filtered_4FGL_J0818.2+4222_weekly_bin156.fits evtable="EVENTS" scfile=/scratch/kocevski/567855/ft2_4FGL_J0818.2+4222_weekly_bin156.fits sctable="SC_DATA" expcube=/scratch/kocevski/567855/ltcube_333331201_333936001_4FGL_J0818.2+4222_weekly_bin156.fits outfile=/scratch/kocevski/567855/expmap_333331201_333936001_4FGL_J0818.2+4222_weekly_bin156.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/567855/ltcube_333331201_333936001_4FGL_J0818.2+4222_weekly_bin156.fits
.....................!
real 208.66
user 187.05
sys 5.06

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/567855/ft1_filtered_4FGL_J0818.2+4222_weekly_bin156.fits scfile=/scratch/kocevski/567855/ft2_4FGL_J0818.2+4222_weekly_bin156.fits outfile=/scratch/kocevski/567855/cmap_333331201_333936001_4FGL_J0818.2+4222_weekly_bin156.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 2.06
user 0.42
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/567855/ft1_filtered_4FGL_J0818.2+4222_weekly_bin156.fits scfile=/scratch/kocevski/567855/ft2_4FGL_J0818.2+4222_weekly_bin156.fits outfile=/scratch/kocevski/567855/cmap_HighResolution_333331201_333936001_4FGL_J0818.2+4222_weekly_bin156.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.37
user 0.42
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.0022       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .16925E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .22956       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.219       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.3122       1.0000         .10000E-03   10000.    
    11 'norm      '    1.4527       1.0000         .10000E-03   10000.    
    12 'norm      '    6.9438       1.0000         .10000E-03   10000.    
    13 'norm      '    .89937       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.129       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .90067       1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.062       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10209E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    18.967       1.0000         .10000E-03   10000.    
    21 'norm      '    5.4839       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.4851       1.0000         .10000E-03   10000.    
    23 'Prefactor '    13.875       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .56078       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .12174       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.2227       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .81757       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=   16225.37     FROM MIGRAD    STATUS=CONVERGED    756 CALLS     3420 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .83460        .45998E-08** at limit **
   2  Prefactor     .10000E-03    1.9776       -.78927E-07** at limit **
   3  Prefactor     8.0010        14.671       -.11436E-05    .81655E-05
   4  Prefactor     .10000E-03    4.7516        .34194E-06** at limit **
   5  Prefactor     .10008E-03    4.6563       -.15650E-05** at limit **
   6  norm          .10000E-03    2.5940        .21624E-06** at limit **
   7  norm          .22668        .75852        .20822E-07    .31151E-04
   8  Prefactor     .10000E-03    1.6322        .22379E-07** at limit **
   9  Prefactor     12.219        20.659        .95263E-06    .69986E-04
  10  Prefactor     2.3122        .54735        .22258E-07   -.26248E-02
  11  norm          1.4526        1.9274        .94525E-07   -.86651E-04
  12  norm          6.9438        1.5512       -.24327E-07    .12593E-04
  13  norm          .89941        .32813       -.78104E-08    .23384E-03
  14  Prefactor     .10000E-03    7.6422       -.66530E-05** at limit **
  15  Prefactor     11.128        8.5243        .67990E-08   -.13581E-03
  16  Prefactor     .90075        1.2857       -.40178E-07   -.27145E-03
  17  Prefactor     13.063        11.609        .11283E-06    .22360E-04
  18  Prefactor     .10000E-03    3.5849       -.82690E-06** at limit **
  19  Prefactor     .10000E-03    4.5385        .11910E-05** at limit **
  20  norm          18.967        4.8082       -.90541E-08   -.28356E-04
  21  norm          5.4835        4.2809       -.24979E-07   -.86905E-04
  22  Prefactor     1.4854        1.2480        .71385E-08   -.13174E-03
  23  Prefactor     13.874        23.730       -.19103E-05   -.51261E-05
  24  Prefactor     .10000E-03    20.385        .61229E-05** at limit **
  25  Prefactor     .10000E-03    .53826       -.83503E-08** at limit **
  26  Prefactor     .10000E-03    8.4782        .61687E-05** at limit **
  27  norm          .56098        .29373       -.12551E-07   -.62286E-03
  28  Prefactor     .11935        .79990        .10873E-06   -.42326E-03
  29  Normalizat    1.2226        .11265        .58345E-08    .15144E-03
  30  Prefactor     .81767        .86838E-01    .10143E-06    .22192E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.00098
  Prefactor  = 0.0001
  Prefactor  = 0.000100084
  norm       = 0.0001
  norm       = 0.22668
  Prefactor  = 0.0001
  Prefactor  = 12.2193
  Prefactor  = 2.31224
  norm       = 1.45263
  norm       = 6.9438
  norm       = 0.89941
  Prefactor  = 0.0001
  Prefactor  = 11.1285
  Prefactor  = 0.900754
  Prefactor  = 13.0632
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 18.9668
  norm       = 5.4835
  Prefactor  = 1.48542
  Prefactor  = 13.8743
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.560983
  Prefactor  = 0.119349
  Normalizat = 1.22265
  Prefactor  = 0.817666
 **********
 **   18 **HESSE 
 **********

 FCN=   16225.37     FROM HESSE     STATUS=OK           598 CALLS     4018 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .83573        .11364E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.9833        .17493E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.0010        14.662        .14174E-03   -1.5142    
   4  Prefactor     .10000E-03    4.8022        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10008E-03    20.795        .51169E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    2.6162        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .22668        3.2992        .19233E-02   -1.5613    
   8  Prefactor     .10000E-03    1.6404        .15880E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     12.219        20.584        .11460E-03   -1.5009    
  10  Prefactor     2.3122        2.6794        .10536E-02   -1.5404    
  11  norm          1.4526        1.9013        .19374E-03   -1.5467    
  12  norm          6.9438        1.5482        .71033E-04   -1.5181    
  13  norm          .89941        .33377        .41790E-04   -1.5518    
  14  Prefactor     .10000E-03    7.7005        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     11.128        8.5036        .60047E-03   -1.5041    
  16  Prefactor     .90075        1.2834        .25620E-03   -1.5518    
  17  Prefactor     13.063        11.611        .11083E-03   -1.4985    
  18  Prefactor     .10000E-03    3.6552        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.7078        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          18.967        4.8051        .91967E-04   -1.4837    
  21  norm          5.4835        4.2768        .17158E-03   -1.5240    
  22  Prefactor     1.4854        1.2355        .12432E-03   -1.5464    
  23  Prefactor     13.874        23.726        .10753E-03   -1.4963    
  24  Prefactor     .10000E-03    20.492        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    .54870        .91194E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    8.5314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .56098        .37325        .44026E-04   -1.5558    
  28  Prefactor     .11935        16.619        .19738E-02   -1.5639    
  29  Normalizat    1.2226        .13221        .24632E-03   -.85906    
  30  Prefactor     .81767        .10096        .23312E-03   -.99080    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.53575e-09
Minuit parameter uncertainties:
  1  9.78865e-08
  2  1.4041e-07
  3  14.6685
  4  4.36113e-06
  5  0.00265097
  6  5.70513e-07
  7  1.72932
  8  3.93848e-07
  9  20.5963
  10  2.67952
  11  1.90136
  12  1.54823
  13  0.333773
  14  4.76421e-06
  15  8.50452
  16  1.28345
  17  11.6135
  18  1.25915e-06
  19  9.55192e-06
  20  4.8052
  21  4.27702
  22  1.2355
  23  23.7425
  24  4.06172e-05
  25  8.73442e-07
  26  2.58597e-05
  27  0.373255
  28  2.81634
  29  0.132249
  30  0.100986
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
620    Prefactor:  8.177e-01  1.010e-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.223e+00  1.322e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 35.84
Ra Dec: 124.557 42.382
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 4.49e-08 +/- 1.67e-08
Energy Flux (Fixed Index): 2.53e-05 +/- 9.39e-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) = 16224.235896
delta logL = 1.1311611285

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 16224.233218
delta logL = 1.13383917962

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .73029       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5022       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2364       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81626       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=   16224.23     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      220 TOTAL
                     EDM=   .82E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .73035        .28199        .94773E-02   -.52697E-03
   2  alpha         1.5023        .23786        .32448       -.84962E-04
   3  Normalizat    1.2364        .10807        .55469E-01    .14376E-04
   4  Prefactor     .81623        .85862E-01    .43929E-01    .32223E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.730349
  alpha      = 1.5023
  Normalizat = 1.23641
  Prefactor  = 0.816232
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .73035        .35773        .40893E-04   -1.5537    
   2  alpha         1.5023        .32731        .12893E-01   -.41051    
   3  Normalizat    1.2364        .12419        .24528E-03   -.85485    
   4  Prefactor     .81623        .98751E-01    .23348E-03   -.99133    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.37323e-09
Minuit parameter uncertainties:
  1  0.357728
  2  0.328429
  3  0.124224
  4  0.0987726
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/567855': 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) = 16224.2332177
delta logL = 1.13383942187

Extracting fit parameters...

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

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

EG_v02
   Spectrum: FileFunction
619   Normalization:  1.236e+00  1.242e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 38.15
Ra Dec: 124.557 42.382
Photon Index (Free Index): 1.50 +/- 0.33
Photon Flux (Free Index): 2.53e-08 +/- 1.47e-08
Energy Flux (Free Index): 4.23e-05 +/- 2.47e-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/567855/cmap_HighResolution_333331201_333936001_4FGL_J0818.2+4222_weekly_bin156.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.49e-08', energy_flux2='4.23e-05', photon_flux_error='1.67e-08', dlogl='1.13e+00', energy_flux='2.53e-05', photon_flux2='2.53e-08', job_status='DONE', time_completed='2021-07-13 15:07:47.146725', photon_index_error2='0.33', photon_index2='1.50', ts='35.84', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', energy_flux_error2='2.47e-05', EG='1.22', time_epoch_completed='1626214067.15', return_code='0', job_id='567855', GAL2='0.82', EG2='1.24', return_code2='0', energy_flux_error='9.39e-06', photon_flux_error2='1.47e-08', ts2='38.15', photon_index='2.00' WHERE bin_id='156' AND source_name='4FGL J0818.2+4222' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 13 15:07:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0170>
Subject: Job 567855: <4FGL_J0818.2+4222_weekly_bin156> in cluster <slac> Done

Job <4FGL_J0818.2+4222_weekly_bin156> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Mon Jul 12 07:26:49 2021
Job was executed on host(s) <bullet0170>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jul 12 07:27:36 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:27:36 2021
Terminated at Tue Jul 13 15:07:48 2021
Results reported at Tue Jul 13 15:07:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.2+4222_weekly_bin156 124.557 42.3819 333331201 333936001 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 :                                   1552.00 sec.
    Max Memory :                                 917 MB
    Average Memory :                             324.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2096 sec.
    Turnaround time :                            114059 sec.

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

