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


Performing analysis on: 4FGL_J0818.2+4222_weekly_bin478
RA = 124.557, Dec = 42.3819
tmin = 528076801, tmax = 528681601
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='571528', job_status='RUN', time_executed='2021-07-13 14:53:13.363329', time_epoch_executed='1626213193.36' WHERE source_name='4FGL J0818.2+4222' and cadence='weekly' and bin_id='478'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/571528

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/571528/ft1_4FGL_J0818.2+4222_weekly_bin478.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/571528/ft2_4FGL_J0818.2+4222_weekly_bin478.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/571528/ft1_4FGL_J0818.2+4222_weekly_bin478.fits outfile=/scratch/kocevski/571528/ft1_filteredMKT_4FGL_J0818.2+4222_weekly_bin478.fits ra=124.557 dec=42.3819 rad=12.0 tmin=528076801.0 tmax=528681601.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.95
user 7.11
sys 0.29

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/571528/ft2_4FGL_J0818.2+4222_weekly_bin478.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/571528/ft1_filteredMKT_4FGL_J0818.2+4222_weekly_bin478.fits evtable="EVENTS" outfile="/scratch/kocevski/571528/ft1_filtered_4FGL_J0818.2+4222_weekly_bin478.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 1.51
user 0.39
sys 0.19

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/571528/ft1_filtered_4FGL_J0818.2+4222_weekly_bin478.fits" evtable="EVENTS" scfile=/scratch/kocevski/571528/ft2_4FGL_J0818.2+4222_weekly_bin478.fits sctable="SC_DATA" outfile=/scratch/kocevski/571528/ltcube_528076801_528681601_4FGL_J0818.2+4222_weekly_bin478.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/571528/ft2_4FGL_J0818.2+4222_weekly_bin478.fits
.....................!
real 30.06
user 27.93
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/571528/ft1_filtered_4FGL_J0818.2+4222_weekly_bin478.fits evtable="EVENTS" scfile=/scratch/kocevski/571528/ft2_4FGL_J0818.2+4222_weekly_bin478.fits sctable="SC_DATA" expcube=/scratch/kocevski/571528/ltcube_528076801_528681601_4FGL_J0818.2+4222_weekly_bin478.fits outfile=/scratch/kocevski/571528/expmap_528076801_528681601_4FGL_J0818.2+4222_weekly_bin478.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/571528/ltcube_528076801_528681601_4FGL_J0818.2+4222_weekly_bin478.fits
.....................!
real 201.15
user 185.30
sys 5.15

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/571528/ft1_filtered_4FGL_J0818.2+4222_weekly_bin478.fits scfile=/scratch/kocevski/571528/ft2_4FGL_J0818.2+4222_weekly_bin478.fits outfile=/scratch/kocevski/571528/cmap_528076801_528681601_4FGL_J0818.2+4222_weekly_bin478.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.79
user 0.40
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/571528/ft1_filtered_4FGL_J0818.2+4222_weekly_bin478.fits scfile=/scratch/kocevski/571528/ft2_4FGL_J0818.2+4222_weekly_bin478.fits outfile=/scratch/kocevski/571528/cmap_HighResolution_528076801_528681601_4FGL_J0818.2+4222_weekly_bin478.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.74
user 0.42
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.1158       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.6927       1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.633       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.8552       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    46.806       1.0000         .10000E-03   10000.    
     7 'norm      '    .91648       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.3901       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.8479       1.0000         .10000E-03   10000.    
    11 'norm      '    12.586       1.0000         .10000E-03   10000.    
    12 'norm      '    1.3396       1.0000         .10000E-03   10000.    
    13 'norm      '    .54926       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .56562       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.3156       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.8557       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.1355       1.0000         .10000E-03   10000.    
    23 'Prefactor '    51.136       1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.7123       1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.7769       1.0000         .10000E-03   10000.    
    26 'Prefactor '    28.983       1.0000         .10000E-03   10000.    
    27 'norm      '    4.1563       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0197       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0411       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6230E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   20104.17     FROM MIGRAD    STATUS=CONVERGED     96 CALLS     3271 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.1140        1.1981       -.10493E-05   -.20371E-02
   2  Prefactor     3.6905        1.0486       -.29497E-07    .97798E-03
   3  Prefactor     11.631        5.6502       -.82202E-05   -.47644E-03
   4  Prefactor     6.8519        1.3219        .98789E-06    .17086E-02
   5  Prefactor     .10000E-03    6.0355        .36841E-05** at limit **
   6  norm          46.808        3.7304        .25863E-05    .88574E-02
   7  norm          .91638        .86876       -.90551E-08    .52470E-04
   8  Prefactor     5.3873        1.4760       -.25325E-05   -.63515E-02
   9  Prefactor     .10000E-03    6.2602       -.82422E-05** at limit **
  10  Prefactor     3.8466        2.6999       -.25805E-05    .17681E-03
  11  norm          12.585        1.0181       -.53848E-07   -.91637E-03
  12  norm          1.3394        .88724       -.91522E-07    .11538E-03
  13  norm          .54927        .28103        .11772E-06    .69407E-03
  14  Prefactor     .23667        288.49       -.53278E-04    .19154E-04
  15  Prefactor     6.3118        1.0299       -.17253E-06    .46262E-03
  16  Prefactor     .10000E-03    .50457        .16526E-07** at limit **
  17  Prefactor     .10000E-03    3.8798        .15279E-05** at limit **
  18  Prefactor     3.8545        1.0857       -.10480E-05   -.19014E-02
  19  Prefactor     .10000E-03    1.8005        .84471E-06** at limit **
  20  norm          .10000E-03    1.6900       -.55072E-06** at limit **
  21  norm          .10000E-03    2.0750       -.49194E-06** at limit **
  22  Prefactor     1.1344        1.5648       -.47921E-06   -.78409E-04
  23  Prefactor     51.144        1.1200        .13113E-06    .17964E-03
  24  Prefactor     2.7111        6.5524       -.19818E-04    .18994E-03
  25  Prefactor     1.7752        1.8514        .64861E-06    .14314E-03
  26  Prefactor     28.991        8.9250       -.81857E-05    .55128E-02
  27  norm          4.1566        .57631        .60381E-07   -.26683E-03
  28  Prefactor     .10000E-03    2.5507       -.85326E-06** at limit **
  29  Normalizat    1.0199        .12734        .28450E-05    .10057E-02
  30  Prefactor     1.0411        .96833E-01    .10613E-05    .12117E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 7.114
  Prefactor  = 3.69045
  Prefactor  = 11.6313
  Prefactor  = 6.85187
  Prefactor  = 0.000100002
  norm       = 46.8079
  norm       = 0.916378
  Prefactor  = 5.38726
  Prefactor  = 0.0001
  Prefactor  = 3.8466
  norm       = 12.5849
  norm       = 1.33944
  norm       = 0.549272
  Prefactor  = 0.236674
  Prefactor  = 6.31182
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.8545
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.13439
  Prefactor  = 51.1439
  Prefactor  = 2.71106
  Prefactor  = 1.77516
  Prefactor  = 28.9907
  norm       = 4.15658
  Prefactor  = 0.0001
  Normalizat = 1.01994
  Prefactor  = 1.04108
 **********
 **   18 **HESSE 
 **********

 FCN=   20104.17     FROM HESSE     STATUS=OK           666 CALLS     3937 TOTAL
                     EDM=   .67E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.1140        4.8842        .37595E-02   -1.5174    
   2  Prefactor     3.6905        6.4937        .52542E-02   -1.5324    
   3  Prefactor     11.631        12.227        .29364E-02   -1.5026    
   4  Prefactor     6.8519        6.1518        .38309E-02   -1.5184    
   5  Prefactor     .10000E-03    6.1362        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          46.808        9.7483        .14652E-02   -1.4339    
   7  norm          .91638        .86174        .12867E-01   -1.5517    
   8  Prefactor     5.3873        4.2835        .43273E-02   -1.5244    
   9  Prefactor     .10000E-03    6.3881        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.8466        2.7582        .51433E-02   -1.5316    
  11  norm          12.585        3.1052        .28228E-02   -1.4998    
  12  norm          1.3394        .90184        .94694E-02   -1.5476    
  13  norm          .54927        .29909        .11470E-01   -1.5560    
  14  Prefactor     .23667        8.5911        .14216       -1.5611    
  15  Prefactor     6.3118        6.7546        .39931E-02   -1.5205    
  16  Prefactor     .10000E-03    .49642        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.8773        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.8545        4.1126        .51379E-02   -1.5315    
  19  Prefactor     .10000E-03    1.7850        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.6658        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.0368        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.1344        1.5981        .10934E-01   -1.5495    
  23  Prefactor     51.144        40.046        .14021E-02   -1.4276    
  24  Prefactor     2.7111        25.179        .61827E-02   -1.5379    
  25  Prefactor     1.7752        1.8934        .78509E-02   -1.5441    
  26  Prefactor     28.991        17.573        .18605E-02   -1.4631    
  27  norm          4.1566        .58156        .49426E-02   -1.5300    
  28  Prefactor     .10000E-03    2.5070        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0199        .11420        .66528E-01   -.92365    
  30  Prefactor     1.0411        .85746E-01    .40461E-01   -.91372    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.71647e-08
Minuit parameter uncertainties:
  1  4.88446
  2  6.49494
  3  12.2301
  4  6.15238
  5  0.000206789
  6  9.74868
  7  0.861748
  8  4.2837
  9  0.000111943
  10  2.75825
  11  3.10526
  12  0.901845
  13  0.29909
  14  2.85171
  15  6.75541
  16  6.54207e-06
  17  2.3123e-06
  18  4.1129
  19  2.64516e-05
  20  2.79825e-05
  21  4.5892e-05
  22  1.59816
  23  40.0671
  24  16.5332
  25  1.89343
  26  17.5766
  27  0.581557
  28  5.12812e-05
  29  0.114224
  30  0.0857574
Done.

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

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  5.493e-01  2.991e-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.041e+00  8.576e-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.020e+00  1.142e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.04
Ra Dec: 124.557 42.382
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 2.74e-08 +/- 1.49e-08
Energy Flux (Fixed Index): 1.54e-05 +/- 8.41e-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) = 20104.1063045
delta logL = 0.0661670710615

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 20104.1056843
delta logL = 0.066787252108

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .55409       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8515       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0233       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0398       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=   20104.11     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      234 TOTAL
                     EDM=   .91E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .55407        6.5495        .11490E-01   -.91527E-04
   2  alpha         1.8515        3.3434        .43054        .29825E-05
   3  Normalizat    1.0233        .54741E-01    .66434E-01    .45092E-04
   4  Prefactor     1.0398        .44952E-01    .40550E-01    .18060E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.554075
  alpha      = 1.85147
  Normalizat = 1.02326
  Prefactor  = 1.03978
 **********
 **   18 **HESSE 
 **********

 FCN=   20104.11     FROM HESSE     STATUS=OK            35 CALLS      269 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .55407        .28282        .54414E-03   -1.5559    
   2  alpha         1.8515        .38652        .17791E-01   -.26241    
   3  Normalizat    1.0233        .12202        .29387E-03   -.92255    
   4  Prefactor     1.0398        .95796E-01    .22763E-03   -.91415    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.80191e-11
Minuit parameter uncertainties:
  1  0.282824
  2  0.388186
  3  0.12205
  4  0.0958121
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/571528': 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) = 20104.1056843
delta logL = 0.0667872662634

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  5.541e-01  2.828e-01  1.000e-04  1.000e+04 ( 1.000e-11)
284        alpha:  1.851e+00  3.882e-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.040e+00  9.581e-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.023e+00  1.220e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.17
Ra Dec: 124.557 42.382
Photon Index (Free Index): 1.85 +/- 0.39
Photon Flux (Free Index): 2.42e-08 +/- 1.50e-08
Energy Flux (Free Index): 1.78e-05 +/- 1.19e-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/571528/cmap_HighResolution_528076801_528681601_4FGL_J0818.2+4222_weekly_bin478.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.74e-08', energy_flux2='1.78e-05', photon_flux_error='1.49e-08', dlogl='6.68e-02', energy_flux='1.54e-05', photon_flux2='2.42e-08', job_status='DONE', time_completed='2021-07-13 15:25:59.153066', photon_index_error2='0.39', photon_index2='1.85', ts='8.04', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', energy_flux_error2='1.19e-05', EG='1.02', time_epoch_completed='1626215159.15', return_code='0', job_id='571528', GAL2='1.04', EG2='1.02', return_code2='0', energy_flux_error='8.41e-06', photon_flux_error2='1.50e-08', ts2='8.17', photon_index='2.00' WHERE bin_id='478' AND source_name='4FGL J0818.2+4222' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 13 15:25:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0137>
Subject: Job 571528: <4FGL_J0818.2+4222_weekly_bin478> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.2+4222_weekly_bin478 124.557 42.3819 528076801 528681601 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 :                                   1736.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             91.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2371 sec.
    Turnaround time :                            114314 sec.

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

