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


Performing analysis on: 4FGL_J0809.8+5218_daily_bin1771
RA = 122.462, Dec = 52.3143
tmin = 698371201, tmax = 698630401
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='542050', job_status='RUN', time_executed='2023-02-21 00:34:16.145566', time_epoch_executed='1676968456.15' WHERE source_name='4FGL J0809.8+5218' and cadence='daily' and bin_id='1771'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/542050

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/542050/ft1_4FGL_J0809.8+5218_daily_bin1771.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/542050/ft2_4FGL_J0809.8+5218_daily_bin1771.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/542050/ft1_4FGL_J0809.8+5218_daily_bin1771.fits outfile=/scratch/kocevski/542050/ft1_filteredMKT_4FGL_J0809.8+5218_daily_bin1771.fits ra=122.462 dec=52.3143 rad=12.0 tmin=698371201.0 tmax=698630401.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 3.07
user 2.88
sys 0.17

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/542050/ft2_4FGL_J0809.8+5218_daily_bin1771.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/542050/ft2_4FGL_J0809.8+5218_daily_bin1771.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/542050/ft1_filteredMKT_4FGL_J0809.8+5218_daily_bin1771.fits evtable="EVENTS" outfile="/scratch/kocevski/542050/ft1_filtered_4FGL_J0809.8+5218_daily_bin1771.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.31
sys 0.17

Number of photons that the gtmktime cut: 379

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/542050/ft1_filtered_4FGL_J0809.8+5218_daily_bin1771.fits" evtable="EVENTS" scfile=/scratch/kocevski/542050/ft2_4FGL_J0809.8+5218_daily_bin1771.fits sctable="SC_DATA" outfile=/scratch/kocevski/542050/ltcube_698371201_698630401_4FGL_J0809.8+5218_daily_bin1771.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/542050/ft2_4FGL_J0809.8+5218_daily_bin1771.fits
.....................!
real 12.50
user 12.13
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/542050/ft1_filtered_4FGL_J0809.8+5218_daily_bin1771.fits evtable="EVENTS" scfile=/scratch/kocevski/542050/ft2_4FGL_J0809.8+5218_daily_bin1771.fits sctable="SC_DATA" expcube=/scratch/kocevski/542050/ltcube_698371201_698630401_4FGL_J0809.8+5218_daily_bin1771.fits outfile=/scratch/kocevski/542050/expmap_698371201_698630401_4FGL_J0809.8+5218_daily_bin1771.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/542050/ltcube_698371201_698630401_4FGL_J0809.8+5218_daily_bin1771.fits
.....................!
real 191.14
user 185.64
sys 5.17

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

Setting source of interest to:
4FGL J0809.8+5218 @ 122.462 52.3143

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/542050/ft1_filtered_4FGL_J0809.8+5218_daily_bin1771.fits scfile=/scratch/kocevski/542050/ft2_4FGL_J0809.8+5218_daily_bin1771.fits outfile=/scratch/kocevski/542050/cmap_698371201_698630401_4FGL_J0809.8+5218_daily_bin1771.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.462 yref=52.3143 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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/542050/ft1_filtered_4FGL_J0809.8+5218_daily_bin1771.fits scfile=/scratch/kocevski/542050/ft2_4FGL_J0809.8+5218_daily_bin1771.fits outfile=/scratch/kocevski/542050/cmap_HighResolution_698371201_698630401_4FGL_J0809.8+5218_daily_bin1771.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.462 yref=52.3143 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/542050/ft1_filtered_4FGL_J0809.8+5218_daily_bin1771.fits evtable="EVENTS" scfile=/scratch/kocevski/542050/ft2_4FGL_J0809.8+5218_daily_bin1771.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/542050/Model_4FGL_J0809.8+5218_daily_bin1771.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/542050/ft1_filtered_4FGL_J0809.8+5218_daily_bin1771.fits......................!
real 50.61
user 49.24
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/542050/ft1_filtered_4FGL_J0809.8+5218_daily_bin1771.fits', '/scratch/kocevski/542050/ft2_4FGL_J0809.8+5218_daily_bin1771.fits', expMap='/scratch/kocevski/542050/expmap_698371201_698630401_4FGL_J0809.8+5218_daily_bin1771.fits', expCube='/scratch/kocevski/542050/ltcube_698371201_698630401_4FGL_J0809.8+5218_daily_bin1771.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/542050/Model_4FGL_J0809.8+5218_daily_bin1771.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0809.8+5218'

4FGL J0809.8+5218
   Spectrum: LogParabola
330         norm:  2.044e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
331        alpha:  1.811e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
332         beta:  3.259e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
333           Eb:  1.346e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/542050/ft1_filtered_4FGL_J0809.8+5218_daily_bin1771.fits
Spacecraft file(s): /scratch/kocevski/542050/ft2_4FGL_J0809.8+5218_daily_bin1771.fits
Exposure map: /scratch/kocevski/542050/expmap_698371201_698630401_4FGL_J0809.8+5218_daily_bin1771.fits
Exposure cube: /scratch/kocevski/542050/ltcube_698371201_698630401_4FGL_J0809.8+5218_daily_bin1771.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/542050/Model_4FGL_J0809.8+5218_daily_bin1771.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) = 4182.75538124

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 4182.67152615

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .68479E-03   1.0000          .0000       .10000E+07
     2 'norm      '    .25178E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    .10661E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .11586E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    41.640       1.0000          .0000       .10000E+07
     6 'Prefactor '    .88839E-03   1.0000          .0000       .10000E+07
     7 'norm      '    4.4053       1.0000          .0000       .10000E+07
     8 'Prefactor '    40.321       1.0000          .0000       .10000E+07
     9 'Prefactor '    19.252       1.0000          .0000       .10000E+07
    10 'norm      '    3.8358       1.0000          .0000       .10000E+07
    11 'Prefactor '    12.445       1.0000          .0000       .10000E+07
    12 'Prefactor '    14.739       1.0000          .0000       .10000E+07
    13 'norm      '    1.7250       1.0000          .0000       .10000E+07
    14 'Prefactor '    3.3336       1.0000          .0000       .10000E+07
    15 'norm      '    6.0784       1.0000          .0000       .10000E+07
    16 'Prefactor '    74.295       1.0000          .0000       .10000E+07
    17 'Prefactor '    32.944       1.0000          .0000       .10000E+07
    18 'norm      '    .15514E-04   1.0000          .0000       .10000E+07
    19 'norm      '    2.0916       1.0000          .0000       .10000E+07
    20 'Prefactor '    10.709       1.0000          .0000       .10000E+07
    21 'norm      '    1.1790       1.0000          .0000       .10000E+07
    22 'Prefactor '    .26318E-02   1.0000          .0000       .10000E+07
    23 'Prefactor '    .11173E-02   1.0000          .0000       .10000E+07
    24 'Prefactor '    .81113E-03   1.0000          .0000       .10000E+07
    25 'Prefactor '    .29412E-04   1.0000          .0000       .10000E+07
    26 'Prefactor '    .19095E-02   1.0000          .0000       .10000E+07
    27 'norm      '    .38858E-09   1.0000          .0000       .10000E+07
    28 'norm      '    .81879E-07   1.0000          .0000       .10000E+07
    29 'Prefactor '    28.324       1.0000          .0000       .10000E+07
    30 'Prefactor '    .78460       1.0000          .0000       .10000E+07
    31 'Normalizat'    1.0551       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .93138       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7240E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4182.666     FROM MIGRAD    STATUS=CONVERGED    226 CALLS     3160 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        2.1246        .22925E-06** at limit **
   2  norm           .0000        1.8051       -.11954E-06** at limit **
   3  Prefactor     .81185E-06    35.700       -.27226E-05** at limit **
   4  Prefactor      .0000        2.4463        .27837E-06** at limit **
   5  Prefactor     42.056        11.381        .26564E-07   -.15067    
   6  Prefactor     .24648E-05    40.785       -.27065E-05** at limit **
   7  norm          4.4729        10.009       -.13144E-06   -.69875E-03
   8  Prefactor     42.228        24.724        .93852E-07   -.84974E-01
   9  Prefactor     19.078        13.602       -.33679E-06   -.42459E-02
  10  norm          3.8382        1.5429       -.37353E-08   -.40305E-03
  11  Prefactor     12.594        17.252        .55949E-06    .42820E-01
  12  Prefactor     15.645        12.911       -.92383E-07   -.20799E-01
  13  norm          1.7230        3.4823        .11375E-06   -.75936E-03
  14  Prefactor     3.6199        15.500       -.95347E-06   -.23750E-01
  15  norm          6.1428        4.7410        .46557E-07   -.24168E-02
  16  Prefactor     74.951        29.334        .47818E-06   -.24613    
  17  Prefactor     32.978        5.5899       -.77271E-07   -.81307E-01
  18  norm           .0000        2.2158        .32751E-07** at limit **
  19  norm          2.0960        2.1316        .37828E-07    .61409E-04
  20  Prefactor     10.722        14.777       -.11417E-06    .15573E-01
  21  norm          1.1788        1.0867        .10496E-06    .48732E-03
  22  Prefactor     .22360E-06    10.435       -.98606E-06** at limit **
  23  Prefactor     .55511E-09    9.2323       -.51002E-06** at limit **
  24  Prefactor     .24425E-08    21.917       -.12324E-05** at limit **
  25  Prefactor     .38858E-09    8.0112        .11019E-06** at limit **
  26  Prefactor     .19468E-06    9.4724       -.49612E-06** at limit **
  27  norm           .0000        3.6866        .14337E-07** at limit **
  28  norm           .0000        5.1578        .77024E-06** at limit **
  29  Prefactor     29.484        40.665       -.14339E-06   -.12786E-01
  30  Prefactor     5.5467        230.17        .34094E-05    .73578E-02
  31  Normalizat    1.0425        .33876       -.47150E-05    .11997E-04
  32  Prefactor     .93344        .20665        .21599E-05   -.10690E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  norm       = 0
  Prefactor  = 8.11851e-07
  Prefactor  = 0
  Prefactor  = 42.0558
  Prefactor  = 2.46475e-06
  norm       = 4.47289
  Prefactor  = 42.2279
  Prefactor  = 19.0782
  norm       = 3.83821
  Prefactor  = 12.5936
  Prefactor  = 15.6455
  norm       = 1.72297
  Prefactor  = 3.61994
  norm       = 6.14283
  Prefactor  = 74.9507
  Prefactor  = 32.9782
  norm       = 0
  norm       = 2.09605
  Prefactor  = 10.7221
  norm       = 1.17885
  Prefactor  = 2.23599e-07
  Prefactor  = 5.55112e-10
  Prefactor  = 2.44249e-09
  Prefactor  = 3.88578e-10
  Prefactor  = 1.94678e-07
  norm       = 0
  norm       = 0
  Prefactor  = 29.4841
  Prefactor  = 5.5467
  Normalizat = 1.04255
  Prefactor  = 0.933444
 **********
 **   18 **HESSE 
 **********

 FCN=   4182.666     FROM HESSE     STATUS=OK           723 CALLS     3883 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        2.1268        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm           .0000        1.8057        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .81185E-06    71.343        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        2.4517        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     42.056        24.875        .15498E-03   -1.5578    
   6  Prefactor     .24648E-05    58.569        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.4729        10.027        .47958E-03   -1.5666    
   8  Prefactor     42.228        34.328        .15750E-03   -1.5578    
   9  Prefactor     19.078        41.070        .22799E-03   -1.5621    
  10  norm          3.8382        1.5543        .51506E-03   -1.5669    
  11  Prefactor     12.594        18.874        .28370E-03   -1.5637    
  12  Prefactor     15.645        35.210        .26063E-03   -1.5629    
  13  norm          1.7230        3.5634        .79930E-03   -1.5682    
  14  Prefactor     3.6199        23.488        .55412E-03   -1.5670    
  15  norm          6.1428        4.7378        .40700E-03   -1.5658    
  16  Prefactor     74.951        128.26        .11602E-03   -1.5535    
  17  Prefactor     32.978        20.474        .17425E-03   -1.5593    
  18  norm           .0000        2.2171        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.0960        2.1410        .71349E-03   -1.5679    
  20  Prefactor     10.722        14.846        .30592E-03   -1.5642    
  21  norm          1.1788        1.0969        .10531E-02   -1.5686    
  22  Prefactor     .22360E-06    17.140        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .55511E-09    9.2298        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .24425E-08    21.967        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .38858E-09    7.9898        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .19468E-06    16.880        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm           .0000        3.6743        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm           .0000        5.1259        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     29.484        44.009        .18793E-03   -1.5599    
  30  Prefactor     5.5467        231.93        .54090E-03   -1.5661    
  31  Normalizat    1.0425        .30016        .74047E-01   -.91618    
  32  Prefactor     .93344        .18127        .45404E-01   -.94982    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33328e-05
Minuit parameter uncertainties:
  1  5.22803e-06
  2  2.55988e-06
  3  0.0152214
  4  2.98801e-06
  5  24.8752
  6  0.02403
  7  10.0267
  8  34.328
  9  41.0704
  10  1.55435
  11  18.8738
  12  35.211
  13  3.56341
  14  18.442
  15  4.73779
  16  128.262
  17  20.4736
  18  3.05767e-06
  19  2.14104
  20  14.8462
  21  1.09692
  22  0.00391543
  23  0.000143083
  24  0.000463069
  25  0.000114967
  26  0.00362555
  27  6.62268e-06
  28  1.7034e-05
  29  44.0094
  30  71.7367
  31  0.300646
  32  0.181388
Done.

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

Extracting fit parameters...

4FGL J0809.8+5218
   Spectrum: LogParabola
330         norm:  2.096e+00  2.141e+00  0.000e+00  1.000e+06 ( 1.000e-12)
331        alpha:  1.811e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
332         beta:  3.259e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
333           Eb:  1.346e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
721    Prefactor:  9.334e-01  1.814e-01  0.000e+00  1.000e+01 ( 1.000e+00)
722        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
723        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
720   Normalization:  1.043e+00  3.006e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.06
Ra Dec: 122.462 52.314
Photon Index (Fixed Index): 1.81 +/- 0.00
Photon Flux (Fixed Index): 2.57e-08 +/- 2.63e-08
Energy Flux (Fixed Index): 2.75e-05 +/- 2.80e-05

TS (Fixed Index): 2.06
Ra Dec: 122.462 52.314
Photon Flux Upper Limit: 1.01e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.07e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/542050/likelihoodResults_698371201_698630401_4FGL_J0809.8+5218_daily_bin1771.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): 0
logL (Free Index) = 4182.6405288
delta logL = 0.0251991270352

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4182.63796436
delta logL = 0.0277635726034

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4182.638     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      200 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9463        68.799        .74362E-03    .84105E-03
   2  alpha         1.9802        2.6179        .39093        .11977E-04
   3  Normalizat    1.0377        .13561        .74202E-01    .11341E-04
   4  Prefactor     .93522        .69765E-01    .45452E-01    .47787E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.9463
  alpha      = 1.98022
  Normalizat = 1.03769
  Prefactor  = 0.935221
 **********
 **   18 **HESSE 
 **********

 FCN=   4182.638     FROM HESSE     STATUS=OK            33 CALLS      233 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9463        2.1940        .88570E-05   -1.5680    
   2  alpha         1.9802        .74342        .13975E-01   -.20944    
   3  Normalizat    1.0377        .30288        .32837E-03   -.91778    
   4  Prefactor     .93522        .20153        .22763E-03   -.94921    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.20964e-10
Minuit parameter uncertainties:
  1  2.19405
  2  0.755377
  3  0.303389
  4  0.201696
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/542050': 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) = 4182.63796431
delta logL = 0.0277636215596

Extracting fit parameters...

4FGL J0809.8+5218
   Spectrum: LogParabola
330         norm:  1.946e+00  2.194e+00  0.000e+00  1.000e+06 ( 1.000e-12)
331        alpha:  1.980e+00  7.554e-01  0.000e+00  5.000e+00 ( 1.000e+00)
332         beta:  3.259e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
333           Eb:  1.346e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
721    Prefactor:  9.352e-01  2.017e-01  0.000e+00  1.000e+01 ( 1.000e+00)
722        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
723        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
720   Normalization:  1.038e+00  3.034e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.11
Ra Dec: 122.462 52.314
Photon Index (Free Index): 1.98 +/- 0.76
Photon Flux (Free Index): 3.05e-08 +/- 3.67e-08
Energy Flux (Free Index): 2.14e-05 +/- 3.13e-05

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/542050/cmap_HighResolution_698371201_698630401_4FGL_J0809.8+5218_daily_bin1771.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.07e-04', comment='SUCCESS', photon_flux='2.57e-08', energy_flux2='2.14e-05', photon_flux_error='2.63e-08', dlogl='2.78e-02', energy_flux='2.75e-05', photon_flux2='3.05e-08', job_status='DONE', time_completed='2023-02-21 00:46:04.403425', photon_index_error2='0.76', photon_index2='1.98', ts='2.06', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='1.01e-07', energy_flux_error2='3.13e-05', EG='1.04', time_epoch_completed='1676969164.4', return_code='0', job_id='542050', GAL2='0.94', EG2='1.04', return_code2='0', energy_flux_error='2.80e-05', photon_flux_error2='3.67e-08', ts2='2.11', photon_index='1.81' WHERE bin_id='1771' AND source_name='4FGL J0809.8+5218' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Feb 21 00:46:04 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 542050: <4FGL_J0809.8+5218_daily_bin1771> in cluster <slac> Done

Job <4FGL_J0809.8+5218_daily_bin1771> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Feb 21 00:30:20 2023
Job was executed on host(s) <bullet0052>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Feb 21 00:30:20 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Feb 21 00:30:20 2023
Terminated at Tue Feb 21 00:46:04 2023
Results reported at Tue Feb 21 00:46:04 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.8+5218_daily_bin1771 122.462 52.3143 698371201 698630401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0809.8+5218 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   710.03 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             251.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   944 sec.
    Turnaround time :                            944 sec.

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

