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


Performing analysis on: 4FGL_J0809.5+5341_daily_bin1744
RA = 122.379, Dec = 53.6876
tmin = 691372801, tmax = 691632001
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='570767', job_status='RUN', time_executed='2022-12-02 00:26:07.043887', time_epoch_executed='1669969567.04' WHERE source_name='4FGL J0809.5+5341' and cadence='daily' and bin_id='1744'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/570767

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/570767/ft1_4FGL_J0809.5+5341_daily_bin1744.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/570767/ft2_4FGL_J0809.5+5341_daily_bin1744.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/570767/ft1_4FGL_J0809.5+5341_daily_bin1744.fits outfile=/scratch/kocevski/570767/ft1_filteredMKT_4FGL_J0809.5+5341_daily_bin1744.fits ra=122.379 dec=53.6876 rad=12.0 tmin=691372801.0 tmax=691632001.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.57
user 2.30
sys 0.20

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

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

Number of photons that the gtmktime cut: 607

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/570767/ft1_filtered_4FGL_J0809.5+5341_daily_bin1744.fits" evtable="EVENTS" scfile=/scratch/kocevski/570767/ft2_4FGL_J0809.5+5341_daily_bin1744.fits sctable="SC_DATA" outfile=/scratch/kocevski/570767/ltcube_691372801_691632001_4FGL_J0809.5+5341_daily_bin1744.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/570767/ft2_4FGL_J0809.5+5341_daily_bin1744.fits
.....................!
real 12.43
user 12.03
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/570767/ft1_filtered_4FGL_J0809.5+5341_daily_bin1744.fits evtable="EVENTS" scfile=/scratch/kocevski/570767/ft2_4FGL_J0809.5+5341_daily_bin1744.fits sctable="SC_DATA" expcube=/scratch/kocevski/570767/ltcube_691372801_691632001_4FGL_J0809.5+5341_daily_bin1744.fits outfile=/scratch/kocevski/570767/expmap_691372801_691632001_4FGL_J0809.5+5341_daily_bin1744.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/570767/ltcube_691372801_691632001_4FGL_J0809.5+5341_daily_bin1744.fits
.....................!
real 190.80
user 186.11
sys 4.31

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/570767/ft1_filtered_4FGL_J0809.5+5341_daily_bin1744.fits scfile=/scratch/kocevski/570767/ft2_4FGL_J0809.5+5341_daily_bin1744.fits outfile=/scratch/kocevski/570767/cmap_691372801_691632001_4FGL_J0809.5+5341_daily_bin1744.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.59
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/570767/ft1_filtered_4FGL_J0809.5+5341_daily_bin1744.fits scfile=/scratch/kocevski/570767/ft2_4FGL_J0809.5+5341_daily_bin1744.fits outfile=/scratch/kocevski/570767/cmap_HighResolution_691372801_691632001_4FGL_J0809.5+5341_daily_bin1744.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.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/570767/ft1_filtered_4FGL_J0809.5+5341_daily_bin1744.fits', '/scratch/kocevski/570767/ft2_4FGL_J0809.5+5341_daily_bin1744.fits', expMap='/scratch/kocevski/570767/expmap_691372801_691632001_4FGL_J0809.5+5341_daily_bin1744.fits', expCube='/scratch/kocevski/570767/ltcube_691372801_691632001_4FGL_J0809.5+5341_daily_bin1744.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/570767/Model_4FGL_J0809.5+5341_daily_bin1744.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/570767/ft1_filtered_4FGL_J0809.5+5341_daily_bin1744.fits
Spacecraft file(s): /scratch/kocevski/570767/ft2_4FGL_J0809.5+5341_daily_bin1744.fits
Exposure map: /scratch/kocevski/570767/expmap_691372801_691632001_4FGL_J0809.5+5341_daily_bin1744.fits
Exposure cube: /scratch/kocevski/570767/ltcube_691372801_691632001_4FGL_J0809.5+5341_daily_bin1744.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/570767/Model_4FGL_J0809.5+5341_daily_bin1744.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) = 6653.92864868

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .36332E-03   1.0000          .0000       .10000E+07
     2 'norm      '    4.3740       1.0000          .0000       .10000E+07
     3 'Prefactor '    8.0079       1.0000          .0000       .10000E+07
     4 'Prefactor '    .12478E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    4.1143       1.0000          .0000       .10000E+07
     6 'Prefactor '    7.5998       1.0000          .0000       .10000E+07
     7 'norm      '    .55239E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    .23909E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    .22221E-02   1.0000          .0000       .10000E+07
    10 'norm      '    .66180E-06   1.0000          .0000       .10000E+07
    11 'Prefactor '    .70895E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    18.465       1.0000          .0000       .10000E+07
    13 'norm      '    1.2011       1.0000          .0000       .10000E+07
    14 'Prefactor '    19.310       1.0000          .0000       .10000E+07
    15 'Prefactor '    5.5501       1.0000          .0000       .10000E+07
    16 'norm      '    .32141E-06   1.0000          .0000       .10000E+07
    17 'Prefactor '    .42002E-01   1.0000          .0000       .10000E+07
    18 'norm      '    .15064E-02   1.0000          .0000       .10000E+07
    19 'norm      '    4.4773       1.0000          .0000       .10000E+07
    20 'Prefactor '    .68834E-08   1.0000          .0000       .10000E+07
    21 'Prefactor '    3.5897       1.0000          .0000       .10000E+07
    22 'norm      '    1.0379       1.0000          .0000       .10000E+07
    23 'Prefactor '    6.9313       1.0000          .0000       .10000E+07
    24 'Prefactor '    .16913E-01   1.0000          .0000       .10000E+07
    25 'Prefactor '    23.671       1.0000          .0000       .10000E+07
    26 'Prefactor '    2.8377       1.0000          .0000       .10000E+07
    27 'norm      '    .43564       1.0000          .0000       .10000E+07
    28 'norm      '    8.5039       1.0000          .0000       .10000E+07
    29 'Prefactor '    1.9636       1.0000          .0000       .10000E+07
    30 'Prefactor '    .14255E-02   1.0000          .0000       .10000E+07
    31 'Normalizat'    1.4398       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .88737       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=   6653.924     FROM MIGRAD    STATUS=CONVERGED    155 CALLS     3040 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .16653E-09    2.5409        .37131E-06** at limit **
   2  norm          4.4469        5.9740        .68542E-07    .15970E-03
   3  Prefactor     8.0083        1.0429        .13160E-07    .13566E-02
   4  Prefactor     .57565E-07    9.2613        .31998E-07** at limit **
   5  Prefactor     3.9604        1.4554        .30561E-08   -.28807E-02
   6  Prefactor     7.6429        2.3433        .93731E-07    .18938E-02
   7  norm          .34417E-07    4.7144        .25876E-06** at limit **
   8  Prefactor     .85376E-07    6.4599       -.17926E-05** at limit **
   9  Prefactor     .11069E-06    4.8372       -.85329E-06** at limit **
  10  norm           .0000        .25282        .16079E-06** at limit **
  11  Prefactor     .44575E-07    4.8319       -.89041E-06** at limit **
  12  Prefactor     18.214        19.709       -.12100E-05    .27577E-01
  13  norm          1.2025        2.9849       -.99132E-07    .49887E-04
  14  Prefactor     19.372        4.1250        .18351E-06   -.98517E-02
  15  Prefactor     5.7036        18.879        .14855E-05    .43961E-02
  16  norm           .0000        .84868        .35275E-06** at limit **
  17  Prefactor     .16376E-07    27.840       -.77013E-06** at limit **
  18  norm          .72164E-09    3.0826        .33580E-06** at limit **
  19  norm          4.4781        2.1281       -.96946E-07   -.97782E-03
  20  Prefactor      .0000        .92343       -.17297E-06** at limit **
  21  Prefactor     3.5911        1.3935        .21281E-06    .18695E-01
  22  norm          1.0379        .66990        .12161E-07   -.19065E-02
  23  Prefactor     6.9437        2.5909        .43981E-06    .58716E-01
  24  Prefactor     .55511E-10    24.302        .58146E-06** at limit **
  25  Prefactor     23.674        1.2130       -.46106E-07   -.34804E-02
  26  Prefactor     2.8428        4.6446       -.91123E-06   -.57546E-01
  27  norm          .44161        1.4897        .58749E-06    .12259E-01
  28  norm          8.4821        5.2142        .57736E-06    .58034E-01
  29  Prefactor     1.9622        2.2809        .15648E-06    .34974E-02
  30  Prefactor     .21677E-06    11.907        .22534E-05** at limit **
  31  Normalizat    1.4398        .23377       -.51059E-05   -.17660E-04
  32  Prefactor     .88744        .17198        .96434E-06   -.24113E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.66533e-10
  norm       = 4.44695
  Prefactor  = 8.00826
  Prefactor  = 5.75651e-08
  Prefactor  = 3.96037
  Prefactor  = 7.64285
  norm       = 3.44169e-08
  Prefactor  = 8.53762e-08
  Prefactor  = 1.10689e-07
  norm       = 0
  Prefactor  = 4.45755e-08
  Prefactor  = 18.214
  norm       = 1.20247
  Prefactor  = 19.372
  Prefactor  = 5.70356
  norm       = 0
  Prefactor  = 1.63758e-08
  norm       = 7.21645e-10
  norm       = 4.47807
  Prefactor  = 0
  Prefactor  = 3.59106
  norm       = 1.03788
  Prefactor  = 6.94372
  Prefactor  = 5.55112e-11
  Prefactor  = 23.6743
  Prefactor  = 2.84279
  norm       = 0.441612
  norm       = 8.48209
  Prefactor  = 1.96218
  Prefactor  = 2.16771e-07
  Normalizat = 1.43976
  Prefactor  = 0.88744
 **********
 **   18 **HESSE 
 **********

 FCN=   6653.924     FROM HESSE     STATUS=OK           725 CALLS     3765 TOTAL
                     EDM=   .24E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .16653E-09    2.5424        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.4469        6.2334        .48135E-03   -1.5666    
   3  Prefactor     8.0083        11.893        .35407E-03   -1.5651    
   4  Prefactor     .57565E-07    9.6210        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.9604        48.815        .49674E-03   -1.5668    
   6  Prefactor     7.6429        25.257        .36353E-03   -1.5653    
   7  norm          .34417E-07    4.9666        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .85376E-07    11.646        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .11069E-06    12.287        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm           .0000        .25201        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .44575E-07    5.1500        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     18.214        29.303        .23280E-03   -1.5623    
  13  norm          1.2025        3.0240        .10352E-02   -1.5686    
  14  Prefactor     19.372        14.949        .22765E-03   -1.5620    
  15  Prefactor     5.7036        33.934        .42622E-03   -1.5660    
  16  norm           .0000        .84715        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .16376E-07    29.036        .15875E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .72164E-09    3.0715        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          4.4781        2.1308        .47561E-03   -1.5666    
  20  Prefactor      .0000        .91854        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.5911        9.1877        .53311E-03   -1.5670    
  22  norm          1.0379        .67274        .11818E-02   -1.5688    
  23  Prefactor     6.9437        7.4694        .38083E-03   -1.5655    
  24  Prefactor     .55511E-10    24.257        .17249E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     23.674        14.433        .20558E-03   -1.5611    
  26  Prefactor     2.8428        7.2335        .60338E-03   -1.5674    
  27  norm          .44161        8.1580        .85469E-03   -1.5695    
  28  norm          8.4821        6.6308        .34352E-03   -1.5650    
  29  Prefactor     1.9622        18.825        .73987E-03   -1.5680    
  30  Prefactor     .21677E-06    13.658        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.4398        .20931        .61400E-01   -.79485    
  32  Prefactor     .88744        .15132        .44844E-01   -.96581    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.41926e-07
Minuit parameter uncertainties:
  1  4.20189e-05
  2  6.23342
  3  11.8927
  4  0.00148842
  5  27.8085
  6  25.2573
  7  0.000827133
  8  0.00199395
  9  0.00233232
  10  3.15971e-07
  11  0.000958499
  12  29.3032
  13  3.02397
  14  14.9488
  15  27.8243
  16  2.15314e-07
  17  0.00137847
  18  9.55147e-05
  19  2.13075
  20  1.8939e-06
  21  9.18772
  22  0.672741
  23  7.46943
  24  5.69861e-05
  25  14.4329
  26  7.2335
  27  3.79615
  28  6.63085
  29  12.1555
  30  0.00344141
  31  0.209431
  32  0.151388
Done.

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

Extracting fit parameters...

4FGL J0809.5+5341
   Spectrum: LogParabola
326         norm:  7.216e-10  9.551e-05  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:  8.874e-01  1.514e-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.440e+00  2.094e-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: 6.19e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.73e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/570767/likelihoodResults_691372801_691632001_4FGL_J0809.5+5341_daily_bin1744.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) = 6653.92391993
delta logL = -6.02693698966e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6653.92385981
delta logL = -1.47580067278e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .26590E-07   1.0000          .0000       .10000E+07
     2 'alpha     '    1.3213       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4397       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88742       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.

 FCN=   6653.924     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      263 TOTAL
                     EDM=   .26E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .16653E-09    .29740E-01    .42118E-03** at limit **
   2  alpha         2.9819        3.4145        .49333        .16131E-09
   3  Normalizat    1.4398        .64697E-03    .61401E-01   -.13464E-02
   4  Prefactor     .88744        .47952E-03    .44844E-01   -.86507E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.66533e-10
  alpha      = 2.98189
  Normalizat = 1.43975
  Prefactor  = 0.887444
 **********
 **   18 **HESSE 
 **********

 FCN=   6653.924     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      292 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .16653E-09    .15308        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.9819        3.2361        .50000        .19397    
   3  Normalizat    1.4398        .14541E-02    .27156E-03   -.79486    
   4  Prefactor     .88744        .10780E-02    .24761E-03   -.96581    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.30241e-11
Minuit parameter uncertainties:
  1  9.70364e-06
  2  18309.4
  3  0.00145405
  4  0.00107799
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/570767': 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) = 6653.92385966
delta logL = -1.25783117255e-09

Extracting fit parameters...

4FGL J0809.5+5341
   Spectrum: LogParabola
326         norm:  1.665e-10  9.704e-06  0.000e+00  1.000e+06 ( 1.000e-12)
327        alpha:  2.982e+00  1.831e+04  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:  8.874e-01  1.078e-03  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.440e+00  1.454e-03  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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/570767/cmap_HighResolution_691372801_691632001_4FGL_J0809.5+5341_daily_bin1744.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.73e-05', job_status='DONE', photon_flux_upper_limit='6.19e-08', time_completed='2022-12-02 00:41:34.464766', job_id='570767', GAL2='0.89', fit_tolerance='1e-08', EG2='1.44', EG='1.44', time_epoch_completed='1669970494.46', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='-1.26e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='1744' AND source_name='4FGL J0809.5+5341' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Dec  2 00:41:34 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 570767: <4FGL_J0809.5+5341_daily_bin1744> in cluster <slac> Done

Job <4FGL_J0809.5+5341_daily_bin1744> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Dec  2 00:25:18 2022
Job was executed on host(s) <bullet0058>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Dec  2 00:25:20 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Dec  2 00:25:20 2022
Terminated at Fri Dec  2 00:41:35 2022
Results reported at Fri Dec  2 00:41:35 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.5+5341_daily_bin1744 122.379 53.6876 691372801 691632001 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 :                                   927.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             353.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   974 sec.
    Turnaround time :                            977 sec.

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

