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


Performing analysis on: 4FGL_J0818.2+4222_weekly_bin177
RA = 124.557, Dec = 42.3819
tmin = 346032001, tmax = 346636801
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='567894', job_status='RUN', time_executed='2021-07-12 07:32:20.967189', time_epoch_executed='1626100340.97' WHERE source_name='4FGL J0818.2+4222' and cadence='weekly' and bin_id='177'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/567894

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/567894/ft1_4FGL_J0818.2+4222_weekly_bin177.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/567894/ft2_4FGL_J0818.2+4222_weekly_bin177.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/567894/ft1_4FGL_J0818.2+4222_weekly_bin177.fits outfile=/scratch/kocevski/567894/ft1_filteredMKT_4FGL_J0818.2+4222_weekly_bin177.fits ra=124.557 dec=42.3819 rad=12.0 tmin=346032001.0 tmax=346636801.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 10.86
user 7.58
sys 0.28

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/567894/ft1_filtered_4FGL_J0818.2+4222_weekly_bin177.fits" evtable="EVENTS" scfile=/scratch/kocevski/567894/ft2_4FGL_J0818.2+4222_weekly_bin177.fits sctable="SC_DATA" outfile=/scratch/kocevski/567894/ltcube_346032001_346636801_4FGL_J0818.2+4222_weekly_bin177.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/567894/ft2_4FGL_J0818.2+4222_weekly_bin177.fits
.....................!
real 35.77
user 29.29
sys 0.57

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/567894/ft1_filtered_4FGL_J0818.2+4222_weekly_bin177.fits evtable="EVENTS" scfile=/scratch/kocevski/567894/ft2_4FGL_J0818.2+4222_weekly_bin177.fits sctable="SC_DATA" expcube=/scratch/kocevski/567894/ltcube_346032001_346636801_4FGL_J0818.2+4222_weekly_bin177.fits outfile=/scratch/kocevski/567894/expmap_346032001_346636801_4FGL_J0818.2+4222_weekly_bin177.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/567894/ltcube_346032001_346636801_4FGL_J0818.2+4222_weekly_bin177.fits
.....................!
real 215.03
user 186.00
sys 5.36

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/567894/ft1_filtered_4FGL_J0818.2+4222_weekly_bin177.fits scfile=/scratch/kocevski/567894/ft2_4FGL_J0818.2+4222_weekly_bin177.fits outfile=/scratch/kocevski/567894/cmap_346032001_346636801_4FGL_J0818.2+4222_weekly_bin177.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.03
user 0.43
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/567894/ft1_filtered_4FGL_J0818.2+4222_weekly_bin177.fits scfile=/scratch/kocevski/567894/ft2_4FGL_J0818.2+4222_weekly_bin177.fits outfile=/scratch/kocevski/567894/cmap_HighResolution_346032001_346636801_4FGL_J0818.2+4222_weekly_bin177.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.84
user 0.43
sys 0.19

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .74690       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10183E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    30.914       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.9896       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.8616       1.0000         .10000E-03   10000.    
     6 'norm      '    1.4494       1.0000         .10000E-03   10000.    
     7 'norm      '    1.8540       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.4520       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10558E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.0829       1.0000         .10000E-03   10000.    
    11 'norm      '    1.2847       1.0000         .10000E-03   10000.    
    12 'norm      '    1.3043       1.0000         .10000E-03   10000.    
    13 'norm      '    .79496       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .64290       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10899E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11084E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.5078       1.0000         .10000E-03   10000.    
    20 'norm      '    13.139       1.0000         .10000E-03   10000.    
    21 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10758E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11594E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .21435E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    8.1785       1.0000         .10000E-03   10000.    
    27 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    3.9480       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .82990       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0433       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=   16180.80     FROM MIGRAD    STATUS=CONVERGED    765 CALLS     3415 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .74608        .62834        .56401E-07   -.15047E-02
   2  Prefactor     .10000E-03    2.6081        .14356E-05** at limit **
   3  Prefactor     30.891        16.249       -.12620E-04   -.12914E-04
   4  Prefactor     3.9766        6.2686        .16011E-05    .12220E-03
   5  Prefactor     2.8516        6.7503       -.63197E-06    .71892E-05
   6  norm          1.4428        4.5035       -.38465E-06   -.44628E-04
   7  norm          1.8545        1.2330        .43561E-07    .10685E-03
   8  Prefactor     3.4523        4.4081       -.70764E-08   -.25893E-03
   9  Prefactor     .10000E-03    17.789       -.12206E-05** at limit **
  10  Prefactor     2.0836        2.4569       -.14318E-06    .17620E-04
  11  norm          1.2848        2.3616        .68210E-09   -.16222E-04
  12  norm          1.3043        1.0355       -.10800E-07    .44498E-04
  13  norm          .79491        .32671       -.22479E-07    .26078E-03
  14  Prefactor     .10000E-03    3.8570       -.10646E-05** at limit **
  15  Prefactor     .10000E-03    3.9068       -.32626E-06** at limit **
  16  Prefactor     .64305        1.2081       -.88463E-07   -.37562E-03
  17  Prefactor     .10000E-03    5.3444        .19306E-05** at limit **
  18  Prefactor     .10000E-03    2.3802       -.12610E-05** at limit **
  19  Prefactor     3.5083        3.0187       -.40043E-07    .88851E-06
  20  norm          13.141        4.2525       -.81349E-07   -.77054E-05
  21  norm          .10000E-03    1.6677       -.30482E-07** at limit **
  22  Prefactor     .10000E-03    .49865       -.80677E-07** at limit **
  23  Prefactor     .10000E-03    13.439        .11100E-04** at limit **
  24  Prefactor     .10000E-03    10.647       -.78731E-05** at limit **
  25  Prefactor     .10000E-03    .78237       -.56494E-08** at limit **
  26  Prefactor     8.2236        9.7653        .11101E-05    .80199E-04
  27  norm          .10000E-03    .92539E-01    .34044E-08** at limit **
  28  Prefactor     3.9477        2.1532       -.10541E-06    .51324E-04
  29  Normalizat    .82985        .11015        .66872E-06    .14103E-03
  30  Prefactor     1.0433        .85803E-01    .46324E-06    .94472E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.746081
  Prefactor  = 0.0001
  Prefactor  = 30.8915
  Prefactor  = 3.97658
  Prefactor  = 2.85162
  norm       = 1.44283
  norm       = 1.85448
  Prefactor  = 3.45233
  Prefactor  = 0.0001
  Prefactor  = 2.08357
  norm       = 1.28478
  norm       = 1.30426
  norm       = 0.794911
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.643046
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.50833
  norm       = 13.1413
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.22363
  norm       = 0.0001
  Prefactor  = 3.94767
  Normalizat = 0.829847
  Prefactor  = 1.04333
 **********
 **   18 **HESSE 
 **********

 FCN=   16180.80     FROM HESSE     STATUS=OK           606 CALLS     4021 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .74608        2.4417        .58956E-01   -1.5535    
   2  Prefactor     .10000E-03    2.6223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     30.891        16.247        .72063E-04   -1.4596    
   4  Prefactor     3.9766        6.2352        .20192E-03   -1.5309    
   5  Prefactor     2.8516        6.7134        .24032E-03   -1.5370    
   6  norm          1.4428        4.4887        .35792E-03   -1.5468    
   7  norm          1.8545        1.2286        .10999E-03   -1.5436    
   8  Prefactor     3.4523        4.4213        .10884E-02   -1.5336    
   9  Prefactor     .10000E-03    17.919        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.0836        2.4184        .20159E-03   -1.5419    
  11  norm          1.2848        2.3020        .23793E-03   -1.5481    
  12  norm          1.3043        1.0040        .10366E-03   -1.5480    
  13  norm          .79491        .32149        .44112E-04   -1.5530    
  14  Prefactor     .10000E-03    3.8608        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.9481        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .64305        1.0379        .17786E-02   -1.5548    
  17  Prefactor     .10000E-03    5.3596        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.4009        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.5083        3.0190        .19982E-03   -1.5333    
  20  norm          13.141        4.2255        .55253E-03   -1.4983    
  21  norm          .10000E-03    1.7401        .32064E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    2.9406        .17006E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    13.445        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    10.678        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    1.9452        .21518E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     8.2236        9.7155        .14019E-03   -1.5134    
  27  norm          .10000E-03    .12052        .69368E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     3.9477        1.9776        .12151E-03   -1.5311    
  29  Normalizat    .82985        .12182        .27180E-03   -.98971    
  30  Prefactor     1.0433        .98620E-01    .19974E-03   -.91299    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27346e-08
Minuit parameter uncertainties:
  1  2.442
  2  5.62973e-06
  3  16.2492
  4  6.2362
  5  6.71515
  6  4.48971
  7  1.22858
  8  4.42168
  9  2.16009e-06
  10  2.41851
  11  2.30212
  12  1.00401
  13  0.321495
  14  2.3837e-06
  15  3.14645e-06
  16  1.03794
  17  4.81057e-06
  18  2.60254e-06
  19  3.01918
  20  4.2256
  21  3.00391e-06
  22  2.79478e-05
  23  8.70232e-06
  24  1.53468e-05
  25  4.98658e-05
  26  9.71737
  27  1.85124e-07
  28  1.97762
  29  0.121862
  30  0.0986371
Done.

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

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  7.949e-01  3.215e-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.043e+00  9.864e-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:  8.298e-01  1.219e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 18.57
Ra Dec: 124.557 42.382
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 3.97e-08 +/- 1.60e-08
Energy Flux (Fixed Index): 2.24e-05 +/- 9.04e-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) = 16180.5148787
delta logL = 0.288142311536

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 16180.5148619
delta logL = 0.288159113363

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .74214       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7238       1.0000          .0000       5.0000    
     3 'Normalizat'    .83918       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0411       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=   16180.51     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      206 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .74218        1.0553        .10215E-01    .19631E-02
   2  alpha         1.7237        .89649        .38505       -.15469E-04
   3  Normalizat    .83918        .10800        .44119E-01    .28559E-04
   4  Prefactor     1.0411        .87832E-01    .40460E-01    .25965E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.742182
  alpha      = 1.72375
  Normalizat = 0.83918
  Prefactor  = 1.04112
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .74218        .34479        .45320E-04   -1.5536    
   2  alpha         1.7237        .35720        .14243E-01   -.31572    
   3  Normalizat    .83918        .11776        .27047E-03   -.98631    
   4  Prefactor     1.0411        .96323E-01    .19997E-03   -.91371    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.7297e-11
Minuit parameter uncertainties:
  1  0.344794
  2  0.358559
  3  0.117795
  4  0.0963392
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/567894': 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) = 16180.5148619
delta logL = 0.288159143365

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  7.422e-01  3.448e-01  1.000e-04  1.000e+04 ( 1.000e-11)
284        alpha:  1.724e+00  3.586e-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.041e+00  9.634e-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:  8.392e-01  1.178e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 19.15
Ra Dec: 124.557 42.382
Photon Index (Free Index): 1.72 +/- 0.36
Photon Flux (Free Index): 2.92e-08 +/- 1.80e-08
Energy Flux (Free Index): 2.84e-05 +/- 1.59e-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/567894/cmap_HighResolution_346032001_346636801_4FGL_J0818.2+4222_weekly_bin177.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.97e-08', energy_flux2='2.84e-05', photon_flux_error='1.60e-08', dlogl='2.88e-01', energy_flux='2.24e-05', photon_flux2='2.92e-08', job_status='DONE', time_completed='2021-07-13 15:07:00.884299', photon_index_error2='0.36', photon_index2='1.72', ts='18.57', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', energy_flux_error2='1.59e-05', EG='0.83', time_epoch_completed='1626214020.88', return_code='0', job_id='567894', GAL2='1.04', EG2='0.84', return_code2='0', energy_flux_error='9.04e-06', photon_flux_error2='1.80e-08', ts2='19.15', photon_index='2.00' WHERE bin_id='177' AND source_name='4FGL J0818.2+4222' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 13 15:07:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0143>
Subject: Job 567894: <4FGL_J0818.2+4222_weekly_bin177> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.2+4222_weekly_bin177 124.557 42.3819 346032001 346636801 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 :                                   1493.00 sec.
    Max Memory :                                 622 MB
    Average Memory :                             323.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2020 sec.
    Turnaround time :                            114010 sec.

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

