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


Performing analysis on: 4FGL_J0818.2+4222_weekly_bin319
RA = 124.557, Dec = 42.3819
tmin = 431913601, tmax = 432518401
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='569089', job_status='RUN', time_executed='2021-07-12 07:39:13.631887', time_epoch_executed='1626100753.63' WHERE source_name='4FGL J0818.2+4222' and cadence='weekly' and bin_id='319'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/569089

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

Retrieving the FT1 file...

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

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

Retrieving 106 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/569089/ft1_4FGL_J0818.2+4222_weekly_bin319.fits


Retrieving the FT1 file...

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

Retrieving 106 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/569089/ft2_4FGL_J0818.2+4222_weekly_bin319.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/569089/ft1_4FGL_J0818.2+4222_weekly_bin319.fits outfile=/scratch/kocevski/569089/ft1_filteredMKT_4FGL_J0818.2+4222_weekly_bin319.fits ra=124.557 dec=42.3819 rad=12.0 tmin=431913601.0 tmax=432518401.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.58
user 8.85
sys 0.40

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/569089/ft1_filtered_4FGL_J0818.2+4222_weekly_bin319.fits" evtable="EVENTS" scfile=/scratch/kocevski/569089/ft2_4FGL_J0818.2+4222_weekly_bin319.fits sctable="SC_DATA" outfile=/scratch/kocevski/569089/ltcube_431913601_432518401_4FGL_J0818.2+4222_weekly_bin319.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/569089/ft2_4FGL_J0818.2+4222_weekly_bin319.fits
.....................!
real 35.53
user 33.98
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/569089/ft1_filtered_4FGL_J0818.2+4222_weekly_bin319.fits evtable="EVENTS" scfile=/scratch/kocevski/569089/ft2_4FGL_J0818.2+4222_weekly_bin319.fits sctable="SC_DATA" expcube=/scratch/kocevski/569089/ltcube_431913601_432518401_4FGL_J0818.2+4222_weekly_bin319.fits outfile=/scratch/kocevski/569089/expmap_431913601_432518401_4FGL_J0818.2+4222_weekly_bin319.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/569089/ltcube_431913601_432518401_4FGL_J0818.2+4222_weekly_bin319.fits
.....................!
real 161.46
user 149.08
sys 4.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/569089/ft1_filtered_4FGL_J0818.2+4222_weekly_bin319.fits scfile=/scratch/kocevski/569089/ft2_4FGL_J0818.2+4222_weekly_bin319.fits outfile=/scratch/kocevski/569089/cmap_431913601_432518401_4FGL_J0818.2+4222_weekly_bin319.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=124.557 yref=42.3819 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.80
user 0.36
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/569089/ft1_filtered_4FGL_J0818.2+4222_weekly_bin319.fits scfile=/scratch/kocevski/569089/ft2_4FGL_J0818.2+4222_weekly_bin319.fits outfile=/scratch/kocevski/569089/cmap_HighResolution_431913601_432518401_4FGL_J0818.2+4222_weekly_bin319.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=124.557 yref=42.3819 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.46
user 0.34
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9118       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.3471       1.0000         .10000E-03   10000.    
     5 'Prefactor '    23.558       1.0000         .10000E-03   10000.    
     6 'norm      '    .44113       1.0000         .10000E-03   10000.    
     7 'norm      '    3.5531       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    17.564       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.6392       1.0000         .10000E-03   10000.    
    11 'norm      '    3.3699       1.0000         .10000E-03   10000.    
    12 'norm      '    1.0561       1.0000         .10000E-03   10000.    
    13 'norm      '    .98305       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.645       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.0839       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.4269       1.0000         .10000E-03   10000.    
    20 'norm      '    16.079       1.0000         .10000E-03   10000.    
    21 'norm      '    5.4069       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    45.136       1.0000         .10000E-03   10000.    
    24 'Prefactor '    10.087       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    56.224       1.0000         .10000E-03   10000.    
    27 'norm      '    .28423E-01   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10506E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .88347       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1171       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   16407.21     FROM MIGRAD    STATUS=CONVERGED    770 CALLS     4001 TOTAL
                     EDM=   .16E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9111        3.7412         .0000        .15916E-02
   2  Prefactor     .10000E-03    5.5637         .0000    ** at limit **
   3  Prefactor     .10000E-03    5.5195         .0000    ** at limit **
   4  Prefactor     2.3460        5.9557         .0000        .16035E-01
   5  Prefactor     23.560        11.699         .0000       -.21124E-03
   6  norm          .40238        2.9812         .0000       -.10326E-02
   7  norm          3.5530        1.6749         .0000        .23322E-03
   8  Prefactor     .10000E-03    3.4610         .0000    ** at limit **
   9  Prefactor     17.566        26.293         .0000       -.32831E-02
  10  Prefactor     1.6398        3.4244         .0000        .60894E-01
  11  norm          3.3699        1.8394         .0000       -.96490E-04
  12  norm          1.0561        .65576         .0000       -.15534E-02
  13  norm          .98306        .38444         .0000        .22257E-02
  14  Prefactor     .10001E-03    15.404         .0000    ** at limit **
  15  Prefactor     10.646        9.7318         .0000        .24604E-02
  16  Prefactor     .10000E-03    .70594         .0000    ** at limit **
  17  Prefactor     3.0858        14.427         .0000       -.26150E-03
  18  Prefactor     .10000E-03    3.6058         .0000    ** at limit **
  19  Prefactor     1.4269        4.0178         .0000        .19222E-02
  20  norm          16.079        5.0990         .0000        .28327E-03
  21  norm          5.4073        4.1909         .0000        .75539E-03
  22  Prefactor     .10002E-03    .45204         .0000    ** at limit **
  23  Prefactor     45.137        44.815         .0000       -.12761E-02
  24  Prefactor     10.086        20.007         .0000        .99666E-03
  25  Prefactor     .10000E-03    .57479         .0000    ** at limit **
  26  Prefactor     56.223        19.377         .0000        .29421E-02
  27  norm          .28432E-01    .11279         .0000        .73105E-02
  28  Prefactor     .10000E-03    .87579         .0000    ** at limit **
  29  Normalizat    .88328        .12141         .0000        .40414E-03
  30  Prefactor     1.1173        .91604E-01     .0000        .73460E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.91109
  Prefactor  = 0.000100003
  Prefactor  = 0.000100003
  Prefactor  = 2.346
  Prefactor  = 23.5602
  norm       = 0.402381
  norm       = 3.55302
  Prefactor  = 0.000100005
  Prefactor  = 17.5659
  Prefactor  = 1.63975
  norm       = 3.36991
  norm       = 1.05606
  norm       = 0.983059
  Prefactor  = 0.000100014
  Prefactor  = 10.6465
  Prefactor  = 0.0001
  Prefactor  = 3.08584
  Prefactor  = 0.000100001
  Prefactor  = 1.42687
  norm       = 16.0792
  norm       = 5.40734
  Prefactor  = 0.000100016
  Prefactor  = 45.1366
  Prefactor  = 10.0859
  Prefactor  = 0.0001
  Prefactor  = 56.2226
  norm       = 0.0284319
  Prefactor  = 0.0001
  Normalizat = 0.883276
  Prefactor  = 1.11726
 **********
 **   18 **HESSE 
 **********

 FCN=   16407.21     FROM HESSE     STATUS=OK           600 CALLS     4601 TOTAL
                     EDM=   .19E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9111        3.7260        .30064E-03   -1.5431    
   2  Prefactor     .10000E-03    5.7586        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.5395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.3460        5.9320        .13379E-02   -1.5402    
   5  Prefactor     23.560        11.689        .82528E-04   -1.4737    
   6  norm          .40238        16.831        .42549E-02   -1.5581    
   7  norm          3.5530        1.6687        .10820E-03   -1.5331    
   8  Prefactor     .10000E-03    3.4883        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     17.566        26.234        .95568E-04   -1.4869    
  10  Prefactor     1.6398        3.3755        .15348E-02   -1.5452    
  11  norm          3.3699        1.8382        .12474E-03   -1.5341    
  12  norm          1.0561        .66041        .79452E-04   -1.5502    
  13  norm          .98306        .37887        .45935E-04   -1.5510    
  14  Prefactor     .10001E-03    15.506        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     10.646        9.6237        .61401E-03   -1.5055    
  16  Prefactor     .10000E-03    .71753        .10477E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.0858        14.311        .23096E-03   -1.5357    
  18  Prefactor     .10000E-03    3.6525        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.4269        3.9810        .36183E-03   -1.5469    
  20  norm          16.079        5.0849        .99884E-04   -1.4906    
  21  norm          5.4073        4.1747        .17282E-03   -1.5243    
  22  Prefactor     .10002E-03    4.5115        .16510E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     45.137        44.711        .59677E-04   -1.4363    
  24  Prefactor     10.086        19.983        .12617E-03   -1.5073    
  25  Prefactor     .10000E-03    1.0691        .18759E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     56.223        19.341        .53499E-04   -1.4207    
  27  norm          .28432E-01    .25750        .77741E-03   -1.5674    
  28  Prefactor     .10000E-03    2.5862        .21707E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .88328        .13643        .29836E-03   -.97050    
  30  Prefactor     1.1173        .10439        .21125E-03   -.88917    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.85821e-07
Minuit parameter uncertainties:
  1  3.72644
  2  0.000271743
  3  0.000245209
  4  5.9335
  5  11.6898
  6  5.20577
  7  1.66871
  8  0.000255769
  9  26.251
  10  3.37592
  11  1.83827
  12  0.660414
  13  0.378868
  14  0.000917329
  15  9.62511
  16  4.15214e-06
  17  13.2956
  18  0.000128327
  19  3.98174
  20  5.08503
  21  4.17494
  22  0.000539811
  23  44.7437
  24  19.9959
  25  1.58554e-05
  26  19.343
  27  0.170829
  28  3.48237e-05
  29  0.136481
  30  0.104413
Done.

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

Extracting fit parameters...

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

EG_v02
   Spectrum: FileFunction
619   Normalization:  8.833e-01  1.365e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 22.48
Ra Dec: 124.557 42.382
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 4.91e-08 +/- 1.89e-08
Energy Flux (Fixed Index): 2.76e-05 +/- 1.07e-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) = 16406.2920262
delta logL = 0.919911320474

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 16406.2905169
delta logL = 0.921420577506

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .91952       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6126       1.0000          .0000       5.0000    
     3 'Normalizat'    .89506       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1144       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=   16406.29     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      210 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .91952        .36955        .10378E-01   -.81683E-03
   2  alpha         1.6126        .24233        .30885       -.65563E-04
   3  Normalizat    .89506        .11384        .67059E-01    .49596E-03
   4  Prefactor     1.1144        .90040E-01    .37063E-01    .60280E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.919518
  alpha      = 1.61258
  Normalizat = 0.89506
  Prefactor  = 1.11442
 **********
 **   18 **HESSE 
 **********

 FCN=   16406.29     FROM HESSE     STATUS=OK            31 CALLS      241 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .91952        .38261        .45916E-04   -1.5516    
   2  alpha         1.6126        .27605        .12411E-01   -.36288    
   3  Normalizat    .89506        .12876        .29665E-03   -.96634    
   4  Prefactor     1.1144        .10212        .21153E-03   -.89007    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30783e-09
Minuit parameter uncertainties:
  1  0.382612
  2  0.276693
  3  0.128807
  4  0.102134
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/569089': 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) = 16406.2905169
delta logL = 0.921420577593

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  9.195e-01  3.826e-01  1.000e-04  1.000e+04 ( 1.000e-11)
284        alpha:  1.613e+00  2.767e-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.114e+00  1.021e-01  0.000e+00  1.000e+01 ( 1.000e+00)
621        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
622        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
619   Normalization:  8.951e-01  1.288e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 24.36
Ra Dec: 124.557 42.382
Photon Index (Free Index): 1.61 +/- 0.28
Photon Flux (Free Index): 3.37e-08 +/- 1.68e-08
Energy Flux (Free Index): 4.25e-05 +/- 2.24e-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/569089/cmap_HighResolution_431913601_432518401_4FGL_J0818.2+4222_weekly_bin319.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.91e-08', energy_flux2='4.25e-05', photon_flux_error='1.89e-08', dlogl='9.21e-01', energy_flux='2.76e-05', photon_flux2='3.37e-08', job_status='DONE', time_completed='2021-07-13 15:08:26.204235', photon_index_error2='0.28', photon_index2='1.61', ts='22.48', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', energy_flux_error2='2.24e-05', EG='0.88', time_epoch_completed='1626214106.2', return_code='0', job_id='569089', GAL2='1.11', EG2='0.90', return_code2='0', energy_flux_error='1.07e-05', photon_flux_error2='1.68e-08', ts2='24.36', photon_index='2.00' WHERE bin_id='319' AND source_name='4FGL J0818.2+4222' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 13 15:08:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0095>
Subject: Job 569089: <4FGL_J0818.2+4222_weekly_bin319> in cluster <slac> Done

Job <4FGL_J0818.2+4222_weekly_bin319> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Jul 12 07:31:55 2021
Job was executed on host(s) <bullet0095>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jul 12 07:33:07 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:33:07 2021
Terminated at Tue Jul 13 15:08:27 2021
Results reported at Tue Jul 13 15:08:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.2+4222_weekly_bin319 124.557 42.3819 431913601 432518401 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 :                                   1350.00 sec.
    Max Memory :                                 830 MB
    Average Memory :                             290.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1804 sec.
    Turnaround time :                            113792 sec.

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

