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 81 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 = 17087
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0818.2+4222_weekly_bin192
RA = 124.557, Dec = 42.3819
tmin = 355104001, tmax = 355708801
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='567915', job_status='RUN', time_executed='2021-07-12 07:32:56.361010', time_epoch_executed='1626100376.36' WHERE source_name='4FGL J0818.2+4222' and cadence='weekly' and bin_id='192'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/567915

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/567915/ft1_4FGL_J0818.2+4222_weekly_bin192.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/567915/ft2_4FGL_J0818.2+4222_weekly_bin192.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/567915/ft1_4FGL_J0818.2+4222_weekly_bin192.fits outfile=/scratch/kocevski/567915/ft1_filteredMKT_4FGL_J0818.2+4222_weekly_bin192.fits ra=124.557 dec=42.3819 rad=12.0 tmin=355104001.0 tmax=355708801.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 12.78
user 6.83
sys 0.29

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/567915/ft1_filtered_4FGL_J0818.2+4222_weekly_bin192.fits" evtable="EVENTS" scfile=/scratch/kocevski/567915/ft2_4FGL_J0818.2+4222_weekly_bin192.fits sctable="SC_DATA" outfile=/scratch/kocevski/567915/ltcube_355104001_355708801_4FGL_J0818.2+4222_weekly_bin192.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/567915/ft2_4FGL_J0818.2+4222_weekly_bin192.fits
.....................!
real 32.89
user 28.19
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/567915/ft1_filtered_4FGL_J0818.2+4222_weekly_bin192.fits evtable="EVENTS" scfile=/scratch/kocevski/567915/ft2_4FGL_J0818.2+4222_weekly_bin192.fits sctable="SC_DATA" expcube=/scratch/kocevski/567915/ltcube_355104001_355708801_4FGL_J0818.2+4222_weekly_bin192.fits outfile=/scratch/kocevski/567915/expmap_355104001_355708801_4FGL_J0818.2+4222_weekly_bin192.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/567915/ltcube_355104001_355708801_4FGL_J0818.2+4222_weekly_bin192.fits
.....................!
real 212.11
user 185.89
sys 4.50

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/567915/ft1_filtered_4FGL_J0818.2+4222_weekly_bin192.fits scfile=/scratch/kocevski/567915/ft2_4FGL_J0818.2+4222_weekly_bin192.fits outfile=/scratch/kocevski/567915/cmap_355104001_355708801_4FGL_J0818.2+4222_weekly_bin192.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.69
user 0.42
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/567915/ft1_filtered_4FGL_J0818.2+4222_weekly_bin192.fits scfile=/scratch/kocevski/567915/ft2_4FGL_J0818.2+4222_weekly_bin192.fits outfile=/scratch/kocevski/567915/cmap_HighResolution_355104001_355708801_4FGL_J0818.2+4222_weekly_bin192.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.61
user 0.44
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.0957       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.0151       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11116E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.6871       1.0000         .10000E-03   10000.    
     7 'norm      '    3.8233       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10438E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    35.041       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.6958       1.0000         .10000E-03   10000.    
    12 'norm      '    .95823       1.0000         .10000E-03   10000.    
    13 'norm      '    1.0131       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.9159       1.0000         .10000E-03   10000.    
    15 'Prefactor '    29.158       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    25.365       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.2273       1.0000         .10000E-03   10000.    
    20 'norm      '    4.9774       1.0000         .10000E-03   10000.    
    21 'norm      '    4.7343       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.2609       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.1920       1.0000         .10000E-03   10000.    
    26 'Prefactor '    4.4324       1.0000         .10000E-03   10000.    
    27 'norm      '    .74217       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10342E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .99686       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .96058       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=   17227.09     FROM MIGRAD    STATUS=CONVERGED    745 CALLS     3929 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.0955        3.6408        .56402E-06   -.96335E-04
   2  Prefactor     3.0148        6.6241       -.71750E-06   -.93967E-04
   3  Prefactor     .10000E-03    7.4962       -.34859E-05** at limit **
   4  Prefactor     .10000E-03    1.9626        .49141E-06** at limit **
   5  Prefactor     .10000E-03    14.582        .25608E-06** at limit **
   6  norm          1.6866        1.3925        .71528E-06   -.52114E-02
   7  norm          3.8235        1.6018        .12510E-06    .67284E-04
   8  Prefactor     .10000E-03    1.7445        .57943E-06** at limit **
   9  Prefactor     35.027        26.092       -.13015E-04   -.27691E-03
  10  Prefactor     .10000E-03    1.5977       -.55982E-07** at limit **
  11  norm          2.6959        1.8436       -.75726E-08   -.97583E-04
  12  norm          .95823        .62362        .13247E-07    .63225E-04
  13  norm          1.0132        .35320        .14589E-06    .10489E-02
  14  Prefactor     5.9136        13.999       -.24663E-05   -.34179E-04
  15  Prefactor     29.157        10.157       -.18786E-06   -.12926E-04
  16  Prefactor     .10000E-03    .75859        .44235E-07** at limit **
  17  Prefactor     25.367        15.765        .97200E-06    .44138E-04
  18  Prefactor     .10000E-03    1.4392        .10677E-06** at limit **
  19  Prefactor     4.2273        3.4853        .30130E-08   -.64606E-03
  20  norm          4.9778        3.8248        .18804E-06   -.21514E-04
  21  norm          4.7344        3.6190        .22123E-06   -.19685E-04
  22  Prefactor     1.2609        1.1069       -.63400E-07   -.30854E-04
  23  Prefactor     .10000E-03    17.657       -.63013E-06** at limit **
  24  Prefactor     .10000E-03    7.4248        .27124E-05** at limit **
  25  Prefactor     2.1923        1.7979       -.12458E-06   -.38252E-04
  26  Prefactor     4.4335        9.0868       -.32535E-06   -.18755E-04
  27  norm          .74214        .30702        .19090E-07    .26780E-02
  28  Prefactor     .10000E-03    1.0410       -.47934E-06** at limit **
  29  Normalizat    .99676        .11394        .11400E-05    .11105E-03
  30  Prefactor     .96066        .86521E-01    .30855E-06    .17643E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.09546
  Prefactor  = 3.01484
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 1.68663
  norm       = 3.82349
  Prefactor  = 0.0001
  Prefactor  = 35.0268
  Prefactor  = 0.0001
  norm       = 2.69585
  norm       = 0.958228
  norm       = 1.01323
  Prefactor  = 5.91358
  Prefactor  = 29.1567
  Prefactor  = 0.0001
  Prefactor  = 25.3669
  Prefactor  = 0.0001
  Prefactor  = 4.22733
  norm       = 4.97785
  norm       = 4.73445
  Prefactor  = 1.2609
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.19229
  Prefactor  = 4.43349
  norm       = 0.742138
  Prefactor  = 0.0001
  Normalizat = 0.996764
  Prefactor  = 0.960657
 **********
 **   18 **HESSE 
 **********

 FCN=   17227.09     FROM HESSE     STATUS=OK           598 CALLS     4527 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.0955        3.6383        .23049E-03   -1.5356    
   2  Prefactor     3.0148        6.6167        .23373E-03   -1.5361    
   3  Prefactor     .10000E-03    7.5286        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.9701        .17952E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    15.088        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.6866        3.1362        .15581E-02   -1.5448    
   7  norm          3.8235        1.6006        .10372E-03   -1.5317    
   8  Prefactor     .10000E-03    1.7654        .16967E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     35.027        26.250        .67698E-04   -1.4524    
  10  Prefactor     .10000E-03    1.6618        .32324E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.6959        1.8349        .14225E-03   -1.5380    
  12  norm          .95823        .62603        .80815E-04   -1.5512    
  13  norm          1.0132        .35246        .43079E-04   -1.5507    
  14  Prefactor     5.9136        13.995        .16510E-03   -1.5222    
  15  Prefactor     29.157        10.097        .74196E-04   -1.4628    
  16  Prefactor     .10000E-03    .77691        .22199E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     25.367        15.768        .79539E-04   -1.4700    
  18  Prefactor     .10000E-03    1.4426        .15372E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.2273        3.4941        .97994E-03   -1.5297    
  20  norm          4.9778        3.8129        .18026E-03   -1.5262    
  21  norm          4.7344        3.6084        .18493E-03   -1.5273    
  22  Prefactor     1.2609        1.0854        .12380E-03   -1.5483    
  23  Prefactor     .10000E-03    17.686        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    7.4263        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     2.1923        1.7832        .15008E-03   -1.5412    
  26  Prefactor     4.4335        9.0647        .19127E-03   -1.5287    
  27  norm          .74214        .29101        .42932E-04   -1.5536    
  28  Prefactor     .10000E-03    1.9358        .24365E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .99676        .13026        .26678E-03   -.93139    
  30  Prefactor     .96066        .99512E-01    .21658E-03   -.94053    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.64096e-08
Minuit parameter uncertainties:
  1  3.63857
  2  6.61833
  3  3.89531e-05
  4  3.71032e-06
  5  0.000257206
  6  3.13648
  7  1.60067
  8  4.47133e-05
  9  26.2582
  10  8.0156e-06
  11  1.83491
  12  0.626036
  13  0.352461
  14  14.003
  15  10.0975
  16  1.87968e-06
  17  15.7705
  18  1.30089e-06
  19  3.49423
  20  3.81311
  21  3.6086
  22  1.08541
  23  2.52759e-05
  24  2.43619e-05
  25  1.78325
  26  9.06753
  27  0.291013
  28  2.98856e-05
  29  0.130298
  30  0.0995307
Done.

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

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  1.013e+00  3.525e-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.607e-01  9.953e-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.968e-01  1.303e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 29.04
Ra Dec: 124.557 42.382
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 5.06e-08 +/- 1.76e-08
Energy Flux (Fixed Index): 2.85e-05 +/- 9.91e-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) = 17227.0562137
delta logL = 0.0304581924138

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 17227.0554464
delta logL = 0.0312254758719

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0031       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9105       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0008       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95929       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=   17227.06     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      198 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0033        5.1829        .98961E-02    .16436E-03
   2  alpha         1.9106        3.4494        .39553       -.13906E-04
   3  Normalizat    1.0009        .73920E-01    .46178E-01    .38169E-04
   4  Prefactor     .95926        .44975E-01    .45756E-01    .18463E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.00335
  alpha      = 1.9106
  Normalizat = 1.00087
  Prefactor  = 0.959264
 **********
 **   18 **HESSE 
 **********

 FCN=   17227.06     FROM HESSE     STATUS=OK            33 CALLS      231 TOTAL
                     EDM=   .62E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0033        .34874        .43594E-04   -1.5508    
   2  alpha         1.9106        .33957        .13618E-01   -.23800    
   3  Normalizat    1.0009        .12255        .26635E-03   -.93001    
   4  Prefactor     .95926        .97634E-01    .21675E-03   -.94100    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.18827e-11
Minuit parameter uncertainties:
  1  0.34874
  2  0.340681
  3  0.122583
  4  0.0976518
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/567915': 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) = 17227.055446
delta logL = 0.0312258645936

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  1.003e+00  3.487e-01  1.000e-04  1.000e+04 ( 1.000e-11)
284        alpha:  1.911e+00  3.407e-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.593e-01  9.765e-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.001e+00  1.226e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 29.18
Ra Dec: 124.557 42.382
Photon Index (Free Index): 1.91 +/- 0.34
Photon Flux (Free Index): 4.61e-08 +/- 2.33e-08
Energy Flux (Free Index): 3.03e-05 +/- 1.34e-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/567915/cmap_HighResolution_355104001_355708801_4FGL_J0818.2+4222_weekly_bin192.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.06e-08', energy_flux2='3.03e-05', photon_flux_error='1.76e-08', dlogl='3.12e-02', energy_flux='2.85e-05', photon_flux2='4.61e-08', job_status='DONE', time_completed='2021-07-13 15:10:35.203991', photon_index_error2='0.34', photon_index2='1.91', ts='29.04', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='1.34e-05', EG='1.00', time_epoch_completed='1626214235.2', return_code='0', job_id='567915', GAL2='0.96', EG2='1.00', return_code2='0', energy_flux_error='9.91e-06', photon_flux_error2='2.33e-08', ts2='29.18', photon_index='2.00' WHERE bin_id='192' AND source_name='4FGL J0818.2+4222' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 13 15:10:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0201>
Subject: Job 567915: <4FGL_J0818.2+4222_weekly_bin192> in cluster <slac> Done

Job <4FGL_J0818.2+4222_weekly_bin192> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Mon Jul 12 07:26:53 2021
Job was executed on host(s) <bullet0201>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jul 12 07:28:29 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:28:29 2021
Terminated at Tue Jul 13 15:10:36 2021
Results reported at Tue Jul 13 15:10:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.2+4222_weekly_bin192 124.557 42.3819 355104001 355708801 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 :                                   1712.00 sec.
    Max Memory :                                 621 MB
    Average Memory :                             325.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2211 sec.
    Turnaround time :                            114223 sec.

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

