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


Performing analysis on: 4FGL_J0818.2+4222_weekly_bin345
RA = 124.557, Dec = 42.3819
tmin = 447638401, tmax = 448243201
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='569116', job_status='RUN', time_executed='2021-07-12 07:41:16.330796', time_epoch_executed='1626100876.33' WHERE source_name='4FGL J0818.2+4222' and cadence='weekly' and bin_id='345'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/569116

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/569116/ft1_4FGL_J0818.2+4222_weekly_bin345.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/569116/ft2_4FGL_J0818.2+4222_weekly_bin345.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/569116/ft1_4FGL_J0818.2+4222_weekly_bin345.fits outfile=/scratch/kocevski/569116/ft1_filteredMKT_4FGL_J0818.2+4222_weekly_bin345.fits ra=124.557 dec=42.3819 rad=12.0 tmin=447638401.0 tmax=448243201.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 7.28
user 6.17
sys 0.32

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/569116/ft1_filtered_4FGL_J0818.2+4222_weekly_bin345.fits evtable="EVENTS" scfile=/scratch/kocevski/569116/ft2_4FGL_J0818.2+4222_weekly_bin345.fits sctable="SC_DATA" expcube=/scratch/kocevski/569116/ltcube_447638401_448243201_4FGL_J0818.2+4222_weekly_bin345.fits outfile=/scratch/kocevski/569116/expmap_447638401_448243201_4FGL_J0818.2+4222_weekly_bin345.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/569116/ltcube_447638401_448243201_4FGL_J0818.2+4222_weekly_bin345.fits
.....................!
real 160.00
user 148.21
sys 4.25

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/569116/ft1_filtered_4FGL_J0818.2+4222_weekly_bin345.fits scfile=/scratch/kocevski/569116/ft2_4FGL_J0818.2+4222_weekly_bin345.fits outfile=/scratch/kocevski/569116/cmap_447638401_448243201_4FGL_J0818.2+4222_weekly_bin345.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.37
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/569116/ft1_filtered_4FGL_J0818.2+4222_weekly_bin345.fits scfile=/scratch/kocevski/569116/ft2_4FGL_J0818.2+4222_weekly_bin345.fits outfile=/scratch/kocevski/569116/cmap_HighResolution_447638401_448243201_4FGL_J0818.2+4222_weekly_bin345.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.43
user 0.35
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    15.963       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .49748E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.239       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.236       1.0000         .10000E-03   10000.    
     6 'norm      '    5.4676       1.0000         .10000E-03   10000.    
     7 'norm      '    1.9519       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.0482       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.1222       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.0331       1.0000         .10000E-03   10000.    
    13 'norm      '    2.3107       1.0000         .10000E-03   10000.    
    14 'Prefactor '    20.653       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.6870       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.8788       1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.357       1.0000         .10000E-03   10000.    
    20 'norm      '    7.3662       1.0000         .10000E-03   10000.    
    21 'norm      '    .69044       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    23.813       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    32.328       1.0000         .10000E-03   10000.    
    27 'norm      '    .33504       1.0000         .10000E-03   10000.    
    28 'Prefactor '    4.1063       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .81742       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0685       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   16414.44     FROM MIGRAD    STATUS=CONVERGED   1369 CALLS     4579 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          15.963        5.5463        .10024E-03   -.63056E-04
   2  Prefactor     .57581E-01    5.1656        .68193E-01    .39268E-03
   3  Prefactor     18.234        17.985        .93783E-04    .19396E-05
   4  Prefactor     .10000E-03    3.3249        .18142E-02** at limit **
   5  Prefactor     17.238        11.097        .96473E-04   -.10842E-04
   6  norm          5.4675        5.3696        .17184E-03    .20641E-04
   7  norm          1.9519        1.1625        .10339E-03   -.18912E-03
   8  Prefactor     1.0469        3.5583        .42664E-03   -.10520E-03
   9  Prefactor     .10000E-03    41.177        .18142E-02** at limit **
  10  Prefactor     2.1223        3.1135        .25146E-03    .73966E-04
  11  norm          .10000E-03    .47929        .86517E-03** at limit **
  12  norm          3.0331        1.0802        .77150E-04   -.27703E-04
  13  norm          2.3108        .47464        .37560E-04   -.82813E-03
  14  Prefactor     20.654        19.392        .88134E-04   -.12899E-04
  15  Prefactor     .10000E-03    1.9384        .17395E-02** at limit **
  16  Prefactor     2.6872        1.4543        .10885E-03   -.22435E-03
  17  Prefactor     .10000E-03    2.9438        .18142E-02** at limit **
  18  Prefactor     2.8789        3.0906        .22755E-03    .10991E-04
  19  Prefactor     12.360        6.6798        .11396E-03   -.12052E-03
  20  norm          7.3677        3.8592        .14778E-03   -.29388E-03
  21  norm          .66719        6.1418        .29719E-02    .19150E-03
  22  Prefactor     .10000E-03    .42125        .80447E-03** at limit **
  23  Prefactor     23.804        30.702        .82085E-04   -.53183E-04
  24  Prefactor     .10000E-03    10.370        .18142E-02** at limit **
  25  Prefactor     .10000E-03    .82867        .22395E-03** at limit **
  26  Prefactor     32.329        13.876        .70474E-04   -.83886E-05
  27  norm          .33525        .33624        .63108E-03    .12437E-02
  28  Prefactor     4.1059        2.9613        .14507E-03    .57993E-04
  29  Normalizat    .81725        .13381        .29155E-03    .10357E-03
  30  Prefactor     1.0687        .10475        .20995E-03    .33789E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 15.9627
  Prefactor  = 0.0575813
  Prefactor  = 18.2336
  Prefactor  = 0.0001
  Prefactor  = 17.2375
  norm       = 5.4675
  norm       = 1.95186
  Prefactor  = 1.04686
  Prefactor  = 0.000100002
  Prefactor  = 2.12235
  norm       = 0.0001
  norm       = 3.03305
  norm       = 2.31076
  Prefactor  = 20.6539
  Prefactor  = 0.0001
  Prefactor  = 2.68717
  Prefactor  = 0.0001
  Prefactor  = 2.87886
  Prefactor  = 12.3599
  norm       = 7.36773
  norm       = 0.667192
  Prefactor  = 0.0001
  Prefactor  = 23.8044
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.3287
  norm       = 0.335247
  Prefactor  = 4.10593
  Normalizat = 0.817248
  Prefactor  = 1.06865
 **********
 **   18 **HESSE 
 **********

 FCN=   16414.44     FROM HESSE     STATUS=OK           570 CALLS     5149 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          15.963        5.5461        .40098E-05   -1.4909    
   2  Prefactor     .57581E-01    4.4558        .74984E-01   -1.5660    
   3  Prefactor     18.234        17.987        .37513E-05   -1.4854    
   4  Prefactor     .10000E-03    3.3266        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     17.238        11.096        .38589E-05   -1.4877    
   6  norm          5.4675        5.3694        .68736E-05   -1.5240    
   7  norm          1.9519        1.1624        .41358E-05   -1.5429    
   8  Prefactor     1.0469        3.5568        .17066E-04   -1.5503    
   9  Prefactor     .10000E-03    41.200        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.1223        3.1121        .10058E-04   -1.5417    
  11  norm          .10000E-03    .47930        .17303E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.0331        1.0802        .30860E-05   -1.5360    
  13  norm          2.3108        .47455        .15024E-05   -1.5404    
  14  Prefactor     20.654        19.401        .35254E-05   -1.4799    
  15  Prefactor     .10000E-03    1.9385        .34790E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.6872        1.4542        .43539E-05   -1.5380    
  17  Prefactor     .10000E-03    2.9439        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.8789        3.0905        .91022E-05   -1.5369    
  19  Prefactor     12.360        6.6576        .45582E-05   -1.5005    
  20  norm          7.3677        3.8501        .59111E-05   -1.5165    
  21  norm          .66719        6.0647        .11887E-03   -1.5545    
  22  Prefactor     .10000E-03    .42130        .16089E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     23.804        30.707        .32834E-05   -1.4732    
  24  Prefactor     .10000E-03    10.370        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    .82869        .44789E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     32.329        13.879        .28189E-05   -1.4570    
  27  norm          .33525        .33569        .25243E-04   -1.5592    
  28  Prefactor     4.1059        2.9578        .58027E-05   -1.5303    
  29  Normalizat    .81725        .13390        .11662E-04   -.99432    
  30  Prefactor     1.0687        .10482        .83981E-05   -.90475    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.24428e-10
Minuit parameter uncertainties:
  1  5.54626
  2  1.01226
  3  17.992
  4  5.82531e-05
  5  11.0969
  6  5.36988
  7  1.16245
  8  3.55751
  9  0.00054727
  10  3.11229
  11  3.78103e-08
  12  1.08023
  13  0.474554
  14  19.4066
  15  1.11428e-05
  16  1.45422
  17  9.17328e-06
  18  3.09072
  19  6.65801
  20  3.85022
  21  4.02332
  22  1.15862e-05
  23  30.7273
  24  1.85456e-05
  25  4.98293e-06
  26  13.8805
  27  0.335692
  28  2.95786
  29  0.133954
  30  0.104844
Done.

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

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  2.311e+00  4.746e-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.069e+00  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:  8.172e-01  1.340e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 93.29
Ra Dec: 124.557 42.382
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 1.15e-07 +/- 2.37e-08
Energy Flux (Fixed Index): 6.50e-05 +/- 1.33e-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) = 16414.3657499
delta logL = 0.0707399942075

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 16414.3598817
delta logL = 0.0766082131559

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.3345       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9205       1.0000          .0000       5.0000    
     3 'Normalizat'    .82482       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0656       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=   16414.36     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      208 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.3344        1.0380        .67094E-02    .82397E-04
   2  alpha         1.9205        .38939        .21816        .32081E-04
   3  Normalizat    .82482        .11368        .65647E-01    .53967E-04
   4  Prefactor     1.0656        .91017E-01    .39071E-01    .92224E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.33438
  alpha      = 1.92052
  Normalizat = 0.82482
  Prefactor  = 1.06561
 **********
 **   18 **HESSE 
 **********

 FCN=   16414.36     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .17E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.3344        .47570        .38368E-04   -1.5402    
   2  alpha         1.9205        .19229        .89381E-02   -.23392    
   3  Normalizat    .82482        .12654        .29041E-03   -.99155    
   4  Prefactor     1.0656        .10249        .21025E-03   -.90573    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.67872e-13
Minuit parameter uncertainties:
  1  0.475702
  2  0.192495
  3  0.126588
  4  0.102512
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/569116': 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) = 16414.3598817
delta logL = 0.0766082679838

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  2.334e+00  4.757e-01  1.000e-04  1.000e+04 ( 1.000e-11)
284        alpha:  1.921e+00  1.925e-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.066e+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.248e-01  1.266e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 93.30
Ra Dec: 124.557 42.382
Photon Index (Free Index): 1.92 +/- 0.19
Photon Flux (Free Index): 1.08e-07 +/- 2.82e-08
Energy Flux (Free Index): 6.99e-05 +/- 1.99e-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/569116/cmap_HighResolution_447638401_448243201_4FGL_J0818.2+4222_weekly_bin345.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.15e-07', energy_flux2='6.99e-05', photon_flux_error='2.37e-08', dlogl='7.66e-02', energy_flux='6.50e-05', photon_flux2='1.08e-07', job_status='DONE', time_completed='2021-07-13 15:12:25.616244', photon_index_error2='0.19', photon_index2='1.92', ts='93.29', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', energy_flux_error2='1.99e-05', EG='0.82', time_epoch_completed='1626214345.62', return_code='0', job_id='569116', GAL2='1.07', EG2='0.82', return_code2='0', energy_flux_error='1.33e-05', photon_flux_error2='2.82e-08', ts2='93.30', photon_index='2.00' WHERE bin_id='345' AND source_name='4FGL J0818.2+4222' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 13 15:12:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0175>
Subject: Job 569116: <4FGL_J0818.2+4222_weekly_bin345> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.2+4222_weekly_bin345 124.557 42.3819 447638401 448243201 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 :                                   1471.00 sec.
    Max Memory :                                 622 MB
    Average Memory :                             614.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1997 sec.
    Turnaround time :                            114026 sec.

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

