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


Performing analysis on: 4FGL_J0818.2+4222_weekly_bin121
RA = 124.557, Dec = 42.3819
tmin = 312163201, tmax = 312768001
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='567797', job_status='RUN', time_executed='2021-07-12 07:31:48.511353', time_epoch_executed='1626100308.51' WHERE source_name='4FGL J0818.2+4222' and cadence='weekly' and bin_id='121'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/567797

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/567797/ft1_4FGL_J0818.2+4222_weekly_bin121.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/567797/ft2_4FGL_J0818.2+4222_weekly_bin121.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/567797/ft1_4FGL_J0818.2+4222_weekly_bin121.fits outfile=/scratch/kocevski/567797/ft1_filteredMKT_4FGL_J0818.2+4222_weekly_bin121.fits ra=124.557 dec=42.3819 rad=12.0 tmin=312163201.0 tmax=312768001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 11.98
user 7.64
sys 0.35

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/567797/ft1_filtered_4FGL_J0818.2+4222_weekly_bin121.fits" evtable="EVENTS" scfile=/scratch/kocevski/567797/ft2_4FGL_J0818.2+4222_weekly_bin121.fits sctable="SC_DATA" outfile=/scratch/kocevski/567797/ltcube_312163201_312768001_4FGL_J0818.2+4222_weekly_bin121.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/567797/ft2_4FGL_J0818.2+4222_weekly_bin121.fits
.....................!
real 33.72
user 29.59
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/567797/ft1_filtered_4FGL_J0818.2+4222_weekly_bin121.fits evtable="EVENTS" scfile=/scratch/kocevski/567797/ft2_4FGL_J0818.2+4222_weekly_bin121.fits sctable="SC_DATA" expcube=/scratch/kocevski/567797/ltcube_312163201_312768001_4FGL_J0818.2+4222_weekly_bin121.fits outfile=/scratch/kocevski/567797/expmap_312163201_312768001_4FGL_J0818.2+4222_weekly_bin121.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/567797/ltcube_312163201_312768001_4FGL_J0818.2+4222_weekly_bin121.fits
.....................!
real 219.91
user 186.02
sys 5.42

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/567797/ft1_filtered_4FGL_J0818.2+4222_weekly_bin121.fits scfile=/scratch/kocevski/567797/ft2_4FGL_J0818.2+4222_weekly_bin121.fits outfile=/scratch/kocevski/567797/cmap_312163201_312768001_4FGL_J0818.2+4222_weekly_bin121.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.26
user 0.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/567797/ft1_filtered_4FGL_J0818.2+4222_weekly_bin121.fits scfile=/scratch/kocevski/567797/ft2_4FGL_J0818.2+4222_weekly_bin121.fits outfile=/scratch/kocevski/567797/cmap_HighResolution_312163201_312768001_4FGL_J0818.2+4222_weekly_bin121.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.40
user 0.42
sys 0.19

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.2330       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.4953       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.7098       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    6.3132       1.0000         .10000E-03   10000.    
     7 'norm      '    1.6790       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10649E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11841E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.0763       1.0000         .10000E-03   10000.    
    12 'norm      '    3.0518       1.0000         .10000E-03   10000.    
    13 'norm      '    .94374       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.9903       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .61722       1.0000         .10000E-03   10000.    
    17 'Prefactor '    41.308       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.9937       1.0000         .10000E-03   10000.    
    20 'norm      '    4.0431       1.0000         .10000E-03   10000.    
    21 'norm      '    5.6245       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .69053       1.0000         .10000E-03   10000.    
    23 'Prefactor '    16.574       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10514E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    4.9660       1.0000         .10000E-03   10000.    
    27 'norm      '    .36724       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .14836E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .82657       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1609       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=   16134.88     FROM MIGRAD    STATUS=CONVERGED    775 CALLS     3979 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.2327        4.9661        .32166E-06   -.15486E-02
   2  Prefactor     6.4953        6.8983        .41607E-06   -.99539E-03
   3  Prefactor     .10000E-03    14.261        .12363E-06** at limit **
   4  Prefactor     6.7069        10.110        .48928E-06   -.16989E-04
   5  Prefactor     .10000E-03    3.5608        .48560E-06** at limit **
   6  norm          6.3131        6.1713        .34171E-06   -.11227E-02
   7  norm          1.6790        1.8352       -.99343E-08   -.42524E-03
   8  Prefactor     .10000E-03    1.3769        .53624E-08** at limit **
   9  Prefactor     .10000E-03    38.138        .75470E-07** at limit **
  10  Prefactor     .10000E-03    1.1986       -.73640E-07** at limit **
  11  norm          4.0763        2.3220        .20350E-07   -.62983E-04
  12  norm          3.0518        1.1112        .82217E-08    .33014E-04
  13  norm          .94376        .37781        .10069E-07   -.16033E-03
  14  Prefactor     8.9914        20.312        .61577E-06   -.11479E-05
  15  Prefactor     .10000E-03    4.9430        .34820E-06** at limit **
  16  Prefactor     .61806        1.2011        .13860E-06   -.53446E-03
  17  Prefactor     41.307        20.071       -.37446E-06   -.71462E-04
  18  Prefactor     .10000E-03    3.8064        .38750E-06** at limit **
  19  Prefactor     2.9937        2.9430       -.53078E-06   -.21947E-03
  20  norm          4.0435        3.3999       -.52665E-06   -.26376E-03
  21  norm          5.6246        3.5522       -.39667E-06   -.20529E-03
  22  Prefactor     .69053        1.1832        .54870E-07   -.55273E-03
  23  Prefactor     16.582        41.706        .11120E-04    .10208E-03
  24  Prefactor     .10000E-03    8.2788       -.10330E-06** at limit **
  25  Prefactor     .10000E-03    .59606        .50466E-07** at limit **
  26  Prefactor     4.9690        9.2194       -.13477E-06   -.39728E-04
  27  norm          .36746        .26817        .12472E-07    .91414E-03
  28  Prefactor     .10000E-03    .83022       -.22081E-06** at limit **
  29  Normalizat    .82651        .12402       -.67119E-06    .51769E-04
  30  Prefactor     1.1609        .93102E-01    .59347E-07   -.52942E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.23274
  Prefactor  = 6.49531
  Prefactor  = 0.0001
  Prefactor  = 6.70686
  Prefactor  = 0.0001
  norm       = 6.31313
  norm       = 1.67902
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.07635
  norm       = 3.05179
  norm       = 0.943758
  Prefactor  = 8.99143
  Prefactor  = 0.0001
  Prefactor  = 0.618058
  Prefactor  = 41.3066
  Prefactor  = 0.0001
  Prefactor  = 2.9937
  norm       = 4.04346
  norm       = 5.62464
  Prefactor  = 0.690532
  Prefactor  = 16.5823
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.96902
  norm       = 0.367465
  Prefactor  = 0.000100002
  Normalizat = 0.826513
  Prefactor  = 1.1609
 **********
 **   18 **HESSE 
 **********

 FCN=   16134.88     FROM HESSE     STATUS=OK           604 CALLS     4583 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.2327        5.7821        .74572E-03   -1.5170    
   2  Prefactor     6.4953        7.7240        .78736E-03   -1.5198    
   3  Prefactor     .10000E-03    14.320        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.7069        9.9662        .15491E-03   -1.5190    
   5  Prefactor     .10000E-03    3.5739        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          6.3131        6.9521        .79877E-03   -1.5205    
   7  norm          1.6790        1.8092        .16290E-03   -1.5449    
   8  Prefactor     .10000E-03    1.3809        .14554E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    38.597        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.3147        .26526E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.0763        2.3201        .14061E-03   -1.5304    
  12  norm          3.0518        1.1113        .77708E-04   -1.5359    
  13  norm          .94376        .36990        .46678E-04   -1.5514    
  14  Prefactor     8.9914        20.310        .13367E-03   -1.5108    
  15  Prefactor     .10000E-03    4.9773        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .61806        1.2603        .18367E-02   -1.5551    
  17  Prefactor     41.307        20.019        .62370E-04   -1.4422    
  18  Prefactor     .10000E-03    3.8506        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.9937        2.9425        .21076E-03   -1.5362    
  20  norm          4.0435        3.3960        .20054E-03   -1.5306    
  21  norm          5.6246        3.5543        .16939E-03   -1.5234    
  22  Prefactor     .69053        .92927        .17079E-02   -1.5542    
  23  Prefactor     16.582        41.880        .98381E-04   -1.4893    
  24  Prefactor     .10000E-03    8.2845        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    1.1175        .18944E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     4.9690        9.2082        .18047E-03   -1.5262    
  27  norm          .36746        .23967        .51093E-03   -1.5587    
  28  Prefactor     .10000E-03    4.1061        .20738E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .82651        .13746        .30379E-03   -.99093    
  30  Prefactor     1.1609        .10652        .20708E-03   -.87543    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.90996e-08
Minuit parameter uncertainties:
  1  5.78253
  2  7.72515
  3  6.6464e-07
  4  9.96867
  5  9.21541e-06
  6  6.95296
  7  1.8093
  8  6.05873e-07
  9  3.19073e-05
  10  4.60105e-05
  11  2.32015
  12  1.11132
  13  0.369904
  14  20.3259
  15  1.21547e-05
  16  1.26037
  17  20.0227
  18  1.22522e-05
  19  2.94262
  20  3.39619
  21  3.55447
  22  0.929286
  23  41.9539
  24  2.04942e-07
  25  4.51887e-06
  26  9.21082
  27  0.23967
  28  0.000164847
  29  0.137517
  30  0.106543
Done.

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

Extracting fit parameters...

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

EG_v02
   Spectrum: FileFunction
619   Normalization:  8.265e-01  1.375e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 17.13
Ra Dec: 124.557 42.382
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 4.71e-08 +/- 1.85e-08
Energy Flux (Fixed Index): 2.65e-05 +/- 1.04e-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) = 16134.853899
delta logL = 0.0275517731243

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 16134.8533316
delta logL = 0.0281191562608

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .95055       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0822       1.0000          .0000       5.0000    
     3 'Normalizat'    .82196       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1623       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=   16134.85     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      206 TOTAL
                     EDM=   .87E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .95077        4.7951        .10259E-01    .76122E-03
   2  alpha         2.0823        3.5378        .40441        .18679E-04
   3  Normalizat    .82198        .55980E-01    .68823E-01    .54994E-04
   4  Prefactor     1.1623        .36412E-01    .35589E-01    .31247E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.950774
  alpha      = 2.08231
  Normalizat = 0.821977
  Prefactor  = 1.16231
 **********
 **   18 **HESSE 
 **********

 FCN=   16134.85     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .20E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .95077        .36109        .45777E-04   -1.5513    
   2  alpha         2.0823        .36232        .13847E-01   -.16786    
   3  Normalizat    .82198        .13156        .30451E-03   -.99259    
   4  Prefactor     1.1623        .10411        .20695E-03   -.87499    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.96577e-13
Minuit parameter uncertainties:
  1  0.361092
  2  0.36364
  3  0.131609
  4  0.104125
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/567797': 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) = 16134.8533313
delta logL = 0.0281194195759

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  9.508e-01  3.611e-01  1.000e-04  1.000e+04 ( 1.000e-11)
284        alpha:  2.082e+00  3.636e-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.162e+00  1.041e-01  0.000e+00  1.000e+01 ( 1.000e+00)
621        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
622        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
619   Normalization:  8.220e-01  1.316e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 17.17
Ra Dec: 124.557 42.382
Photon Index (Free Index): 2.08 +/- 0.36
Photon Flux (Free Index): 5.19e-08 +/- 2.78e-08
Energy Flux (Free Index): 2.54e-05 +/- 1.08e-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/567797/cmap_HighResolution_312163201_312768001_4FGL_J0818.2+4222_weekly_bin121.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.71e-08', energy_flux2='2.54e-05', photon_flux_error='1.85e-08', dlogl='2.81e-02', energy_flux='2.65e-05', photon_flux2='5.19e-08', job_status='DONE', time_completed='2021-07-13 15:08:06.357237', photon_index_error2='0.36', photon_index2='2.08', ts='17.13', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', energy_flux_error2='1.08e-05', EG='0.83', time_epoch_completed='1626214086.36', return_code='0', job_id='567797', GAL2='1.16', EG2='0.82', return_code2='0', energy_flux_error='1.04e-05', photon_flux_error2='2.78e-08', ts2='17.17', photon_index='2.00' WHERE bin_id='121' AND source_name='4FGL J0818.2+4222' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 13 15:08:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0120>
Subject: Job 567797: <4FGL_J0818.2+4222_weekly_bin121> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.2+4222_weekly_bin121 124.557 42.3819 312163201 312768001 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 :                                   1561.00 sec.
    Max Memory :                                 621 MB
    Average Memory :                             322.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2156 sec.
    Turnaround time :                            114083 sec.

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

