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


Performing analysis on: 4FGL_J0809.3+4053_daily_bin1765
RA = 122.33, Dec = 40.8954
tmin = 696816001, tmax = 697075201
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='629856', job_status='RUN', time_executed='2023-02-03 00:44:23.395974', time_epoch_executed='1675413863.4' WHERE source_name='4FGL J0809.3+4053' and cadence='daily' and bin_id='1765'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/629856

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/629856/ft1_4FGL_J0809.3+4053_daily_bin1765.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/629856/ft2_4FGL_J0809.3+4053_daily_bin1765.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/629856/ft1_4FGL_J0809.3+4053_daily_bin1765.fits outfile=/scratch/kocevski/629856/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin1765.fits ra=122.33 dec=40.8954 rad=12.0 tmin=696816001.0 tmax=697075201.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.71
user 3.46
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/629856/ft2_4FGL_J0809.3+4053_daily_bin1765.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/629856/ft2_4FGL_J0809.3+4053_daily_bin1765.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/629856/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin1765.fits evtable="EVENTS" outfile="/scratch/kocevski/629856/ft1_filtered_4FGL_J0809.3+4053_daily_bin1765.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.52
user 0.35
sys 0.16

Number of photons that the gtmktime cut: 669

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/629856/ft1_filtered_4FGL_J0809.3+4053_daily_bin1765.fits" evtable="EVENTS" scfile=/scratch/kocevski/629856/ft2_4FGL_J0809.3+4053_daily_bin1765.fits sctable="SC_DATA" outfile=/scratch/kocevski/629856/ltcube_696816001_697075201_4FGL_J0809.3+4053_daily_bin1765.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/629856/ft2_4FGL_J0809.3+4053_daily_bin1765.fits
.....................!
real 15.77
user 15.34
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/629856/ft1_filtered_4FGL_J0809.3+4053_daily_bin1765.fits evtable="EVENTS" scfile=/scratch/kocevski/629856/ft2_4FGL_J0809.3+4053_daily_bin1765.fits sctable="SC_DATA" expcube=/scratch/kocevski/629856/ltcube_696816001_697075201_4FGL_J0809.3+4053_daily_bin1765.fits outfile=/scratch/kocevski/629856/expmap_696816001_697075201_4FGL_J0809.3+4053_daily_bin1765.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/629856/ltcube_696816001_697075201_4FGL_J0809.3+4053_daily_bin1765.fits
.....................!
real 194.41
user 188.47
sys 5.38

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

Setting source of interest to:
4FGL J0809.3+4053 @ 122.33 40.8954

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/629856/ft1_filtered_4FGL_J0809.3+4053_daily_bin1765.fits scfile=/scratch/kocevski/629856/ft2_4FGL_J0809.3+4053_daily_bin1765.fits outfile=/scratch/kocevski/629856/cmap_696816001_697075201_4FGL_J0809.3+4053_daily_bin1765.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.33 yref=40.8954 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.57
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/629856/ft1_filtered_4FGL_J0809.3+4053_daily_bin1765.fits scfile=/scratch/kocevski/629856/ft2_4FGL_J0809.3+4053_daily_bin1765.fits outfile=/scratch/kocevski/629856/cmap_HighResolution_696816001_697075201_4FGL_J0809.3+4053_daily_bin1765.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.33 yref=40.8954 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.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/629856/ft1_filtered_4FGL_J0809.3+4053_daily_bin1765.fits evtable="EVENTS" scfile=/scratch/kocevski/629856/ft2_4FGL_J0809.3+4053_daily_bin1765.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/629856/Model_4FGL_J0809.3+4053_daily_bin1765.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/629856/ft1_filtered_4FGL_J0809.3+4053_daily_bin1765.fits.....................!
real 75.18
user 73.57
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/629856/ft1_filtered_4FGL_J0809.3+4053_daily_bin1765.fits', '/scratch/kocevski/629856/ft2_4FGL_J0809.3+4053_daily_bin1765.fits', expMap='/scratch/kocevski/629856/expmap_696816001_697075201_4FGL_J0809.3+4053_daily_bin1765.fits', expCube='/scratch/kocevski/629856/ltcube_696816001_697075201_4FGL_J0809.3+4053_daily_bin1765.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/629856/Model_4FGL_J0809.3+4053_daily_bin1765.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0809.3+4053'

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.019e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
270        Index:  2.588e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
271        Scale:  6.589e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/629856/ft1_filtered_4FGL_J0809.3+4053_daily_bin1765.fits
Spacecraft file(s): /scratch/kocevski/629856/ft2_4FGL_J0809.3+4053_daily_bin1765.fits
Exposure map: /scratch/kocevski/629856/expmap_696816001_697075201_4FGL_J0809.3+4053_daily_bin1765.fits
Exposure cube: /scratch/kocevski/629856/ltcube_696816001_697075201_4FGL_J0809.3+4053_daily_bin1765.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/629856/Model_4FGL_J0809.3+4053_daily_bin1765.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) = 7455.32232653

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2901       1.0000          .0000       .10000E+07
     2 'Prefactor '    12.291       1.0000          .0000       .10000E+07
     3 'Prefactor '    25.597       1.0000          .0000       .10000E+07
     4 'Prefactor '    .61062E-09   1.0000          .0000       .10000E+07
     5 'Prefactor '    7.4920       1.0000          .0000       .10000E+07
     6 'norm      '    .34505       1.0000          .0000       .10000E+07
     7 'norm      '    .33862E-08   1.0000          .0000       .10000E+07
     8 'Prefactor '    .52514E-07   1.0000          .0000       .10000E+07
     9 'Prefactor '    .10020E-06   1.0000          .0000       .10000E+07
    10 'Prefactor '    18.622       1.0000          .0000       .10000E+07
    11 'norm      '    3.4777       1.0000          .0000       .10000E+07
    12 'norm      '    .50137       1.0000          .0000       .10000E+07
    13 'Prefactor '    .23870E-08   1.0000          .0000       .10000E+07
    14 'Prefactor '    .86098E-07   1.0000          .0000       .10000E+07
    15 'Prefactor '    4.2371       1.0000          .0000       .10000E+07
    16 'Prefactor '    .55511E-10   1.0000          .0000       .10000E+07
    17 'Prefactor '    .39746E-07   1.0000          .0000       .10000E+07
    18 'norm      '    6.4408       1.0000          .0000       .10000E+07
    19 'Prefactor '    57.023       1.0000          .0000       .10000E+07
    20 'Prefactor '    4.7511       1.0000          .0000       .10000E+07
    21 'Normalizat'    1.1792       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .94576       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7455.313     FROM MIGRAD    STATUS=CONVERGED    120 CALLS     2057 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2877        10.085        .80330E-07   -.10619E-02
   2  Prefactor     12.291        1.4201        .92484E-08   -.71949E-02
   3  Prefactor     25.594        1.1317       -.52297E-08   -.12386E-01
   4  Prefactor     .19429E-07    5.3462       -.55658E-07** at limit **
   5  Prefactor     7.4898        1.6808       -.39659E-07    .23117E-02
   6  norm          .36059        .70217        .79816E-07   -.20694E-02
   7  norm           .0000        1.2230       -.18040E-06** at limit **
   8  Prefactor     .99920E-09    5.0165       -.11345E-06** at limit **
   9  Prefactor     .23315E-08    25.824        .13383E-05** at limit **
  10  Prefactor     18.620        7.5591        .99689E-07   -.25899E-02
  11  norm          3.4777        1.8470       -.59576E-07    .96109E-03
  12  norm          .50148        .38446        .24400E-07   -.16388E-02
  13  Prefactor     .22760E-07    14.118        .59176E-06** at limit **
  14  Prefactor     .15260E-06    5.7117        .26089E-06** at limit **
  15  Prefactor     4.2372        2.9866        .65807E-08   -.24935E-03
  16  Prefactor     .46169E-06    4.1415        .16094E-06** at limit **
  17  Prefactor     .31464E-06    7.4644        .60486E-09** at limit **
  18  norm          6.4405        6.2065        .23150E-07   -.45403E-04
  19  Prefactor     57.030        1.0920       -.28291E-08    .27824E-01
  20  Prefactor     4.7494        7.4467       -.21745E-06   -.13551E-02
  21  Normalizat    1.1793        .22185        .45902E-05    .19170E-04
  22  Prefactor     .94569        .15541       -.57135E-05    .57248E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.28772
  Prefactor  = 12.2906
  Prefactor  = 25.5943
  Prefactor  = 1.94289e-08
  Prefactor  = 7.48984
  norm       = 0.360592
  norm       = 0
  Prefactor  = 9.99201e-10
  Prefactor  = 2.33147e-09
  Prefactor  = 18.6197
  norm       = 3.47769
  norm       = 0.50148
  Prefactor  = 2.27596e-08
  Prefactor  = 1.526e-07
  Prefactor  = 4.23722
  Prefactor  = 4.61686e-07
  Prefactor  = 3.14637e-07
  norm       = 6.44046
  Prefactor  = 57.0298
  Prefactor  = 4.7494
  Normalizat = 1.17928
  Prefactor  = 0.945685
 **********
 **   18 **HESSE 
 **********

 FCN=   7455.313     FROM HESSE     STATUS=OK           392 CALLS     2449 TOTAL
                     EDM=   .18E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2877        9.9828        .97471E-03   -1.5685    
   2  Prefactor     12.291        12.658        .28548E-03   -1.5638    
   3  Prefactor     25.594        28.462        .19769E-03   -1.5607    
   4  Prefactor     .19429E-07    5.5154        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.4898        17.362        .36617E-03   -1.5653    
   6  norm          .36059        9.4348        .96151E-02   -1.5696    
   7  norm           .0000        1.2225        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .99920E-09    5.0270        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .23315E-08    25.872        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     18.620        7.5783        .23182E-03   -1.5622    
  11  norm          3.4777        1.8477        .54199E-03   -1.5671    
  12  norm          .50148        .38598        .78572E-03   -1.5694    
  13  Prefactor     .22760E-07    14.396        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .15260E-06    7.0424        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.2372        2.9960        .48928E-03   -1.5667    
  16  Prefactor     .46169E-06    8.1389        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .31464E-06    10.200        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          6.4405        6.2162        .39523E-03   -1.5657    
  19  Prefactor     57.030        76.461        .13243E-03   -1.5557    
  20  Prefactor     4.7494        7.6600        .46137E-03   -1.5664    
  21  Normalizat    1.1793        .19427        .64367E-01   -.87245    
  22  Prefactor     .94569        .13429        .45586E-01   -.94563    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.79266e-06
Minuit parameter uncertainties:
  1  7.17079
  2  12.6582
  3  28.4625
  4  0.00065504
  5  17.3619
  6  3.68896
  7  4.08091e-06
  8  0.000141659
  9  0.000489271
  10  7.57827
  11  1.84775
  12  0.38598
  13  0.00114444
  14  0.00207334
  15  2.99604
  16  0.00387691
  17  0.0035829
  18  6.21624
  19  76.4623
  20  7.66001
  21  0.19439
  22  0.134335
Done.

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

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.862e+01  7.578e+00  0.000e+00  1.000e+06 ( 1.000e-12)
270        Index:  2.588e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
271        Scale:  6.589e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  9.457e-01  1.343e-01  0.000e+00  1.000e+01 ( 1.000e+00)
600        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
601        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
598   Normalization:  1.179e+00  1.944e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.18
Ra Dec: 122.330 40.895
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 1.54e-07 +/- 6.28e-08
Energy Flux (Fixed Index): 4.10e-05 +/- 1.67e-05

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) = 7454.992568
delta logL = 0.320079713931

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7454.99246591
delta logL = 0.320181804536

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.819       1.0000          .0000       .10000E+07
     2 'Index     '    2.2867       1.0000          .0000       10.000    
     3 'Normalizat'    1.2129       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92892       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7454.992     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      271 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.804        169.01        .21414E-03    .62885E-03
   2  Index         2.2859        6.1429        .15345        .66037E-04
   3  Normalizat    1.2135        .22501        .63603E-01   -.33281E-05
   4  Prefactor     .92864        .14521        .45373E-01   -.39644E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.8037
  Index      = 2.28591
  Normalizat = 1.21351
  Prefactor  = 0.928641
 **********
 **   18 **HESSE 
 **********

 FCN=   7454.992     FROM HESSE     STATUS=OK            33 CALLS      304 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.804        9.1909        .85656E-05   -1.5615    
   2  Index         2.2859        .36087        .59650E-02   -.57379    
   3  Normalizat    1.2135        .21263        .28134E-03   -.86186    
   4  Prefactor     .92864        .15112        .22860E-03   -.95147    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01221e-11
Minuit parameter uncertainties:
  1  9.19093
  2  0.361318
  3  0.212784
  4  0.151189
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/629856': 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) = 7454.99245872
delta logL = 0.320188995894

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  2.180e+01  9.191e+00  0.000e+00  1.000e+06 ( 1.000e-12)
270        Index:  2.286e+00  3.613e-01  0.000e+00  1.000e+01 (-1.000e+00)
271        Scale:  6.589e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  9.286e-01  1.512e-01  0.000e+00  1.000e+01 ( 1.000e+00)
600        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
601        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
598   Normalization:  1.214e+00  2.128e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.81
Ra Dec: 122.330 40.895
Photon Index (Free Index): 2.29 +/- 0.36
Photon Flux (Free Index): 1.26e-07 +/- 6.43e-08
Energy Flux (Free Index): 4.89e-05 +/- 2.42e-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/629856/cmap_HighResolution_696816001_697075201_4FGL_J0809.3+4053_daily_bin1765.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.54e-07', energy_flux2='4.89e-05', photon_flux_error='6.28e-08', dlogl='3.20e-01', energy_flux='4.10e-05', photon_flux2='1.26e-07', job_status='DONE', time_completed='2023-02-03 00:55:18.334198', photon_index_error2='0.36', photon_index2='2.29', ts='11.18', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='2.42e-05', EG='1.18', time_epoch_completed='1675414518.33', return_code='0', job_id='629856', GAL2='0.93', EG2='1.21', return_code2='0', energy_flux_error='1.67e-05', photon_flux_error2='6.43e-08', ts2='11.81', photon_index='2.59' WHERE bin_id='1765' AND source_name='4FGL J0809.3+4053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Feb  3 00:55:18 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0047>
Subject: Job 629856: <4FGL_J0809.3+4053_daily_bin1765> in cluster <slac> Done

Job <4FGL_J0809.3+4053_daily_bin1765> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Feb  3 00:40:17 2023
Job was executed on host(s) <bullet0047>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Feb  3 00:40:46 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Feb  3 00:40:46 2023
Terminated at Fri Feb  3 00:55:19 2023
Results reported at Fri Feb  3 00:55:19 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.3+4053_daily_bin1765 122.33 40.8954 696816001 697075201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0809.3+4053 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   656.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             256.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   872 sec.
    Turnaround time :                            902 sec.

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

