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


Performing analysis on: 4FGL_J0805.1+7744_weekly_bin367
RA = 121.289, Dec = 77.7441
tmin = 460944001, tmax = 461548801
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='404895', job_status='RUN', time_executed='2021-07-12 04:11:21.565503', time_epoch_executed='1626088281.57' WHERE source_name='4FGL J0805.1+7744' and cadence='weekly' and bin_id='367'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/404895

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/404895/ft1_4FGL_J0805.1+7744_weekly_bin367.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/404895/ft2_4FGL_J0805.1+7744_weekly_bin367.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/404895/ft1_4FGL_J0805.1+7744_weekly_bin367.fits outfile=/scratch/kocevski/404895/ft1_filteredMKT_4FGL_J0805.1+7744_weekly_bin367.fits ra=121.289 dec=77.7441 rad=12.0 tmin=460944001.0 tmax=461548801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 7.49
user 6.98
sys 0.36

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/404895/ft2_4FGL_J0805.1+7744_weekly_bin367.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/404895/ft2_4FGL_J0805.1+7744_weekly_bin367.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/404895/ft1_filteredMKT_4FGL_J0805.1+7744_weekly_bin367.fits evtable="EVENTS" outfile="/scratch/kocevski/404895/ft1_filtered_4FGL_J0805.1+7744_weekly_bin367.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.36
sys 0.25

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/404895/ft1_filtered_4FGL_J0805.1+7744_weekly_bin367.fits" evtable="EVENTS" scfile=/scratch/kocevski/404895/ft2_4FGL_J0805.1+7744_weekly_bin367.fits sctable="SC_DATA" outfile=/scratch/kocevski/404895/ltcube_460944001_461548801_4FGL_J0805.1+7744_weekly_bin367.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/404895/ft2_4FGL_J0805.1+7744_weekly_bin367.fits
.....................!
real 29.69
user 29.04
sys 0.44

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/404895/ft1_filtered_4FGL_J0805.1+7744_weekly_bin367.fits evtable="EVENTS" scfile=/scratch/kocevski/404895/ft2_4FGL_J0805.1+7744_weekly_bin367.fits sctable="SC_DATA" expcube=/scratch/kocevski/404895/ltcube_460944001_461548801_4FGL_J0805.1+7744_weekly_bin367.fits outfile=/scratch/kocevski/404895/expmap_460944001_461548801_4FGL_J0805.1+7744_weekly_bin367.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/404895/ltcube_460944001_461548801_4FGL_J0805.1+7744_weekly_bin367.fits
.....................!
real 192.45
user 186.67
sys 5.25

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 217 point sources and 0 extended sources

Setting source of interest to:
4FGL J0805.1+7744 @ 121.289 77.7441

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/404895/ft1_filtered_4FGL_J0805.1+7744_weekly_bin367.fits scfile=/scratch/kocevski/404895/ft2_4FGL_J0805.1+7744_weekly_bin367.fits outfile=/scratch/kocevski/404895/cmap_460944001_461548801_4FGL_J0805.1+7744_weekly_bin367.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.289 yref=77.7441 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.66
user 0.40
sys 0.24

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/404895/ft1_filtered_4FGL_J0805.1+7744_weekly_bin367.fits scfile=/scratch/kocevski/404895/ft2_4FGL_J0805.1+7744_weekly_bin367.fits outfile=/scratch/kocevski/404895/cmap_HighResolution_460944001_461548801_4FGL_J0805.1+7744_weekly_bin367.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.289 yref=77.7441 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.67
user 0.42
sys 0.24

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/404895/ft1_filtered_4FGL_J0805.1+7744_weekly_bin367.fits evtable="EVENTS" scfile=/scratch/kocevski/404895/ft2_4FGL_J0805.1+7744_weekly_bin367.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/404895/Model_4FGL_J0805.1+7744_weekly_bin367.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/404895/ft1_filtered_4FGL_J0805.1+7744_weekly_bin367.fits....................!
real 268.02
user 266.02
sys 1.29

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/404895/ft1_filtered_4FGL_J0805.1+7744_weekly_bin367.fits', '/scratch/kocevski/404895/ft2_4FGL_J0805.1+7744_weekly_bin367.fits', expMap='/scratch/kocevski/404895/expmap_460944001_461548801_4FGL_J0805.1+7744_weekly_bin367.fits', expCube='/scratch/kocevski/404895/ltcube_460944001_461548801_4FGL_J0805.1+7744_weekly_bin367.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/404895/Model_4FGL_J0805.1+7744_weekly_bin367.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0805.1+7744'

4FGL J0805.1+7744
   Spectrum: PowerLaw
293    Prefactor:  7.928e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
294        Index:  2.717e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
295        Scale:  6.677e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/404895/ft1_filtered_4FGL_J0805.1+7744_weekly_bin367.fits
Spacecraft file(s): /scratch/kocevski/404895/ft2_4FGL_J0805.1+7744_weekly_bin367.fits
Exposure map: /scratch/kocevski/404895/expmap_460944001_461548801_4FGL_J0805.1+7744_weekly_bin367.fits
Exposure cube: /scratch/kocevski/404895/ltcube_460944001_461548801_4FGL_J0805.1+7744_weekly_bin367.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/404895/Model_4FGL_J0805.1+7744_weekly_bin367.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) = 23588.4968703

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.2169       1.0000         .10000E-03   10000.    
     3 'Prefactor '    24.286       1.0000         .10000E-03   10000.    
     4 'norm      '    2.9397       1.0000         .10000E-03   10000.    
     5 'norm      '    2.2493       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    7.5087       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .33814E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.1698       1.0000         .10000E-03   10000.    
    10 'norm      '    9.8297       1.0000         .10000E-03   10000.    
    11 'Prefactor '    28.631       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.5901       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.6353       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12649E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    57.201       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.6629       1.0000         .10000E-03   10000.    
    18 'norm      '    2.5412       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.8441       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.9294       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .23894       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0323       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0277       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7030E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   23588.46     FROM MIGRAD    STATUS=CONVERGED    596 CALLS     3051 TOTAL
                     EDM=   .88E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.8868       -.18834E-06** at limit **
   2  Prefactor     9.2168        15.945        .58502E-07    .12809E-03
   3  Prefactor     24.283        17.268       -.15225E-06    .23007E-03
   4  norm          2.9392        8.4222       -.71131E-07    .18314E-03
   5  norm          2.2493        .45089        .51799E-08    .35000E-03
   6  Prefactor     .10000E-03    11.461       -.32760E-07** at limit **
   7  norm          7.5077        11.206        .35946E-08    .74185E-04
   8  Prefactor     .10003E-03    173.63        .33338E-04** at limit **
   9  Prefactor     2.1698        1.4728        .35264E-08   -.10897E-03
  10  norm          9.8297        2.1179       -.32871E-07    .26623E-03
  11  Prefactor     28.630        18.076       -.63590E-07    .93897E-04
  12  Prefactor     1.5899        3.7305       -.23806E-06    .60165E-05
  13  Prefactor     5.6353        5.4850       -.49799E-07    .66149E-05
  14  Prefactor     .10000E-03    7.0845       -.22653E-05** at limit **
  15  Prefactor     .10000E-03    4.3131       -.74554E-06** at limit **
  16  Prefactor     57.236        21.280        .19479E-06    .82273E-03
  17  Prefactor     1.5488        167.30        .51887E-06    .37029E-04
  18  norm          2.5402        3.5805       -.16174E-05    .12311E-02
  19  Prefactor     3.8508        2.9544       -.65162E-06   -.12626E-03
  20  norm          .10000E-03    .20363       -.16440E-06** at limit **
  21  Prefactor     3.9305        7.2643        .24163E-05    .82746E-03
  22  Prefactor     .10000E-03    2.9856       -.62281E-06** at limit **
  23  norm          .23793        .92203        .13005E-05    .67338E-03
  24  Normalizat    1.0323        .11385        .10241E-05    .65262E-03
  25  Prefactor     1.0277        .63199E-01   -.19646E-06    .17419E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 9.21682
  Prefactor  = 24.2834
  norm       = 2.93919
  norm       = 2.24931
  Prefactor  = 0.0001
  norm       = 7.50774
  Prefactor  = 0.000100031
  Prefactor  = 2.16977
  norm       = 9.8297
  Prefactor  = 28.6304
  Prefactor  = 1.58991
  Prefactor  = 5.63531
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 57.2356
  Prefactor  = 1.54878
  norm       = 2.54018
  Prefactor  = 3.8508
  norm       = 0.0001
  Prefactor  = 3.9305
  Prefactor  = 0.0001
  norm       = 0.237931
  Normalizat = 1.03229
  Prefactor  = 1.02773
 **********
 **   18 **HESSE 
 **********

 FCN=   23588.46     FROM HESSE     STATUS=OK           445 CALLS     3496 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.9009        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     9.2168        15.849        .13201E-03   -1.5101    
   3  Prefactor     24.283        17.183        .81284E-04   -1.4722    
   4  norm          2.9392        8.4335        .11845E-02   -1.5365    
   5  norm          2.2493        .45050        .44310E-04   -1.5408    
   6  Prefactor     .10000E-03    11.528        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          7.5077        11.187        .14636E-03   -1.5160    
   8  Prefactor     .10003E-03    10.405        .13418       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.1698        1.4791        .14933E-03   -1.5413    
  10  norm          9.8297        2.1262        .43638E-03   -1.5081    
  11  Prefactor     28.630        18.137        .74873E-04   -1.4637    
  12  Prefactor     1.5899        3.7118        .33651E-03   -1.5456    
  13  Prefactor     5.6353        5.4902        .16922E-03   -1.5233    
  14  Prefactor     .10000E-03    6.9303        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.4583        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     57.236        21.267        .53042E-04   -1.4193    
  17  Prefactor     1.5488        169.55        .32710E-03   -1.5459    
  18  norm          2.5402        3.6328        .11511E-02   -1.5389    
  19  Prefactor     3.8508        2.9709        .94203E-03   -1.5315    
  20  norm          .10000E-03    .20348        .18142E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.9305        7.2700        .10176E-02   -1.5311    
  22  Prefactor     .10000E-03    3.0338        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .23793        3.8235        .24931E-02   -1.5610    
  24  Normalizat    1.0323        .12870        .31635E-03   -.91956    
  25  Prefactor     1.0277        .71524E-01    .18920E-03   -.91811    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.89903e-09
Minuit parameter uncertainties:
  1  3.75786e-06
  2  15.8563
  3  17.1865
  4  8.4369
  5  0.450506
  6  3.38307e-06
  7  11.1902
  8  0.00112766
  9  1.47916
  10  2.1262
  11  18.1408
  12  3.71238
  13  5.49072
  14  0.000102408
  15  5.65247e-05
  16  21.2697
  17  32.5031
  18  3.63316
  19  2.971
  20  2.84246e-07
  21  7.27165
  22  3.40747e-05
  23  1.90735
  24  0.128736
  25  0.0715309
Done.

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

Extracting fit parameters...

4FGL J0805.1+7744
   Spectrum: PowerLaw
293    Prefactor:  1.000e-04  1.128e-03  1.000e-04  1.000e+04 ( 1.000e-13)
294        Index:  2.717e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
295        Scale:  6.677e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
700    Prefactor:  1.028e+00  7.153e-02  0.000e+00  1.000e+01 ( 1.000e+00)
701        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
702        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
699   Normalization:  1.032e+00  1.287e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 121.289 77.744
Photon Flux Upper Limit: 4.26e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.36e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/404895/likelihoodResults_460944001_461548801_4FGL_J0805.1+7744_weekly_bin367.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) = 23588.4592929
delta logL = -2.65902599494e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 23588.4592929
delta logL = -2.6586909371e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96367E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7170       1.0000          .0000       10.000    
     3 'Normalizat'    1.0323       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0277       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7030E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   23588.46     FROM MIGRAD    STATUS=CONVERGED     74 CALLS      258 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10525E-03    .17920        .12548    ** at limit **
   2  Index         2.8802        6.4399        .50000       -.56335E-05
   3  Normalizat    1.0323        .42558E-03    .71496E-01    .11947E-02
   4  Prefactor     1.0277        .25528E-03    .41442E-01    .11114E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000105254
  Index      = 2.88018
  Normalizat = 1.03229
  Prefactor  = 1.02773
 **********
 **   18 **HESSE 
 **********

 FCN=   23588.46     FROM HESSE     STATUS=NOT POSDEF    41 CALLS      299 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10525E-03    .19014        .12216       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8802        6.4310        .50000       -.43782    
   3  Normalizat    1.0323        .42902E-03    .31635E-03   -.91956    
   4  Prefactor     1.0277        .25771E-03    .18920E-03   -.91811    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.73367e-09
Minuit parameter uncertainties:
  1  0.00199892
  2  33.9692
  3  0.000429023
  4  0.000257707
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/404895': 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) = 23588.4592661
delta logL = 2.45447154157e-07

Extracting fit parameters...

4FGL J0805.1+7744
   Spectrum: PowerLaw
293    Prefactor:  1.053e-04  1.999e-03  1.000e-04  1.000e+04 ( 1.000e-13)
294        Index:  2.880e+00  3.397e+01  0.000e+00  1.000e+01 (-1.000e+00)
295        Scale:  6.677e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
700    Prefactor:  1.028e+00  2.577e-04  0.000e+00  1.000e+01 ( 1.000e+00)
701        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
702        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
699   Normalization:  1.032e+00  4.290e-04  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 121.289 77.744

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/404895/cmap_HighResolution_460944001_461548801_4FGL_J0805.1+7744_weekly_bin367.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.36e-03', job_status='DONE', photon_flux_upper_limit='4.26e-08', time_completed='2021-07-12 04:53:30.497716', job_id='404895', GAL2='1.03', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1626090810.5', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='2.45e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.72' WHERE bin_id='367' AND source_name='4FGL J0805.1+7744' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Mon Jul 12 04:53:30 PDT 2021

er <slac> at Sun Jul 11 21:56:59 2021
Job was executed on host(s) <bullet0194>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jul 11 22:21:28 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jul 11 22:21:28 2021
Terminated at Sun Jul 11 23:04:55 2021
Results reported at Sun Jul 11 23:04:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0805.1+7744_weekly_bin367 121.289 77.7441 460944001 461548801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0805.1+7744 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   2465.00 sec.
    Max Memory :                                 622 MB
    Average Memory :                             342.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2606 sec.
    Turnaround time :                            4076 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0288>
Subject: Job 404895: <4FGL_J0805.1+7744_weekly_bin367> in cluster <slac> Done

Job <4FGL_J0805.1+7744_weekly_bin367> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Sun Jul 11 21:56:16 2021
Job was executed on host(s) <bullet0288>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jul 11 22:18:13 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jul 11 22:18:13 2021
Terminated at Mon Jul 12 04:53:31 2021
Results reported at Mon Jul 12 04:53:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0805.1+7744_weekly_bin367 121.289 77.7441 460944001 461548801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0805.1+7744 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   2538.00 sec.
    Max Memory :                                 1096 MB
    Average Memory :                             82.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   23717 sec.
    Turnaround time :                            25035 sec.

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

