aklog: Couldn't determine realm of user:aklog: No credentials cache found  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 236 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J0809.5+5341_daily_bin1745
RA = 122.379, Dec = 53.6876
tmin = 691632001, tmax = 691891201
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='641550', job_status='RUN', time_executed='2022-12-05 00:24:21.142093', time_epoch_executed='1670228661.14' WHERE source_name='4FGL J0809.5+5341' and cadence='daily' and bin_id='1745'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/641550

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/641550/ft1_4FGL_J0809.5+5341_daily_bin1745.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/641550/ft2_4FGL_J0809.5+5341_daily_bin1745.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/641550/ft1_4FGL_J0809.5+5341_daily_bin1745.fits outfile=/scratch/kocevski/641550/ft1_filteredMKT_4FGL_J0809.5+5341_daily_bin1745.fits ra=122.379 dec=53.6876 rad=12.0 tmin=691632001.0 tmax=691891201.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 2.35
user 2.14
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/641550/ft2_4FGL_J0809.5+5341_daily_bin1745.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/641550/ft2_4FGL_J0809.5+5341_daily_bin1745.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/641550/ft1_filteredMKT_4FGL_J0809.5+5341_daily_bin1745.fits evtable="EVENTS" outfile="/scratch/kocevski/641550/ft1_filtered_4FGL_J0809.5+5341_daily_bin1745.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.49
user 0.33
sys 0.16

Number of photons that the gtmktime cut: 336

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/641550/ft1_filtered_4FGL_J0809.5+5341_daily_bin1745.fits" evtable="EVENTS" scfile=/scratch/kocevski/641550/ft2_4FGL_J0809.5+5341_daily_bin1745.fits sctable="SC_DATA" outfile=/scratch/kocevski/641550/ltcube_691632001_691891201_4FGL_J0809.5+5341_daily_bin1745.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/641550/ft2_4FGL_J0809.5+5341_daily_bin1745.fits
.....................!
real 12.40
user 12.07
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/641550/ft1_filtered_4FGL_J0809.5+5341_daily_bin1745.fits evtable="EVENTS" scfile=/scratch/kocevski/641550/ft2_4FGL_J0809.5+5341_daily_bin1745.fits sctable="SC_DATA" expcube=/scratch/kocevski/641550/ltcube_691632001_691891201_4FGL_J0809.5+5341_daily_bin1745.fits outfile=/scratch/kocevski/641550/expmap_691632001_691891201_4FGL_J0809.5+5341_daily_bin1745.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/641550/ltcube_691632001_691891201_4FGL_J0809.5+5341_daily_bin1745.fits
.....................!
real 191.13
user 185.80
sys 4.95

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

Setting source of interest to:
4FGL J0809.5+5341 @ 122.379 53.6876

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/641550/ft1_filtered_4FGL_J0809.5+5341_daily_bin1745.fits scfile=/scratch/kocevski/641550/ft2_4FGL_J0809.5+5341_daily_bin1745.fits outfile=/scratch/kocevski/641550/cmap_691632001_691891201_4FGL_J0809.5+5341_daily_bin1745.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=122.379 yref=53.6876 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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/641550/ft1_filtered_4FGL_J0809.5+5341_daily_bin1745.fits scfile=/scratch/kocevski/641550/ft2_4FGL_J0809.5+5341_daily_bin1745.fits outfile=/scratch/kocevski/641550/cmap_HighResolution_691632001_691891201_4FGL_J0809.5+5341_daily_bin1745.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=122.379 yref=53.6876 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.54
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/641550/ft1_filtered_4FGL_J0809.5+5341_daily_bin1745.fits evtable="EVENTS" scfile=/scratch/kocevski/641550/ft2_4FGL_J0809.5+5341_daily_bin1745.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/641550/Model_4FGL_J0809.5+5341_daily_bin1745.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/641550/ft1_filtered_4FGL_J0809.5+5341_daily_bin1745.fits.....................!
real 45.21
user 43.74
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/641550/ft1_filtered_4FGL_J0809.5+5341_daily_bin1745.fits', '/scratch/kocevski/641550/ft2_4FGL_J0809.5+5341_daily_bin1745.fits', expMap='/scratch/kocevski/641550/expmap_691632001_691891201_4FGL_J0809.5+5341_daily_bin1745.fits', expCube='/scratch/kocevski/641550/ltcube_691632001_691891201_4FGL_J0809.5+5341_daily_bin1745.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/641550/Model_4FGL_J0809.5+5341_daily_bin1745.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0809.5+5341'

4FGL J0809.5+5341
   Spectrum: LogParabola
326         norm:  2.091e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
327        alpha:  2.165e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
328         beta:  1.129e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
329           Eb:  8.538e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/641550/ft1_filtered_4FGL_J0809.5+5341_daily_bin1745.fits
Spacecraft file(s): /scratch/kocevski/641550/ft2_4FGL_J0809.5+5341_daily_bin1745.fits
Exposure map: /scratch/kocevski/641550/expmap_691632001_691891201_4FGL_J0809.5+5341_daily_bin1745.fits
Exposure cube: /scratch/kocevski/641550/ltcube_691632001_691891201_4FGL_J0809.5+5341_daily_bin1745.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/641550/Model_4FGL_J0809.5+5341_daily_bin1745.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) = 3841.21710952

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    21.999       1.0000          .0000       .10000E+07
     2 'norm      '    .15252E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    .53230E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .50225E-01   1.0000          .0000       .10000E+07
     5 'Prefactor '    10.850       1.0000          .0000       .10000E+07
     6 'Prefactor '    .16038E-01   1.0000          .0000       .10000E+07
     7 'norm      '    .35339E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    40.337       1.0000          .0000       .10000E+07
     9 'Prefactor '    .89047E-01   1.0000          .0000       .10000E+07
    10 'norm      '    .52388       1.0000          .0000       .10000E+07
    11 'Prefactor '    .33490E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    .14150E-02   1.0000          .0000       .10000E+07
    13 'norm      '    .21330E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    4.0999       1.0000          .0000       .10000E+07
    15 'Prefactor '    .33773E-06   1.0000          .0000       .10000E+07
    16 'norm      '    .22483E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    2.3441       1.0000          .0000       .10000E+07
    18 'norm      '    .34570E-01   1.0000          .0000       .10000E+07
    19 'norm      '    .43465E-05   1.0000          .0000       .10000E+07
    20 'Prefactor '    .49911E-03   1.0000          .0000       .10000E+07
    21 'Prefactor '    .23445E-04   1.0000          .0000       .10000E+07
    22 'norm      '    1.2929       1.0000          .0000       .10000E+07
    23 'Prefactor '    .94704E-04   1.0000          .0000       .10000E+07
    24 'Prefactor '    .51643E-01   1.0000          .0000       .10000E+07
    25 'Prefactor '    .18387E-02   1.0000          .0000       .10000E+07
    26 'Prefactor '    15.276       1.0000          .0000       .10000E+07
    27 'norm      '    .17475E-02   1.0000          .0000       .10000E+07
    28 'norm      '    .15148E-02   1.0000          .0000       .10000E+07
    29 'Prefactor '    .69022E-03   1.0000          .0000       .10000E+07
    30 'Prefactor '    .47545E-02   1.0000          .0000       .10000E+07
    31 'Normalizat'    1.4349       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .70494       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7300E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3841.190     FROM MIGRAD    STATUS=CONVERGED    236 CALLS     3134 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          21.874        3.2105       -.45013E-07    .26192E-03
   2  norm          .24480E-07    6.6396       -.31582E-06** at limit **
   3  Prefactor     .28672E-06    9.7332        .45706E-06** at limit **
   4  Prefactor     .25955E-05    10.824        .51134E-06** at limit **
   5  Prefactor     12.333        14.227       -.89577E-07    .69580E-01
   6  Prefactor      .0000        23.210       -.22513E-06** at limit **
   7  norm          .67168E-08    4.7287        .51517E-07** at limit **
   8  Prefactor     40.664        2.3566       -.11761E-07    .20407E-01
   9  Prefactor     .16653E-09    33.882       -.62754E-06** at limit **
  10  norm          .51620        1.6557       -.22156E-06    .58584E-03
  11  Prefactor     .33307E-09    4.4111        .83167E-07** at limit **
  12  Prefactor     .30087E-07    8.5235       -.82810E-07** at limit **
  13  norm          .20726E-05    7.1559       -.55567E-07** at limit **
  14  Prefactor     4.5797        5.2667       -.15179E-06   -.47470E-02
  15  Prefactor     .25316E-05    78.766        .12774E-05** at limit **
  16  norm          .88818E-09    1.9860       -.42812E-06** at limit **
  17  Prefactor     .16481E-04    402.19       -.51472E-05** at limit **
  18  norm          .70412E-01    67.045        .20967E-05** at limit **
  19  norm           .0000        1.5713       -.11156E-06** at limit **
  20  Prefactor     .66613E-09    5.9527        .29204E-07** at limit **
  21  Prefactor     .35749E-06    22.629       -.43642E-06** at limit **
  22  norm          1.2940        .90929       -.29442E-07   -.19143E-02
  23  Prefactor      .0000        2.5114       -.23929E-07** at limit **
  24  Prefactor     .55511E-10    29.281       -.35001E-06** at limit **
  25  Prefactor     .30531E-08    4.8167       -.47400E-09** at limit **
  26  Prefactor     15.291        1.9619        .90646E-08   -.15039E-01
  27  norm          .17097E-07    5.1595        .31970E-06** at limit **
  28  norm           .0000        3.6862       -.75065E-07** at limit **
  29  Prefactor     .10547E-08    4.6811       -.76156E-06** at limit **
  30  Prefactor     .32518E-06    10.341       -.40548E-06** at limit **
  31  Normalizat    1.4350        .27934       -.10956E-04   -.60100E-04
  32  Prefactor     .70438        .20492        .21921E-05   -.46831E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 21.8738
  norm       = 2.44804e-08
  Prefactor  = 2.86715e-07
  Prefactor  = 2.59553e-06
  Prefactor  = 12.3333
  Prefactor  = 0
  norm       = 6.71685e-09
  Prefactor  = 40.6642
  Prefactor  = 1.66533e-10
  norm       = 0.516196
  Prefactor  = 3.33067e-10
  Prefactor  = 3.0087e-08
  norm       = 2.07262e-06
  Prefactor  = 4.57973
  Prefactor  = 2.53164e-06
  norm       = 8.88178e-10
  Prefactor  = 1.64809e-05
  norm       = 0.0704119
  norm       = 0
  Prefactor  = 6.66134e-10
  Prefactor  = 3.57492e-07
  norm       = 1.29397
  Prefactor  = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 3.05311e-09
  Prefactor  = 15.2907
  norm       = 1.70974e-08
  norm       = 0
  Prefactor  = 1.05471e-09
  Prefactor  = 3.25184e-07
  Normalizat = 1.43499
  Prefactor  = 0.704382
 **********
 **   18 **HESSE 
 **********

 FCN=   3841.190     FROM HESSE     STATUS=OK           731 CALLS     3865 TOTAL
                     EDM=   .14E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          21.874        23.551        .21326E-03   -1.5614    
   2  norm          .24480E-07    14.232        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .28672E-06    10.765        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .25955E-05    16.186        .13197E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     12.333        57.232        .30391E-03   -1.5638    
   6  Prefactor      .0000        23.104        .17313E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .67168E-08    9.0545        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     40.664        48.023        .15747E-03   -1.5580    
   9  Prefactor     .16653E-09    33.898        .14233E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .51620        1.6512        .76343E-03   -1.5722    
  11  Prefactor     .33307E-09    9.1351        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .30087E-07    14.631        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .20726E-05    27.979        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.5797        17.160        .49764E-03   -1.5665    
  15  Prefactor     .25316E-05    82.366        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .88818E-09    6.1684        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .16481E-04    416.64        .66934E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .70412E-01    3.4617        .71369E-02   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm           .0000        1.5664        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .66613E-09    1.6930        .28839E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .35749E-06    27.899        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.2940        .91633        .97305E-03   -1.5685    
  23  Prefactor      .0000        2.5141        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .55511E-10    29.082        .15476E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .30531E-08    4.8562        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     15.291        12.391        .25600E-03   -1.5630    
  27  norm          .17097E-07    5.2432        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm           .0000        3.6881        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10547E-08    6.0510        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .32518E-06    11.967        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.4350        .24696        .55896E-01   -.79622    
  32  Prefactor     .70438        .17931        .42467E-01   -1.0336    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.35791e-06
Minuit parameter uncertainties:
  1  23.5509
  2  0.00118097
  3  0.00351379
  4  0.0129634
  5  53.1368
  6  3.14017e-05
  7  0.000493446
  8  48.0231
  9  0.000141566
  10  1.65121
  11  0.000107957
  12  0.00132677
  13  0.0152305
  14  17.1601
  15  0.0288808
  16  0.000146677
  17  0.165742
  18  0.987416
  19  1.67135e-06
  20  6.71176e-05
  21  0.00631635
  22  0.91633
  23  3.63263e-06
  24  6.85192e-05
  25  0.000243061
  26  12.3914
  27  0.000598491
  28  1.83835e-05
  29  0.000159999
  30  0.00394544
  31  0.247167
  32  0.17946
Done.

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

Extracting fit parameters...

4FGL J0809.5+5341
   Spectrum: LogParabola
326         norm:  7.041e-02  9.874e-01  0.000e+00  1.000e+06 ( 1.000e-12)
327        alpha:  2.165e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
328         beta:  1.129e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
329           Eb:  8.538e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
727    Prefactor:  7.044e-01  1.795e-01  0.000e+00  1.000e+01 ( 1.000e+00)
728        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
729        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
726   Normalization:  1.435e+00  2.472e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 122.379 53.688
Photon Flux Upper Limit: 1.01e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.43e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/641550/likelihoodResults_691632001_691891201_4FGL_J0809.5+5341_daily_bin1745.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) = 3841.18826097
delta logL = 0.00177116305122

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3841.18254375
delta logL = 0.00748838194659

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .45242       1.0000          .0000       .10000E+07
     2 'alpha     '    1.6395       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4367       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70195       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7300E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3841.183     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      250 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .44913        37.734         .0000        .28004    
   2  alpha         1.6404        2.6629         .0000       -.48661E-03
   3  Normalizat    1.4367        .24376         .0000        .25646E-04
   4  Prefactor     .70194        .18235         .0000        .32817E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.449133
  alpha      = 1.64038
  Normalizat = 1.43669
  Prefactor  = 0.701941
 **********
 **   18 **HESSE 
 **********

 FCN=   3841.183     FROM HESSE     STATUS=OK            35 CALLS      285 TOTAL
                     EDM=   .65E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .44913        25.747        .16730E-03   -1.5695    
   2  alpha         1.6404        3.1061        .50000       -.35101    
   3  Normalizat    1.4367        .28269        .24704E-03   -.79573    
   4  Prefactor     .70194        .20926        .24686E-03   -1.0345    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.5098e-07
Minuit parameter uncertainties:
  1  6.80109
  2  4.25801
  3  0.282997
  4  0.209499
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/641550': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3841.18254325
delta logL = 0.00748888685757

Extracting fit parameters...

4FGL J0809.5+5341
   Spectrum: LogParabola
326         norm:  4.491e-01  6.801e+00  0.000e+00  1.000e+06 ( 1.000e-12)
327        alpha:  1.640e+00  4.258e+00  0.000e+00  5.000e+00 ( 1.000e+00)
328         beta:  1.129e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
329           Eb:  8.538e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
727    Prefactor:  7.019e-01  2.095e-01  0.000e+00  1.000e+01 ( 1.000e+00)
728        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
729        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
726   Normalization:  1.437e+00  2.830e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 122.379 53.688

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/641550/cmap_HighResolution_691632001_691891201_4FGL_J0809.5+5341_daily_bin1745.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.43e-05', job_status='DONE', photon_flux_upper_limit='1.01e-07', time_completed='2022-12-05 00:36:01.969584', job_id='641550', GAL2='0.70', fit_tolerance='1e-08', EG2='1.44', EG='1.43', time_epoch_completed='1670229361.97', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.70', dlogl='7.49e-03', ts2='0.02', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='1745' AND source_name='4FGL J0809.5+5341' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Dec  5 00:36:01 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 641550: <4FGL_J0809.5+5341_daily_bin1745> in cluster <slac> Done

Job <4FGL_J0809.5+5341_daily_bin1745> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Dec  5 00:20:15 2022
Job was executed on host(s) <bullet0221>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Dec  5 00:20:17 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Dec  5 00:20:17 2022
Terminated at Mon Dec  5 00:36:02 2022
Results reported at Mon Dec  5 00:36:02 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.5+5341_daily_bin1745 122.379 53.6876 691632001 691891201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0809.5+5341 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   703.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             276.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   945 sec.
    Turnaround time :                            947 sec.

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

