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


Performing analysis on: 4FGL_J0818.2+4222_weekly_bin172
RA = 124.557, Dec = 42.3819
tmin = 343008001, tmax = 343612801
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='567886', job_status='RUN', time_executed='2021-07-12 07:31:53.580389', time_epoch_executed='1626100313.58' WHERE source_name='4FGL J0818.2+4222' and cadence='weekly' and bin_id='172'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/567886

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

Retrieving the FT1 file...

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

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

Retrieving 106 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/567886/ft1_4FGL_J0818.2+4222_weekly_bin172.fits


Retrieving the FT1 file...

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

Retrieving 106 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/567886/ft2_4FGL_J0818.2+4222_weekly_bin172.fits


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

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

Done.
real 9.71
user 7.46
sys 0.29

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/567886/ft2_4FGL_J0818.2+4222_weekly_bin172.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/567886/ft1_filteredMKT_4FGL_J0818.2+4222_weekly_bin172.fits evtable="EVENTS" outfile="/scratch/kocevski/567886/ft1_filtered_4FGL_J0818.2+4222_weekly_bin172.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 4.29
user 0.39
sys 0.20

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/567886/ft1_filtered_4FGL_J0818.2+4222_weekly_bin172.fits" evtable="EVENTS" scfile=/scratch/kocevski/567886/ft2_4FGL_J0818.2+4222_weekly_bin172.fits sctable="SC_DATA" outfile=/scratch/kocevski/567886/ltcube_343008001_343612801_4FGL_J0818.2+4222_weekly_bin172.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/567886/ft2_4FGL_J0818.2+4222_weekly_bin172.fits
.....................!
real 45.35
user 32.85
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/567886/ft1_filtered_4FGL_J0818.2+4222_weekly_bin172.fits evtable="EVENTS" scfile=/scratch/kocevski/567886/ft2_4FGL_J0818.2+4222_weekly_bin172.fits sctable="SC_DATA" expcube=/scratch/kocevski/567886/ltcube_343008001_343612801_4FGL_J0818.2+4222_weekly_bin172.fits outfile=/scratch/kocevski/567886/expmap_343008001_343612801_4FGL_J0818.2+4222_weekly_bin172.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/567886/ltcube_343008001_343612801_4FGL_J0818.2+4222_weekly_bin172.fits
.....................!
real 212.66
user 186.68
sys 4.50

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/567886/ft1_filtered_4FGL_J0818.2+4222_weekly_bin172.fits scfile=/scratch/kocevski/567886/ft2_4FGL_J0818.2+4222_weekly_bin172.fits outfile=/scratch/kocevski/567886/cmap_343008001_343612801_4FGL_J0818.2+4222_weekly_bin172.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.48
user 0.42
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/567886/ft1_filtered_4FGL_J0818.2+4222_weekly_bin172.fits scfile=/scratch/kocevski/567886/ft2_4FGL_J0818.2+4222_weekly_bin172.fits outfile=/scratch/kocevski/567886/cmap_HighResolution_343008001_343612801_4FGL_J0818.2+4222_weekly_bin172.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.21
user 0.41
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .83595       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.2026       1.0000         .10000E-03   10000.    
     3 'Prefactor '    26.185       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.9950       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.6017       1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .11409E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.0135       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.6298       1.0000         .10000E-03   10000.    
    11 'norm      '    3.2106       1.0000         .10000E-03   10000.    
    12 'norm      '    4.1571       1.0000         .10000E-03   10000.    
    13 'norm      '    1.3621       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.8937       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .98757       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.2634       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.2850       1.0000         .10000E-03   10000.    
    20 'norm      '    15.415       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.0883       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .72326       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .69160E-01   1.0000         .10000E-03   10000.    
    27 'norm      '    .19014E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    2.6798       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0035       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .95883       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6230E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   18314.20     FROM MIGRAD    STATUS=CONVERGED    160 CALLS     2848 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .83721        2.3743       -.34357E-06   -.35347E-04
   2  Prefactor     3.2007        2.5102        .48705E-06   -.30311E-02
   3  Prefactor     26.181        2.2825        .12846E-06   -.66264E-03
   4  Prefactor     2.9958        6.1481        .22310E-05    .84534E-03
   5  Prefactor     5.6003        1.7587       -.39755E-06   -.78175E-03
   6  norm          .10000E-03    2.9087        .27579E-06** at limit **
   7  norm          .10000E-03    1.9637       -.33694E-06** at limit **
   8  Prefactor     .10000E-03    1.1289        .43304E-06** at limit **
   9  Prefactor     1.9886        45.566        .48811E-05   -.75343E-04
  10  Prefactor     4.6293        2.5851       -.81675E-06   -.27174E-03
  11  norm          3.2105        1.9339       -.94399E-08   -.24656E-05
  12  norm          4.1570        1.1747        .17264E-07    .38520E-04
  13  norm          1.3622        .37421       -.24626E-07    .10059E-04
  14  Prefactor     .10000E-03    4.8962       -.34112E-06** at limit **
  15  Prefactor     8.9013        7.4645        .22143E-05    .58232E-03
  16  Prefactor     .98597        1.3265        .41538E-07    .18194E-03
  17  Prefactor     1.2380        3.8695        .13050E-05   -.10489E-02
  18  Prefactor     .10000E-03    1.5202       -.43195E-08** at limit **
  19  Prefactor     2.2849        2.2421       -.10990E-05   -.25291E-03
  20  norm          15.415        4.5629        .20601E-06   -.95231E-04
  21  norm          .10000E-03    1.8650        .67909E-06** at limit **
  22  Prefactor     1.0886        1.5547        .67136E-07    .19417E-04
  23  Prefactor     .10001E-03    34.054        .43928E-05** at limit **
  24  Prefactor     .10000E-03    7.9743        .11321E-05** at limit **
  25  Prefactor     .72419        1.5696        .28407E-07    .72771E-04
  26  Prefactor     .95666E-02    1905.7       -.51287E-04    .43077E-04
  27  norm          .14434E-02    29.207        .36460E-05** at limit **
  28  Prefactor     2.6706        3.3275       -.38672E-06   -.89262E-04
  29  Normalizat    1.0037        .12972       -.82429E-07    .92514E-04
  30  Prefactor     .95875        .98353E-01   -.45089E-06    .46512E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.83721
  Prefactor  = 3.20069
  Prefactor  = 26.1808
  Prefactor  = 2.99578
  Prefactor  = 5.60031
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.98861
  Prefactor  = 4.62928
  norm       = 3.21051
  norm       = 4.15699
  norm       = 1.3622
  Prefactor  = 0.0001
  Prefactor  = 8.90125
  Prefactor  = 0.985974
  Prefactor  = 1.23803
  Prefactor  = 0.0001
  Prefactor  = 2.28487
  norm       = 15.4145
  norm       = 0.0001
  Prefactor  = 1.08856
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.724192
  Prefactor  = 0.00956658
  norm       = 0.00144345
  Prefactor  = 2.67059
  Normalizat = 1.00374
  Prefactor  = 0.958749
 **********
 **   18 **HESSE 
 **********

 FCN=   18314.20     FROM HESSE     STATUS=OK           678 CALLS     3526 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .83721        1.9557        .79024E-01   -1.5525    
   2  Prefactor     3.2007        6.0746        .56601E-02   -1.5350    
   3  Prefactor     26.181        19.489        .19572E-02   -1.4684    
   4  Prefactor     2.9958        7.1902        .58641E-02   -1.5362    
   5  Prefactor     5.6003        6.6828        .42434E-02   -1.5235    
   6  norm          .10000E-03    2.8631        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .64644        .33053E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.1284        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.9886        48.811        .72931E-02   -1.5426    
  10  Prefactor     4.6293        2.6258        .46763E-02   -1.5278    
  11  norm          3.2105        1.9357        .56526E-02   -1.5350    
  12  norm          4.1570        1.1760        .49421E-02   -1.5300    
  13  norm          1.3622        .37943        .92270E-02   -1.5475    
  14  Prefactor     .10000E-03    4.8809        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     8.9013        8.4526        .33600E-02   -1.5111    
  16  Prefactor     .98597        1.5879        .38418E-01   -1.5509    
  17  Prefactor     1.2380        33.911        .99133E-02   -1.5485    
  18  Prefactor     .10000E-03    1.5174        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.2849        2.2368        .67897E-02   -1.5406    
  20  norm          15.415        4.6298        .25503E-02   -1.4923    
  21  norm          .10000E-03    1.8314        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.0886        1.5874        .11481E-01   -1.5499    
  23  Prefactor     .10001E-03    34.478        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    7.9747        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .72419        1.6014        .12151E-01   -1.5538    
  26  Prefactor     .95666E-02    6.3244        .11605       -1.5689    
  27  norm          .14434E-02    .11649        .22695E-01   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     2.6706        2.2492        .62230E-02   -1.5381    
  29  Normalizat    1.0037        .11430        .46211E-01   -.92905    
  30  Prefactor     .95875        .84740E-01    .45751E-01   -.94117    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44266e-07
Minuit parameter uncertainties:
  1  1.9559
  2  6.07574
  3  19.4942
  4  7.19224
  5  6.68373
  6  1.97593e-06
  7  1.85133e-06
  8  2.95253e-06
  9  19.722
  10  2.6259
  11  1.93575
  12  1.17602
  13  0.37943
  14  1.04455e-05
  15  8.4537
  16  1.58792
  17  12.9665
  18  7.27746e-07
  19  2.23691
  20  4.62989
  21  5.14816e-06
  22  1.58743
  23  0.000841615
  24  1.87508e-05
  25  1.60145
  26  0.48942
  27  0.0250194
  28  2.24928
  29  0.114331
  30  0.0847513
Done.

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

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  1.362e+00  3.794e-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.587e-01  8.475e-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:  1.004e+00  1.143e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 40.75
Ra Dec: 124.557 42.382
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 6.80e-08 +/- 1.89e-08
Energy Flux (Fixed Index): 3.83e-05 +/- 1.07e-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) = 18314.1769919
delta logL = 0.02140395272

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 18314.1768041
delta logL = 0.0215917448695

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3637       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9469       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0066       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95780       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=   18314.18     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      196 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3637        5.2786        .93243E-02   -.13599E-02
   2  alpha         1.9469        3.4667        .28503       -.79768E-04
   3  Normalizat    1.0066        .10974        .46250E-01    .11316E-03
   4  Prefactor     .95780        .73182E-01    .45738E-01   -.55565E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.36369
  alpha      = 1.94688
  Normalizat = 1.00663
  Prefactor  = 0.957802
 **********
 **   18 **HESSE 
 **********

 FCN=   18314.18     FROM HESSE     STATUS=OK            33 CALLS      229 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3637        .36774        .41327E-04   -1.5474    
   2  alpha         1.9469        .23546        .11293E-01   -.22309    
   3  Normalizat    1.0066        .11923        .26529E-03   -.92809    
   4  Prefactor     .95780        .95344E-01    .21701E-03   -.94150    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41053e-10
Minuit parameter uncertainties:
  1  0.367738
  2  0.235827
  3  0.119262
  4  0.095361
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/567886': 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) = 18314.1768041
delta logL = 0.0215917478563

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  1.364e+00  3.677e-01  1.000e-04  1.000e+04 ( 1.000e-11)
284        alpha:  1.947e+00  2.358e-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.578e-01  9.536e-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:  1.007e+00  1.193e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 40.83
Ra Dec: 124.557 42.382
Photon Index (Free Index): 1.95 +/- 0.24
Photon Flux (Free Index): 6.49e-08 +/- 2.28e-08
Energy Flux (Free Index): 3.99e-05 +/- 1.35e-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/567886/cmap_HighResolution_343008001_343612801_4FGL_J0818.2+4222_weekly_bin172.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.80e-08', energy_flux2='3.99e-05', photon_flux_error='1.89e-08', dlogl='2.16e-02', energy_flux='3.83e-05', photon_flux2='6.49e-08', job_status='DONE', time_completed='2021-07-13 15:07:24.251528', photon_index_error2='0.24', photon_index2='1.95', ts='40.75', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='1.35e-05', EG='1.00', time_epoch_completed='1626214044.25', return_code='0', job_id='567886', GAL2='0.96', EG2='1.01', return_code2='0', energy_flux_error='1.07e-05', photon_flux_error2='2.28e-08', ts2='40.83', photon_index='2.00' WHERE bin_id='172' AND source_name='4FGL J0818.2+4222' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 13 15:07:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0173>
Subject: Job 567886: <4FGL_J0818.2+4222_weekly_bin172> in cluster <slac> Done

Job <4FGL_J0818.2+4222_weekly_bin172> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Mon Jul 12 07:26:51 2021
Job was executed on host(s) <bullet0173>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jul 12 07:27:50 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Jul 12 07:27:50 2021
Terminated at Tue Jul 13 15:07:25 2021
Results reported at Tue Jul 13 15:07:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.2+4222_weekly_bin172 124.557 42.3819 343008001 343612801 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 :                                   1531.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             327.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2059 sec.
    Turnaround time :                            114034 sec.

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

