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


Performing analysis on: 4FGL_J0818.2+4222_weekly_bin558
RA = 124.557, Dec = 42.3819
tmin = 576460801, tmax = 577065601
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='571653', job_status='RUN', time_executed='2021-07-13 14:57:57.913837', time_epoch_executed='1626213477.91' WHERE source_name='4FGL J0818.2+4222' and cadence='weekly' and bin_id='558'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/571653

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/571653/ft1_4FGL_J0818.2+4222_weekly_bin558.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/571653/ft2_4FGL_J0818.2+4222_weekly_bin558.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/571653/ft1_4FGL_J0818.2+4222_weekly_bin558.fits outfile=/scratch/kocevski/571653/ft1_filteredMKT_4FGL_J0818.2+4222_weekly_bin558.fits ra=124.557 dec=42.3819 rad=12.0 tmin=576460801.0 tmax=577065601.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.73
user 8.35
sys 0.27

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/571653/ft1_filtered_4FGL_J0818.2+4222_weekly_bin558.fits" evtable="EVENTS" scfile=/scratch/kocevski/571653/ft2_4FGL_J0818.2+4222_weekly_bin558.fits sctable="SC_DATA" outfile=/scratch/kocevski/571653/ltcube_576460801_577065601_4FGL_J0818.2+4222_weekly_bin558.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/571653/ft2_4FGL_J0818.2+4222_weekly_bin558.fits
.....................!
real 36.16
user 35.69
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/571653/ft1_filtered_4FGL_J0818.2+4222_weekly_bin558.fits evtable="EVENTS" scfile=/scratch/kocevski/571653/ft2_4FGL_J0818.2+4222_weekly_bin558.fits sctable="SC_DATA" expcube=/scratch/kocevski/571653/ltcube_576460801_577065601_4FGL_J0818.2+4222_weekly_bin558.fits outfile=/scratch/kocevski/571653/expmap_576460801_577065601_4FGL_J0818.2+4222_weekly_bin558.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/571653/ltcube_576460801_577065601_4FGL_J0818.2+4222_weekly_bin558.fits
.....................!
real 190.78
user 185.57
sys 4.61

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/571653/ft1_filtered_4FGL_J0818.2+4222_weekly_bin558.fits scfile=/scratch/kocevski/571653/ft2_4FGL_J0818.2+4222_weekly_bin558.fits outfile=/scratch/kocevski/571653/cmap_576460801_577065601_4FGL_J0818.2+4222_weekly_bin558.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.59
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/571653/ft1_filtered_4FGL_J0818.2+4222_weekly_bin558.fits scfile=/scratch/kocevski/571653/ft2_4FGL_J0818.2+4222_weekly_bin558.fits outfile=/scratch/kocevski/571653/cmap_HighResolution_576460801_577065601_4FGL_J0818.2+4222_weekly_bin558.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.58
user 0.41
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.938       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .59293E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    61.595       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.6537       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.7071       1.0000         .10000E-03   10000.    
     6 'norm      '    .77332       1.0000         .10000E-03   10000.    
     7 'norm      '    2.9105       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10783E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.7928       1.0000         .10000E-03   10000.    
    11 'norm      '    1.1906       1.0000         .10000E-03   10000.    
    12 'norm      '    1.3534       1.0000         .10000E-03   10000.    
    13 'norm      '    1.6832       1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.611       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .91816       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.5005       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.0072       1.0000         .10000E-03   10000.    
    20 'norm      '    4.5984       1.0000         .10000E-03   10000.    
    21 'norm      '    1.4574       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .47721E-01   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .30550E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .17011E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    3.3771       1.0000         .10000E-03   10000.    
    26 'Prefactor '    4.5969       1.0000         .10000E-03   10000.    
    27 'norm      '    .33292E-01   1.0000         .10000E-03   10000.    
    28 'Prefactor '    1.2307       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .99016       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0481       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6230E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   24757.53     FROM MIGRAD    STATUS=CONVERGED    136 CALLS     3470 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.934        2.0547        .94187E-07    .33559E-02
   2  Prefactor     .10000E-03    167.99       -.46665E-05** at limit **
   3  Prefactor     61.474        16.586        .26329E-06   -.98197E-04
   4  Prefactor     3.6597        4.2976        .25065E-06    .33533E-03
   5  Prefactor     4.7051        1.0532        .55062E-08    .49230E-03
   6  norm          .78460        5.7662       -.11548E-05    .95964E-05
   7  norm          2.9100        1.2631        .94296E-07    .33820E-04
   8  Prefactor     .10000E-03    1.7001        .46470E-07** at limit **
   9  Prefactor     .10000E-03    6.1063       -.14758E-06** at limit **
  10  Prefactor     1.8013        1.8630       -.13845E-06   -.38472E-04
  11  norm          1.1929        1.3865        .17366E-06    .24474E-04
  12  norm          1.3527        .71193       -.27494E-07   -.44049E-04
  13  norm          1.6825        .34498        .22697E-07   -.20633E-04
  14  Prefactor     10.662        8.9643        .50151E-06    .29703E-03
  15  Prefactor     .10000E-03    3.4279       -.60692E-07** at limit **
  16  Prefactor     .91729        .99247       -.12530E-06   -.57491E-04
  17  Prefactor     .10000E-03    8.2584        .23042E-05** at limit **
  18  Prefactor     8.4883        2.4154       -.11020E-07   -.31301E-02
  19  Prefactor     5.0114        3.0618        .35862E-06    .66894E-04
  20  norm          4.5964        2.2692        .80127E-07    .41501E-04
  21  norm          1.4580        2.0349        .43424E-06    .52108E-04
  22  Prefactor     .49686E-01    4.6092       -.66680E-06   -.14872E-04
  23  Prefactor     .10001E-03    10.658       -.11262E-05** at limit **
  24  Prefactor     .10000E-03    24.669       -.40582E-06** at limit **
  25  Prefactor     3.3774        1.4059        .12302E-06    .43614E-04
  26  Prefactor     4.5964        1.2412        .55675E-07    .49773E-03
  27  norm          .33240E-01    .89761E-01   -.28092E-07   -.60525E-04
  28  Prefactor     1.2304        1.1319        .20968E-07   -.84222E-05
  29  Normalizat    .99019        .10603       -.24677E-06   -.76651E-04
  30  Prefactor     1.0481        .85614E-01   -.50958E-06   -.10581E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 12.9341
  Prefactor  = 0.0001
  Prefactor  = 61.4742
  Prefactor  = 3.65971
  Prefactor  = 4.70507
  norm       = 0.784603
  norm       = 2.91
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.80133
  norm       = 1.19294
  norm       = 1.35273
  norm       = 1.68248
  Prefactor  = 10.662
  Prefactor  = 0.0001
  Prefactor  = 0.917288
  Prefactor  = 0.0001
  Prefactor  = 8.4883
  Prefactor  = 5.01137
  norm       = 4.59643
  norm       = 1.458
  Prefactor  = 0.0496865
  Prefactor  = 0.000100015
  Prefactor  = 0.0001
  Prefactor  = 3.37739
  Prefactor  = 4.59642
  norm       = 0.0332396
  Prefactor  = 1.23038
  Normalizat = 0.990185
  Prefactor  = 1.04812
 **********
 **   18 **HESSE 
 **********

 FCN=   24757.53     FROM HESSE     STATUS=OK           672 CALLS     4142 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.934        4.8865        .27840E-02   -1.4989    
   2  Prefactor     .10000E-03    3.0848        .93153E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     61.474        16.626        .12782E-02   -1.4138    
   4  Prefactor     3.6597        4.3484        .52833E-02   -1.5325    
   5  Prefactor     4.7051        4.3727        .46368E-02   -1.5274    
   6  norm          .78460        5.6160        .12340E-01   -1.5531    
   7  norm          2.9100        1.2680        .59539E-02   -1.5367    
   8  Prefactor     .10000E-03    1.6701        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.0987        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.8013        1.8846        .78087E-02   -1.5440    
  11  norm          1.1929        1.4198        .10436E-01   -1.5490    
  12  norm          1.3527        .71590        .93972E-02   -1.5475    
  13  norm          1.6825        .34774        .81157E-02   -1.5449    
  14  Prefactor     10.662        9.0110        .30749E-02   -1.5055    
  15  Prefactor     .10000E-03    3.3635        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .91729        1.1089        .36454E-01   -1.5516    
  17  Prefactor     .10000E-03    8.2220        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.4883        5.2934        .34373E-02   -1.5125    
  19  Prefactor     5.0114        3.0703        .44928E-02   -1.5260    
  20  norm          4.5964        2.2763        .46926E-02   -1.5279    
  21  norm          1.4580        2.0623        .89140E-02   -1.5466    
  22  Prefactor     .49686E-01    .29497        .55508E-01   -1.5663    
  23  Prefactor     .10001E-03    12.825        .10691E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    24.371        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     3.3774        1.4143        .55047E-02   -1.5340    
  26  Prefactor     4.5964        5.7675        .46934E-02   -1.5279    
  27  norm          .33240E-01    .81626E-01    .17864E-01   -1.5672    
  28  Prefactor     1.2304        1.1533        .10133E-01   -1.5486    
  29  Normalizat    .99019        .95982E-01    .46043E-01   -.93360    
  30  Prefactor     1.0481        .76003E-01    .40025E-01   -.91142    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01873e-05
Minuit parameter uncertainties:
  1  4.88667
  2  7.12642e-05
  3  16.6273
  4  4.3488
  5  4.373
  6  4.19855
  7  1.26797
  8  1.19615e-07
  9  3.3803e-05
  10  1.88471
  11  1.41986
  12  0.715905
  13  0.347743
  14  9.01216
  15  7.24914e-07
  16  1.10893
  17  6.32187e-05
  18  5.29367
  19  3.07044
  20  2.27634
  21  2.06238
  22  0.241884
  23  0.000876271
  24  9.15794e-05
  25  1.41431
  26  5.76818
  27  0.0816259
  28  1.15334
  29  0.0959982
  30  0.0760108
Done.

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

Extracting fit parameters...

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

EG_v02
   Spectrum: FileFunction
619   Normalization:  9.902e-01  9.600e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 85.92
Ra Dec: 124.557 42.382
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 8.40e-08 +/- 1.74e-08
Energy Flux (Fixed Index): 4.73e-05 +/- 9.78e-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) = 24756.8625288
delta logL = 0.665429831024

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 24756.8560619
delta logL = 0.671896733569

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7004       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7967       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0025       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0441       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=   24756.86     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      209 TOTAL
                     EDM=   .70E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7004        .48994        .80649E-02    .26230E-03
   2  alpha         1.7967        .21627        .24361       -.15630E-04
   3  Normalizat    1.0025        .91133E-01    .46198E-01    .53444E-04
   4  Prefactor     1.0441        .74851E-01    .40267E-01    .21557E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.70039
  alpha      = 1.79672
  Normalizat = 1.00249
  Prefactor  = 1.04412
 **********
 **   18 **HESSE 
 **********

 FCN=   24756.86     FROM HESSE     STATUS=OK            33 CALLS      242 TOTAL
                     EDM=   .33E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7004        .35965        .41726E-04   -1.5447    
   2  alpha         1.7967        .17068        .99899E-02   -.28516    
   3  Normalizat    1.0025        .10257        .27120E-03   -.92947    
   4  Prefactor     1.0441        .84360E-01    .21846E-03   -.91273    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.32131e-14
Minuit parameter uncertainties:
  1  0.359653
  2  0.170821
  3  0.102591
  4  0.0843704
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/571653': 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) = 24756.8560619
delta logL = 0.671896780917

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  1.700e+00  3.597e-01  1.000e-04  1.000e+04 ( 1.000e-11)
284        alpha:  1.797e+00  1.708e-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.044e+00  8.437e-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:  1.002e+00  1.026e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 87.24
Ra Dec: 124.557 42.382
Photon Index (Free Index): 1.80 +/- 0.17
Photon Flux (Free Index): 7.08e-08 +/- 1.87e-08
Energy Flux (Free Index): 5.86e-05 +/- 1.72e-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/571653/cmap_HighResolution_576460801_577065601_4FGL_J0818.2+4222_weekly_bin558.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.40e-08', energy_flux2='5.86e-05', photon_flux_error='1.74e-08', dlogl='6.72e-01', energy_flux='4.73e-05', photon_flux2='7.08e-08', job_status='DONE', time_completed='2021-07-13 15:38:38.760598', photon_index_error2='0.17', photon_index2='1.80', ts='85.92', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', energy_flux_error2='1.72e-05', EG='0.99', time_epoch_completed='1626215918.76', return_code='0', job_id='571653', GAL2='1.04', EG2='1.00', return_code2='0', energy_flux_error='9.78e-06', photon_flux_error2='1.87e-08', ts2='87.24', photon_index='2.00' WHERE bin_id='558' AND source_name='4FGL J0818.2+4222' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 13 15:38:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0124>
Subject: Job 571653: <4FGL_J0818.2+4222_weekly_bin558> in cluster <slac> Done

Job <4FGL_J0818.2+4222_weekly_bin558> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Mon Jul 12 07:40:56 2021
Job was executed on host(s) <bullet0124>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jul 12 07:42:17 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:42:17 2021
Terminated at Tue Jul 13 15:38:40 2021
Results reported at Tue Jul 13 15:38:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.2+4222_weekly_bin558 124.557 42.3819 576460801 577065601 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 :                                   2191.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             83.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   3066 sec.
    Turnaround time :                            115064 sec.

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

