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


Performing analysis on: 4FGL_J0818.2+4222_weekly_bin135
RA = 124.557, Dec = 42.3819
tmin = 320630401, tmax = 321235201
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='567822', job_status='RUN', time_executed='2021-07-12 07:31:11.147082', time_epoch_executed='1626100271.15' WHERE source_name='4FGL J0818.2+4222' and cadence='weekly' and bin_id='135'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/567822

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

Retrieving the FT1 file...

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

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

Retrieving 105 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/567822/ft1_4FGL_J0818.2+4222_weekly_bin135.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/567822/ft2_4FGL_J0818.2+4222_weekly_bin135.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/567822/ft1_4FGL_J0818.2+4222_weekly_bin135.fits outfile=/scratch/kocevski/567822/ft1_filteredMKT_4FGL_J0818.2+4222_weekly_bin135.fits ra=124.557 dec=42.3819 rad=12.0 tmin=320630401.0 tmax=321235201.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 9.45
user 7.25
sys 0.36

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/567822/ft1_filtered_4FGL_J0818.2+4222_weekly_bin135.fits" evtable="EVENTS" scfile=/scratch/kocevski/567822/ft2_4FGL_J0818.2+4222_weekly_bin135.fits sctable="SC_DATA" outfile=/scratch/kocevski/567822/ltcube_320630401_321235201_4FGL_J0818.2+4222_weekly_bin135.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/567822/ft2_4FGL_J0818.2+4222_weekly_bin135.fits
.....................!
real 33.63
user 29.78
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/567822/ft1_filtered_4FGL_J0818.2+4222_weekly_bin135.fits evtable="EVENTS" scfile=/scratch/kocevski/567822/ft2_4FGL_J0818.2+4222_weekly_bin135.fits sctable="SC_DATA" expcube=/scratch/kocevski/567822/ltcube_320630401_321235201_4FGL_J0818.2+4222_weekly_bin135.fits outfile=/scratch/kocevski/567822/expmap_320630401_321235201_4FGL_J0818.2+4222_weekly_bin135.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/567822/ltcube_320630401_321235201_4FGL_J0818.2+4222_weekly_bin135.fits
.....................!
real 213.48
user 185.72
sys 5.73

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/567822/ft1_filtered_4FGL_J0818.2+4222_weekly_bin135.fits scfile=/scratch/kocevski/567822/ft2_4FGL_J0818.2+4222_weekly_bin135.fits outfile=/scratch/kocevski/567822/cmap_320630401_321235201_4FGL_J0818.2+4222_weekly_bin135.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.61
user 0.42
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/567822/ft1_filtered_4FGL_J0818.2+4222_weekly_bin135.fits scfile=/scratch/kocevski/567822/ft2_4FGL_J0818.2+4222_weekly_bin135.fits outfile=/scratch/kocevski/567822/cmap_HighResolution_320630401_321235201_4FGL_J0818.2+4222_weekly_bin135.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.18
user 0.40
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0062       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10828E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.901       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    6.6143       1.0000         .10000E-03   10000.    
     7 'norm      '    1.5985       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.6867       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .15341E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.4432       1.0000         .10000E-03   10000.    
    11 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.5438       1.0000         .10000E-03   10000.    
    13 'norm      '    .32376       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.4848       1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.366       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.7289       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.634       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.1091       1.0000         .10000E-03   10000.    
    20 'norm      '    1.7171       1.0000         .10000E-03   10000.    
    21 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.6161       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.3496       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    1.0229       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .89892       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0845       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=   16818.83     FROM MIGRAD    STATUS=CONVERGED    785 CALLS     3983 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0067        3.4660         .0000        .32666E-02
   2  Prefactor     .10000E-03    10.453         .0000    ** at limit **
   3  Prefactor     10.905        15.329         .0000        .89693E-03
   4  Prefactor     .10000E-03    4.8034         .0000    ** at limit **
   5  Prefactor     .10000E-03    3.6513         .0000    ** at limit **
   6  norm          6.6151        5.9734         .0000        .27186E-03
   7  norm          1.5982        1.5276         .0000        .22620E-02
   8  Prefactor     2.6587        5.2555         .0000        .19485E-02
   9  Prefactor     .10004E-03    78.169         .0000    ** at limit **
  10  Prefactor     1.4430        2.8360         .0000        .25762E-02
  11  norm          .10000E-03    1.4979         .0000    ** at limit **
  12  norm          4.5440        1.3660         .0000       -.29865E-03
  13  norm          .32372        .24408         .0000        .43338E-02
  14  Prefactor     8.4812        16.568         .0000       -.47599E-03
  15  Prefactor     12.364        8.8870         .0000        .17587E-03
  16  Prefactor     2.7292        2.0397         .0000        .17824E-02
  17  Prefactor     .10000E-03    4.3004         .0000    ** at limit **
  18  Prefactor     14.633        6.4844         .0000        .12649E-03
  19  Prefactor     4.1089        4.3627         .0000        .38724E-03
  20  norm          1.7170        3.5126         .0000        .57251E-01
  21  norm          .10000E-03    1.9833         .0000    ** at limit **
  22  Prefactor     2.6160        1.6440         .0000        .34831E-03
  23  Prefactor     .10000E-03    9.0423         .0000    ** at limit **
  24  Prefactor     .10000E-03    13.586         .0000    ** at limit **
  25  Prefactor     2.3496        1.7403         .0000        .11241E-02
  26  Prefactor     .10000E-03    4.8768         .0000    ** at limit **
  27  norm          .10000E-03    .10807         .0000    ** at limit **
  28  Prefactor     1.0239        1.7990         .0000        .27775E-02
  29  Normalizat    .89889        .11830         .0000        .76381E-03
  30  Prefactor     1.0844        .89245E-01     .0000        .12258E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 1.00666
  Prefactor  = 0.000100003
  Prefactor  = 10.9051
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.61512
  norm       = 1.59815
  Prefactor  = 2.65872
  Prefactor  = 0.000100045
  Prefactor  = 1.44305
  norm       = 0.0001
  norm       = 4.54402
  norm       = 0.323719
  Prefactor  = 8.48122
  Prefactor  = 12.3642
  Prefactor  = 2.72918
  Prefactor  = 0.0001
  Prefactor  = 14.6332
  Prefactor  = 4.10886
  norm       = 1.71695
  norm       = 0.0001
  Prefactor  = 2.61603
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 2.34961
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.0239
  Normalizat = 0.898888
  Prefactor  = 1.08444
 **********
 **   18 **HESSE 
 **********

 FCN=   16818.83     FROM HESSE     STATUS=OK           598 CALLS     4581 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0067        3.4739        .43014E-03   -1.5507    
   2  Prefactor     .10000E-03    10.940        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.905        15.319        .12134E-03   -1.5047    
   4  Prefactor     .10000E-03    4.8683        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.6636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          6.6151        5.9692        .15603E-03   -1.5194    
   7  norm          1.5982        1.5126        .15044E-03   -1.5455    
   8  Prefactor     2.6587        5.2091        .24858E-03   -1.5382    
   9  Prefactor     .10004E-03    79.626        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.4430        2.7922        .27969E-03   -1.5468    
  11  norm          .10000E-03    8.7292        .29934E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.5440        1.3339        .78417E-04   -1.5282    
  13  norm          .32372        .23138        .52683E-03   -1.5594    
  14  Prefactor     8.4812        16.557        .13762E-03   -1.5125    
  15  Prefactor     12.364        8.7777        .11391E-03   -1.5005    
  16  Prefactor     2.7292        2.0178        .14192E-03   -1.5378    
  17  Prefactor     .10000E-03    4.3059        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     14.633        6.4859        .10470E-03   -1.4943    
  19  Prefactor     4.1089        4.3556        .19887E-03   -1.5303    
  20  norm          1.7170        3.4962        .16033E-02   -1.5446    
  21  norm          .10000E-03    2.0099        .17812E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     2.6160        1.6277        .12398E-03   -1.5384    
  23  Prefactor     .10000E-03    9.0444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    13.650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     2.3496        1.7280        .14035E-03   -1.5401    
  26  Prefactor     .10000E-03    4.8891        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    .28876        .76711E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     1.0239        1.5412        .20108E-02   -1.5506    
  29  Normalizat    .89889        .13483        .28667E-03   -.96499    
  30  Prefactor     1.0844        .10249        .20822E-03   -.89965    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.43924e-09
Minuit parameter uncertainties:
  1  3.4746
  2  0.000360476
  3  15.3244
  4  5.14702e-05
  5  4.96952e-05
  6  5.96969
  7  1.5126
  8  5.21004
  9  0.00378121
  10  2.79243
  11  4.57535e-05
  12  1.33388
  13  0.231385
  14  16.5663
  15  8.77864
  16  2.01782
  17  3.52562e-05
  18  6.4862
  19  4.35595
  20  3.49659
  21  5.44956e-06
  22  1.62774
  23  0.000188384
  24  8.12293e-05
  25  1.72806
  26  2.27539e-05
  27  4.41911e-07
  28  1.54128
  29  0.134876
  30  0.102506
Done.

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

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  3.237e-01  2.314e-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.084e+00  1.025e-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.989e-01  1.349e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.17
Ra Dec: 124.557 42.382
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 1.62e-08 +/- 1.15e-08
Energy Flux (Fixed Index): 9.10e-06 +/- 6.51e-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) = 16818.7314649
delta logL = 0.100428022964

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 16818.7244381
delta logL = 0.107454774508

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .29478       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7288       1.0000          .0000       5.0000    
     3 'Normalizat'    .90217       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0839       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   16818.72     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      287 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .29473        .23958        .52381E-03    .13265E-03
   2  alpha         1.7286        .56264        .22743E-01   -.25210E-03
   3  Normalizat    .90216        .12603        .28623E-03   -.20177E-04
   4  Prefactor     1.0839        .10025        .20829E-03   -.30347E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.294726
  alpha      = 1.72857
  Normalizat = 0.902158
  Prefactor  = 1.08392
 **********
 **   18 **HESSE 
 **********

 FCN=   16818.72     FROM HESSE     STATUS=OK            27 CALLS      314 TOTAL
                     EDM=   .59E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .29473        .24310        .20952E-04   -1.5599    
   2  alpha         1.7286        .57103        .45486E-02   -.31369    
   3  Normalizat    .90216        .12614        .11449E-04   -.96384    
   4  Prefactor     1.0839        .10035        .83316E-05   -.89982    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.93489e-12
Minuit parameter uncertainties:
  1  0.243104
  2  0.576662
  3  0.126184
  4  0.100363
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/567822': 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) = 16818.724438
delta logL = 0.107454873018

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  2.947e-01  2.431e-01  1.000e-04  1.000e+04 ( 1.000e-11)
284        alpha:  1.729e+00  5.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.084e+00  1.004e-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:  9.022e-01  1.262e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.39
Ra Dec: 124.557 42.382
Photon Index (Free Index): 1.73 +/- 0.58
Photon Flux (Free Index): 1.16e-08 +/- 1.26e-08
Energy Flux (Free Index): 1.12e-05 +/- 1.01e-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/567822/cmap_HighResolution_320630401_321235201_4FGL_J0818.2+4222_weekly_bin135.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.62e-08', energy_flux2='1.12e-05', photon_flux_error='1.15e-08', dlogl='1.07e-01', energy_flux='9.10e-06', photon_flux2='1.16e-08', job_status='DONE', time_completed='2021-07-13 15:09:09.873674', photon_index_error2='0.58', photon_index2='1.73', ts='5.17', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', energy_flux_error2='1.01e-05', EG='0.90', time_epoch_completed='1626214149.87', return_code='0', job_id='567822', GAL2='1.08', EG2='0.90', return_code2='0', energy_flux_error='6.51e-06', photon_flux_error2='1.26e-08', ts2='5.39', photon_index='2.00' WHERE bin_id='135' AND source_name='4FGL J0818.2+4222' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 13 15:09:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0206>
Subject: Job 567822: <4FGL_J0818.2+4222_weekly_bin135> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.2+4222_weekly_bin135 124.557 42.3819 320630401 321235201 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 :                                   1646.00 sec.
    Max Memory :                                 968 MB
    Average Memory :                             323.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2196 sec.
    Turnaround time :                            114145 sec.

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

