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


Performing analysis on: 4FGL_J0818.2+4222_weekly_bin449
RA = 124.557, Dec = 42.3819
tmin = 510537601, tmax = 511142401
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='571484', job_status='RUN', time_executed='2021-07-13 14:54:47.462488', time_epoch_executed='1626213287.46' WHERE source_name='4FGL J0818.2+4222' and cadence='weekly' and bin_id='449'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/571484

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/571484/ft1_4FGL_J0818.2+4222_weekly_bin449.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/571484/ft2_4FGL_J0818.2+4222_weekly_bin449.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/571484/ft1_4FGL_J0818.2+4222_weekly_bin449.fits outfile=/scratch/kocevski/571484/ft1_filteredMKT_4FGL_J0818.2+4222_weekly_bin449.fits ra=124.557 dec=42.3819 rad=12.0 tmin=510537601.0 tmax=511142401.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.58
user 7.08
sys 0.31

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/571484/ft1_filtered_4FGL_J0818.2+4222_weekly_bin449.fits" evtable="EVENTS" scfile=/scratch/kocevski/571484/ft2_4FGL_J0818.2+4222_weekly_bin449.fits sctable="SC_DATA" outfile=/scratch/kocevski/571484/ltcube_510537601_511142401_4FGL_J0818.2+4222_weekly_bin449.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/571484/ft2_4FGL_J0818.2+4222_weekly_bin449.fits
.....................!
real 30.45
user 29.79
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/571484/ft1_filtered_4FGL_J0818.2+4222_weekly_bin449.fits evtable="EVENTS" scfile=/scratch/kocevski/571484/ft2_4FGL_J0818.2+4222_weekly_bin449.fits sctable="SC_DATA" expcube=/scratch/kocevski/571484/ltcube_510537601_511142401_4FGL_J0818.2+4222_weekly_bin449.fits outfile=/scratch/kocevski/571484/expmap_510537601_511142401_4FGL_J0818.2+4222_weekly_bin449.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/571484/ltcube_510537601_511142401_4FGL_J0818.2+4222_weekly_bin449.fits
.....................!
real 191.84
user 186.14
sys 4.82

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/571484/ft1_filtered_4FGL_J0818.2+4222_weekly_bin449.fits scfile=/scratch/kocevski/571484/ft2_4FGL_J0818.2+4222_weekly_bin449.fits outfile=/scratch/kocevski/571484/cmap_510537601_511142401_4FGL_J0818.2+4222_weekly_bin449.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.62
user 0.41
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .18074E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.8811       1.0000         .10000E-03   10000.    
     3 'Prefactor '    28.113       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    19.124       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .17995E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    5.3379       1.0000         .10000E-03   10000.    
    12 'norm      '    .50794       1.0000         .10000E-03   10000.    
    13 'norm      '    1.2714       1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.6249       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.2853       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      '    .10453E-01   1.0000         .10000E-03   10000.    
    21 'norm      '    8.5189       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.6730       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    16.137       1.0000         .10000E-03   10000.    
    27 'norm      '    1.5844       1.0000         .10000E-03   10000.    
    28 'Prefactor '    6.3766       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1267       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .90450       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   18544.75     FROM MIGRAD    STATUS=CONVERGED    810 CALLS     3505 TOTAL
                     EDM=   .84E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.9031         .0000    ** at limit **
   2  Prefactor     2.8798        7.3997         .0000        .92010E-02
   3  Prefactor     28.112        16.007         .0000       -.49231E-04
   4  Prefactor     .10000E-03    4.4875         .0000    ** at limit **
   5  Prefactor     .10000E-03    8.6861         .0000    ** at limit **
   6  norm          19.123        7.5347         .0000       -.46502E-03
   7  norm          .10000E-03    .37780         .0000    ** at limit **
   8  Prefactor     .10000E-03    3.1647         .0000    ** at limit **
   9  Prefactor     .10000E-03    7.8000         .0000    ** at limit **
  10  Prefactor     .10000E-03    .92257         .0000    ** at limit **
  11  norm          5.3378        2.3583         .0000        .29827E-03
  12  norm          .50782        .57676         .0000       -.12118E-02
  13  norm          1.2712        .36678         .0000        .27997E-03
  14  Prefactor     9.6228        12.455         .0000       -.36050E-04
  15  Prefactor     .10000E-03    5.7251         .0000    ** at limit **
  16  Prefactor     .10000E-03    .53080         .0000    ** at limit **
  17  Prefactor     6.2835        11.260         .0000        .97123E-04
  18  Prefactor     .10000E-03    2.2694         .0000    ** at limit **
  19  Prefactor     .10000E-03    1.0164         .0000    ** at limit **
  20  norm          .10000E-03    1.7728         .0000    ** at limit **
  21  norm          8.5232        4.2185         .0000        .39775E-02
  22  Prefactor     1.6736        1.4827         .0000        .16845E-02
  23  Prefactor     .10000E-03    20.695         .0000    ** at limit **
  24  Prefactor     .10000E-03    5.2226         .0000    ** at limit **
  25  Prefactor     .10000E-03    .71897         .0000    ** at limit **
  26  Prefactor     16.137        10.665         .0000        .33156E-03
  27  norm          1.5843        .50833         .0000        .49069E-03
  28  Prefactor     6.3771        3.8602         .0000        .15670E-02
  29  Normalizat    1.1267        .11001         .0000        .33797E-04
  30  Prefactor     .90455        .82058E-01     .0000        .79315E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 2.87975
  Prefactor  = 28.1125
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 19.1227
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.33784
  norm       = 0.507817
  norm       = 1.27125
  Prefactor  = 9.62276
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.28352
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 8.52323
  Prefactor  = 1.67365
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 16.1369
  norm       = 1.58434
  Prefactor  = 6.37706
  Normalizat = 1.12665
  Prefactor  = 0.904548
 **********
 **   18 **HESSE 
 **********

 FCN=   18544.75     FROM HESSE     STATUS=OK           614 CALLS     4119 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.0340        .63472E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.8798        7.3872        .11972E-02   -1.5369    
   3  Prefactor     28.112        15.997        .75559E-04   -1.4647    
   4  Prefactor     .10000E-03    4.5846        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.8365        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          19.123        7.5336        .91588E-04   -1.4833    
   7  norm          .10000E-03    .69421        .16270E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.2349        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.8115        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.9357        .24511E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.3378        2.3369        .13277E-03   -1.5246    
  12  norm          .50782        .47165        .10553E-02   -1.5565    
  13  norm          1.2712        .36015        .41881E-04   -1.5482    
  14  Prefactor     9.6228        12.450        .12917E-03   -1.5087    
  15  Prefactor     .10000E-03    5.8149        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    .54112        .96766E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.2835        11.251        .16011E-03   -1.5207    
  18  Prefactor     .10000E-03    2.2916        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.0182        .13406E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.1144        .52218E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          8.5232        4.2162        .13734E-03   -1.5124    
  22  Prefactor     1.6736        1.4642        .14565E-03   -1.5449    
  23  Prefactor     .10000E-03    20.725        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    5.2246        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    1.5198        .22046E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     16.137        10.605        .49852E-03   -1.4904    
  27  norm          1.5843        .53794        .43239E-04   -1.5456    
  28  Prefactor     6.3771        4.0948        .15853E-03   -1.5203    
  29  Normalizat    1.1267        .12693        .25915E-03   -.88901    
  30  Prefactor     .90455        .95830E-01    .22246E-03   -.95982    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.42614e-09
Minuit parameter uncertainties:
  1  2.2656e-05
  2  7.38954
  3  15.9995
  4  7.29766e-05
  5  7.64739e-05
  6  7.53397
  7  2.8649e-07
  8  7.77345e-07
  9  9.72468e-05
  10  2.12992e-05
  11  2.33694
  12  0.471652
  13  0.360149
  14  12.4536
  15  0.000105641
  16  1.05546e-07
  17  11.2543
  18  6.05169e-07
  19  4.89733e-08
  20  0.000108195
  21  4.21637
  22  1.46421
  23  6.81398e-05
  24  0.000125067
  25  4.69981e-07
  26  10.6058
  27  0.537938
  28  4.09497
  29  0.126966
  30  0.0958483
Done.

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

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  1.271e+00  3.601e-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:  9.045e-01  9.585e-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.127e+00  1.270e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 33.53
Ra Dec: 124.557 42.382
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 6.35e-08 +/- 1.80e-08
Energy Flux (Fixed Index): 3.57e-05 +/- 1.01e-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) = 18544.7360932
delta logL = 0.0133373544122

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 18544.7358212
delta logL = 0.0136093125257

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2688       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0403       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1236       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90558       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=   18544.74     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      206 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2688        4.6081        .93450E-02    .28863E-03
   2  alpha         2.0402        3.5015        .32102        .19476E-04
   3  Normalizat    1.1236        .71987E-01    .58665E-01   -.57771E-05
   4  Prefactor     .90558        .41774E-01    .45076E-01   -.16886E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.26877
  alpha      = 2.04022
  Normalizat = 1.12364
  Prefactor  = 0.905582
 **********
 **   18 **HESSE 
 **********

 FCN=   18544.74     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .80E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2688        .35666        .41449E-04   -1.5483    
   2  alpha         2.0402        .26980        .12211E-01   -.18496    
   3  Normalizat    1.1236        .12091        .25944E-03   -.88996    
   4  Prefactor     .90558        .93570E-01    .22233E-03   -.95946    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.03415e-11
Minuit parameter uncertainties:
  1  0.356666
  2  0.270343
  3  0.120939
  4  0.093587
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/571484': 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) = 18544.7358212
delta logL = 0.0136093244655

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  1.269e+00  3.567e-01  1.000e-04  1.000e+04 ( 1.000e-11)
284        alpha:  2.040e+00  2.703e-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:  9.056e-01  9.359e-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.124e+00  1.209e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 33.46
Ra Dec: 124.557 42.382
Photon Index (Free Index): 2.04 +/- 0.27
Photon Flux (Free Index): 6.63e-08 +/- 2.48e-08
Energy Flux (Free Index): 3.46e-05 +/- 1.18e-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/571484/cmap_HighResolution_510537601_511142401_4FGL_J0818.2+4222_weekly_bin449.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.35e-08', energy_flux2='3.46e-05', photon_flux_error='1.80e-08', dlogl='1.36e-02', energy_flux='3.57e-05', photon_flux2='6.63e-08', job_status='DONE', time_completed='2021-07-13 15:29:16.230021', photon_index_error2='0.27', photon_index2='2.04', ts='33.53', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', energy_flux_error2='1.18e-05', EG='1.13', time_epoch_completed='1626215356.23', return_code='0', job_id='571484', GAL2='0.91', EG2='1.12', return_code2='0', energy_flux_error='1.01e-05', photon_flux_error2='2.48e-08', ts2='33.46', photon_index='2.00' WHERE bin_id='449' AND source_name='4FGL J0818.2+4222' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 13 15:29:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0093>
Subject: Job 571484: <4FGL_J0818.2+4222_weekly_bin449> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.2+4222_weekly_bin449 124.557 42.3819 510537601 511142401 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 :                                   1699.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             52.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2589 sec.
    Turnaround time :                            114520 sec.

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

