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


Performing analysis on: 4FGL_J0818.2+4222_weekly_bin379
RA = 124.557, Dec = 42.3819
tmin = 468201601, tmax = 468806401
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='569172', job_status='RUN', time_executed='2021-07-13 14:54:59.423277', time_epoch_executed='1626213299.42' WHERE source_name='4FGL J0818.2+4222' and cadence='weekly' and bin_id='379'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/569172

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/569172/ft1_4FGL_J0818.2+4222_weekly_bin379.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/569172/ft2_4FGL_J0818.2+4222_weekly_bin379.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/569172/ft1_4FGL_J0818.2+4222_weekly_bin379.fits outfile=/scratch/kocevski/569172/ft1_filteredMKT_4FGL_J0818.2+4222_weekly_bin379.fits ra=124.557 dec=42.3819 rad=12.0 tmin=468201601.0 tmax=468806401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 8.54
user 7.61
sys 0.34

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/569172/ft1_filtered_4FGL_J0818.2+4222_weekly_bin379.fits" evtable="EVENTS" scfile=/scratch/kocevski/569172/ft2_4FGL_J0818.2+4222_weekly_bin379.fits sctable="SC_DATA" outfile=/scratch/kocevski/569172/ltcube_468201601_468806401_4FGL_J0818.2+4222_weekly_bin379.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/569172/ft2_4FGL_J0818.2+4222_weekly_bin379.fits
.....................!
real 38.26
user 37.67
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/569172/ft1_filtered_4FGL_J0818.2+4222_weekly_bin379.fits evtable="EVENTS" scfile=/scratch/kocevski/569172/ft2_4FGL_J0818.2+4222_weekly_bin379.fits sctable="SC_DATA" expcube=/scratch/kocevski/569172/ltcube_468201601_468806401_4FGL_J0818.2+4222_weekly_bin379.fits outfile=/scratch/kocevski/569172/expmap_468201601_468806401_4FGL_J0818.2+4222_weekly_bin379.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/569172/ltcube_468201601_468806401_4FGL_J0818.2+4222_weekly_bin379.fits
.....................!
real 193.54
user 187.77
sys 5.33

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

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

This is gtbin version HEAD
real 0.60
user 0.43
sys 0.14

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

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

This is gtbin version HEAD
real 0.62
user 0.41
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    40.779       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    21.283       1.0000         .10000E-03   10000.    
     6 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .20829       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    25.122       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .99808       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.1450       1.0000         .10000E-03   10000.    
    13 'norm      '    1.2017       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.7363       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.0507       1.0000         .10000E-03   10000.    
    20 'norm      '    6.2704       1.0000         .10000E-03   10000.    
    21 'norm      '    .71568       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.3628       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    20.988       1.0000         .10000E-03   10000.    
    25 'Prefactor '    6.1957       1.0000         .10000E-03   10000.    
    26 'Prefactor '    9.1631       1.0000         .10000E-03   10000.    
    27 'norm      '    2.1253       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .16677E-02   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .96469       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0262       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=   19279.26     FROM MIGRAD    STATUS=CONVERGED    750 CALLS     4946 TOTAL
                     EDM=   .94E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.7046        .63097E-07** at limit **
   2  Prefactor     .10000E-03    2.7549        .10619E-06** at limit **
   3  Prefactor     40.778        19.944       -.24650E-06    .57384E-05
   4  Prefactor     .10000E-03    5.6916        .29984E-06** at limit **
   5  Prefactor     21.281        11.849        .40921E-06    .58643E-04
   6  norm          .10000E-03    5.6735        .33006E-06** at limit **
   7  norm          .20852        .76292       -.49149E-06    .69387E-03
   8  Prefactor     .10000E-03    1.9574       -.22936E-07** at limit **
   9  Prefactor     25.111        26.964       -.63632E-05   -.36217E-03
  10  Prefactor     .99861        2.7574        .14820E-05   -.80241E-03
  11  norm          .10000E-03    .74744        .11725E-07** at limit **
  12  norm          4.1450        1.1570        .23166E-08    .19597E-03
  13  norm          1.2017        .37690       -.24681E-07    .23893E-04
  14  Prefactor     .10000E-03    4.8458        .45446E-06** at limit **
  15  Prefactor     .10000E-03    6.7291       -.15448E-05** at limit **
  16  Prefactor     .10000E-03    .56983       -.25218E-07** at limit **
  17  Prefactor     .10000E-03    3.9752       -.31187E-06** at limit **
  18  Prefactor     6.7363        4.9864        .44196E-06   -.54700E-03
  19  Prefactor     3.0504        3.2184       -.24162E-06   -.23954E-03
  20  norm          6.2697        3.5427       -.20780E-06   -.21024E-03
  21  norm          .71597        2.4191        .11950E-05   -.11690E-02
  22  Prefactor     2.3627        1.5854        .41678E-07   -.34561E-03
  23  Prefactor     .10000E-03    9.3068        .89543E-06** at limit **
  24  Prefactor     20.988        20.405       -.12310E-07   -.75918E-05
  25  Prefactor     6.1954        2.5461       -.33854E-07   -.26402E-03
  26  Prefactor     9.1626        14.597       -.22296E-06   -.35091E-04
  27  norm          2.1252        .49191       -.86429E-08    .25828E-03
  28  Prefactor     .10000E-03    1.0615       -.20374E-07** at limit **
  29  Normalizat    .96469        .11484        .19311E-06    .30151E-04
  30  Prefactor     1.0262        .85381E-01   -.15921E-06    .14625E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 40.7777
  Prefactor  = 0.0001
  Prefactor  = 21.2815
  norm       = 0.0001
  norm       = 0.208523
  Prefactor  = 0.0001
  Prefactor  = 25.1115
  Prefactor  = 0.998609
  norm       = 0.0001
  norm       = 4.14499
  norm       = 1.2017
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.73629
  Prefactor  = 3.05042
  norm       = 6.26974
  norm       = 0.715971
  Prefactor  = 2.36271
  Prefactor  = 0.0001
  Prefactor  = 20.9876
  Prefactor  = 6.19541
  Prefactor  = 9.16255
  norm       = 2.12518
  Prefactor  = 0.000100004
  Normalizat = 0.964691
  Prefactor  = 1.02616
 **********
 **   18 **HESSE 
 **********

 FCN=   19279.26     FROM HESSE     STATUS=OK           596 CALLS     5542 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.8404        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.7812        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     40.778        19.921        .62772E-04   -1.4430    
   4  Prefactor     .10000E-03    5.7695        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     21.281        11.841        .86822E-04   -1.4785    
   6  norm          .10000E-03    5.8229        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .20852        1.5315        .21726E-02   -1.5617    
   8  Prefactor     .10000E-03    1.9783        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     25.111        28.202        .79923E-04   -1.4705    
  10  Prefactor     .99861        2.9591        .37177E-03   -1.5508    
  11  norm          .10000E-03    .75566        .11716E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.1450        1.1567        .76533E-04   -1.5301    
  13  norm          1.2017        .37258        .44516E-04   -1.5489    
  14  Prefactor     .10000E-03    4.8584        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.8896        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    .58362        .20442E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.9873        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.7363        5.0414        .77299E-03   -1.5189    
  19  Prefactor     3.0504        3.2007        .23228E-03   -1.5359    
  20  norm          6.2697        3.5245        .16030E-03   -1.5207    
  21  norm          .71597        2.7752        .42959E-03   -1.5539    
  22  Prefactor     2.3627        1.5731        .13537E-03   -1.5401    
  23  Prefactor     .10000E-03    9.3262        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     20.988        20.367        .87429E-04   -1.4791    
  25  Prefactor     6.1954        2.5361        .13035E-03   -1.5210    
  26  Prefactor     9.1626        14.570        .13240E-03   -1.5102    
  27  norm          2.1252        .43877        .39577E-04   -1.5416    
  28  Prefactor     .10000E-03    21.792        .23762E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .96469        .13082        .28709E-03   -.94223    
  30  Prefactor     1.0262        .97304E-01    .21799E-03   -.91863    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.86456e-09
Minuit parameter uncertainties:
  1  3.63054e-07
  2  9.71154e-07
  3  19.9239
  4  5.37608e-05
  5  11.8424
  6  3.59782e-06
  7  1.13001
  8  2.31623e-05
  9  28.217
  10  2.95954
  11  2.17316e-07
  12  1.15668
  13  0.372582
  14  1.72731e-05
  15  7.75896e-05
  16  9.98164e-07
  17  1.22874e-05
  18  5.04169
  19  3.20091
  20  3.52462
  21  2.77574
  22  1.57312
  23  5.50451e-05
  24  20.3741
  25  2.53612
  26  14.5758
  27  0.438775
  28  0.000583208
  29  0.130866
  30  0.0973212
Done.

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

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  1.202e+00  3.726e-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.026e+00  9.732e-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.647e-01  1.309e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 36.07
Ra Dec: 124.557 42.382
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 6.00e-08 +/- 1.86e-08
Energy Flux (Fixed Index): 3.38e-05 +/- 1.05e-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) = 19279.1488989
delta logL = 0.106345749813

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 19279.1357025
delta logL = 0.119542143992

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1711       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8567       1.0000          .0000       5.0000    
     3 'Normalizat'    .97296       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0238       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=   19279.14     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      201 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1711        5.9850        .10297E-01    .40605E-03
   2  alpha         1.8569        3.4240        .34360       -.37074E-04
   3  Normalizat    .97297        .13942        .45827E-01    .47248E-04
   4  Prefactor     1.0238        .95013E-01    .41779E-01    .15085E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.17112
  alpha      = 1.85688
  Normalizat = 0.972967
  Prefactor  = 1.02382
 **********
 **   18 **HESSE 
 **********

 FCN=   19279.14     FROM HESSE     STATUS=OK            33 CALLS      234 TOTAL
                     EDM=   .49E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1711        .38031        .45590E-04   -1.5492    
   2  alpha         1.8569        .28366        .12899E-01   -.26017    
   3  Normalizat    .97297        .12286        .28605E-03   -.93942    
   4  Prefactor     1.0238        .95764E-01    .21826E-03   -.91940    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.91684e-13
Minuit parameter uncertainties:
  1  0.380314
  2  0.284313
  3  0.122895
  4  0.0957802
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/569172': 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) = 19279.1357024
delta logL = 0.119542281624

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  1.171e+00  3.803e-01  1.000e-04  1.000e+04 ( 1.000e-11)
284        alpha:  1.857e+00  2.843e-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.024e+00  9.578e-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.730e-01  1.229e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 36.27
Ra Dec: 124.557 42.382
Photon Index (Free Index): 1.86 +/- 0.28
Photon Flux (Free Index): 5.13e-08 +/- 2.35e-08
Energy Flux (Free Index): 3.75e-05 +/- 1.48e-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/569172/cmap_HighResolution_468201601_468806401_4FGL_J0818.2+4222_weekly_bin379.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.00e-08', energy_flux2='3.75e-05', photon_flux_error='1.86e-08', dlogl='1.20e-01', energy_flux='3.38e-05', photon_flux2='5.13e-08', job_status='DONE', time_completed='2021-07-13 15:35:56.703032', photon_index_error2='0.28', photon_index2='1.86', ts='36.07', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='1.48e-05', EG='0.96', time_epoch_completed='1626215756.7', return_code='0', job_id='569172', GAL2='1.02', EG2='0.97', return_code2='0', energy_flux_error='1.05e-05', photon_flux_error2='2.35e-08', ts2='36.27', photon_index='2.00' WHERE bin_id='379' AND source_name='4FGL J0818.2+4222' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 13 15:35:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0299>
Subject: Job 569172: <4FGL_J0818.2+4222_weekly_bin379> in cluster <slac> Done

Job <4FGL_J0818.2+4222_weekly_bin379> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Jul 12 07:32:06 2021
Job was executed on host(s) <bullet0299>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jul 12 07:34:03 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:34:03 2021
Terminated at Tue Jul 13 15:35:57 2021
Results reported at Tue Jul 13 15:35:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.2+4222_weekly_bin379 124.557 42.3819 468201601 468806401 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 :                                   2115.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             51.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   3395 sec.
    Turnaround time :                            115431 sec.

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

