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


Performing analysis on: 4FGL_J0818.2+4222_weekly_bin516
RA = 124.557, Dec = 42.3819
tmin = 551059201, tmax = 551664001
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='571590', job_status='RUN', time_executed='2021-07-13 14:53:57.167448', time_epoch_executed='1626213237.17' WHERE source_name='4FGL J0818.2+4222' and cadence='weekly' and bin_id='516'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/571590

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/571590/ft1_4FGL_J0818.2+4222_weekly_bin516.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/571590/ft2_4FGL_J0818.2+4222_weekly_bin516.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/571590/ft1_4FGL_J0818.2+4222_weekly_bin516.fits outfile=/scratch/kocevski/571590/ft1_filteredMKT_4FGL_J0818.2+4222_weekly_bin516.fits ra=124.557 dec=42.3819 rad=12.0 tmin=551059201.0 tmax=551664001.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 8.62
user 7.38
sys 0.34

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/571590/ft1_filtered_4FGL_J0818.2+4222_weekly_bin516.fits" evtable="EVENTS" scfile=/scratch/kocevski/571590/ft2_4FGL_J0818.2+4222_weekly_bin516.fits sctable="SC_DATA" outfile=/scratch/kocevski/571590/ltcube_551059201_551664001_4FGL_J0818.2+4222_weekly_bin516.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/571590/ft2_4FGL_J0818.2+4222_weekly_bin516.fits
.....................!
real 30.87
user 29.64
sys 0.52

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/571590/ft1_filtered_4FGL_J0818.2+4222_weekly_bin516.fits evtable="EVENTS" scfile=/scratch/kocevski/571590/ft2_4FGL_J0818.2+4222_weekly_bin516.fits sctable="SC_DATA" expcube=/scratch/kocevski/571590/ltcube_551059201_551664001_4FGL_J0818.2+4222_weekly_bin516.fits outfile=/scratch/kocevski/571590/expmap_551059201_551664001_4FGL_J0818.2+4222_weekly_bin516.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/571590/ltcube_551059201_551664001_4FGL_J0818.2+4222_weekly_bin516.fits
.....................!
real 196.37
user 187.52
sys 6.44

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/571590/ft1_filtered_4FGL_J0818.2+4222_weekly_bin516.fits scfile=/scratch/kocevski/571590/ft2_4FGL_J0818.2+4222_weekly_bin516.fits outfile=/scratch/kocevski/571590/cmap_551059201_551664001_4FGL_J0818.2+4222_weekly_bin516.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.42
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.1956       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    65.659       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.5676       1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.904       1.0000         .10000E-03   10000.    
     6 'norm      '    8.5794       1.0000         .10000E-03   10000.    
     7 'norm      '    2.6083       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.5043       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .76340       1.0000         .10000E-03   10000.    
    12 'norm      '    .62543       1.0000         .10000E-03   10000.    
    13 'norm      '    .58468       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.1224       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .19880E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    50.361       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .68014E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.2688       1.0000         .10000E-03   10000.    
    20 'norm      '    4.7337       1.0000         .10000E-03   10000.    
    21 'norm      '    .82680       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10162E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    12.431       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .71993       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .17600E-02   1.0000         .10000E-03   10000.    
    28 'Prefactor '    11.352       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .98060       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1291       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=   29028.12     FROM MIGRAD    STATUS=CONVERGED    792 CALLS     4199 TOTAL
                     EDM=   .79E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.1958        3.5884       -.14896E-06   -.19597E-03
   2  Prefactor     .10000E-03    2.4407       -.36209E-06** at limit **
   3  Prefactor     65.660        17.444       -.21680E-07    .66103E-04
   4  Prefactor     8.5688        6.6592        .19093E-07    .17370E-04
   5  Prefactor     11.905        7.7824       -.89685E-07   -.49321E-04
   6  norm          8.5801        5.9938       -.49107E-07   -.69921E-04
   7  norm          2.6084        1.3820       -.69300E-07   -.51800E-05
   8  Prefactor     .10000E-03    1.1842       -.31148E-06** at limit **
   9  Prefactor     8.5039        12.469       -.54877E-07   -.26883E-04
  10  Prefactor     .10000E-03    .92271       -.45975E-06** at limit **
  11  norm          .76366        1.1071       -.47499E-06   -.12242E-02
  12  norm          .62546        .43807       -.85589E-09    .40831E-03
  13  norm          .58468        .22368       -.10204E-07   -.85473E-03
  14  Prefactor     4.1230        8.8872       -.11401E-06   -.79062E-04
  15  Prefactor     .10000E-03    2.1150       -.35753E-07** at limit **
  16  Prefactor     .10087E-03    .81210        .63186E-06** at limit **
  17  Prefactor     50.316        16.042       -.54630E-07   -.25727E-03
  18  Prefactor     .10002E-03    19.699       -.28352E-05** at limit **
  19  Prefactor     1.2691        .85367        .21101E-06   -.15781E-02
  20  norm          4.7341        2.7266        .15075E-06   -.31155E-03
  21  norm          .82695        2.2942       -.36445E-06   -.14175E-03
  22  Prefactor     .10000E-03    .29131        .29293E-07** at limit **
  23  Prefactor     12.421        21.346        .96527E-06    .15027E-03
  24  Prefactor     .10000E-03    18.608       -.76014E-06** at limit **
  25  Prefactor     .72007        1.1951       -.22036E-06   -.10783E-03
  26  Prefactor     .10000E-03    3.8510       -.23090E-06** at limit **
  27  norm          .10273E-03    .94070E-01   -.17692E-06** at limit **
  28  Prefactor     11.367        2.6362        .24168E-06    .27001E-02
  29  Normalizat    .98047        .10691       -.16694E-05    .21732E-03
  30  Prefactor     1.1292        .82752E-01    .16955E-05   -.29588E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.19584
  Prefactor  = 0.0001
  Prefactor  = 65.6604
  Prefactor  = 8.56876
  Prefactor  = 11.9048
  norm       = 8.58013
  norm       = 2.60837
  Prefactor  = 0.0001
  Prefactor  = 8.5039
  Prefactor  = 0.0001
  norm       = 0.763661
  norm       = 0.62546
  norm       = 0.584677
  Prefactor  = 4.12304
  Prefactor  = 0.0001
  Prefactor  = 0.000100869
  Prefactor  = 50.316
  Prefactor  = 0.000100015
  Prefactor  = 1.26914
  norm       = 4.73413
  norm       = 0.826945
  Prefactor  = 0.0001
  Prefactor  = 12.4213
  Prefactor  = 0.0001
  Prefactor  = 0.720067
  Prefactor  = 0.0001
  norm       = 0.000102733
  Prefactor  = 11.367
  Normalizat = 0.98047
  Prefactor  = 1.12918
 **********
 **   18 **HESSE 
 **********

 FCN=   29028.12     FROM HESSE     STATUS=OK           622 CALLS     4821 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.1958        3.6060        .88179E-03   -1.5252    
   2  Prefactor     .10000E-03    2.4706        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     65.660        17.433        .49529E-04   -1.4086    
   4  Prefactor     8.5688        6.6156        .13695E-03   -1.5122    
   5  Prefactor     11.905        7.7796        .11611E-03   -1.5018    
   6  norm          8.5801        6.0032        .68428E-03   -1.5122    
   7  norm          2.6084        1.3715        .13381E-03   -1.5385    
   8  Prefactor     .10000E-03    1.1971        .18101E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.5039        12.456        .13746E-03   -1.5125    
  10  Prefactor     .10000E-03    .94664        .31908E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .76366        1.0102        .21620E-02   -1.5533    
  12  norm          .62546        .44253        .90722E-04   -1.5550    
  13  norm          .58468        .22395        .47687E-04   -1.5555    
  14  Prefactor     4.1230        8.9123        .99269E-03   -1.5302    
  15  Prefactor     .10000E-03    2.1325        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10087E-03    .53749        .33660E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     50.316        16.126        .56511E-04   -1.4288    
  18  Prefactor     .10002E-03    20.040        .41305E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.2691        2.7168        .19758E-02   -1.5483    
  20  norm          4.7341        2.7213        .92470E-03   -1.5273    
  21  norm          .82695        2.2950        .40452E-03   -1.5526    
  22  Prefactor     .10000E-03    5.1310        .16967E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     12.421        21.348        .11361E-03   -1.5003    
  24  Prefactor     .10000E-03    18.941        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .72007        1.1768        .22958E-03   -1.5538    
  26  Prefactor     .10000E-03    3.8737        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10273E-03    .29745        .14037E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     11.367        3.1324        .10921E-03   -1.5034    
  29  Normalizat    .98047        .10813        .29429E-03   -.93688    
  30  Prefactor     1.1292        .82921E-01    .21964E-03   -.88539    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.19416e-09
Minuit parameter uncertainties:
  1  3.60619
  2  9.64783e-06
  3  17.4344
  4  6.61615
  5  7.78029
  6  6.00359
  7  1.37155
  8  4.37775e-06
  9  12.4596
  10  4.31949e-06
  11  1.01026
  12  0.442536
  13  0.223949
  14  8.91514
  15  2.89961e-06
  16  0.00136688
  17  16.1273
  18  0.00110438
  19  2.71705
  20  2.72133
  21  2.29526
  22  8.82376e-05
  23  21.3614
  24  3.54362e-05
  25  1.17682
  26  7.50507e-07
  27  0.00180328
  28  3.13241
  29  0.108152
  30  0.0829303
Done.

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

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  5.847e-01  2.239e-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.129e+00  8.293e-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:  9.805e-01  1.082e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 24.44
Ra Dec: 124.557 42.382
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 2.92e-08 +/- 1.12e-08
Energy Flux (Fixed Index): 1.64e-05 +/- 6.30e-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) = 29027.718317
delta logL = 0.399064376797

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 29027.7174497
delta logL = 0.399931661337

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .48515       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6590       1.0000          .0000       5.0000    
     3 'Normalizat'    .98840       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1287       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=   29027.72     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      222 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .48517        .23558        .10817E-01    .15647E-03
   2  alpha         1.6591        .29459        .44569       -.13847E-03
   3  Normalizat    .98840        .89241E-01    .66305E-01    .65062E-04
   4  Prefactor     1.1288        .71105E-01    .36584E-01    .17798E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.485173
  alpha      = 1.65911
  Normalizat = 0.988396
  Prefactor  = 1.12875
 **********
 **   18 **HESSE 
 **********

 FCN=   29027.72     FROM HESSE     STATUS=OK            35 CALLS      257 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .48517        .25468        .46652E-03   -1.5569    
   2  alpha         1.6591        .37753        .17263E-01   -.34304    
   3  Normalizat    .98840        .10104        .29328E-03   -.93420    
   4  Prefactor     1.1288        .80732E-01    .21973E-03   -.88553    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.77424e-11
Minuit parameter uncertainties:
  1  0.254685
  2  0.379165
  3  0.10106
  4  0.0807403
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/571590': 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) = 29027.7174497
delta logL = 0.399931696655

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  4.852e-01  2.547e-01  1.000e-04  1.000e+04 ( 1.000e-11)
284        alpha:  1.659e+00  3.792e-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.129e+00  8.074e-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:  9.884e-01  1.011e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 25.24
Ra Dec: 124.557 42.382
Photon Index (Free Index): 1.66 +/- 0.38
Photon Flux (Free Index): 1.83e-08 +/- 1.28e-08
Energy Flux (Free Index): 2.06e-05 +/- 1.10e-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/571590/cmap_HighResolution_551059201_551664001_4FGL_J0818.2+4222_weekly_bin516.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.92e-08', energy_flux2='2.06e-05', photon_flux_error='1.12e-08', dlogl='4.00e-01', energy_flux='1.64e-05', photon_flux2='1.83e-08', job_status='DONE', time_completed='2021-07-13 15:45:59.545244', photon_index_error2='0.38', photon_index2='1.66', ts='24.44', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', energy_flux_error2='1.10e-05', EG='0.98', time_epoch_completed='1626216359.55', return_code='0', job_id='571590', GAL2='1.13', EG2='0.99', return_code2='0', energy_flux_error='6.30e-06', photon_flux_error2='1.28e-08', ts2='25.24', photon_index='2.00' WHERE bin_id='516' AND source_name='4FGL J0818.2+4222' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 13 15:45:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0292>
Subject: Job 571590: <4FGL_J0818.2+4222_weekly_bin516> in cluster <slac> Done

Job <4FGL_J0818.2+4222_weekly_bin516> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Mon Jul 12 07:40:51 2021
Job was executed on host(s) <bullet0292>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jul 12 07:41:35 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:41:35 2021
Terminated at Tue Jul 13 15:46:00 2021
Results reported at Tue Jul 13 15:46:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.2+4222_weekly_bin516 124.557 42.3819 551059201 551664001 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 :                                   2739.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             86.99 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   3547 sec.
    Turnaround time :                            115509 sec.

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

