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


Performing analysis on: 4FGL_J0818.2+4222_weekly_bin463
RA = 124.557, Dec = 42.3819
tmin = 519004801, tmax = 519609601
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='571506', job_status='RUN', time_executed='2021-07-12 07:43:15.466980', time_epoch_executed='1626100995.47' WHERE source_name='4FGL J0818.2+4222' and cadence='weekly' and bin_id='463'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/571506

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/571506/ft1_4FGL_J0818.2+4222_weekly_bin463.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/571506/ft2_4FGL_J0818.2+4222_weekly_bin463.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/571506/ft1_4FGL_J0818.2+4222_weekly_bin463.fits outfile=/scratch/kocevski/571506/ft1_filteredMKT_4FGL_J0818.2+4222_weekly_bin463.fits ra=124.557 dec=42.3819 rad=12.0 tmin=519004801.0 tmax=519609601.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.15
user 7.22
sys 0.33

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/571506/ft1_filtered_4FGL_J0818.2+4222_weekly_bin463.fits" evtable="EVENTS" scfile=/scratch/kocevski/571506/ft2_4FGL_J0818.2+4222_weekly_bin463.fits sctable="SC_DATA" outfile=/scratch/kocevski/571506/ltcube_519004801_519609601_4FGL_J0818.2+4222_weekly_bin463.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/571506/ft2_4FGL_J0818.2+4222_weekly_bin463.fits
.....................!
real 31.26
user 26.36
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/571506/ft1_filtered_4FGL_J0818.2+4222_weekly_bin463.fits evtable="EVENTS" scfile=/scratch/kocevski/571506/ft2_4FGL_J0818.2+4222_weekly_bin463.fits sctable="SC_DATA" expcube=/scratch/kocevski/571506/ltcube_519004801_519609601_4FGL_J0818.2+4222_weekly_bin463.fits outfile=/scratch/kocevski/571506/expmap_519004801_519609601_4FGL_J0818.2+4222_weekly_bin463.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/571506/ltcube_519004801_519609601_4FGL_J0818.2+4222_weekly_bin463.fits
.....................!
real 112122.49
user 184.57
sys 5.20

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/571506/ft1_filtered_4FGL_J0818.2+4222_weekly_bin463.fits scfile=/scratch/kocevski/571506/ft2_4FGL_J0818.2+4222_weekly_bin463.fits outfile=/scratch/kocevski/571506/cmap_519004801_519609601_4FGL_J0818.2+4222_weekly_bin463.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 2.73
user 0.42
sys 0.19

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.8712       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    34.310       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.9390       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.6563       1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.885       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.7775       1.0000         .10000E-03   10000.    
    11 'norm      '    2.0513       1.0000         .10000E-03   10000.    
    12 'norm      '    1.2894       1.0000         .10000E-03   10000.    
    13 'norm      '    .84194       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .17697E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .20117       1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.512       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.5019       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.9703       1.0000         .10000E-03   10000.    
    21 'norm      '    .16834E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.6474       1.0000         .10000E-03   10000.    
    23 'Prefactor '    10.925       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10573E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.4210       1.0000         .10000E-03   10000.    
    26 'Prefactor '    27.771       1.0000         .10000E-03   10000.    
    27 'norm      '    7.5594       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .16057E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.2644       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .96171       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=   18448.98     FROM MIGRAD    STATUS=CONVERGED    783 CALLS     4056 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.8713        5.7343        .97686E-07   -.28172E-04
   2  Prefactor     .10000E-03    2.6168        .28769E-07** at limit **
   3  Prefactor     34.310        18.885        .28832E-07   -.21346E-04
   4  Prefactor     .10000E-03    3.0093        .53728E-07** at limit **
   5  Prefactor     .10000E-03    10.499        .28898E-06** at limit **
   6  norm          .10000E-03    2.1807        .26757E-07** at limit **
   7  norm          2.9388        1.6047        .48658E-07   -.10052E-03
   8  Prefactor     1.6482        6.2320        .33120E-05    .41454E-04
   9  Prefactor     12.904        29.803       -.13445E-05    .61027E-05
  10  Prefactor     1.7776        1.8635        .23561E-07   -.89067E-04
  11  norm          2.0511        2.9010        .72303E-06   -.33285E-04
  12  norm          1.2893        1.1556        .74479E-08   -.18099E-03
  13  norm          .84192        .35868       -.17034E-08   -.59297E-03
  14  Prefactor     .10000E-03    11.494       -.19377E-07** at limit **
  15  Prefactor     .10002E-03    3.7921        .32910E-06** at limit **
  16  Prefactor     .19911        .71631       -.18781E-06    .61234E-03
  17  Prefactor     10.513        10.204       -.10038E-06   -.28876E-04
  18  Prefactor     3.5016        3.5016       -.43954E-07   -.11825E-04
  19  Prefactor     .10000E-03    2.2933        .80176E-08** at limit **
  20  norm          1.9703        2.3716        .27246E-06    .68327E-04
  21  norm          .10001E-03    1.8050       -.18932E-06** at limit **
  22  Prefactor     1.6478        1.3263        .81505E-07    .41542E-04
  23  Prefactor     10.884        42.121       -.66786E-05   -.11009E-03
  24  Prefactor     .10000E-03    26.719        .55677E-06** at limit **
  25  Prefactor     1.4218        2.4958        .13031E-05   -.39092E-04
  26  Prefactor     27.739        15.609        .37927E-07    .85004E-04
  27  norm          7.5605        .77602       -.25269E-07   -.27795E-03
  28  Prefactor     .10000E-03    4.6286       -.16227E-06** at limit **
  29  Normalizat    1.2645        .12728       -.33804E-06   -.12185E-03
  30  Prefactor     .96168        .93423E-01   -.28144E-06   -.13226E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 9.87127
  Prefactor  = 0.0001
  Prefactor  = 34.3098
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.93881
  Prefactor  = 1.64819
  Prefactor  = 12.9042
  Prefactor  = 1.77762
  norm       = 2.05105
  norm       = 1.2893
  norm       = 0.841924
  Prefactor  = 0.0001
  Prefactor  = 0.000100015
  Prefactor  = 0.199112
  Prefactor  = 10.5126
  Prefactor  = 3.50158
  Prefactor  = 0.0001
  norm       = 1.97026
  norm       = 0.000100006
  Prefactor  = 1.64777
  Prefactor  = 10.884
  Prefactor  = 0.0001
  Prefactor  = 1.42179
  Prefactor  = 27.7392
  norm       = 7.56045
  Prefactor  = 0.0001
  Normalizat = 1.2645
  Prefactor  = 0.961679
 **********
 **   18 **HESSE 
 **********

 FCN=   18448.98     FROM HESSE     STATUS=OK           610 CALLS     4666 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.8713        5.7472        .12754E-03   -1.5079    
   2  Prefactor     .10000E-03    2.6275        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     34.310        18.885        .68413E-04   -1.4536    
   4  Prefactor     .10000E-03    3.0218        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.662        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    2.1853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.9388        1.6009        .12273E-03   -1.5365    
   8  Prefactor     1.6482        6.1654        .32791E-03   -1.5451    
   9  Prefactor     12.904        29.324        .11159E-03   -1.4989    
  10  Prefactor     1.7776        1.8515        .18209E-03   -1.5441    
  11  norm          2.0511        2.8527        .24657E-03   -1.5422    
  12  norm          1.2893        1.1246        .12365E-03   -1.5481    
  13  norm          .84192        .35171        .50014E-04   -1.5524    
  14  Prefactor     .10000E-03    11.551        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10002E-03    4.5275        .79509E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .19911        4.2316        .19550E-02   -1.5619    
  17  Prefactor     10.513        10.200        .12358E-03   -1.5059    
  18  Prefactor     3.5016        3.5040        .21605E-03   -1.5334    
  19  Prefactor     .10000E-03    2.3157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.9703        2.3458        .22067E-03   -1.5427    
  21  norm          .10001E-03    8.7573        .34836E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.6478        1.3179        .13458E-03   -1.5451    
  23  Prefactor     10.884        44.017        .12121E-03   -1.5048    
  24  Prefactor     .10000E-03    26.851        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     1.4218        2.5011        .26431E-03   -1.5469    
  26  Prefactor     27.739        15.610        .76022E-04   -1.4654    
  27  norm          7.5605        .76839        .36137E-04   -1.5158    
  28  Prefactor     .10000E-03    4.7179        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.2645        .14902        .28338E-03   -.84632    
  30  Prefactor     .96168        .10980        .24334E-03   -.94018    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.24328e-09
Minuit parameter uncertainties:
  1  5.74755
  2  1.33286e-06
  3  18.8884
  4  8.14951e-07
  5  3.01376e-05
  6  1.27522e-06
  7  1.6009
  8  6.16782
  9  29.3568
  10  1.85155
  11  2.85286
  12  1.12462
  13  0.351715
  14  6.93933e-07
  15  0.000522486
  16  1.83552
  17  10.202
  18  3.50424
  19  2.90026e-06
  20  2.34586
  21  0.000471787
  22  1.31793
  23  43.8316
  24  6.4446e-05
  25  2.50129
  26  15.6126
  27  0.768395
  28  4.36274e-06
  29  0.149068
  30  0.10983
Done.

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

Extracting fit parameters...

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

EG_v02
   Spectrum: FileFunction
619   Normalization:  1.265e+00  1.491e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 16.21
Ra Dec: 124.557 42.382
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 4.20e-08 +/- 1.76e-08
Energy Flux (Fixed Index): 2.37e-05 +/- 9.89e-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) = 18448.9697357
delta logL = 0.0125743750577

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 18448.969378
delta logL = 0.0129321019303

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .83332       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9403       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2667       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96123       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=   18448.97     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      209 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .83332        6.1379        .11282E-01    .74696E-03
   2  alpha         1.9403        3.4615        .41509       -.53022E-05
   3  Normalizat    1.2667        .64540E-01    .64019E-01    .12198E-04
   4  Prefactor     .96123        .46211E-01    .45781E-01    .33958E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.833317
  alpha      = 1.94031
  Normalizat = 1.26667
  Prefactor  = 0.96123
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .83332        .35142        .50460E-04   -1.5525    
   2  alpha         1.9403        .34421        .14872E-01   -.22579    
   3  Normalizat    1.2667        .13987        .28318E-03   -.84567    
   4  Prefactor     .96123        .10665        .24340E-03   -.94033    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34648e-11
Minuit parameter uncertainties:
  1  0.351417
  2  0.345363
  3  0.139912
  4  0.106674
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/571506': 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) = 18448.969378
delta logL = 0.0129321019631

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  8.333e-01  3.514e-01  1.000e-04  1.000e+04 ( 1.000e-11)
284        alpha:  1.940e+00  3.454e-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.612e-01  1.067e-01  0.000e+00  1.000e+01 ( 1.000e+00)
621        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
622        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
619   Normalization:  1.267e+00  1.399e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.20
Ra Dec: 124.557 42.382
Photon Index (Free Index): 1.94 +/- 0.35
Photon Flux (Free Index): 3.94e-08 +/- 2.27e-08
Energy Flux (Free Index): 2.45e-05 +/- 1.17e-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/571506/cmap_HighResolution_519004801_519609601_4FGL_J0818.2+4222_weekly_bin463.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.20e-08', energy_flux2='2.45e-05', photon_flux_error='1.76e-08', dlogl='1.29e-02', energy_flux='2.37e-05', photon_flux2='3.94e-08', job_status='DONE', time_completed='2021-07-13 15:20:16.148066', photon_index_error2='0.35', photon_index2='1.94', ts='16.21', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='1.17e-05', EG='1.26', time_epoch_completed='1626214816.15', return_code='0', job_id='571506', GAL2='0.96', EG2='1.27', return_code2='0', energy_flux_error='9.89e-06', photon_flux_error2='2.27e-08', ts2='16.20', photon_index='2.00' WHERE bin_id='463' AND source_name='4FGL J0818.2+4222' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 13 15:20:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0269>
Subject: Job 571506: <4FGL_J0818.2+4222_weekly_bin463> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.2+4222_weekly_bin463 124.557 42.3819 519004801 519609601 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 :                                   1816.00 sec.
    Max Memory :                                 621 MB
    Average Memory :                             311.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2041 sec.
    Turnaround time :                            113972 sec.

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

