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


Performing analysis on: 4FGL_J0818.2+4222_weekly_bin101
RA = 124.557, Dec = 42.3819
tmin = 300067201, tmax = 300672001
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='566610', job_status='RUN', time_executed='2021-07-12 07:26:47.935966', time_epoch_executed='1626100007.94' WHERE source_name='4FGL J0818.2+4222' and cadence='weekly' and bin_id='101'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/566610

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/566610/ft1_4FGL_J0818.2+4222_weekly_bin101.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/566610/ft2_4FGL_J0818.2+4222_weekly_bin101.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/566610/ft1_4FGL_J0818.2+4222_weekly_bin101.fits outfile=/scratch/kocevski/566610/ft1_filteredMKT_4FGL_J0818.2+4222_weekly_bin101.fits ra=124.557 dec=42.3819 rad=12.0 tmin=300067201.0 tmax=300672001.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.35
user 7.03
sys 0.31

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/566610/ft1_filtered_4FGL_J0818.2+4222_weekly_bin101.fits" evtable="EVENTS" scfile=/scratch/kocevski/566610/ft2_4FGL_J0818.2+4222_weekly_bin101.fits sctable="SC_DATA" outfile=/scratch/kocevski/566610/ltcube_300067201_300672001_4FGL_J0818.2+4222_weekly_bin101.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/566610/ft2_4FGL_J0818.2+4222_weekly_bin101.fits
.....................!
real 41.02
user 38.09
sys 0.45

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/566610/ft1_filtered_4FGL_J0818.2+4222_weekly_bin101.fits evtable="EVENTS" scfile=/scratch/kocevski/566610/ft2_4FGL_J0818.2+4222_weekly_bin101.fits sctable="SC_DATA" expcube=/scratch/kocevski/566610/ltcube_300067201_300672001_4FGL_J0818.2+4222_weekly_bin101.fits outfile=/scratch/kocevski/566610/expmap_300067201_300672001_4FGL_J0818.2+4222_weekly_bin101.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/566610/ltcube_300067201_300672001_4FGL_J0818.2+4222_weekly_bin101.fits
.....................!
real 212.58
user 186.11
sys 5.19

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/566610/ft1_filtered_4FGL_J0818.2+4222_weekly_bin101.fits scfile=/scratch/kocevski/566610/ft2_4FGL_J0818.2+4222_weekly_bin101.fits outfile=/scratch/kocevski/566610/cmap_300067201_300672001_4FGL_J0818.2+4222_weekly_bin101.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.22
user 0.42
sys 0.15

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

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

This is gtbin version HEAD
real 2.04
user 0.44
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.2026       1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.351       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.9519       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.4440       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.4222       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.8883       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10931E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .34145       1.0000         .10000E-03   10000.    
    13 'norm      '    .24660       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    33.025       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10413E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10145E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.7874       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.4307       1.0000         .10000E-03   10000.    
    20 'norm      '    5.6036       1.0000         .10000E-03   10000.    
    21 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    18.414       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10875E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    3.4819       1.0000         .10000E-03   10000.    
    27 'norm      '    1.3582       1.0000         .10000E-03   10000.    
    28 'Prefactor '    3.9825       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0703       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .95864       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   16702.85     FROM MIGRAD    STATUS=CONVERGED    789 CALLS     3479 TOTAL
                     EDM=   .16E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.5003         .0000    ** at limit **
   2  Prefactor     5.2017        6.2511         .0000        .60232E-02
   3  Prefactor     16.350        11.502         .0000       -.76801E-04
   4  Prefactor     4.9518        4.3514         .0000       -.35911E-03
   5  Prefactor     2.4434        9.3028         .0000        .75973E-02
   6  norm          .10000E-03    8.0673         .0000    ** at limit **
   7  norm          .10000E-03    .56945         .0000    ** at limit **
   8  Prefactor     1.4225        3.9015         .0000        .54438E-01
   9  Prefactor     3.8877        25.984         .0000        .14071E-03
  10  Prefactor     .10000E-03    .80126         .0000    ** at limit **
  11  norm          .10000E-03    .70274         .0000    ** at limit **
  12  norm          .34167        .61763         .0000        .23221E-02
  13  norm          .24619        .33226         .0000        .49484E-02
  14  Prefactor     .10000E-03    17.159         .0000    ** at limit **
  15  Prefactor     33.037        10.954         .0000       -.33399E-03
  16  Prefactor     .10000E-03    .71813         .0000    ** at limit **
  17  Prefactor     .10000E-03    21.463         .0000    ** at limit **
  18  Prefactor     7.7865        5.2004         .0000        .22410E-02
  19  Prefactor     6.4301        4.3527         .0000        .45079E-03
  20  norm          5.6030        3.1138         .0000       -.11291E-02
  21  norm          .10000E-03    1.8432         .0000    ** at limit **
  22  Prefactor     .10000E-03    .68797         .0000    ** at limit **
  23  Prefactor     .10001E-03    65.819         .0000    ** at limit **
  24  Prefactor     18.404        22.986         .0000       -.23679E-02
  25  Prefactor     .10000E-03    .63405         .0000    ** at limit **
  26  Prefactor     3.4543        20.653         .0000       -.13811E-02
  27  norm          1.3579        .53532         .0000        .74249E-03
  28  Prefactor     3.9840        3.9751         .0000        .17432E-02
  29  Normalizat    1.0706        .11380         .0000        .64253E-04
  30  Prefactor     .95845        .85096E-01     .0000        .23368E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 5.20173
  Prefactor  = 16.3505
  Prefactor  = 4.95176
  Prefactor  = 2.44338
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.42246
  Prefactor  = 3.88772
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.341667
  norm       = 0.246187
  Prefactor  = 0.000100001
  Prefactor  = 33.0373
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 7.78647
  Prefactor  = 6.43012
  norm       = 5.60303
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010001
  Prefactor  = 18.4042
  Prefactor  = 0.0001
  Prefactor  = 3.45426
  norm       = 1.35788
  Prefactor  = 3.98395
  Normalizat = 1.0706
  Prefactor  = 0.958448
 **********
 **   18 **HESSE 
 **********

 FCN=   16702.85     FROM HESSE     STATUS=OK           600 CALLS     4079 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.5600        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.2017        6.2461        .88120E-03   -1.5252    
   3  Prefactor     16.350        11.499        .99048E-04   -1.4899    
   4  Prefactor     4.9518        4.3430        .18073E-03   -1.5263    
   5  Prefactor     2.4434        9.2411        .13085E-02   -1.5395    
   6  norm          .10000E-03    8.3223        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .59015        .19023E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.4225        3.7869        .18133E-02   -1.5469    
   9  Prefactor     3.8877        24.970        .20462E-03   -1.5314    
  10  Prefactor     .10000E-03    5.4274        .21755E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .71661        .10571E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .34167        .47766        .13235E-02   -1.5591    
  13  norm          .24619        .28554        .76589E-03   -1.5609    
  14  Prefactor     .10000E-03    17.568        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     33.037        10.220        .69728E-04   -1.4558    
  16  Prefactor     .10000E-03    1.4789        .20424E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    21.735        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     7.7865        5.1944        .71847E-03   -1.5150    
  19  Prefactor     6.4301        4.3507        .15827E-03   -1.5201    
  20  norm          5.6030        3.1113        .16465E-03   -1.5235    
  21  norm          .10000E-03    1.8848        .17123E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    .70957        .20889E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10001E-03    66.331        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     18.404        22.676        .93335E-04   -1.4850    
  25  Prefactor     .10000E-03    1.1603        .19598E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     3.4543        19.865        .21670E-03   -1.5336    
  27  norm          1.3579        .59450        .44815E-04   -1.5475    
  28  Prefactor     3.9840        4.4519        .19040E-03   -1.5309    
  29  Normalizat    1.0706        .13253        .25991E-03   -.90701    
  30  Prefactor     .95845        .99536E-01    .21562E-03   -.94128    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.14225e-08
Minuit parameter uncertainties:
  1  3.4301e-06
  2  6.24683
  3  11.5005
  4  4.34329
  5  9.24652
  6  4.20212e-06
  7  9.82953e-08
  8  3.78757
  9  19.7175
  10  1.74745e-06
  11  1.19256e-06
  12  0.477664
  13  0.285538
  14  0.000265115
  15  10.221
  16  1.14378e-06
  17  0.000500882
  18  5.19473
  19  4.3509
  20  3.11139
  21  1.02342e-06
  22  1.01594e-06
  23  0.00159226
  24  22.6868
  25  4.28046e-07
  26  16.5754
  27  0.594502
  28  4.45222
  29  0.132569
  30  0.0995555
Done.

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

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  2.462e-01  2.855e-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.584e-01  9.956e-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.071e+00  1.326e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.11
Ra Dec: 124.557 42.382
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 1.23e-08 +/- 1.43e-08
Energy Flux (Fixed Index): 6.92e-06 +/- 8.03e-06

TS (Fixed Index): 1.11
Ra Dec: 124.557 42.382
Photon Flux Upper Limit: 4.41e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.49e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/566610/likelihoodResults_300067201_300672001_4FGL_J0818.2+4222_weekly_bin101.txt

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) = 16701.1516321
delta logL = 1.70074906742

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 16701.1382309
delta logL = 1.71415019599

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .21263       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.2201       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0294       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97316       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=   16701.14     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      217 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .21264        .96809        .69417E-02    .81156E-02
   2  alpha         3.2200        1.8955        .42059        .13101E-03
   3  Normalizat    1.0294        .24076E-01    .42223E-01    .12280E-02
   4  Prefactor     .97315        .19014E-01    .45931E-01    .14335E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.212639
  alpha      = 3.21999
  Normalizat = 1.02943
  Prefactor  = 0.973147
 **********
 **   18 **HESSE 
 **********

 FCN=   16701.14     FROM HESSE     STATUS=OK            31 CALLS      248 TOTAL
                     EDM=   .66E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .21264        .41303        .31636E-03   -1.5616    
   2  alpha         3.2200        1.2491        .14685E-01    .29213    
   3  Normalizat    1.0294        .12667        .26388E-03   -.92051    
   4  Prefactor     .97315        .99008E-01    .21393E-03   -.93630    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.63025e-08
Minuit parameter uncertainties:
  1  0.413032
  2  1.31413
  3  0.126707
  4  0.0990265
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/566610': 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) = 16701.1382309
delta logL = 1.71415021689

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  2.126e-01  4.130e-01  1.000e-04  1.000e+04 ( 1.000e-11)
284        alpha:  3.220e+00  1.314e+00  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.731e-01  9.903e-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.029e+00  1.267e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.61
Ra Dec: 124.557 42.382
Photon Index (Free Index): 3.22 +/- 1.31
Photon Flux (Free Index): 5.44e-08 +/- 3.10e-08
Energy Flux (Free Index): 1.04e-05 +/- 6.62e-06

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/566610/cmap_HighResolution_300067201_300672001_4FGL_J0818.2+4222_weekly_bin101.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.49e-05', comment='SUCCESS', photon_flux='1.23e-08', energy_flux2='1.04e-05', photon_flux_error='1.43e-08', dlogl='1.71e+00', energy_flux='6.92e-06', photon_flux2='5.44e-08', job_status='DONE', time_completed='2021-07-13 15:11:49.117845', photon_index_error2='1.31', photon_index2='3.22', ts='1.11', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='4.41e-08', energy_flux_error2='6.62e-06', EG='1.07', time_epoch_completed='1626214309.12', return_code='0', job_id='566610', GAL2='0.97', EG2='1.03', return_code2='0', energy_flux_error='8.03e-06', photon_flux_error2='3.10e-08', ts2='4.61', photon_index='2.00' WHERE bin_id='101' AND source_name='4FGL J0818.2+4222' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 13 15:11:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0101>
Subject: Job 566610: <4FGL_J0818.2+4222_weekly_bin101> in cluster <slac> Done

Job <4FGL_J0818.2+4222_weekly_bin101> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Jul 12 07:22:14 2021
Job was executed on host(s) <bullet0101>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jul 12 07:23:18 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:23:18 2021
Terminated at Tue Jul 13 15:11:52 2021
Results reported at Tue Jul 13 15:11:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.2+4222_weekly_bin101 124.557 42.3819 300067201 300672001 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 :                                   1910.00 sec.
    Max Memory :                                 621 MB
    Average Memory :                             324.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2596 sec.
    Turnaround time :                            114578 sec.

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

