aklog: Couldn't determine realm of user:aklog: unknown RPC error (-1765328189)  while getting realm
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 62 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 17197
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0818.2+4222_weekly_bin182
RA = 124.557, Dec = 42.3819
tmin = 349056001, tmax = 349660801
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='567902', job_status='RUN', time_executed='2021-07-12 07:32:03.806245', time_epoch_executed='1626100323.81' WHERE source_name='4FGL J0818.2+4222' and cadence='weekly' and bin_id='182'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/567902

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/567902/ft1_4FGL_J0818.2+4222_weekly_bin182.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/567902/ft2_4FGL_J0818.2+4222_weekly_bin182.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/567902/ft1_4FGL_J0818.2+4222_weekly_bin182.fits outfile=/scratch/kocevski/567902/ft1_filteredMKT_4FGL_J0818.2+4222_weekly_bin182.fits ra=124.557 dec=42.3819 rad=12.0 tmin=349056001.0 tmax=349660801.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 10.81
user 6.97
sys 0.37

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/567902/ft1_filtered_4FGL_J0818.2+4222_weekly_bin182.fits" evtable="EVENTS" scfile=/scratch/kocevski/567902/ft2_4FGL_J0818.2+4222_weekly_bin182.fits sctable="SC_DATA" outfile=/scratch/kocevski/567902/ltcube_349056001_349660801_4FGL_J0818.2+4222_weekly_bin182.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/567902/ft2_4FGL_J0818.2+4222_weekly_bin182.fits
.....................!
real 37.87
user 28.58
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/567902/ft1_filtered_4FGL_J0818.2+4222_weekly_bin182.fits evtable="EVENTS" scfile=/scratch/kocevski/567902/ft2_4FGL_J0818.2+4222_weekly_bin182.fits sctable="SC_DATA" expcube=/scratch/kocevski/567902/ltcube_349056001_349660801_4FGL_J0818.2+4222_weekly_bin182.fits outfile=/scratch/kocevski/567902/expmap_349056001_349660801_4FGL_J0818.2+4222_weekly_bin182.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/567902/ltcube_349056001_349660801_4FGL_J0818.2+4222_weekly_bin182.fits
.....................!
real 215.09
user 187.14
sys 5.07

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/567902/ft1_filtered_4FGL_J0818.2+4222_weekly_bin182.fits scfile=/scratch/kocevski/567902/ft2_4FGL_J0818.2+4222_weekly_bin182.fits outfile=/scratch/kocevski/567902/cmap_349056001_349660801_4FGL_J0818.2+4222_weekly_bin182.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.18
user 0.41
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/567902/ft1_filtered_4FGL_J0818.2+4222_weekly_bin182.fits scfile=/scratch/kocevski/567902/ft2_4FGL_J0818.2+4222_weekly_bin182.fits outfile=/scratch/kocevski/567902/cmap_HighResolution_349056001_349660801_4FGL_J0818.2+4222_weekly_bin182.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.42
user 0.42
sys 0.20

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.6480       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.7388       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .34725E-01   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.0043       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.8783       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12425E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.7200       1.0000         .10000E-03   10000.    
    12 'norm      '    4.3969       1.0000         .10000E-03   10000.    
    13 'norm      '    1.5736       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .55727E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.092       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.8458       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    5.7745       1.0000         .10000E-03   10000.    
    21 'norm      '    .55406       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .68602       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    5.1923       1.0000         .10000E-03   10000.    
    27 'norm      '    .43862       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1114       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .95174       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=   16216.26     FROM MIGRAD    STATUS=CONVERGED    800 CALLS     3443 TOTAL
                     EDM=   .17E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.5498        .31207E-06** at limit **
   2  Prefactor     9.6477        9.2473       -.78395E-07   -.43800E-05
   3  Prefactor     8.7399        17.337       -.19378E-05    .20789E-05
   4  Prefactor     .10000E-03    2.4083       -.57232E-07** at limit **
   5  Prefactor     .10000E-03    5.4777       -.12937E-06** at limit **
   6  norm          .10000E-03    2.9054        .32107E-08** at limit **
   7  norm          1.0045        1.4357       -.42365E-07   -.13734E-04
   8  Prefactor     6.8804        4.7335        .69169E-06    .35381E-05
   9  Prefactor     .10000E-03    20.653        .73194E-06** at limit **
  10  Prefactor     .10000E-03    1.4553        .13998E-06** at limit **
  11  norm          1.7200        2.0831        .57584E-07    .14363E-04
  12  norm          4.3969        1.3079        .10038E-07    .12433E-04
  13  norm          1.5738        .45131       -.22980E-07   -.15907E-03
  14  Prefactor     .10000E-03    3.3536        .16935E-06** at limit **
  15  Prefactor     .10000E-03    4.7585       -.41798E-06** at limit **
  16  Prefactor     .58197E-01    .59962       -.16407E-08    .25474E-03
  17  Prefactor     12.092        15.276       -.29169E-06    .65509E-05
  18  Prefactor     5.8452        5.8788       -.70854E-06    .66398E-05
  19  Prefactor     .10000E-03    1.8951       -.23208E-07** at limit **
  20  norm          5.7741        3.6784       -.30507E-08    .44408E-04
  21  norm          .55431        .10121        .33683E-08   -.84071E-05
  22  Prefactor     .68614        1.2566       -.97469E-07    .13399E-03
  23  Prefactor     .10000E-03    13.223       -.62027E-06** at limit **
  24  Prefactor     .10000E-03    19.045       -.19299E-07** at limit **
  25  Prefactor     .10000E-03    .97280        .89455E-07** at limit **
  26  Prefactor     5.1927        9.8002        .56176E-07    .55406E-07
  27  norm          .43862        .23956       -.43997E-07    .13061E-03
  28  Prefactor     .10000E-03    .60539       -.12231E-06** at limit **
  29  Normalizat    1.1114        .11910       -.30603E-06    .20361E-04
  30  Prefactor     .95175        .87619E-01    .87894E-07   -.54976E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 9.64772
  Prefactor  = 8.73985
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.00446
  Prefactor  = 6.88036
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.71998
  norm       = 4.39688
  norm       = 1.57378
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0581972
  Prefactor  = 12.092
  Prefactor  = 5.84521
  Prefactor  = 0.0001
  norm       = 5.77408
  norm       = 0.554308
  Prefactor  = 0.686138
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.19274
  norm       = 0.43862
  Prefactor  = 0.0001
  Normalizat = 1.11142
  Prefactor  = 0.951753
 **********
 **   18 **HESSE 
 **********

 FCN=   16216.26     FROM HESSE     STATUS=OK           608 CALLS     4051 TOTAL
                     EDM=   .36E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.5809        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     9.6477        9.2494        .12901E-03   -1.5087    
   3  Prefactor     8.7399        17.296        .13559E-03   -1.5117    
   4  Prefactor     .10000E-03    2.4151        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.2343        .87168E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    2.9233        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.0045        1.1773        .17414E-02   -1.5508    
   8  Prefactor     6.8804        4.7409        .15298E-03   -1.5183    
   9  Prefactor     .10000E-03    20.695        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.7993        .28995E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.7200        2.0616        .19230E-03   -1.5446    
  12  norm          4.3969        1.3054        .75419E-04   -1.5289    
  13  norm          1.5738        .44531        .43060E-04   -1.5457    
  14  Prefactor     .10000E-03    3.3559        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.7784        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .58197E-01    14.217        .18495E-02   -1.5660    
  17  Prefactor     12.092        15.260        .11520E-03   -1.5012    
  18  Prefactor     5.8452        5.8732        .16610E-03   -1.5224    
  19  Prefactor     .10000E-03    1.9032        .17118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          5.7741        3.6743        .16714E-03   -1.5227    
  21  norm          .55431        3.7602        .22979E-02   -1.5559    
  22  Prefactor     .68614        1.1606        .17876E-02   -1.5542    
  23  Prefactor     .10000E-03    13.223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    19.166        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    .99943        .24518E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     5.1927        9.7972        .17642E-03   -1.5252    
  27  norm          .43862        .23537        .44613E-04   -1.5576    
  28  Prefactor     .10000E-03    .60755        .96435E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.1114        .13556        .26689E-03   -.89386    
  30  Prefactor     .95175        .10108        .22033E-03   -.94355    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.58636e-08
Minuit parameter uncertainties:
  1  7.06237e-07
  2  9.25081
  3  17.3061
  4  3.56709e-06
  5  6.09024e-05
  6  8.20205e-07
  7  1.17732
  8  4.74111
  9  1.75466e-05
  10  2.6184e-05
  11  2.06169
  12  1.30542
  13  0.445314
  14  2.97247e-07
  15  6.9194e-06
  16  1.81808
  17  15.2651
  18  5.87376
  19  6.73296e-07
  20  3.67444
  21  2.88742
  22  1.16068
  23  3.81941e-06
  24  4.1348e-06
  25  1.61864e-06
  26  9.80021
  27  0.235369
  28  1.43483e-06
  29  0.135598
  30  0.101096
Done.

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

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  1.574e+00  4.453e-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.518e-01  1.011e-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.111e+00  1.356e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 37.07
Ra Dec: 124.557 42.382
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 7.86e-08 +/- 2.22e-08
Energy Flux (Fixed Index): 4.43e-05 +/- 1.25e-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) = 16215.7939657
delta logL = 0.467366880859

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 16215.7939177
delta logL = 0.467414877639

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5293       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2515       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0894       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95959       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=   16215.79     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      252 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5293        .42678        .39636E-04   -.24094E-04
   2  alpha         2.2515        .26674        .10699E-01    .33656E-03
   3  Normalizat    1.0894        .13133        .26905E-03   -.62369E-04
   4  Prefactor     .95959        .10018        .21942E-03   -.18860E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.52927
  alpha      = 2.25155
  Normalizat = 1.08944
  Prefactor  = 0.959593
 **********
 **   18 **HESSE 
 **********

 FCN=   16215.79     FROM HESSE     STATUS=OK            25 CALLS      277 TOTAL
                     EDM=   .62E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5293        .42290        .15854E-05   -1.5461    
   2  alpha         2.2515        .26416        .21398E-02   -.99545E-01
   3  Normalizat    1.0894        .13139        .10762E-04   -.90092    
   4  Prefactor     .95959        .10024        .87767E-05   -.94089    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.18345e-12
Minuit parameter uncertainties:
  1  0.422899
  2  0.264662
  3  0.131429
  4  0.100255
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/567902': 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) = 16215.7939177
delta logL = 0.467414877639

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  1.529e+00  4.229e-01  1.000e-04  1.000e+04 ( 1.000e-11)
284        alpha:  2.252e+00  2.647e-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.596e-01  1.003e-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.089e+00  1.314e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 37.92
Ra Dec: 124.557 42.382
Photon Index (Free Index): 2.25 +/- 0.26
Photon Flux (Free Index): 1.01e-07 +/- 3.49e-08
Energy Flux (Free Index): 3.89e-05 +/- 1.10e-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/567902/cmap_HighResolution_349056001_349660801_4FGL_J0818.2+4222_weekly_bin182.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.86e-08', energy_flux2='3.89e-05', photon_flux_error='2.22e-08', dlogl='4.67e-01', energy_flux='4.43e-05', photon_flux2='1.01e-07', job_status='DONE', time_completed='2021-07-13 15:06:56.003339', photon_index_error2='0.26', photon_index2='2.25', ts='37.07', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='1.10e-05', EG='1.11', time_epoch_completed='1626214016.0', return_code='0', job_id='567902', GAL2='0.96', EG2='1.09', return_code2='0', energy_flux_error='1.25e-05', photon_flux_error2='3.49e-08', ts2='37.92', photon_index='2.00' WHERE bin_id='182' AND source_name='4FGL J0818.2+4222' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 13 15:06:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0102>
Subject: Job 567902: <4FGL_J0818.2+4222_weekly_bin182> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.2+4222_weekly_bin182 124.557 42.3819 349056001 349660801 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 :                                   1489.00 sec.
    Max Memory :                                 621 MB
    Average Memory :                             323.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2006 sec.
    Turnaround time :                            114004 sec.

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

