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


Performing analysis on: 4FGL_J0818.2+4222_weekly_bin617
RA = 124.557, Dec = 42.3819
tmin = 612144001, tmax = 612748801
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='571719', job_status='RUN', time_executed='2021-07-13 14:55:37.644117', time_epoch_executed='1626213337.64' WHERE source_name='4FGL J0818.2+4222' and cadence='weekly' and bin_id='617'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/571719

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/571719/ft1_4FGL_J0818.2+4222_weekly_bin617.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/571719/ft2_4FGL_J0818.2+4222_weekly_bin617.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/571719/ft1_4FGL_J0818.2+4222_weekly_bin617.fits outfile=/scratch/kocevski/571719/ft1_filteredMKT_4FGL_J0818.2+4222_weekly_bin617.fits ra=124.557 dec=42.3819 rad=12.0 tmin=612144001.0 tmax=612748801.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.81
user 7.46
sys 0.31

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/571719/ft1_filtered_4FGL_J0818.2+4222_weekly_bin617.fits" evtable="EVENTS" scfile=/scratch/kocevski/571719/ft2_4FGL_J0818.2+4222_weekly_bin617.fits sctable="SC_DATA" outfile=/scratch/kocevski/571719/ltcube_612144001_612748801_4FGL_J0818.2+4222_weekly_bin617.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/571719/ft2_4FGL_J0818.2+4222_weekly_bin617.fits
.....................!
real 28.69
user 28.06
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/571719/ft1_filtered_4FGL_J0818.2+4222_weekly_bin617.fits evtable="EVENTS" scfile=/scratch/kocevski/571719/ft2_4FGL_J0818.2+4222_weekly_bin617.fits sctable="SC_DATA" expcube=/scratch/kocevski/571719/ltcube_612144001_612748801_4FGL_J0818.2+4222_weekly_bin617.fits outfile=/scratch/kocevski/571719/expmap_612144001_612748801_4FGL_J0818.2+4222_weekly_bin617.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/571719/ltcube_612144001_612748801_4FGL_J0818.2+4222_weekly_bin617.fits
.....................!
real 192.55
user 186.55
sys 5.15

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/571719/ft1_filtered_4FGL_J0818.2+4222_weekly_bin617.fits scfile=/scratch/kocevski/571719/ft2_4FGL_J0818.2+4222_weekly_bin617.fits outfile=/scratch/kocevski/571719/cmap_612144001_612748801_4FGL_J0818.2+4222_weekly_bin617.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.58
user 0.41
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    13.286       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.2978       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    19.227       1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.4935       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.9906       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    6.7901       1.0000         .10000E-03   10000.    
    12 'norm      '    2.0930       1.0000         .10000E-03   10000.    
    13 'norm      '    1.8337       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.9180       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.1305       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .72436       1.0000         .10000E-03   10000.    
    20 'norm      '    .95435       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.5874       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.1979       1.0000         .10000E-03   10000.    
    26 'Prefactor '    2.8432       1.0000         .10000E-03   10000.    
    27 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    2.2177       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .98452       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0193       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=   12586.20     FROM MIGRAD    STATUS=CONVERGED    763 CALLS     3381 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.0960       -.99132E-07** at limit **
   2  Prefactor     13.286        12.836       -.16233E-06   -.58758E-05
   3  Prefactor     7.2981        15.770        .10547E-06   -.12967E-04
   4  Prefactor     .10000E-03    1.8277        .64919E-07** at limit **
   5  Prefactor     19.227        13.123       -.19725E-06   -.15493E-04
   6  norm          .10000E-03    4.7338       -.16719E-05** at limit **
   7  norm          1.4933        1.3303        .71300E-08    .13862E-05
   8  Prefactor     1.9898        3.5256        .41416E-07   -.28785E-04
   9  Prefactor     .10000E-03    7.3562       -.26371E-05** at limit **
  10  Prefactor     .10000E-03    1.5552        .52722E-07** at limit **
  11  norm          6.7901        3.3342        .22540E-07   -.31715E-05
  12  norm          2.0930        1.2070       -.29520E-08   -.53951E-05
  13  norm          1.8338        .48864       -.21913E-07   -.29671E-02
  14  Prefactor     .10000E-03    6.7112        .62482E-05** at limit **
  15  Prefactor     .10000E-03    14.678        .18891E-04** at limit **
  16  Prefactor     1.9184        1.9361       -.23758E-06   -.16141E-02
  17  Prefactor     .10000E-03    22.936       -.10300E-04** at limit **
  18  Prefactor     9.1317        5.6510        .28916E-07    .10725E-05
  19  Prefactor     .72480        .45766        .25380E-07   -.87543E-03
  20  norm          .95463        2.1984       -.16348E-07   -.17377E-04
  21  norm          .10000E-03    1.2500       -.11346E-07** at limit **
  22  Prefactor     2.5873        1.4687        .11137E-07   -.21777E-05
  23  Prefactor     .10000E-03    12.514       -.16916E-06** at limit **
  24  Prefactor     .10000E-03    11.009       -.13071E-04** at limit **
  25  Prefactor     2.1973        2.1456        .15149E-06    .18229E-03
  26  Prefactor     2.8405        12.961       -.40079E-06    .65565E-04
  27  norm          .10000E-03    .17150        .32244E-09** at limit **
  28  Prefactor     2.2167        2.0421       -.17392E-07   -.76480E-05
  29  Normalizat    .98460        .13296       -.29390E-07   -.24614E-03
  30  Prefactor     1.0192        .10565       -.52523E-07   -.26638E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 13.2859
  Prefactor  = 7.29809
  Prefactor  = 0.0001
  Prefactor  = 19.227
  norm       = 0.0001
  norm       = 1.49332
  Prefactor  = 1.98977
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.79013
  norm       = 2.09301
  norm       = 1.83379
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 1.9184
  Prefactor  = 0.0001
  Prefactor  = 9.13166
  Prefactor  = 0.724799
  norm       = 0.954631
  norm       = 0.0001
  Prefactor  = 2.58727
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.1973
  Prefactor  = 2.84054
  norm       = 0.0001
  Prefactor  = 2.21666
  Normalizat = 0.984599
  Prefactor  = 1.01924
 **********
 **   18 **HESSE 
 **********

 FCN=   12586.20     FROM HESSE     STATUS=OK           592 CALLS     3973 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.1050        .15861E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     13.286        12.843        .10989E-03   -1.4979    
   3  Prefactor     7.2981        15.781        .74237E-03   -1.5168    
   4  Prefactor     .10000E-03    1.8299        .14811E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     19.227        13.107        .91341E-04   -1.4831    
   6  norm          .10000E-03    4.7917        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.4933        1.3420        .11867E-03   -1.5464    
   8  Prefactor     1.9898        3.4947        .27046E-03   -1.5426    
   9  Prefactor     .10000E-03    7.3619        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.1538        .26588E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          6.7901        3.3338        .13720E-03   -1.5187    
  12  norm          2.0930        1.2050        .89462E-04   -1.5419    
  13  norm          1.8338        .48362        .38447E-04   -1.5437    
  14  Prefactor     .10000E-03    6.7279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    14.898        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.9184        1.9167        .14761E-03   -1.5431    
  17  Prefactor     .10000E-03    23.331        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     9.1317        5.6522        .66319E-03   -1.5104    
  19  Prefactor     .72480        5.4085        .24310E-02   -1.5538    
  20  norm          .95463        2.1873        .24092E-03   -1.5513    
  21  norm          .10000E-03    1.2682        .12245E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     2.5873        1.4573        .97545E-04   -1.5386    
  23  Prefactor     .10000E-03    12.520        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    11.039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     2.1973        2.1223        .14811E-03   -1.5411    
  26  Prefactor     2.8405        12.786        .24115E-03   -1.5371    
  27  norm          .10000E-03    .42992        .77828E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     2.2167        1.7656        .12698E-03   -1.5410    
  29  Normalizat    .98460        .15037        .26645E-03   -.93548    
  30  Prefactor     1.0192        .12116        .21879E-03   -.92091    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.91763e-09
Minuit parameter uncertainties:
  1  3.09716e-07
  2  12.8454
  3  15.7905
  4  1.0913e-07
  5  13.1087
  6  5.45016e-06
  7  1.34198
  8  3.49508
  9  6.96586e-07
  10  4.64813e-05
  11  3.33389
  12  1.20497
  13  0.48362
  14  2.43693e-06
  15  0.000229689
  16  1.91674
  17  6.5059e-05
  18  5.65253
  19  3.96006
  20  2.18747
  21  1.87691e-07
  22  1.45729
  23  3.42819e-07
  24  7.47096e-06
  25  2.12242
  26  12.0573
  27  5.33037e-07
  28  1.76561
  29  0.150436
  30  0.121193
Done.

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

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  1.834e+00  4.836e-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.019e+00  1.212e-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.846e-01  1.504e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 56.39
Ra Dec: 124.557 42.382
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 9.15e-08 +/- 2.41e-08
Energy Flux (Fixed Index): 5.16e-05 +/- 1.36e-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) = 12584.8472869
delta logL = 1.35533595428

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12584.8467879
delta logL = 1.35583491249

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7253       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6135       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0069       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0145       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=   12584.85     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      210 TOTAL
                     EDM=   .72E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7253        .49382        .79930E-02    .16717E-02
   2  alpha         1.6135        .20254        .22490       -.58382E-04
   3  Normalizat    1.0069        .12411        .46254E-01    .53627E-05
   4  Prefactor     1.0145        .10382        .42733E-01    .34577E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.72527
  alpha      = 1.6135
  Normalizat = 1.00693
  Prefactor  = 1.01453
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7253        .54032        .40615E-04   -1.5445    
   2  alpha         1.6135        .23421        .93749E-02   -.36249    
   3  Normalizat    1.0069        .14129        .26406E-03   -.92798    
   4  Prefactor     1.0145        .11835        .21945E-03   -.92247    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.39719e-11
Minuit parameter uncertainties:
  1  0.540319
  2  0.234601
  3  0.141346
  4  0.118378
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/571719': 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) = 12584.8467879
delta logL = 1.35583491251

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  1.725e+00  5.403e-01  1.000e-04  1.000e+04 ( 1.000e-11)
284        alpha:  1.613e+00  2.346e-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.015e+00  1.184e-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.007e+00  1.413e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 59.12
Ra Dec: 124.557 42.382
Photon Index (Free Index): 1.61 +/- 0.23
Photon Flux (Free Index): 6.32e-08 +/- 2.46e-08
Energy Flux (Free Index): 7.97e-05 +/- 3.35e-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/571719/cmap_HighResolution_612144001_612748801_4FGL_J0818.2+4222_weekly_bin617.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.15e-08', energy_flux2='7.97e-05', photon_flux_error='2.41e-08', dlogl='1.36e+00', energy_flux='5.16e-05', photon_flux2='6.32e-08', job_status='DONE', time_completed='2021-07-13 15:22:49.794494', photon_index_error2='0.23', photon_index2='1.61', ts='56.39', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='3.35e-05', EG='0.98', time_epoch_completed='1626214969.79', return_code='0', job_id='571719', GAL2='1.01', EG2='1.01', return_code2='0', energy_flux_error='1.36e-05', photon_flux_error2='2.46e-08', ts2='59.12', photon_index='2.00' WHERE bin_id='617' AND source_name='4FGL J0818.2+4222' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 13 15:22:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0107>
Subject: Job 571719: <4FGL_J0818.2+4222_weekly_bin617> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.2+4222_weekly_bin617 124.557 42.3819 612144001 612748801 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 :                                   1248.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             60.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   2013 sec.
    Turnaround time :                            114107 sec.

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

