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


Performing analysis on: 4FGL_J0809.5+5341_daily_bin1750
RA = 122.379, Dec = 53.6876
tmin = 692928001, tmax = 693187201
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='3571', job_status='RUN', time_executed='2022-12-20 00:25:48.699714', time_epoch_executed='1671524748.7' WHERE source_name='4FGL J0809.5+5341' and cadence='daily' and bin_id='1750'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/3571

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/3571/ft1_4FGL_J0809.5+5341_daily_bin1750.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/3571/ft2_4FGL_J0809.5+5341_daily_bin1750.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/3571/ft1_4FGL_J0809.5+5341_daily_bin1750.fits outfile=/scratch/kocevski/3571/ft1_filteredMKT_4FGL_J0809.5+5341_daily_bin1750.fits ra=122.379 dec=53.6876 rad=12.0 tmin=692928001.0 tmax=693187201.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.78
user 2.55
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/3571/ft2_4FGL_J0809.5+5341_daily_bin1750.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/3571/ft1_filteredMKT_4FGL_J0809.5+5341_daily_bin1750.fits evtable="EVENTS" outfile="/scratch/kocevski/3571/ft1_filtered_4FGL_J0809.5+5341_daily_bin1750.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.44
user 0.27
sys 0.15

Number of photons that the gtmktime cut: 727

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/3571/ft1_filtered_4FGL_J0809.5+5341_daily_bin1750.fits" evtable="EVENTS" scfile=/scratch/kocevski/3571/ft2_4FGL_J0809.5+5341_daily_bin1750.fits sctable="SC_DATA" outfile=/scratch/kocevski/3571/ltcube_692928001_693187201_4FGL_J0809.5+5341_daily_bin1750.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/3571/ft2_4FGL_J0809.5+5341_daily_bin1750.fits
.....................!
real 9.50
user 9.16
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/3571/ft1_filtered_4FGL_J0809.5+5341_daily_bin1750.fits evtable="EVENTS" scfile=/scratch/kocevski/3571/ft2_4FGL_J0809.5+5341_daily_bin1750.fits sctable="SC_DATA" expcube=/scratch/kocevski/3571/ltcube_692928001_693187201_4FGL_J0809.5+5341_daily_bin1750.fits outfile=/scratch/kocevski/3571/expmap_692928001_693187201_4FGL_J0809.5+5341_daily_bin1750.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/3571/ltcube_692928001_693187201_4FGL_J0809.5+5341_daily_bin1750.fits
.....................!
real 151.19
user 146.33
sys 4.57

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/3571/ft1_filtered_4FGL_J0809.5+5341_daily_bin1750.fits scfile=/scratch/kocevski/3571/ft2_4FGL_J0809.5+5341_daily_bin1750.fits outfile=/scratch/kocevski/3571/cmap_692928001_693187201_4FGL_J0809.5+5341_daily_bin1750.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.49
user 0.32
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/3571/ft1_filtered_4FGL_J0809.5+5341_daily_bin1750.fits scfile=/scratch/kocevski/3571/ft2_4FGL_J0809.5+5341_daily_bin1750.fits outfile=/scratch/kocevski/3571/cmap_HighResolution_692928001_693187201_4FGL_J0809.5+5341_daily_bin1750.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.48
user 0.31
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.1350       1.0000          .0000       .10000E+07
     2 'norm      '    .31622E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    .73113E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    12.455       1.0000          .0000       .10000E+07
     5 'Prefactor '    .17426E-01   1.0000          .0000       .10000E+07
     6 'Prefactor '    .28956E-02   1.0000          .0000       .10000E+07
     7 'norm      '    .50299E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    24.205       1.0000          .0000       .10000E+07
     9 'Prefactor '    .55959E-02   1.0000          .0000       .10000E+07
    10 'norm      '    .37987       1.0000          .0000       .10000E+07
    11 'Prefactor '    .15835E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    .16472E-03   1.0000          .0000       .10000E+07
    13 'norm      '    3.3210       1.0000          .0000       .10000E+07
    14 'Prefactor '    2.3429       1.0000          .0000       .10000E+07
    15 'Prefactor '    4.5198       1.0000          .0000       .10000E+07
    16 'norm      '    .96771       1.0000          .0000       .10000E+07
    17 'Prefactor '    .57188E-03   1.0000          .0000       .10000E+07
    18 'norm      '    4.5764       1.0000          .0000       .10000E+07
    19 'norm      '    2.1820       1.0000          .0000       .10000E+07
    20 'Prefactor '    .37942E-06   1.0000          .0000       .10000E+07
    21 'Prefactor '    2.3475       1.0000          .0000       .10000E+07
    22 'norm      '    1.8699       1.0000          .0000       .10000E+07
    23 'Prefactor '    1.8062       1.0000          .0000       .10000E+07
    24 'Prefactor '    .40001E-03   1.0000          .0000       .10000E+07
    25 'Prefactor '    12.535       1.0000          .0000       .10000E+07
    26 'Prefactor '    6.4020       1.0000          .0000       .10000E+07
    27 'norm      '    .22016E-04   1.0000          .0000       .10000E+07
    28 'norm      '    3.6704       1.0000          .0000       .10000E+07
    29 'Prefactor '    4.3768       1.0000          .0000       .10000E+07
    30 'Prefactor '    .24320E-03   1.0000          .0000       .10000E+07
    31 'Normalizat'    .89313       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.1236       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=   7860.745     FROM MIGRAD    STATUS=CONVERGED    209 CALLS     2480 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.1415        4.4522       -.52774E-07    .11998E-03
   2  norm          .36249E-06    139.82        .25795E-05** at limit **
   3  Prefactor     .11102E-09    7.7721       -.26279E-06** at limit **
   4  Prefactor     12.520        7.0218       -.40805E-08    .82349E-03
   5  Prefactor      .0000        20.495       -.18594E-07** at limit **
   6  Prefactor     .14249E-05    7.9782        .13479E-06** at limit **
   7  norm          .55511E-10    4.6084       -.63640E-07** at limit **
   8  Prefactor     24.123        1.0271        .11390E-08   -.13026E-02
   9  Prefactor     .11952E-05    10.697        .11550E-06** at limit **
  10  norm          .37964        .71322       -.96721E-08   -.29058E-04
  11  Prefactor      .0000        4.1827        .10727E-07** at limit **
  12  Prefactor      .0000        3.7748       -.25299E-07** at limit **
  13  norm          3.3212        2.6318        .22480E-07    .45452E-04
  14  Prefactor     2.3090        5.3589       -.25674E-07    .20823E-03
  15  Prefactor     4.4348        1.9111        .13135E-07    .26010E-01
  16  norm          .98523        2.3097       -.22882E-07   -.86068E-03
  17  Prefactor     .39080E-07    13.471       -.12336E-06** at limit **
  18  norm          4.5694        4.2288       -.11796E-07    .36585E-03
  19  norm          2.1832        1.7355       -.35991E-08    .23941E-03
  20  Prefactor      .0000        .70345       -.22673E-07** at limit **
  21  Prefactor     2.3496        2.4061        .64907E-08    .11871E-01
  22  norm          1.8717        .78132       -.10090E-08   -.44376E-03
  23  Prefactor     1.8080        5.8650        .54358E-07   -.27333E-02
  24  Prefactor     .38469E-06    29.577       -.75776E-06** at limit **
  25  Prefactor     12.501        1.2560       -.99317E-09    .17225E-01
  26  Prefactor     6.3988        6.0391        .83437E-08    .41467E-03
  27  norm          .16653E-09    6.0783       -.57196E-07** at limit **
  28  norm          3.6889        3.8354       -.39913E-07    .34830E-03
  29  Prefactor     4.3701        8.7804       -.43894E-07    .26290E-02
  30  Prefactor     .50376E-06    34.664        .11211E-06** at limit **
  31  Normalizat    .89315        .19382        .34886E-07   -.22356E-04
  32  Prefactor     1.1235        .14555       -.58195E-06   -.48899E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.14155
  norm       = 3.62488e-07
  Prefactor  = 1.11022e-10
  Prefactor  = 12.5197
  Prefactor  = 0
  Prefactor  = 1.42492e-06
  norm       = 5.55112e-11
  Prefactor  = 24.1234
  Prefactor  = 1.19516e-06
  norm       = 0.379639
  Prefactor  = 0
  Prefactor  = 0
  norm       = 3.32118
  Prefactor  = 2.309
  Prefactor  = 4.43485
  norm       = 0.985232
  Prefactor  = 3.90799e-08
  norm       = 4.56939
  norm       = 2.18319
  Prefactor  = 0
  Prefactor  = 2.3496
  norm       = 1.87169
  Prefactor  = 1.80797
  Prefactor  = 3.84692e-07
  Prefactor  = 12.5012
  Prefactor  = 6.39882
  norm       = 1.66533e-10
  norm       = 3.68891
  Prefactor  = 4.37013
  Prefactor  = 5.03764e-07
  Normalizat = 0.893147
  Prefactor  = 1.12347
 **********
 **   18 **HESSE 
 **********

 FCN=   7860.745     FROM HESSE     STATUS=OK           739 CALLS     3219 TOTAL
                     EDM=   .16E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.1415        4.4959        .49546E-03   -1.5667    
   2  norm          .36249E-06    4.4922        .56787E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .11102E-09    7.7785        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     12.520        7.2915        .28358E-03   -1.5637    
   5  Prefactor      .0000        8.7786        .87941E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .14249E-05    15.986        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .55511E-10    4.6306        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     24.123        19.989        .20331E-03   -1.5610    
   9  Prefactor     .11952E-05    16.916        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .37964        .73365        .91857E-03   -1.5696    
  11  Prefactor      .0000        4.2004        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        3.7788        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.3212        2.6442        .55522E-03   -1.5672    
  14  Prefactor     2.3090        5.3921        .66953E-03   -1.5678    
  15  Prefactor     4.4348        14.333        .47332E-03   -1.5666    
  16  norm          .98523        2.3264        .42619E-03   -1.5688    
  17  Prefactor     .39080E-07    13.793        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.5694        4.2498        .47030E-03   -1.5665    
  19  norm          2.1832        1.7445        .69663E-03   -1.5678    
  20  Prefactor      .0000        .69734        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.3496        10.855        .66879E-03   -1.5677    
  22  norm          1.8717        .78632        .76141E-03   -1.5681    
  23  Prefactor     1.8080        6.6893        .77729E-03   -1.5681    
  24  Prefactor     .38469E-06    31.185        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     12.501        11.495        .28268E-03   -1.5637    
  26  Prefactor     6.3988        6.0494        .39644E-03   -1.5657    
  27  norm          .16653E-09    6.0660        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          3.6889        3.8355        .52697E-03   -1.5670    
  29  Prefactor     4.3701        8.8729        .48119E-03   -1.5666    
  30  Prefactor     .50376E-06    36.586        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .89315        .17494        .67875E-01   -.96701    
  32  Prefactor     1.1235        .13015        .36752E-01   -.88720    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.64078e-06
Minuit parameter uncertainties:
  1  4.49591
  2  0.0025522
  3  5.94187e-05
  4  7.29155
  5  5.51938e-06
  6  0.00954533
  7  3.09255e-05
  8  19.9887
  9  0.00899289
  10  0.733655
  11  1.7125e-05
  12  1.97308e-05
  13  2.64422
  14  5.39213
  15  14.3328
  16  2.32642
  17  0.00146841
  18  4.24976
  19  1.74453
  20  5.52032e-07
  21  10.1006
  22  0.786317
  23  6.68936
  24  0.00692713
  25  11.4948
  26  6.04944
  27  6.49156e-05
  28  3.83545
  29  8.87292
  30  0.00858629
  31  0.175052
  32  0.130191
Done.

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

Extracting fit parameters...

4FGL J0809.5+5341
   Spectrum: LogParabola
326         norm:  4.569e+00  4.250e+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

GAL_V02
   Spectrum: PowerLaw
727    Prefactor:  1.123e+00  1.302e-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:  8.931e-01  1.751e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.13
Ra Dec: 122.379 53.688
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 3.16e-08 +/- 2.94e-08
Energy Flux (Fixed Index): 1.39e-05 +/- 1.29e-05

TS (Fixed Index): 2.13
Ra Dec: 122.379 53.688
Photon Flux Upper Limit: 9.69e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.26e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/3571/likelihoodResults_692928001_693187201_4FGL_J0809.5+5341_daily_bin1750.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) = 7860.73303791
delta logL = 0.0122697791176

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7860.7324423
delta logL = 0.0128653864613

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7860.732     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      239 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.6771        4.2504        .16712E-04    .10195E-01
   2  alpha         2.0582        .65511        .18808E-01    .10358E-03
   3  Normalizat    .89621        .18799        .29982E-03   -.85847E-04
   4  Prefactor     1.1224        .14390        .20683E-03   -.15817E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.67714
  alpha      = 2.05815
  Normalizat = 0.896215
  Prefactor  = 1.1224
 **********
 **   18 **HESSE 
 **********

 FCN=   7860.732     FROM HESSE     STATUS=OK            23 CALLS      262 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.6771        4.2335        .66846E-06   -1.5665    
   2  alpha         2.0582        .65238        .75234E-03   -.17767    
   3  Normalizat    .89621        .18806        .11993E-04   -.96593    
   4  Prefactor     1.1224        .14397        .41366E-04   -.88754    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12057e-09
Minuit parameter uncertainties:
  1  4.23348
  2  0.660273
  3  0.188197
  4  0.14402
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/3571': 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) = 7860.7324423
delta logL = 0.0128653882621

Extracting fit parameters...

4FGL J0809.5+5341
   Spectrum: LogParabola
326         norm:  4.677e+00  4.233e+00  0.000e+00  1.000e+06 ( 1.000e-12)
327        alpha:  2.058e+00  6.603e-01  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:  1.122e+00  1.440e-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:  8.962e-01  1.882e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.16
Ra Dec: 122.379 53.688
Photon Index (Free Index): 2.06 +/- 0.66
Photon Flux (Free Index): 2.86e-08 +/- 3.22e-08
Energy Flux (Free Index): 1.46e-05 +/- 1.40e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/3571/cmap_HighResolution_692928001_693187201_4FGL_J0809.5+5341_daily_bin1750.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.26e-05', comment='SUCCESS', photon_flux='3.16e-08', energy_flux2='1.46e-05', photon_flux_error='2.94e-08', dlogl='1.29e-02', energy_flux='1.39e-05', photon_flux2='2.86e-08', job_status='DONE', time_completed='2022-12-20 00:39:03.421676', photon_index_error2='0.66', photon_index2='2.06', ts='2.13', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', photon_flux_upper_limit='9.69e-08', energy_flux_error2='1.40e-05', EG='0.89', time_epoch_completed='1671525543.42', return_code='0', job_id='3571', GAL2='1.12', EG2='0.90', return_code2='0', energy_flux_error='1.29e-05', photon_flux_error2='3.22e-08', ts2='2.16', photon_index='2.16' WHERE bin_id='1750' AND source_name='4FGL J0809.5+5341' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec 20 00:39:03 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0247>
Subject: Job 3571: <4FGL_J0809.5+5341_daily_bin1750> in cluster <slac> Done

Job <4FGL_J0809.5+5341_daily_bin1750> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Dec 20 00:25:18 2022
Job was executed on host(s) <bullet0247>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec 20 00:25:19 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec 20 00:25:19 2022
Terminated at Tue Dec 20 00:39:03 2022
Results reported at Tue Dec 20 00:39:03 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.5+5341_daily_bin1750 122.379 53.6876 692928001 693187201 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 :                                   795.15 sec.
    Max Memory :                                 629 MB
    Average Memory :                             315.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2929 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   824 sec.
    Turnaround time :                            825 sec.

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

