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


Performing analysis on: 4FGL_J0818.2+4222_weekly_bin327
RA = 124.557, Dec = 42.3819
tmin = 436752001, tmax = 437356801
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='569097', job_status='RUN', time_executed='2021-07-12 07:39:56.080985', time_epoch_executed='1626100796.08' WHERE source_name='4FGL J0818.2+4222' and cadence='weekly' and bin_id='327'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/569097

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

Retrieving the FT1 file...

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

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

Retrieving 106 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/569097/ft1_4FGL_J0818.2+4222_weekly_bin327.fits


Retrieving the FT1 file...

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

Retrieving 106 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/569097/ft2_4FGL_J0818.2+4222_weekly_bin327.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/569097/ft1_4FGL_J0818.2+4222_weekly_bin327.fits outfile=/scratch/kocevski/569097/ft1_filteredMKT_4FGL_J0818.2+4222_weekly_bin327.fits ra=124.557 dec=42.3819 rad=12.0 tmin=436752001.0 tmax=437356801.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.81
user 10.82
sys 0.37

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/569097/ft1_filtered_4FGL_J0818.2+4222_weekly_bin327.fits" evtable="EVENTS" scfile=/scratch/kocevski/569097/ft2_4FGL_J0818.2+4222_weekly_bin327.fits sctable="SC_DATA" outfile=/scratch/kocevski/569097/ltcube_436752001_437356801_4FGL_J0818.2+4222_weekly_bin327.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/569097/ft2_4FGL_J0818.2+4222_weekly_bin327.fits
.....................!
real 32.98
user 31.17
sys 0.43

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/569097/ft1_filtered_4FGL_J0818.2+4222_weekly_bin327.fits evtable="EVENTS" scfile=/scratch/kocevski/569097/ft2_4FGL_J0818.2+4222_weekly_bin327.fits sctable="SC_DATA" expcube=/scratch/kocevski/569097/ltcube_436752001_437356801_4FGL_J0818.2+4222_weekly_bin327.fits outfile=/scratch/kocevski/569097/expmap_436752001_437356801_4FGL_J0818.2+4222_weekly_bin327.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/569097/ltcube_436752001_437356801_4FGL_J0818.2+4222_weekly_bin327.fits
.....................!
real 200.52
user 186.20
sys 5.30

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/569097/ft1_filtered_4FGL_J0818.2+4222_weekly_bin327.fits scfile=/scratch/kocevski/569097/ft2_4FGL_J0818.2+4222_weekly_bin327.fits outfile=/scratch/kocevski/569097/cmap_436752001_437356801_4FGL_J0818.2+4222_weekly_bin327.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=124.557 yref=42.3819 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 2.35
user 0.43
sys 0.19

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/569097/ft1_filtered_4FGL_J0818.2+4222_weekly_bin327.fits scfile=/scratch/kocevski/569097/ft2_4FGL_J0818.2+4222_weekly_bin327.fits outfile=/scratch/kocevski/569097/cmap_HighResolution_436752001_437356801_4FGL_J0818.2+4222_weekly_bin327.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 2.37
user 0.41
sys 0.21

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.417       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.2301       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.9898       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.2440       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.4067       1.0000         .10000E-03   10000.    
    11 'norm      '    2.8901       1.0000         .10000E-03   10000.    
    12 'norm      '    1.1070       1.0000         .10000E-03   10000.    
    13 'norm      '    1.0736       1.0000         .10000E-03   10000.    
    14 'Prefactor '    27.172       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.4907       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.0673       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    7.8238       1.0000         .10000E-03   10000.    
    21 'norm      '    6.8428       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .80388       1.0000         .10000E-03   10000.    
    26 'Prefactor '    25.410       1.0000         .10000E-03   10000.    
    27 'norm      '    .86442E-01   1.0000         .10000E-03   10000.    
    28 'Prefactor '    1.0268       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1689       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .94384       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=   16523.05     FROM MIGRAD    STATUS=CONVERGED    751 CALLS     3914 TOTAL
                     EDM=   .61E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.417        5.2932       -.31613E-07   -.12165E-04
   2  Prefactor     1.2310        1.7685        .38776E-07   -.71312E-03
   3  Prefactor     9.9902        16.563        .21586E-06   -.11693E-04
   4  Prefactor     .10000E-03    3.3681        .77681E-06** at limit **
   5  Prefactor     .10000E-03    7.1986        .19841E-05** at limit **
   6  norm          .10000E-03    1.9756        .14837E-07** at limit **
   7  norm          1.2441        1.0014       -.30870E-07   -.67315E-04
   8  Prefactor     .10000E-03    3.4655       -.10109E-05** at limit **
   9  Prefactor     .10000E-03    7.3871       -.94307E-06** at limit **
  10  Prefactor     1.4070        3.4426        .18993E-06   -.73690E-04
  11  norm          2.8904        2.3137       -.60572E-08   -.34648E-04
  12  norm          1.1069        .82663       -.67389E-08   -.38609E-04
  13  norm          1.0735        .41928       -.73221E-08    .20407E-03
  14  Prefactor     27.170        20.512       -.14676E-05   -.55972E-06
  15  Prefactor     5.4878        10.186        .31699E-06   -.11808E-03
  16  Prefactor     3.0675        2.3623       -.72577E-07    .93891E-07
  17  Prefactor     .10000E-03    24.715       -.41451E-05** at limit **
  18  Prefactor     .10000E-03    2.4664       -.99697E-07** at limit **
  19  Prefactor     .10000E-03    1.5056       -.23068E-07** at limit **
  20  norm          7.8237        3.8697       -.20209E-07    .43958E-04
  21  norm          6.8429        3.8632       -.14380E-07    .37902E-04
  22  Prefactor     .10000E-03    .39363        .59502E-07** at limit **
  23  Prefactor     .10000E-03    12.134       -.11046E-04** at limit **
  24  Prefactor     .10000E-03    14.051        .13277E-04** at limit **
  25  Prefactor     .80467        1.4700       -.64935E-07   -.23107E-03
  26  Prefactor     25.409        13.295       -.13920E-06   -.15805E-03
  27  norm          .86349E-01    .18173        .82326E-08   -.11174E-04
  28  Prefactor     1.0279        1.7946        .22280E-07    .40216E-04
  29  Normalizat    1.1688        .12073        .20101E-06    .46490E-05
  30  Prefactor     .94384        .89914E-01   -.42918E-07    .23873E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 10.4174
  Prefactor  = 1.23095
  Prefactor  = 9.99015
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.24407
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.40701
  norm       = 2.89042
  norm       = 1.10691
  norm       = 1.0735
  Prefactor  = 27.1702
  Prefactor  = 5.48784
  Prefactor  = 3.06751
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.82372
  norm       = 6.84292
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.804665
  Prefactor  = 25.4089
  norm       = 0.0863495
  Prefactor  = 1.02795
  Normalizat = 1.16884
  Prefactor  = 0.943836
 **********
 **   18 **HESSE 
 **********

 FCN=   16523.05     FROM HESSE     STATUS=OK           596 CALLS     4510 TOTAL
                     EDM=   .95E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.417        5.2975        .12414E-03   -1.5062    
   2  Prefactor     1.2310        11.228        .20275E-02   -1.5486    
   3  Prefactor     9.9902        16.566        .12678E-03   -1.5076    
   4  Prefactor     .10000E-03    3.3917        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.2793        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.9798        .17643E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.2441        1.0052        .11213E-03   -1.5485    
   8  Prefactor     .10000E-03    3.5879        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.3954        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.4070        3.3732        .33150E-03   -1.5471    
  11  norm          2.8904        2.2971        .16626E-03   -1.5368    
  12  norm          1.1069        .80964        .96159E-04   -1.5498    
  13  norm          1.0735        .41316        .47292E-04   -1.5501    
  14  Prefactor     27.170        20.524        .76854E-04   -1.4665    
  15  Prefactor     5.4878        10.113        .85736E-03   -1.5239    
  16  Prefactor     3.0675        2.3264        .14656E-03   -1.5358    
  17  Prefactor     .10000E-03    25.068        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.4941        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.5109        .15401E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          7.8237        3.8715        .14336E-03   -1.5148    
  21  norm          6.8429        3.8634        .15338E-03   -1.5185    
  22  Prefactor     .10000E-03    .39773        .78692E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    12.145        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    14.069        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .80467        1.4185        .19740E-03   -1.5529    
  26  Prefactor     25.409        13.225        .79469E-04   -1.4699    
  27  norm          .86349E-01    .13955        .69981E-03   -1.5649    
  28  Prefactor     1.0279        1.3142        .19717E-02   -1.5505    
  29  Normalizat    1.1688        .13883        .26619E-03   -.87571    
  30  Prefactor     .94384        .10476        .22648E-03   -.94626    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.51774e-09
Minuit parameter uncertainties:
  1  5.2977
  2  7.43697
  3  16.574
  4  2.28342e-06
  5  7.54859e-06
  6  9.57221e-09
  7  1.00525
  8  3.80727e-06
  9  8.23456e-07
  10  3.37366
  11  2.29712
  12  0.809646
  13  0.413165
  14  20.5296
  15  10.1157
  16  2.32643
  17  1.40982e-05
  18  9.12214e-08
  19  1.13666e-07
  20  3.87167
  21  3.86355
  22  9.989e-08
  23  3.10209e-06
  24  7.24025e-06
  25  1.41857
  26  13.227
  27  0.139551
  28  1.31425
  29  0.138877
  30  0.104785
Done.

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

Extracting fit parameters...

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

EG_v02
   Spectrum: FileFunction
619   Normalization:  1.169e+00  1.389e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 22.07
Ra Dec: 124.557 42.382
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 5.36e-08 +/- 2.06e-08
Energy Flux (Fixed Index): 3.02e-05 +/- 1.16e-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) = 16522.914166
delta logL = 0.13485153468

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 16522.9018073
delta logL = 0.147210205861

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0729       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1844       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1563       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94842       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=   16522.90     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      211 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0728        4.2193        .10106E-01    .79263E-03
   2  alpha         2.1846        3.5519        .37927        .47254E-04
   3  Normalizat    1.1564        .53040E-01    .60448E-01    .23657E-04
   4  Prefactor     .94833        .33370E-01    .45619E-01    .20907E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.07277
  alpha      = 2.18457
  Normalizat = 1.1564
  Prefactor  = 0.948333
 **********
 **   18 **HESSE 
 **********

 FCN=   16522.90     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0728        .38318        .44883E-04   -1.5501    
   2  alpha         2.1846        .34905        .13058E-01   -.12651    
   3  Normalizat    1.1564        .13446        .26735E-03   -.87961    
   4  Prefactor     .94833        .10313        .22595E-03   -.94472    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.13531e-10
Minuit parameter uncertainties:
  1  0.383185
  2  0.350208
  3  0.134496
  4  0.103155
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/569097': 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) = 16522.9018065
delta logL = 0.147211024032

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  1.073e+00  3.832e-01  1.000e-04  1.000e+04 ( 1.000e-11)
284        alpha:  2.185e+00  3.502e-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.483e-01  1.032e-01  0.000e+00  1.000e+01 ( 1.000e+00)
621        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
622        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
619   Normalization:  1.156e+00  1.345e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 22.34
Ra Dec: 124.557 42.382
Photon Index (Free Index): 2.18 +/- 0.35
Photon Flux (Free Index): 6.56e-08 +/- 3.13e-08
Energy Flux (Free Index): 2.76e-05 +/- 1.06e-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/569097/cmap_HighResolution_436752001_437356801_4FGL_J0818.2+4222_weekly_bin327.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.36e-08', energy_flux2='2.76e-05', photon_flux_error='2.06e-08', dlogl='1.47e-01', energy_flux='3.02e-05', photon_flux2='6.56e-08', job_status='DONE', time_completed='2021-07-13 15:14:34.324193', photon_index_error2='0.35', photon_index2='2.18', ts='22.07', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='1.06e-05', EG='1.17', time_epoch_completed='1626214474.32', return_code='0', job_id='569097', GAL2='0.95', EG2='1.16', return_code2='0', energy_flux_error='1.16e-05', photon_flux_error2='3.13e-08', ts2='22.34', photon_index='2.00' WHERE bin_id='327' AND source_name='4FGL J0818.2+4222' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 13 15:14:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0134>
Subject: Job 569097: <4FGL_J0818.2+4222_weekly_bin327> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.2+4222_weekly_bin327 124.557 42.3819 436752001 437356801 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 :                                   1643.00 sec.
    Max Memory :                                 621 MB
    Average Memory :                             614.01 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              6
    Max Threads :                                22
    Run time :                                   2168 sec.
    Turnaround time :                            114159 sec.

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

