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


Performing analysis on: 4FGL_J0806.5+4503_weekly_bin573
RA = 121.628, Dec = 45.0605
tmin = 585532801, tmax = 586137601
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='441824', job_status='RUN', time_executed='2021-07-12 00:08:43.242239', time_epoch_executed='1626073723.24' WHERE source_name='4FGL J0806.5+4503' and cadence='weekly' and bin_id='573'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/441824

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/441824/ft1_4FGL_J0806.5+4503_weekly_bin573.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/441824/ft2_4FGL_J0806.5+4503_weekly_bin573.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/441824/ft1_4FGL_J0806.5+4503_weekly_bin573.fits outfile=/scratch/kocevski/441824/ft1_filteredMKT_4FGL_J0806.5+4503_weekly_bin573.fits ra=121.628 dec=45.0605 rad=12.0 tmin=585532801.0 tmax=586137601.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 5.85
user 5.43
sys 0.27

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/441824/ft2_4FGL_J0806.5+4503_weekly_bin573.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/441824/ft2_4FGL_J0806.5+4503_weekly_bin573.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/441824/ft1_filteredMKT_4FGL_J0806.5+4503_weekly_bin573.fits evtable="EVENTS" outfile="/scratch/kocevski/441824/ft1_filtered_4FGL_J0806.5+4503_weekly_bin573.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.57
user 0.39
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/441824/ft1_filtered_4FGL_J0806.5+4503_weekly_bin573.fits" evtable="EVENTS" scfile=/scratch/kocevski/441824/ft2_4FGL_J0806.5+4503_weekly_bin573.fits sctable="SC_DATA" outfile=/scratch/kocevski/441824/ltcube_585532801_586137601_4FGL_J0806.5+4503_weekly_bin573.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/441824/ft2_4FGL_J0806.5+4503_weekly_bin573.fits
.....................!
real 31.30
user 30.66
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/441824/ft1_filtered_4FGL_J0806.5+4503_weekly_bin573.fits evtable="EVENTS" scfile=/scratch/kocevski/441824/ft2_4FGL_J0806.5+4503_weekly_bin573.fits sctable="SC_DATA" expcube=/scratch/kocevski/441824/ltcube_585532801_586137601_4FGL_J0806.5+4503_weekly_bin573.fits outfile=/scratch/kocevski/441824/expmap_585532801_586137601_4FGL_J0806.5+4503_weekly_bin573.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/441824/ltcube_585532801_586137601_4FGL_J0806.5+4503_weekly_bin573.fits
.....................!
real 192.43
user 186.69
sys 4.84

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

Setting source of interest to:
4FGL J0806.5+4503 @ 121.628 45.0605

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/441824/ft1_filtered_4FGL_J0806.5+4503_weekly_bin573.fits scfile=/scratch/kocevski/441824/ft2_4FGL_J0806.5+4503_weekly_bin573.fits outfile=/scratch/kocevski/441824/cmap_585532801_586137601_4FGL_J0806.5+4503_weekly_bin573.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=121.628 yref=45.0605 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.19

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/441824/ft1_filtered_4FGL_J0806.5+4503_weekly_bin573.fits scfile=/scratch/kocevski/441824/ft2_4FGL_J0806.5+4503_weekly_bin573.fits outfile=/scratch/kocevski/441824/cmap_HighResolution_585532801_586137601_4FGL_J0806.5+4503_weekly_bin573.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=121.628 yref=45.0605 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.06
user 0.41
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/441824/ft1_filtered_4FGL_J0806.5+4503_weekly_bin573.fits evtable="EVENTS" scfile=/scratch/kocevski/441824/ft2_4FGL_J0806.5+4503_weekly_bin573.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/441824/Model_4FGL_J0806.5+4503_weekly_bin573.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/441824/ft1_filtered_4FGL_J0806.5+4503_weekly_bin573.fits.....................!
real 57.32
user 40.94
sys 1.32

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/441824/ft1_filtered_4FGL_J0806.5+4503_weekly_bin573.fits', '/scratch/kocevski/441824/ft2_4FGL_J0806.5+4503_weekly_bin573.fits', expMap='/scratch/kocevski/441824/expmap_585532801_586137601_4FGL_J0806.5+4503_weekly_bin573.fits', expCube='/scratch/kocevski/441824/ltcube_585532801_586137601_4FGL_J0806.5+4503_weekly_bin573.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/441824/Model_4FGL_J0806.5+4503_weekly_bin573.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0806.5+4503'

4FGL J0806.5+4503
   Spectrum: PowerLaw
282    Prefactor:  6.264e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
283        Index:  2.607e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
284        Scale:  6.910e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/441824/ft1_filtered_4FGL_J0806.5+4503_weekly_bin573.fits
Spacecraft file(s): /scratch/kocevski/441824/ft2_4FGL_J0806.5+4503_weekly_bin573.fits
Exposure map: /scratch/kocevski/441824/expmap_585532801_586137601_4FGL_J0806.5+4503_weekly_bin573.fits
Exposure cube: /scratch/kocevski/441824/ltcube_585532801_586137601_4FGL_J0806.5+4503_weekly_bin573.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/441824/Model_4FGL_J0806.5+4503_weekly_bin573.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) = 3716.0919202

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.7171       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11053E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    49.204       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.704       1.0000         .10000E-03   10000.    
     7 'norm      '    .59035       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    30.607       1.0000         .10000E-03   10000.    
    10 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .13637       1.0000         .10000E-03   10000.    
    14 'norm      '    3.4524       1.0000         .10000E-03   10000.    
    15 'norm      '    3.8904       1.0000         .10000E-03   10000.    
    16 'norm      '    1.5572       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11058E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .25176E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    24.835       1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.6123       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    23.681       1.0000         .10000E-03   10000.    
    24 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .31078E-02   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .73649       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.4196       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6620E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3716.086     FROM MIGRAD    STATUS=CONVERGED    753 CALLS     3751 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.7167        13.975        .37243E-05    .76883E-04
   2  Prefactor     .10000E-03    11.457       -.41909E-06** at limit **
   3  Prefactor     .10000E-03    63.819       -.20197E-05** at limit **
   4  norm          49.207        42.599       -.23405E-06   -.71120E-05
   5  Prefactor     .10000E-03    53.475        .16475E-06** at limit **
   6  Prefactor     11.565        91.350       -.12079E-05   -.25891E-04
   7  norm          .59060        .70505       -.11283E-06   -.20336E-03
   8  Prefactor     .10000E-03    7.5639       -.53493E-06** at limit **
   9  Prefactor     30.633        45.971       -.25810E-06   -.16162E-04
  10  norm          .10000E-03    2.2928       -.10248E-06** at limit **
  11  Prefactor     .10000E-03    22.001        .95981E-06** at limit **
  12  Prefactor     .10000E-03    56.553        .27465E-06** at limit **
  13  Prefactor     .10562E-03    11.093        .95718E-06** at limit **
  14  norm          3.4509        4.6337        .20627E-06    .18534E-04
  15  norm          3.8900        2.8644       -.13810E-07   -.35994E-06
  16  norm          1.5598        1.0576       -.97727E-07   -.98807E-03
  17  Prefactor     .10000E-03    30.459        .40904E-06** at limit **
  18  Prefactor     .10000E-03    5.4467        .27172E-06** at limit **
  19  Prefactor     .10027E-03    4.1148        .10162E-05** at limit **
  20  Prefactor     24.832        44.548        .75029E-07   -.79257E-04
  21  Prefactor     8.6114        11.020        .41134E-07   -.57311E-04
  22  Prefactor     .10000E-03    3.5959        .12541E-06** at limit **
  23  norm          23.673        9.7687        .76265E-07   -.12684E-03
  24  norm          .10000E-03    3.2858       -.84990E-07** at limit **
  25  Prefactor     .10000E-03    1.8395        .58068E-07** at limit **
  26  Prefactor     .10000E-03    13.992        .60085E-06** at limit **
  27  Prefactor     .10000E-03    28.851       -.14312E-06** at limit **
  28  Normalizat    .73712        .28796       -.33982E-05   -.18013E-03
  29  Prefactor     1.4194        .23863        .12638E-05   -.30030E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.71667
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 49.2067
  Prefactor  = 0.0001
  Prefactor  = 11.5652
  norm       = 0.590596
  Prefactor  = 0.0001
  Prefactor  = 30.6332
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000105615
  norm       = 3.45087
  norm       = 3.88998
  norm       = 1.55977
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100268
  Prefactor  = 24.8322
  Prefactor  = 8.61139
  Prefactor  = 0.0001
  norm       = 23.6731
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 0.737124
  Prefactor  = 1.41936
 **********
 **   18 **HESSE 
 **********

 FCN=   3716.086     FROM HESSE     STATUS=OK           561 CALLS     4312 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.7167        14.003        .83994E-03   -1.5230    
   2  Prefactor     .10000E-03    11.470        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    64.068        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          49.207        42.608        .57168E-04   -1.4304    
   5  Prefactor     .10000E-03    53.605        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     11.565        91.876        .11710E-03   -1.5028    
   7  norm          .59060        .66912        .54169E-03   -1.5554    
   8  Prefactor     .10000E-03    7.5620        .16364E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     30.633        45.929        .72422E-04   -1.4600    
  10  norm          .10000E-03    2.3079        .90096E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    22.228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    56.595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10562E-03    26.157        .55956E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.4509        4.6129        .13998E-03   -1.5336    
  15  norm          3.8900        2.8578        .81289E-04   -1.5313    
  16  norm          1.5598        1.0694        .48067E-04   -1.5458    
  17  Prefactor     .10000E-03    30.581        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.6364        .27784E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10027E-03    47.637        .22014E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     24.832        44.228        .80381E-04   -1.4711    
  21  Prefactor     8.6114        11.005        .13659E-03   -1.5121    
  22  Prefactor     .10000E-03    3.6208        .11290E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          23.673        9.7712        .82314E-04   -1.4734    
  24  norm          .10000E-03    3.3174        .10781E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    1.9130        .16130E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    71.520        .43743E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    28.876        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .73712        .31883        .35177E-03   -1.0245    
  29  Prefactor     1.4194        .26994        .22536E-03   -.79824    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.717e-09
Minuit parameter uncertainties:
  1  14.0113
  2  1.31104e-05
  3  0.000106096
  4  42.6342
  5  3.251e-05
  6  65.3322
  7  0.669129
  8  6.59862e-06
  9  45.9821
  10  6.34728e-07
  11  4.25982e-05
  12  2.8832e-05
  13  0.0242497
  14  4.61337
  15  2.85788
  16  1.06946
  17  5.58123e-05
  18  1.61937e-05
  19  0.00714598
  20  44.2864
  21  11.0079
  22  5.39681e-06
  23  9.77184
  24  2.09798e-06
  25  5.55237e-06
  26  0.000404796
  27  5.76828e-05
  28  0.319639
  29  0.270208
Done.

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

Extracting fit parameters...

4FGL J0806.5+4503
   Spectrum: PowerLaw
282    Prefactor:  1.000e-04  2.883e-05  1.000e-04  1.000e+04 ( 1.000e-13)
283        Index:  2.607e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
284        Scale:  6.910e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
659    Prefactor:  1.419e+00  2.702e-01  0.000e+00  1.000e+01 ( 1.000e+00)
660        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
661        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
658   Normalization:  7.371e-01  3.196e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 121.628 45.060
Photon Flux Upper Limit: 1.75e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.37e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/441824/likelihoodResults_585532801_586137601_4FGL_J0806.5+4503_weekly_bin573.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): 102
logL (Free Index) = 3716.08633062
delta logL = -8.40302714096e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3716.0862473
delta logL = -7.07423168933e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10354E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.1497       1.0000          .0000       10.000    
     3 'Normalizat'    .73712       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4194       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6620E+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=   3716.086     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      285 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11112E-03    41.379        .18142E-01** at limit **
   2  Index         2.9486        6.1104        .50000        .67438E-05
   3  Normalizat    .73713        .68891E-02    .35177E-03   -.27794E-05
   4  Prefactor     1.4194        .59471E-02    .22535E-03   -.10670E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000111124
  Index      = 2.94861
  Normalizat = 0.737125
  Prefactor  = 1.41936
 **********
 **   18 **HESSE 
 **********

 FCN=   3716.086     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      314 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11112E-03    270.44        .36285E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.9486        7.3024        .50000       -.42276    
   3  Normalizat    .73713        .17735E-01    .14071E-04   -1.0245    
   4  Prefactor     1.4194        .15310E-01    .90142E-05   -.79824    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.73713e-08
Minuit parameter uncertainties:
  1  0.110196
  2  826.481
  3  0.0177355
  4  0.0153103
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/441824': 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): 102
logL (Free Index) = 3716.08624706
delta logL = -4.70286977361e-07

Extracting fit parameters...

4FGL J0806.5+4503
   Spectrum: PowerLaw
282    Prefactor:  1.111e-04  1.102e-01  1.000e-04  1.000e+04 ( 1.000e-13)
283        Index:  2.949e+00  8.265e+02  0.000e+00  1.000e+01 (-1.000e+00)
284        Scale:  6.910e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
659    Prefactor:  1.419e+00  1.531e-02  0.000e+00  1.000e+01 ( 1.000e+00)
660        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
661        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
658   Normalization:  7.371e-01  1.774e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 121.628 45.060

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/441824/cmap_HighResolution_585532801_586137601_4FGL_J0806.5+4503_weekly_bin573.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.37e-02', job_status='DONE', photon_flux_upper_limit='1.75e-07', time_completed='2021-07-12 00:21:22.544484', job_id='441824', GAL2='1.42', fit_tolerance='1e-08', EG2='0.74', EG='0.74', time_epoch_completed='1626074482.54', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.42', dlogl='-4.70e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='573' AND source_name='4FGL J0806.5+4503' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Mon Jul 12 00:21:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0072>
Subject: Job 441824: <4FGL_J0806.5+4503_weekly_bin573> in cluster <slac> Done

Job <4FGL_J0806.5+4503_weekly_bin573> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Jul 12 00:08:24 2021
Job was executed on host(s) <bullet0072>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jul 12 00:08: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 00:08:31 2021
Terminated at Mon Jul 12 00:21:30 2021
Results reported at Mon Jul 12 00:21:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0806.5+4503_weekly_bin573 121.628 45.0605 585532801 586137601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0806.5+4503 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   724.11 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             315.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   779 sec.
    Turnaround time :                            786 sec.

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

