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


Performing analysis on: 4FGL_J0818.2+4222_weekly_bin376
RA = 124.557, Dec = 42.3819
tmin = 466387201, tmax = 466992001
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='569167', job_status='RUN', time_executed='2021-07-12 07:36:34.728505', time_epoch_executed='1626100594.73' WHERE source_name='4FGL J0818.2+4222' and cadence='weekly' and bin_id='376'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/569167

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/569167/ft1_4FGL_J0818.2+4222_weekly_bin376.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/569167/ft2_4FGL_J0818.2+4222_weekly_bin376.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/569167/ft1_4FGL_J0818.2+4222_weekly_bin376.fits outfile=/scratch/kocevski/569167/ft1_filteredMKT_4FGL_J0818.2+4222_weekly_bin376.fits ra=124.557 dec=42.3819 rad=12.0 tmin=466387201.0 tmax=466992001.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.13
user 7.57
sys 0.29

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/569167/ft1_filtered_4FGL_J0818.2+4222_weekly_bin376.fits" evtable="EVENTS" scfile=/scratch/kocevski/569167/ft2_4FGL_J0818.2+4222_weekly_bin376.fits sctable="SC_DATA" outfile=/scratch/kocevski/569167/ltcube_466387201_466992001_4FGL_J0818.2+4222_weekly_bin376.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/569167/ft2_4FGL_J0818.2+4222_weekly_bin376.fits
.....................!
real 34.55
user 32.75
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/569167/ft1_filtered_4FGL_J0818.2+4222_weekly_bin376.fits evtable="EVENTS" scfile=/scratch/kocevski/569167/ft2_4FGL_J0818.2+4222_weekly_bin376.fits sctable="SC_DATA" expcube=/scratch/kocevski/569167/ltcube_466387201_466992001_4FGL_J0818.2+4222_weekly_bin376.fits outfile=/scratch/kocevski/569167/expmap_466387201_466992001_4FGL_J0818.2+4222_weekly_bin376.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/569167/ltcube_466387201_466992001_4FGL_J0818.2+4222_weekly_bin376.fits
.....................!
real 194.67
user 186.33
sys 5.92

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/569167/ft1_filtered_4FGL_J0818.2+4222_weekly_bin376.fits scfile=/scratch/kocevski/569167/ft2_4FGL_J0818.2+4222_weekly_bin376.fits outfile=/scratch/kocevski/569167/cmap_466387201_466992001_4FGL_J0818.2+4222_weekly_bin376.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/569167/ft1_filtered_4FGL_J0818.2+4222_weekly_bin376.fits scfile=/scratch/kocevski/569167/ft2_4FGL_J0818.2+4222_weekly_bin376.fits outfile=/scratch/kocevski/569167/cmap_HighResolution_466387201_466992001_4FGL_J0818.2+4222_weekly_bin376.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.63
user 0.44
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .54906       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.5450       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    34.428       1.0000         .10000E-03   10000.    
     6 'norm      '    13.812       1.0000         .10000E-03   10000.    
     7 'norm      '    2.9790       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .13314E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.2702       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .14781E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.9646       1.0000         .10000E-03   10000.    
    12 'norm      '    1.6407       1.0000         .10000E-03   10000.    
    13 'norm      '    1.5601       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .71457       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.6037       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.0604       1.0000         .10000E-03   10000.    
    20 'norm      '    4.0926       1.0000         .10000E-03   10000.    
    21 'norm      '    4.5639       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.8995       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.4026       1.0000         .10000E-03   10000.    
    25 'Prefactor '    8.2723       1.0000         .10000E-03   10000.    
    26 'Prefactor '    12.999       1.0000         .10000E-03   10000.    
    27 'norm      '    .44724       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .63544       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .93773       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .99319       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=   15698.54     FROM MIGRAD    STATUS=CONVERGED    764 CALLS     3433 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .54814        2.1483       -.63889E-07   -.54085E-04
   2  Prefactor     .10009E-03    2.9403        .19453E-05** at limit **
   3  Prefactor     2.5391        19.127       -.10325E-04   -.12651E-03
   4  Prefactor     .10000E-03    1.7625        .12072E-07** at limit **
   5  Prefactor     34.426        11.909       -.34190E-06   -.26218E-03
   6  norm          13.812        7.5346       -.12816E-06   -.12379E-03
   7  norm          2.9790        1.4651        .24816E-07   -.59347E-05
   8  Prefactor     .10000E-03    1.5054        .90567E-06** at limit **
   9  Prefactor     4.2674        14.324       -.35892E-05   -.13271E-03
  10  Prefactor     .10000E-03    1.0528        .23386E-06** at limit **
  11  norm          2.9647        2.7353       -.52034E-06   -.26155E-03
  12  norm          1.6407        .99596        .54485E-07    .40138E-04
  13  norm          1.5602        .42169       -.53083E-08   -.78011E-03
  14  Prefactor     .10000E-03    7.0607       -.54993E-05** at limit **
  15  Prefactor     .10000E-03    4.0523       -.28458E-05** at limit **
  16  Prefactor     .71542        1.6573       -.27773E-07   -.26041E-03
  17  Prefactor     .10000E-03    5.3843        .24613E-05** at limit **
  18  Prefactor     2.6031        3.9539        .16505E-06   -.11790E-02
  19  Prefactor     6.0605        5.0879       -.10513E-07   -.45267E-03
  20  norm          4.0927        3.1579        .48418E-06    .20561E-03
  21  norm          4.5636        3.5883        .81415E-07   -.11774E-02
  22  Prefactor     1.8994        1.2858       -.16657E-07    .22854E-03
  23  Prefactor     .10000E-03    14.114       -.53565E-05** at limit **
  24  Prefactor     2.4031        17.955        .12573E-05   -.21389E-03
  25  Prefactor     8.2722        2.6120        .68386E-07    .47468E-03
  26  Prefactor     12.998        10.505       -.31552E-06    .34678E-05
  27  norm          .44716        .35081        .61990E-07    .14492E-02
  28  Prefactor     .63615        2.3139       -.68608E-06    .25468E-03
  29  Normalizat    .93772        .11975        .28427E-06   -.28777E-03
  30  Prefactor     .99319        .90870E-01    .76136E-07   -.42683E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.548142
  Prefactor  = 0.000100092
  Prefactor  = 2.53906
  Prefactor  = 0.0001
  Prefactor  = 34.4264
  norm       = 13.812
  norm       = 2.97901
  Prefactor  = 0.000100005
  Prefactor  = 4.26736
  Prefactor  = 0.000100001
  norm       = 2.96466
  norm       = 1.64069
  norm       = 1.5602
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.715424
  Prefactor  = 0.0001
  Prefactor  = 2.60312
  Prefactor  = 6.06046
  norm       = 4.09275
  norm       = 4.56363
  Prefactor  = 1.89942
  Prefactor  = 0.000100001
  Prefactor  = 2.40306
  Prefactor  = 8.27217
  Prefactor  = 12.9985
  norm       = 0.447157
  Prefactor  = 0.636153
  Normalizat = 0.937722
  Prefactor  = 0.993186
 **********
 **   18 **HESSE 
 **********

 FCN=   15698.54     FROM HESSE     STATUS=OK           606 CALLS     4039 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .54814        5.6100        .35118E-02   -1.5560    
   2  Prefactor     .10009E-03    11.003        .39071E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.5391        19.300        .25597E-03   -1.5389    
   4  Prefactor     .10000E-03    1.7667        .16241E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     34.426        11.894        .68296E-04   -1.4534    
   6  norm          13.812        7.5428        .10778E-03   -1.4965    
   7  norm          2.9790        1.4658        .10314E-03   -1.5363    
   8  Prefactor     .10000E-03    4.6051        .29209E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.2674        14.284        .19497E-03   -1.5295    
  10  Prefactor     .10000E-03    3.4864        .23862E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.9647        2.7233        .18698E-03   -1.5364    
  12  norm          1.6407        .98883        .91769E-04   -1.5452    
  13  norm          1.5602        .41397        .39808E-04   -1.5458    
  14  Prefactor     .10000E-03    7.1148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.0793        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .71542        1.6377        .22785E-03   -1.5539    
  17  Prefactor     .10000E-03    5.3999        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.6031        6.2943        .12641E-02   -1.5385    
  19  Prefactor     6.0605        5.1209        .81547E-03   -1.5216    
  20  norm          4.0927        3.1565        .18707E-03   -1.5303    
  21  norm          4.5636        3.8597        .94215E-03   -1.5281    
  22  Prefactor     1.8994        1.2726        .11098E-03   -1.5432    
  23  Prefactor     .10000E-03    14.171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     2.4031        20.614        .13208E-02   -1.5398    
  25  Prefactor     8.2722        2.5859        .10404E-03   -1.5133    
  26  Prefactor     12.998        10.499        .11110E-03   -1.4987    
  27  norm          .44716        .34995        .50405E-04   -1.5574    
  28  Prefactor     .63615        4.0424        .25995E-02   -1.5548    
  29  Normalizat    .93772        .13632        .27344E-03   -.95147    
  30  Prefactor     .99319        .10448        .21408E-03   -.92957    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18506e-07
Minuit parameter uncertainties:
  1  3.50727
  2  0.00201736
  3  14.0064
  4  4.95171e-06
  5  11.8953
  6  7.54332
  7  1.46582
  8  0.000303095
  9  14.2953
  10  9.86438e-05
  11  2.72337
  12  0.988837
  13  0.413967
  14  0.000125498
  15  4.87806e-05
  16  1.63779
  17  4.83827e-05
  18  6.29595
  19  5.12126
  20  3.15665
  21  3.85995
  22  1.27257
  23  0.000176571
  24  14.0828
  25  2.58597
  26  10.5
  27  0.349947
  28  3.20731
  29  0.136372
  30  0.104504
Done.

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

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  1.560e+00  4.140e-01  1.000e-04  1.000e+04 ( 1.000e-11)
284        alpha:  1.996e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
285         beta:  8.301e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
286           Eb:  7.677e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
620    Prefactor:  9.932e-01  1.045e-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.377e-01  1.364e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 48.61
Ra Dec: 124.557 42.382
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 7.79e-08 +/- 2.07e-08
Energy Flux (Fixed Index): 4.39e-05 +/- 1.16e-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) = 15698.5296664
delta logL = 0.00935910680528

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15698.5294983
delta logL = 0.0095271553364

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5605       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9601       1.0000          .0000       5.0000    
     3 'Normalizat'    .94072       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99210       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=   15698.53     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      198 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5608        5.7932        .85158E-02    .84796E-04
   2  alpha         1.9601        3.4777        .28623        .16398E-04
   3  Normalizat    .94071        .12882        .45420E-01    .17732E-04
   4  Prefactor     .99210        .72081E-01    .46168E-01    .91505E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.56079
  alpha      = 1.96015
  Normalizat = 0.940706
  Prefactor  = 0.992099
 **********
 **   18 **HESSE 
 **********

 FCN=   15698.53     FROM HESSE     STATUS=OK            33 CALLS      231 TOTAL
                     EDM=   .89E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5608        .41465        .40146E-04   -1.5458    
   2  alpha         1.9601        .25870        .11044E-01   -.21766    
   3  Normalizat    .94071        .12649        .27307E-03   -.95044    
   4  Prefactor     .99210        .10083        .21419E-03   -.92993    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.90078e-13
Minuit parameter uncertainties:
  1  0.414649
  2  0.259184
  3  0.12653
  4  0.100846
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/569167': 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) = 15698.5294981
delta logL = 0.00952737657826

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  1.561e+00  4.146e-01  1.000e-04  1.000e+04 ( 1.000e-11)
284        alpha:  1.960e+00  2.592e-01  0.000e+00  5.000e+00 ( 1.000e+00)
285         beta:  8.301e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
286           Eb:  7.677e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
620    Prefactor:  9.921e-01  1.008e-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.407e-01  1.265e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 48.52
Ra Dec: 124.557 42.382
Photon Index (Free Index): 1.96 +/- 0.26
Photon Flux (Free Index): 7.52e-08 +/- 2.75e-08
Energy Flux (Free Index): 4.51e-05 +/- 1.55e-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/569167/cmap_HighResolution_466387201_466992001_4FGL_J0818.2+4222_weekly_bin376.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.79e-08', energy_flux2='4.51e-05', photon_flux_error='2.07e-08', dlogl='9.53e-03', energy_flux='4.39e-05', photon_flux2='7.52e-08', job_status='DONE', time_completed='2021-07-13 15:06:57.560061', photon_index_error2='0.26', photon_index2='1.96', ts='48.61', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='1.55e-05', EG='0.94', time_epoch_completed='1626214017.56', return_code='0', job_id='569167', GAL2='0.99', EG2='0.94', return_code2='0', energy_flux_error='1.16e-05', photon_flux_error2='2.75e-08', ts2='48.52', photon_index='2.00' WHERE bin_id='376' AND source_name='4FGL J0818.2+4222' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 13 15:06:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0163>
Subject: Job 569167: <4FGL_J0818.2+4222_weekly_bin376> in cluster <slac> Done

Job <4FGL_J0818.2+4222_weekly_bin376> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Jul 12 07:32:06 2021
Job was executed on host(s) <bullet0163>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jul 12 07:34:00 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:34:00 2021
Terminated at Tue Jul 13 15:06:58 2021
Results reported at Tue Jul 13 15:06:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.2+4222_weekly_bin376 124.557 42.3819 466387201 466992001 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 :                                   1477.00 sec.
    Max Memory :                                 783 MB
    Average Memory :                             323.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1660 sec.
    Turnaround time :                            113692 sec.

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

