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


Performing analysis on: 4FGL_J0818.2+4222_weekly_bin280
RA = 124.557, Dec = 42.3819
tmin = 408326401, tmax = 408931201
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='569020', job_status='RUN', time_executed='2021-07-12 07:38:30.505994', time_epoch_executed='1626100710.51' WHERE source_name='4FGL J0818.2+4222' and cadence='weekly' and bin_id='280'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/569020

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

Retrieving the FT1 file...

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

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

Retrieving 106 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/569020/ft1_4FGL_J0818.2+4222_weekly_bin280.fits


Retrieving the FT1 file...

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

Retrieving 106 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/569020/ft2_4FGL_J0818.2+4222_weekly_bin280.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/569020/ft1_4FGL_J0818.2+4222_weekly_bin280.fits outfile=/scratch/kocevski/569020/ft1_filteredMKT_4FGL_J0818.2+4222_weekly_bin280.fits ra=124.557 dec=42.3819 rad=12.0 tmin=408326401.0 tmax=408931201.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 11.89
user 9.90
sys 0.36

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/569020/ft1_filtered_4FGL_J0818.2+4222_weekly_bin280.fits evtable="EVENTS" scfile=/scratch/kocevski/569020/ft2_4FGL_J0818.2+4222_weekly_bin280.fits sctable="SC_DATA" expcube=/scratch/kocevski/569020/ltcube_408326401_408931201_4FGL_J0818.2+4222_weekly_bin280.fits outfile=/scratch/kocevski/569020/expmap_408326401_408931201_4FGL_J0818.2+4222_weekly_bin280.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/569020/ltcube_408326401_408931201_4FGL_J0818.2+4222_weekly_bin280.fits
.....................!
real 200.37
user 187.00
sys 4.60

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/569020/ft1_filtered_4FGL_J0818.2+4222_weekly_bin280.fits scfile=/scratch/kocevski/569020/ft2_4FGL_J0818.2+4222_weekly_bin280.fits outfile=/scratch/kocevski/569020/cmap_408326401_408931201_4FGL_J0818.2+4222_weekly_bin280.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=124.557 yref=42.3819 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.74
user 0.42
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/569020/ft1_filtered_4FGL_J0818.2+4222_weekly_bin280.fits scfile=/scratch/kocevski/569020/ft2_4FGL_J0818.2+4222_weekly_bin280.fits outfile=/scratch/kocevski/569020/cmap_HighResolution_408326401_408931201_4FGL_J0818.2+4222_weekly_bin280.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.81
user 0.44
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    20.773       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10046E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .11387E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.9685       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .39509       1.0000         .10000E-03   10000.    
    11 'norm      '    5.2891       1.0000         .10000E-03   10000.    
    12 'norm      '    1.6136       1.0000         .10000E-03   10000.    
    13 'norm      '    1.2607       1.0000         .10000E-03   10000.    
    14 'Prefactor '    24.604       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .82875       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    9.5064       1.0000         .10000E-03   10000.    
    21 'norm      '    4.0117       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.8806       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    9.2526       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10672E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    20.368       1.0000         .10000E-03   10000.    
    27 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    4.2216       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .89470       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0787       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=   8120.206     FROM MIGRAD    STATUS=CONVERGED    745 CALLS     3938 TOTAL
                     EDM=   .99E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.0600        .89339E-07** at limit **
   2  Prefactor     20.773        14.525        .73051E-07   -.45784E-05
   3  Prefactor     .10000E-03    27.858        .40054E-06** at limit **
   4  Prefactor     .10000E-03    2.7158        .51651E-07** at limit **
   5  Prefactor     .10000E-03    8.0436        .11642E-06** at limit **
   6  norm          .10000E-03    14.322        .53497E-06** at limit **
   7  norm          .10000E-03    1.2095        .13217E-06** at limit **
   8  Prefactor     3.9674        6.6265        .37462E-06    .36419E-04
   9  Prefactor     .10000E-03    28.470        .16532E-06** at limit **
  10  Prefactor     .39483        2.2484       -.38496E-06    .17913E-03
  11  norm          5.2891        4.1301        .26607E-07    .27862E-06
  12  norm          1.6134        1.5760        .53845E-07    .23927E-06
  13  norm          1.2608        .52490       -.46073E-07   -.19080E-03
  14  Prefactor     24.606        24.729       -.81152E-07   -.46557E-06
  15  Prefactor     .10000E-03    13.204       -.35744E-06** at limit **
  16  Prefactor     .82905        2.1449        .80313E-06    .27932E-03
  17  Prefactor     .10000E-03    28.227        .19445E-06** at limit **
  18  Prefactor     .10000E-03    4.4397        .61133E-07** at limit **
  19  Prefactor     .10000E-03    4.1557        .46493E-07** at limit **
  20  norm          9.5071        7.5598       -.47800E-07    .19317E-05
  21  norm          4.0119        6.2607        .27540E-06    .27147E-04
  22  Prefactor     2.8810        2.1149       -.43092E-07   -.73364E-05
  23  Prefactor     .10000E-03    30.228       -.85311E-08** at limit **
  24  Prefactor     9.2889        33.708       -.16093E-05    .58223E-05
  25  Prefactor     .10000E-03    1.0770       -.10595E-05** at limit **
  26  Prefactor     20.309        28.028        .47110E-06    .40839E-05
  27  norm          .10000E-03    .17795        .60286E-07** at limit **
  28  Prefactor     4.2228        3.7313       -.11640E-06   -.23829E-04
  29  Normalizat    .89433        .18651        .28765E-05   -.86124E-04
  30  Prefactor     1.0790        .14018       -.23891E-05    .97420E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 20.7727
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 3.96743
  Prefactor  = 0.0001
  Prefactor  = 0.394831
  norm       = 5.28913
  norm       = 1.61344
  norm       = 1.26079
  Prefactor  = 24.6062
  Prefactor  = 0.0001
  Prefactor  = 0.829052
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.50714
  norm       = 4.01188
  Prefactor  = 2.88101
  Prefactor  = 0.0001
  Prefactor  = 9.28891
  Prefactor  = 0.0001
  Prefactor  = 20.3093
  norm       = 0.0001
  Prefactor  = 4.22279
  Normalizat = 0.894332
  Prefactor  = 1.07903
 **********
 **   18 **HESSE 
 **********

 FCN=   8120.206     FROM HESSE     STATUS=OK           592 CALLS     4530 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.1544        .17734E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     20.773        14.530        .87879E-04   -1.4796    
   3  Prefactor     .10000E-03    28.067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.7181        .14502E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.0688        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    14.639        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.7184        .19240E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.9674        6.6075        .20247E-03   -1.5310    
   9  Prefactor     .10000E-03    28.550        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .39483        12.715        .24435E-02   -1.5582    
  11  norm          5.2891        4.1185        .15320E-03   -1.5248    
  12  norm          1.6134        1.5710        .10578E-03   -1.5454    
  13  norm          1.2608        .52764        .40188E-04   -1.5483    
  14  Prefactor     24.606        24.747        .80757E-04   -1.4715    
  15  Prefactor     .10000E-03    13.488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .82905        2.1141        .20299E-03   -1.5526    
  17  Prefactor     .10000E-03    28.459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.4512        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.1653        .17938E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          9.5071        7.5376        .12998E-03   -1.5091    
  21  norm          4.0119        6.2395        .20134E-03   -1.5307    
  22  Prefactor     2.8810        2.1121        .10790E-03   -1.5368    
  23  Prefactor     .10000E-03    30.245        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     9.2889        33.565        .13176E-03   -1.5098    
  25  Prefactor     .10000E-03    1.1163        .92516E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     20.309        28.126        .88747E-04   -1.4806    
  27  norm          .10000E-03    .19185        .70930E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     4.2228        3.5797        .14939E-03   -1.5297    
  29  Normalizat    .89433        .19710        .29010E-03   -.96660    
  30  Prefactor     1.0790        .14796        .20842E-03   -.90140    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.50114e-10
Minuit parameter uncertainties:
  1  8.16368e-06
  2  14.532
  3  4.56958e-05
  4  7.40885e-07
  5  5.95686e-06
  6  4.05171e-05
  7  6.92126e-06
  8  6.60876
  9  8.98624e-06
  10  4.4817
  11  4.11875
  12  1.57102
  13  0.52764
  14  24.7569
  15  4.70784e-05
  16  2.11433
  17  6.28575e-06
  18  1.33431e-06
  19  2.0149e-07
  20  7.53832
  21  6.2405
  22  2.11218
  23  2.71634e-05
  24  33.6328
  25  1.24793e-05
  26  28.1447
  27  1.02619e-07
  28  3.5799
  29  0.197259
  30  0.148011
Done.

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

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  1.261e+00  5.276e-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.079e+00  1.480e-01  0.000e+00  1.000e+01 ( 1.000e+00)
621        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
622        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
619   Normalization:  8.943e-01  1.973e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 19.83
Ra Dec: 124.557 42.382
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 6.29e-08 +/- 2.63e-08
Energy Flux (Fixed Index): 3.55e-05 +/- 1.48e-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) = 8119.77492873
delta logL = 0.430689578558

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8119.77048316
delta logL = 0.435135148427

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2334       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6773       1.0000          .0000       5.0000    
     3 'Normalizat'    .90734       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0750       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=   8119.770     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      208 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2332        .54428        .92801E-02   -.10573E-03
   2  alpha         1.6773        .31455        .26996       -.26345E-04
   3  Normalizat    .90737        .16060        .65152E-01    .21544E-04
   4  Prefactor     1.0750        .12602        .38623E-01    .42449E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.23322
  alpha      = 1.67727
  Normalizat = 0.907375
  Prefactor  = 1.07502
 **********
 **   18 **HESSE 
 **********

 FCN=   8119.770     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .36E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2332        .53727        .40903E-04   -1.5486    
   2  alpha         1.6773        .33097        .11148E-01   -.33534    
   3  Normalizat    .90737        .18441        .28819E-03   -.96201    
   4  Prefactor     1.0750        .14507        .20879E-03   -.90269    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.59538e-13
Minuit parameter uncertainties:
  1  0.537269
  2  0.332065
  3  0.184535
  4  0.145122
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/569020': 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) = 8119.77048305
delta logL = 0.435135250999

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  1.233e+00  5.373e-01  1.000e-04  1.000e+04 ( 1.000e-11)
284        alpha:  1.677e+00  3.321e-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.075e+00  1.451e-01  0.000e+00  1.000e+01 ( 1.000e+00)
621        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
622        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
619   Normalization:  9.074e-01  1.845e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 20.71
Ra Dec: 124.557 42.382
Photon Index (Free Index): 1.68 +/- 0.33
Photon Flux (Free Index): 4.70e-08 +/- 2.52e-08
Energy Flux (Free Index): 5.09e-05 +/- 3.13e-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/569020/cmap_HighResolution_408326401_408931201_4FGL_J0818.2+4222_weekly_bin280.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.29e-08', energy_flux2='5.09e-05', photon_flux_error='2.63e-08', dlogl='4.35e-01', energy_flux='3.55e-05', photon_flux2='4.70e-08', job_status='DONE', time_completed='2021-07-13 15:02:02.454404', photon_index_error2='0.33', photon_index2='1.68', ts='19.83', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', energy_flux_error2='3.13e-05', EG='0.89', time_epoch_completed='1626213722.45', return_code='0', job_id='569020', GAL2='1.08', EG2='0.91', return_code2='0', energy_flux_error='1.48e-05', photon_flux_error2='2.52e-08', ts2='20.71', photon_index='2.00' WHERE bin_id='280' AND source_name='4FGL J0818.2+4222' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 13 15:02:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0281>
Subject: Job 569020: <4FGL_J0818.2+4222_weekly_bin280> in cluster <slac> Done

Job <4FGL_J0818.2+4222_weekly_bin280> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Jul 12 07:31:48 2021
Job was executed on host(s) <bullet0281>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jul 12 07:32:28 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:32:28 2021
Terminated at Tue Jul 13 15:02:03 2021
Results reported at Tue Jul 13 15:02:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.2+4222_weekly_bin280 124.557 42.3819 408326401 408931201 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 :                                   994.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             289.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1457 sec.
    Turnaround time :                            113415 sec.

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

