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


Performing analysis on: 4FGL_J0801.1+6444_weekly_bin605
RA = 120.293, Dec = 64.7438
tmin = 604886401, tmax = 605491201
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='383597', job_status='RUN', time_executed='2021-07-12 04:12:13.977265', time_epoch_executed='1626088333.98' WHERE source_name='4FGL J0801.1+6444' and cadence='weekly' and bin_id='605'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/383597

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

Retrieving the FT1 file...

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

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

Retrieving 106 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/383597/ft1_4FGL_J0801.1+6444_weekly_bin605.fits


Retrieving the FT1 file...

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

Retrieving 106 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/383597/ft2_4FGL_J0801.1+6444_weekly_bin605.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/383597/ft1_4FGL_J0801.1+6444_weekly_bin605.fits outfile=/scratch/kocevski/383597/ft1_filteredMKT_4FGL_J0801.1+6444_weekly_bin605.fits ra=120.293 dec=64.7438 rad=12.0 tmin=604886401.0 tmax=605491201.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 12.17
user 11.42
sys 0.48

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/383597/ft2_4FGL_J0801.1+6444_weekly_bin605.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/383597/ft2_4FGL_J0801.1+6444_weekly_bin605.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/383597/ft1_filteredMKT_4FGL_J0801.1+6444_weekly_bin605.fits evtable="EVENTS" outfile="/scratch/kocevski/383597/ft1_filtered_4FGL_J0801.1+6444_weekly_bin605.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/383597/ft1_filtered_4FGL_J0801.1+6444_weekly_bin605.fits" evtable="EVENTS" scfile=/scratch/kocevski/383597/ft2_4FGL_J0801.1+6444_weekly_bin605.fits sctable="SC_DATA" outfile=/scratch/kocevski/383597/ltcube_604886401_605491201_4FGL_J0801.1+6444_weekly_bin605.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/383597/ft2_4FGL_J0801.1+6444_weekly_bin605.fits
.....................!
real 27.43
user 26.41
sys 0.58

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/383597/ft1_filtered_4FGL_J0801.1+6444_weekly_bin605.fits evtable="EVENTS" scfile=/scratch/kocevski/383597/ft2_4FGL_J0801.1+6444_weekly_bin605.fits sctable="SC_DATA" expcube=/scratch/kocevski/383597/ltcube_604886401_605491201_4FGL_J0801.1+6444_weekly_bin605.fits outfile=/scratch/kocevski/383597/expmap_604886401_605491201_4FGL_J0801.1+6444_weekly_bin605.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/383597/ltcube_604886401_605491201_4FGL_J0801.1+6444_weekly_bin605.fits
.....................!
real 198.43
user 191.90
sys 5.70

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 220 point sources and 0 extended sources

Setting source of interest to:
4FGL J0801.1+6444 @ 120.293 64.7438

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/383597/ft1_filtered_4FGL_J0801.1+6444_weekly_bin605.fits scfile=/scratch/kocevski/383597/ft2_4FGL_J0801.1+6444_weekly_bin605.fits outfile=/scratch/kocevski/383597/cmap_604886401_605491201_4FGL_J0801.1+6444_weekly_bin605.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=120.293 yref=64.7438 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.71
user 0.41
sys 0.27

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/383597/ft1_filtered_4FGL_J0801.1+6444_weekly_bin605.fits scfile=/scratch/kocevski/383597/ft2_4FGL_J0801.1+6444_weekly_bin605.fits outfile=/scratch/kocevski/383597/cmap_HighResolution_604886401_605491201_4FGL_J0801.1+6444_weekly_bin605.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=120.293 yref=64.7438 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.72
user 0.43
sys 0.27

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/383597/ft1_filtered_4FGL_J0801.1+6444_weekly_bin605.fits evtable="EVENTS" scfile=/scratch/kocevski/383597/ft2_4FGL_J0801.1+6444_weekly_bin605.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/383597/Model_4FGL_J0801.1+6444_weekly_bin605.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/383597/ft1_filtered_4FGL_J0801.1+6444_weekly_bin605.fits.....................!
real 241.46
user 238.65
sys 1.76

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/383597/ft1_filtered_4FGL_J0801.1+6444_weekly_bin605.fits', '/scratch/kocevski/383597/ft2_4FGL_J0801.1+6444_weekly_bin605.fits', expMap='/scratch/kocevski/383597/expmap_604886401_605491201_4FGL_J0801.1+6444_weekly_bin605.fits', expCube='/scratch/kocevski/383597/ltcube_604886401_605491201_4FGL_J0801.1+6444_weekly_bin605.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/383597/Model_4FGL_J0801.1+6444_weekly_bin605.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0801.1+6444'

4FGL J0801.1+6444
   Spectrum: PowerLaw
298    Prefactor:  2.258e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
299        Index:  2.062e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
300        Scale:  2.934e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/383597/ft1_filtered_4FGL_J0801.1+6444_weekly_bin605.fits
Spacecraft file(s): /scratch/kocevski/383597/ft2_4FGL_J0801.1+6444_weekly_bin605.fits
Exposure map: /scratch/kocevski/383597/expmap_604886401_605491201_4FGL_J0801.1+6444_weekly_bin605.fits
Exposure cube: /scratch/kocevski/383597/ltcube_604886401_605491201_4FGL_J0801.1+6444_weekly_bin605.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/383597/Model_4FGL_J0801.1+6444_weekly_bin605.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) = 23938.053314

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.223       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.7904       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    6.6757       1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.235       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.0533       1.0000         .10000E-03   10000.    
    11 'norm      '    .55086       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.6906       1.0000         .10000E-03   10000.    
    13 'norm      '    .10045E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .29312       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .59327       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10167E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.4243       1.0000         .10000E-03   10000.    
    23 'Prefactor '    19.214       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .66272       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .65619E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    3.7186       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1268       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0693       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7100E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   23938.03     FROM MIGRAD    STATUS=CONVERGED    778 CALLS     3468 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.223        15.602       -.57280E-07    .20905E-04
   2  Prefactor     1.7905        4.8962       -.31766E-06   -.22192E-03
   3  Prefactor     .10000E-03    5.7148       -.20513E-06** at limit **
   4  Prefactor     .10000E-03    6.1727        .56968E-06** at limit **
   5  Prefactor     .10000E-03    1.9158        .23619E-09** at limit **
   6  Prefactor     .10000E-03    4.0279       -.15213E-06** at limit **
   7  norm          6.6758        .63020        .11309E-07    .27409E-03
   8  Prefactor     12.234        11.419       -.32300E-06   -.31349E-03
   9  Prefactor     .10000E-03    25.241        .11546E-06** at limit **
  10  Prefactor     8.0539        15.275       -.12349E-05   -.32810E-03
  11  norm          .55095        .50775       -.79008E-07   -.16766E-02
  12  Prefactor     6.6911        6.6486        .74059E-08   -.10160E-04
  13  norm          .10000E-03    .50032       -.15569E-07** at limit **
  14  Prefactor     .29287        .77040       -.34329E-06   -.90580E-03
  15  Prefactor     .10000E-03    35.245       -.18746E-06** at limit **
  16  norm          .10000E-03    .91936       -.17453E-08** at limit **
  17  Prefactor     .59299        .67767       -.44072E-08    .68948E-04
  18  Prefactor     .10000E-03    2.1729       -.42742E-08** at limit **
  19  Prefactor     .10000E-03    2.7478       -.47931E-08** at limit **
  20  norm          .10000E-03    .40009        .11571E-07** at limit **
  21  Prefactor     .10000E-03    7.8182       -.14827E-06** at limit **
  22  Prefactor     5.4243        6.2256       -.65950E-07   -.34144E-04
  23  Prefactor     19.220        13.824       -.49672E-07    .73059E-04
  24  Prefactor     .10000E-03    4.4308        .48538E-06** at limit **
  25  norm          .66257        .51544       -.60814E-07   -.15650E-02
  26  Prefactor     .10000E-03    2.1242       -.15659E-07** at limit **
  27  Prefactor     3.7176        5.6558       -.40199E-07   -.24533E-04
  28  Prefactor     .10001E-03    5.1819       -.56189E-06** at limit **
  29  Normalizat    1.1268        .11109        .25963E-06    .99499E-04
  30  Prefactor     1.0693        .73665E-01   -.11302E-07    .16409E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.2228
  Prefactor  = 1.79051
  Prefactor  = 0.000100001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.67576
  Prefactor  = 12.2339
  Prefactor  = 0.0001
  Prefactor  = 8.05395
  norm       = 0.550951
  Prefactor  = 6.69114
  norm       = 0.0001
  Prefactor  = 0.292866
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.592985
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.42434
  Prefactor  = 19.2205
  Prefactor  = 0.000100004
  norm       = 0.662571
  Prefactor  = 0.000100002
  Prefactor  = 3.71761
  Prefactor  = 0.000100005
  Normalizat = 1.12677
  Prefactor  = 1.06925
 **********
 **   18 **HESSE 
 **********

 FCN=   23938.03     FROM HESSE     STATUS=OK           606 CALLS     4074 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.223        15.615        .10265E-03   -1.4927    
   2  Prefactor     1.7905        4.9777        .31260E-03   -1.5440    
   3  Prefactor     .10000E-03    5.7223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.0809        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.9171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.0380        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          6.6758        .63460        .35477E-04   -1.5191    
   8  Prefactor     12.234        11.759        .57262E-03   -1.5008    
   9  Prefactor     .10000E-03    25.249        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.0539        17.738        .70642E-03   -1.5140    
  11  norm          .55095        .51466        .10484E-03   -1.5560    
  12  Prefactor     6.6911        6.6289        .15513E-03   -1.5191    
  13  norm          .10000E-03    1.5430        .20977E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .29287        1.0698        .24347E-02   -1.5600    
  15  Prefactor     .10000E-03    36.674        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .93377        .14483E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .59299        .52912        .12900E-02   -1.5554    
  18  Prefactor     .10000E-03    2.1857        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.8570        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.0716        .17532E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    7.8219        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     5.4243        6.2332        .17254E-03   -1.5242    
  23  Prefactor     19.220        13.121        .91372E-04   -1.4831    
  24  Prefactor     .10000E-03    4.5366        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .66257        .47637        .95222E-03   -1.5545    
  26  Prefactor     .10000E-03    3.1673        .75813E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     3.7176        5.6266        .20941E-03   -1.5322    
  28  Prefactor     .10001E-03    5.1328        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.1268        .12697        .29899E-03   -.88897    
  30  Prefactor     1.0693        .84713E-01    .21292E-03   -.90455    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3111e-07
Minuit parameter uncertainties:
  1  15.619
  2  4.97884
  3  0.000123776
  4  0.000342017
  5  2.76914e-07
  6  7.49178e-05
  7  0.634599
  8  11.7611
  9  0.000146008
  10  17.75
  11  0.514665
  12  6.62964
  13  2.46156e-06
  14  1.06982
  15  0.000239958
  16  2.72731e-08
  17  0.529127
  18  6.28994e-08
  19  3.99797e-06
  20  6.62339e-07
  21  9.68441e-05
  22  6.23391
  23  13.1231
  24  0.000262427
  25  0.47637
  26  0.000165579
  27  5.62744
  28  0.000321148
  29  0.127003
  30  0.0847241
Done.

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

Extracting fit parameters...

4FGL J0801.1+6444
   Spectrum: PowerLaw
298    Prefactor:  6.691e+00  6.630e+00  1.000e-04  1.000e+04 ( 1.000e-14)
299        Index:  2.062e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
300        Scale:  2.934e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
707    Prefactor:  1.069e+00  8.472e-02  0.000e+00  1.000e+01 ( 1.000e+00)
708        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
709        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
706   Normalization:  1.127e+00  1.270e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.50
Ra Dec: 120.293 64.744
Photon Index (Fixed Index): 2.06 +/- 0.00
Photon Flux (Fixed Index): 6.68e-09 +/- 6.62e-09
Energy Flux (Fixed Index): 3.99e-06 +/- 3.95e-06

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) = 23936.7937886
delta logL = 1.23211421063

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 23936.7928993
delta logL = 1.2330034343

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.4759       1.0000         .10000E-03   10000.    
     2 'Index     '    1.0062       1.0000          .0000       10.000    
     3 'Normalizat'    1.1310       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0687       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7100E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   23936.79     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      304 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.4759        9.1206        .73340E-03    .41916E-04
   2  Index         1.0062        .64584        .23945E-01   -.34929E-03
   3  Normalizat    1.1311        .11873        .29848E-03    .18283E-05
   4  Prefactor     1.0687        .83111E-01    .21296E-03    .64061E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.4759
  Index      = 1.00624
  Normalizat = 1.13106
  Prefactor  = 1.06872
 **********
 **   18 **HESSE 
 **********

 FCN=   23936.79     FROM HESSE     STATUS=OK            25 CALLS      329 TOTAL
                     EDM=   .63E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.4759        9.4700        .29336E-04   -1.5161    
   2  Index         1.0062        .67034        .47890E-02   -.92522    
   3  Normalizat    1.1311        .11881        .59695E-04   -.88761    
   4  Prefactor     1.0687        .83167E-01    .42592E-04   -.90473    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.2679e-12
Minuit parameter uncertainties:
  1  9.47191
  2  0.676015
  3  0.118843
  4  0.0831772
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/383597': 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) = 23936.7928993
delta logL = 1.23300348913

Extracting fit parameters...

4FGL J0801.1+6444
   Spectrum: PowerLaw
298    Prefactor:  7.476e+00  9.472e+00  1.000e-04  1.000e+04 ( 1.000e-14)
299        Index:  1.006e+00  6.760e-01  0.000e+00  1.000e+01 (-1.000e+00)
300        Scale:  2.934e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
707    Prefactor:  1.069e+00  8.318e-02  0.000e+00  1.000e+01 ( 1.000e+00)
708        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
709        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
706   Normalization:  1.131e+00  1.188e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.96
Ra Dec: 120.293 64.744
Photon Index (Free Index): 1.01 +/- 0.68
Photon Flux (Free Index): 1.51e-09 +/- 1.89e-09
Energy Flux (Free Index): 2.16e-05 +/- 2.98e-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/383597/cmap_HighResolution_604886401_605491201_4FGL_J0801.1+6444_weekly_bin605.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.68e-09', energy_flux2='2.16e-05', photon_flux_error='6.62e-09', dlogl='1.23e+00', energy_flux='3.99e-06', photon_flux2='1.51e-09', job_status='DONE', time_completed='2021-07-12 04:53:06.237393', photon_index_error2='0.68', photon_index2='1.01', ts='4.50', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', energy_flux_error2='2.98e-05', EG='1.13', time_epoch_completed='1626090786.24', return_code='0', job_id='383597', GAL2='1.07', EG2='1.13', return_code2='0', energy_flux_error='3.95e-06', photon_flux_error2='1.89e-09', ts2='6.96', photon_index='2.06' WHERE bin_id='605' AND source_name='4FGL J0801.1+6444' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Mon Jul 12 04:53:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0159>
Subject: Job 383597: <4FGL_J0801.1+6444_weekly_bin605> in cluster <slac> Done

Job <4FGL_J0801.1+6444_weekly_bin605> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Jul 11 20:40:51 2021
Job was executed on host(s) <bullet0159>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jul 11 20:57:40 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jul 11 20:57:40 2021
Terminated at Mon Jul 12 04:53:07 2021
Results reported at Mon Jul 12 04:53:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0801.1+6444_weekly_bin605 120.293 64.7438 604886401 605491201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0801.1+6444 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   2444.00 sec.
    Max Memory :                                 1259 MB
    Average Memory :                             73.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   28527 sec.
    Turnaround time :                            29536 sec.

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

