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


Performing analysis on: 4FGL_J0805.1+7744_weekly_bin517
RA = 121.289, Dec = 77.7441
tmin = 551664001, tmax = 552268801
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='412765', job_status='RUN', time_executed='2021-07-11 22:26:34.630135', time_epoch_executed='1626067594.63' WHERE source_name='4FGL J0805.1+7744' and cadence='weekly' and bin_id='517'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/412765

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/412765/ft1_4FGL_J0805.1+7744_weekly_bin517.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/412765/ft2_4FGL_J0805.1+7744_weekly_bin517.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/412765/ft1_4FGL_J0805.1+7744_weekly_bin517.fits outfile=/scratch/kocevski/412765/ft1_filteredMKT_4FGL_J0805.1+7744_weekly_bin517.fits ra=121.289 dec=77.7441 rad=12.0 tmin=551664001.0 tmax=552268801.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 8.77
user 7.80
sys 0.31

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/412765/ft2_4FGL_J0805.1+7744_weekly_bin517.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/412765/ft1_filteredMKT_4FGL_J0805.1+7744_weekly_bin517.fits evtable="EVENTS" outfile="/scratch/kocevski/412765/ft1_filtered_4FGL_J0805.1+7744_weekly_bin517.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 1.30
user 0.39
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/412765/ft1_filtered_4FGL_J0805.1+7744_weekly_bin517.fits" evtable="EVENTS" scfile=/scratch/kocevski/412765/ft2_4FGL_J0805.1+7744_weekly_bin517.fits sctable="SC_DATA" outfile=/scratch/kocevski/412765/ltcube_551664001_552268801_4FGL_J0805.1+7744_weekly_bin517.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/412765/ft2_4FGL_J0805.1+7744_weekly_bin517.fits
.....................!
real 31.57
user 30.03
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/412765/ft1_filtered_4FGL_J0805.1+7744_weekly_bin517.fits evtable="EVENTS" scfile=/scratch/kocevski/412765/ft2_4FGL_J0805.1+7744_weekly_bin517.fits sctable="SC_DATA" expcube=/scratch/kocevski/412765/ltcube_551664001_552268801_4FGL_J0805.1+7744_weekly_bin517.fits outfile=/scratch/kocevski/412765/expmap_551664001_552268801_4FGL_J0805.1+7744_weekly_bin517.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/412765/ltcube_551664001_552268801_4FGL_J0805.1+7744_weekly_bin517.fits
.....................!
real 196.53
user 187.37
sys 5.62

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/412765/ft1_filtered_4FGL_J0805.1+7744_weekly_bin517.fits scfile=/scratch/kocevski/412765/ft2_4FGL_J0805.1+7744_weekly_bin517.fits outfile=/scratch/kocevski/412765/cmap_551664001_552268801_4FGL_J0805.1+7744_weekly_bin517.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.62
user 0.41
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/412765/ft1_filtered_4FGL_J0805.1+7744_weekly_bin517.fits scfile=/scratch/kocevski/412765/ft2_4FGL_J0805.1+7744_weekly_bin517.fits outfile=/scratch/kocevski/412765/cmap_HighResolution_551664001_552268801_4FGL_J0805.1+7744_weekly_bin517.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.60
user 0.43
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/412765/ft1_filtered_4FGL_J0805.1+7744_weekly_bin517.fits', '/scratch/kocevski/412765/ft2_4FGL_J0805.1+7744_weekly_bin517.fits', expMap='/scratch/kocevski/412765/expmap_551664001_552268801_4FGL_J0805.1+7744_weekly_bin517.fits', expCube='/scratch/kocevski/412765/ltcube_551664001_552268801_4FGL_J0805.1+7744_weekly_bin517.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/412765/Model_4FGL_J0805.1+7744_weekly_bin517.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/412765/ft1_filtered_4FGL_J0805.1+7744_weekly_bin517.fits
Spacecraft file(s): /scratch/kocevski/412765/ft2_4FGL_J0805.1+7744_weekly_bin517.fits
Exposure map: /scratch/kocevski/412765/expmap_551664001_552268801_4FGL_J0805.1+7744_weekly_bin517.fits
Exposure cube: /scratch/kocevski/412765/ltcube_551664001_552268801_4FGL_J0805.1+7744_weekly_bin517.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/412765/Model_4FGL_J0805.1+7744_weekly_bin517.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) = 7.57422279101

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11524E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .40117E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .34435E-02   1.0000         .10000E-03   10000.    
     4 'norm      '    .10578E-02   1.0000         .10000E-03   10000.    
     5 'norm      '    .12409E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .13433E-01   1.0000         .10000E-03   10000.    
     7 'norm      '    .10551E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .56394E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .14297E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .17715       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.2499       1.0000         .10000E-03   10000.    
    12 'Prefactor '    740.21       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.2298       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.9091       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .26686E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.9317       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.8055       1.0000         .10000E-03   10000.    
    18 'norm      '    .23758E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.2744       1.0000         .10000E-03   10000.    
    20 'norm      '    6.7176       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .16249E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .26232E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    25 'Prefactor '    .25398E-08   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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7.489865     FROM MIGRAD    STATUS=FAILED      1272 CALLS     3465 TOTAL
                     EDM=   .13E-02    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    327.54        .50483E-03** at limit **
   2  Prefactor     .11515E-03    1039.3        .91057E-03** at limit **
   3  Prefactor     .95116E-03    1125.7        .94916E-03** at limit **
   4  norm          .15717E-02    1070.3        .92454E-03** at limit **
   5  norm          .10000E-03    42.127        .18018E-03** at limit **
   6  Prefactor     .19110E-03    6447.5        .15763E-02** at limit **
   7  norm          .11310E-02    1490.6        .10996E-02** at limit **
   8  Prefactor     .31425E-02    1714.8        .11844E-02    .15130E-02
   9  Prefactor     .10005E-03    392.55        .55327E-03** at limit **
  10  norm          .63403E-03    9624.2        .19746E-02** at limit **
  11  Prefactor     .51280        8447.3        .11233E-02   -.21153E-03
  12  Prefactor     679.33        731.83        .76393E-03   -.16755E-01
  13  Prefactor     9989.6        5216.4        .11270E-01    .16537E-04
  14  Prefactor     9879.1        7371.3        .71287E-02   -.11613E-02
  15  Prefactor     .10548E-03    831.98        .81125E-03** at limit **
  16  Prefactor     9567.0        8696.3        .71185E-02    .81523E-03
  17  Prefactor     8484.5        5046.1        .91761E-02   -.57358E-03
  18  norm          .10000E-03    458.04        .59821E-03** at limit **
  19  Prefactor     9990.7        5444.0        .19687E-01   -.35612E-03
  20  norm         10000.0        5005.5        .77408E-02    .36410E-04
  21  Prefactor     .73414E-03    1036.5        .90903E-03** at limit **
  22  Prefactor     .14024E-03    6232.6        .14404E-02** at limit **
  23  norm          .10001E-03    605.28        .68948E-03** at limit **
  24  Normalizat    .10000E-01    1.5917        .11389E-02** at limit **
  25  Prefactor     .90766E-11    .72078        .75391E-03** at limit **
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7.489865     FROM SIMPLEX   STATUS=UNCHANGED   1142 CALLS     4607 TOTAL
                     EDM=   .20E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    327.54        .30089E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .11515E-03    1039.3        .56241E-03   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .95116E-03    1125.7        .12669E-03   -1.5714    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .15717E-02    1070.3        .53730E-04   -1.5716    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    42.127        .95807E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .19110E-03    6447.5        .20519E-02   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .11310E-02    1490.6        .19518E-03   -1.5714    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .31425E-02    1714.8        .12300E-03   -1.5697    
   9  Prefactor     .10005E-03    392.55        .25690E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .63403E-03    9624.2        .28526E-02   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .51280        8447.3        .51109E-04   -1.5851    
  12  Prefactor     679.33        731.83        .99519E-06   -1.0434    
  13  Prefactor     9989.6        5216.4        .12952E-04    1.6352    
  14  Prefactor     9879.1        7371.3        .75595E-05    1.3504    
  15  Prefactor     .10548E-03    831.98        .27812E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     9567.0        8696.3        .22404E-05    1.9900    
  17  Prefactor     8484.5        5046.1        .79424E-06    .77106    
  18  norm          .10000E-03    458.04        .32905E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9990.7        5444.0        .19791E-05    1.5096    
  20  norm         10000.0        5005.5        .12226E-03    1.5722    
  21  Prefactor     .73414E-03    1036.5        .45303E-04   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .14024E-03    6232.6        .23941E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10001E-03    605.28        .24745E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .10000E-01    1.5917        .15555E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .90766E-11    .72078        .99984E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7.489296     FROM MIGRAD    STATUS=CONVERGED      9 CALLS     4616 TOTAL
                     EDM=   .57E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    327.54        .16601E-07** at limit **
   2  Prefactor     .10000E-03    1039.3        .74853E-06** at limit **
   3  Prefactor     .10000E-03    1125.8        .56088E-05** at limit **
   4  norm          .10000E-03    1070.3        .73747E-05** at limit **
   5  norm          .10000E-03    42.127       -.18987E-08** at limit **
   6  Prefactor     .10000E-03    6447.9       -.18335E-05** at limit **
   7  norm          .10000E-03    1490.7        .61719E-05** at limit **
   8  Prefactor     .10000E-03    1714.8       -.10593E-04** at limit **
   9  Prefactor     .10000E-03    392.55       -.43126E-07** at limit **
  10  norm          .10000E-03    9624.8       -.43486E-05** at limit **
  11  Prefactor     .10006E-03    8414.7        .13603E-03** at limit **
  12  Prefactor     682.59        737.09        .41041E-04    .74956E-05
  13  Prefactor    10000.0        5156.5       -.72974E-03** at limit **
  14  Prefactor    10000.0        6861.1        .14367E-02** at limit **
  15  Prefactor     .10000E-03    831.98        .68396E-06** at limit **
  16  Prefactor    10000.0        9336.3        .24300E-02** at limit **
  17  Prefactor    10000.0        8508.9        .22118E-02** at limit **
  18  norm          .10000E-03    458.04        .84435E-07** at limit **
  19  Prefactor    10000.0        5383.9        .66910E-03** at limit **
  20  norm         10000.0        5005.2       -.22908E-04** at limit **
  21  Prefactor     .10000E-03    1036.4       -.44887E-05** at limit **
  22  Prefactor     .10000E-03    6232.3        .15698E-05** at limit **
  23  norm          .10000E-03    605.28        .34513E-07** at limit **
  24  Normalizat    .10000E-01    1.5917        .26535E-06** at limit **
  25  Prefactor      .0000        .72078        .57317E-07** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100062
  Prefactor  = 682.594
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 0.0001
  Prefactor  = 10000
  norm       = 10000
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.01
  Prefactor  = 0
 **********
 **   18 **HESSE 
 **********

 FCN=   7.489296     FROM HESSE     STATUS=OK           405 CALLS     5021 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    327.54        .10097E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1039.3        .18211E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1125.7        .18983E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1070.3        .18491E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    42.127        .36035E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6447.9        .31525E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1490.6        .21992E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1714.8        .23688E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    392.55        .11065E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    9624.5        .39491E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10006E-03    8411.1        .22466E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     682.59        734.07        .15279E-03   -1.0421    
  13  Prefactor    10000.0        5091.2        .22540E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor    10000.0        6533.9        .14257E-02    1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    830.41        .16225E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor    10000.0        9795.3        .14237E-01    1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor    10000.0        9072.1        .18352E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    457.71        .11964E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor    10000.0        5391.6        .39375E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm         10000.0        5003.0        .15482E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    1035.5        .18181E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    6230.3        .28809E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    605.01        .13790E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .10000E-01    1.5906        .22778E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor      .0000        .72037        .15078E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00207e-10
Minuit parameter uncertainties:
  1  9.65498e-07
  2  8.62591e-05
  3  0.000674073
  4  0.000863574
  5  4.51308e-08
  6  0.000366855
  7  0.00085992
  8  0.00159436
  9  3.12777e-06
  10  0.00211385
  11  0.204091
  12  744.854
  13  3.29767
  14  4.42839
  15  2.00343e-06
  16  21.2163
  17  1.47346
  18  1.1206e-05
  19  0.780707
  20  0.00961942
  21  0.000650069
  22  9.62019e-05
  23  1.18832e-05
  24  2.13423e-08
  25  1.69376e-08
Done.

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

Extracting fit parameters...

4FGL J0805.1+7744
   Spectrum: PowerLaw
293    Prefactor:  1.000e-04  1.594e-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:  0.000e+00  1.694e-08  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.000e-02  2.134e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 121.289 77.744
Photon Flux Upper Limit: 8.13e-06 ph cm-2 s-1
Energy Flux Upper Limit: 6.40e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/412765/likelihoodResults_551664001_552268801_4FGL_J0805.1+7744_weekly_bin517.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) = 7.48929930614
delta logL = -3.43624185906e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7.48929871346
delta logL = -2.84356555547e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96236E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7170       1.0000          .0000       10.000    
     3 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77072E-08   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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7.489296     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      217 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10029E-03    1597.9        .11785E-01** at limit **
   2  Index         3.3320        7.3749        .50000        .34105E-06
   3  Normalizat    .10000E-01    .64173E-02    .11331E-02** at limit **
   4  Prefactor     .10547E-12    .28157E-02    .75008E-03** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100295
  Index      = 3.33198
  Normalizat = 0.01
  Prefactor  = 1.05471e-13
 **********
 **   18 **HESSE 
 **********

 FCN=   7.489296     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      246 TOTAL
                     EDM=   .24E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10029E-03    9975.6        .82295E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.3320        6.5781        .50000       -.34012    
   3  Normalizat    .10000E-01    .89450E-01    .22662E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10547E-12    .39309E-01    .15002E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.43831e-07
Minuit parameter uncertainties:
  1  0.162964
  2  8089.77
  3  7.70051e-06
  4  1.28737e-07
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/412765': 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) = 7.48929589893
delta logL = -2.90377011325e-08

Extracting fit parameters...

4FGL J0805.1+7744
   Spectrum: PowerLaw
293    Prefactor:  1.003e-04  1.630e-01  1.000e-04  1.000e+04 ( 1.000e-13)
294        Index:  3.332e+00  8.090e+03  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.055e-13  1.287e-07  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.000e-02  7.701e-06  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/412765/cmap_HighResolution_551664001_552268801_4FGL_J0805.1+7744_weekly_bin517.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.40e-01', job_status='DONE', photon_flux_upper_limit='8.13e-06', time_completed='2021-07-11 22:34:08.680384', job_id='412765', GAL2='0.00', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1626068048.68', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.00', dlogl='-2.90e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.72' WHERE bin_id='517' AND source_name='4FGL J0805.1+7744' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sun Jul 11 22:34:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 412765: <4FGL_J0805.1+7744_weekly_bin517> in cluster <slac> Done

Job <4FGL_J0805.1+7744_weekly_bin517> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sun Jul 11 22:25:31 2021
Job was executed on host(s) <bullet0213>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jul 11 22:26:16 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:26:16 2021
Terminated at Sun Jul 11 22:34:09 2021
Results reported at Sun Jul 11 22:34:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0805.1+7744_weekly_bin517 121.289 77.7441 551664001 552268801 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 :                                   394.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             383.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   475 sec.
    Turnaround time :                            518 sec.

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

