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


Performing analysis on: 4FGL_J0816.4-1311_daily_bin1751
RA = 124.112, Dec = -13.1973
tmin = 693187201, tmax = 693446401
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='73720', job_status='RUN', time_executed='2022-12-23 00:28:51.853361', time_epoch_executed='1671784131.85' WHERE source_name='4FGL J0816.4-1311' and cadence='daily' and bin_id='1751'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/73720

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/73720/ft1_4FGL_J0816.4-1311_daily_bin1751.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/73720/ft2_4FGL_J0816.4-1311_daily_bin1751.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/73720/ft1_4FGL_J0816.4-1311_daily_bin1751.fits outfile=/scratch/kocevski/73720/ft1_filteredMKT_4FGL_J0816.4-1311_daily_bin1751.fits ra=124.112 dec=-13.1973 rad=12.0 tmin=693187201.0 tmax=693446401.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.62
user 3.40
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/73720/ft2_4FGL_J0816.4-1311_daily_bin1751.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/73720/ft2_4FGL_J0816.4-1311_daily_bin1751.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/73720/ft1_filteredMKT_4FGL_J0816.4-1311_daily_bin1751.fits evtable="EVENTS" outfile="/scratch/kocevski/73720/ft1_filtered_4FGL_J0816.4-1311_daily_bin1751.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.35
sys 0.14

Number of photons that the gtmktime cut: 1045

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/73720/ft1_filtered_4FGL_J0816.4-1311_daily_bin1751.fits" evtable="EVENTS" scfile=/scratch/kocevski/73720/ft2_4FGL_J0816.4-1311_daily_bin1751.fits sctable="SC_DATA" outfile=/scratch/kocevski/73720/ltcube_693187201_693446401_4FGL_J0816.4-1311_daily_bin1751.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/73720/ft2_4FGL_J0816.4-1311_daily_bin1751.fits
.....................!
real 12.05
user 11.64
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/73720/ft1_filtered_4FGL_J0816.4-1311_daily_bin1751.fits evtable="EVENTS" scfile=/scratch/kocevski/73720/ft2_4FGL_J0816.4-1311_daily_bin1751.fits sctable="SC_DATA" expcube=/scratch/kocevski/73720/ltcube_693187201_693446401_4FGL_J0816.4-1311_daily_bin1751.fits outfile=/scratch/kocevski/73720/expmap_693187201_693446401_4FGL_J0816.4-1311_daily_bin1751.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/73720/ltcube_693187201_693446401_4FGL_J0816.4-1311_daily_bin1751.fits
.....................!
real 190.69
user 185.58
sys 4.78

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

Setting source of interest to:
4FGL J0816.4-1311 @ 124.112 -13.1973

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/73720/ft1_filtered_4FGL_J0816.4-1311_daily_bin1751.fits scfile=/scratch/kocevski/73720/ft2_4FGL_J0816.4-1311_daily_bin1751.fits outfile=/scratch/kocevski/73720/cmap_693187201_693446401_4FGL_J0816.4-1311_daily_bin1751.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=124.112 yref=-13.1973 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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/73720/ft1_filtered_4FGL_J0816.4-1311_daily_bin1751.fits scfile=/scratch/kocevski/73720/ft2_4FGL_J0816.4-1311_daily_bin1751.fits outfile=/scratch/kocevski/73720/cmap_HighResolution_693187201_693446401_4FGL_J0816.4-1311_daily_bin1751.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=124.112 yref=-13.1973 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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/73720/ft1_filtered_4FGL_J0816.4-1311_daily_bin1751.fits evtable="EVENTS" scfile=/scratch/kocevski/73720/ft2_4FGL_J0816.4-1311_daily_bin1751.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/73720/Model_4FGL_J0816.4-1311_daily_bin1751.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/73720/ft1_filtered_4FGL_J0816.4-1311_daily_bin1751.fits.....................!
real 139.27
user 137.63
sys 1.37

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/73720/ft1_filtered_4FGL_J0816.4-1311_daily_bin1751.fits', '/scratch/kocevski/73720/ft2_4FGL_J0816.4-1311_daily_bin1751.fits', expMap='/scratch/kocevski/73720/expmap_693187201_693446401_4FGL_J0816.4-1311_daily_bin1751.fits', expCube='/scratch/kocevski/73720/ltcube_693187201_693446401_4FGL_J0816.4-1311_daily_bin1751.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/73720/Model_4FGL_J0816.4-1311_daily_bin1751.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0816.4-1311'

4FGL J0816.4-1311
   Spectrum: PowerLaw
287    Prefactor:  2.040e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
288        Index:  1.850e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
289        Scale:  2.915e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/73720/ft1_filtered_4FGL_J0816.4-1311_daily_bin1751.fits
Spacecraft file(s): /scratch/kocevski/73720/ft2_4FGL_J0816.4-1311_daily_bin1751.fits
Exposure map: /scratch/kocevski/73720/expmap_693187201_693446401_4FGL_J0816.4-1311_daily_bin1751.fits
Exposure cube: /scratch/kocevski/73720/ltcube_693187201_693446401_4FGL_J0816.4-1311_daily_bin1751.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/73720/Model_4FGL_J0816.4-1311_daily_bin1751.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) = 10831.3571498

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.5233       1.0000          .0000       .10000E+07
     2 'norm      '    .54279       1.0000          .0000       .10000E+07
     3 'norm      '    .42823E-04   1.0000          .0000       .10000E+07
     4 'norm      '    49.961       1.0000          .0000       .10000E+07
     5 'Prefactor '    .19395E-03   1.0000          .0000       .10000E+07
     6 'norm      '    .77984E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    3.8041       1.0000          .0000       .10000E+07
     8 'norm      '    5.7357       1.0000          .0000       .10000E+07
     9 'Prefactor '    .53298E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    .27905E-04   1.0000          .0000       .10000E+07
    11 'norm      '    .50512E-03   1.0000          .0000       .10000E+07
    12 'norm      '    3.8289       1.0000          .0000       .10000E+07
    13 'norm      '    3.9303       1.0000          .0000       .10000E+07
    14 'norm      '    .50392E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    .19615E-05   1.0000          .0000       .10000E+07
    16 'norm      '    6.2615       1.0000          .0000       .10000E+07
    17 'norm      '    .92593E-07   1.0000          .0000       .10000E+07
    18 'Prefactor '    10.933       1.0000          .0000       .10000E+07
    19 'Prefactor '    .91352E-05   1.0000          .0000       .10000E+07
    20 'Normalizat'    1.1357       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .92168       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5640E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10831.32     FROM MIGRAD    STATUS=CONVERGED    516 CALLS     1676 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5200        1.2702        .27796E-08   -.95072E-03
   2  norm          .53469        20.778       -.14840E-06   -.73302E-03
   3  norm           .0000        3.1632       -.41112E-08** at limit **
   4  norm          47.367        35.561       -.33716E-07   -.98331E-04
   5  Prefactor      .0000        2.4600        .23548E-08** at limit **
   6  norm           .0000        1.3459        .66586E-08** at limit **
   7  Prefactor     3.8020        4.9894        .34056E-07   -.21221E-01
   8  norm          5.7379        1.4997       -.11466E-07   -.31240E-02
   9  Prefactor     .11102E-09    5.7215       -.28823E-07** at limit **
  10  Prefactor      .0000        1.0835       -.46670E-08** at limit **
  11  norm           .0000        22.927        .13003E-06** at limit **
  12  norm          3.2616        24.864        .22253E-05    .12539E-02
  13  norm          3.9511        2.9059        .49284E-07   -.38224E-01
  14  norm           .0000        20.966       -.54376E-06** at limit **
  15  Prefactor      .0000        6.3014        .41641E-07** at limit **
  16  norm          6.2536        6.2700        .24907E-07   -.93255E-02
  17  norm           .0000        .71385       -.64817E-08** at limit **
  18  Prefactor     10.895        10.109        .41086E-07   -.40702E-02
  19  Prefactor      .0000        8.0061        .54606E-08** at limit **
  20  Normalizat    1.1357        .18010       -.12071E-05    .42931E-04
  21  Prefactor     .92224        .63152E-01   -.72231E-07    .32843E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.51997
  norm       = 0.534688
  norm       = 0
  norm       = 47.3667
  Prefactor  = 0
  norm       = 0
  Prefactor  = 3.80198
  norm       = 5.73791
  Prefactor  = 1.11022e-10
  Prefactor  = 0
  norm       = 0
  norm       = 3.26159
  norm       = 3.95107
  norm       = 0
  Prefactor  = 0
  norm       = 6.25359
  norm       = 0
  Prefactor  = 10.8955
  Prefactor  = 0
  Normalizat = 1.13566
  Prefactor  = 0.922244
 **********
 **   18 **HESSE 
 **********

 FCN=   10831.32     FROM HESSE     STATUS=OK           315 CALLS     1991 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5200        1.2693        .80109E-05   -1.5676    
   2  norm          .53469        21.683        .29807E-04   -1.5693    
   3  norm           .0000        3.1872        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          47.367        35.614        .56595E-05   -1.5570    
   5  Prefactor      .0000        2.4607        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm           .0000        1.3517        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.8020        6.0904        .10346E-03   -1.5669    
   8  norm          5.7379        1.5015        .61660E-05   -1.5660    
   9  Prefactor     .11102E-09    5.7325        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        1.0840        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm           .0000        22.961        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.2616        25.108        .20622E-04   -1.5672    
  13  norm          3.9511        3.7806        .95114E-04   -1.5668    
  14  norm           .0000        21.651        .16847E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor      .0000        6.3023        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          6.2536        6.4437        .80185E-04   -1.5658    
  17  norm           .0000        .71430        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     10.895        10.249        .60549E-04   -1.5642    
  19  Prefactor      .0000        8.0359        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.1357        .19595        .39418E-03   -.88615    
  21  Prefactor     .92224        .67651E-01    .15241E-03   -.95368    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12228e-08
Minuit parameter uncertainties:
  1  1.26928
  2  6.80995
  3  2.2788e-06
  4  35.614
  5  6.96016e-07
  6  1.2588e-06
  7  6.09046
  8  1.50147
  9  5.02537e-05
  10  9.66075e-07
  11  4.30336e-05
  12  18.099
  13  3.78064
  14  2.2011e-05
  15  6.21242e-06
  16  6.44366
  17  2.03558e-07
  18  10.2488
  19  3.01342e-06
  20  0.196079
  21  0.0676571
Done.

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

Extracting fit parameters...

4FGL J0816.4-1311
   Spectrum: PowerLaw
287    Prefactor:  0.000e+00  9.661e-07  0.000e+00  1.000e+06 ( 1.000e-13)
288        Index:  1.850e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
289        Scale:  2.915e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
561    Prefactor:  9.222e-01  6.766e-02  0.000e+00  1.000e+01 ( 1.000e+00)
562        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
563        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
560   Normalization:  1.136e+00  1.961e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 124.112 -13.197
Photon Flux Upper Limit: 3.57e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.64e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/73720/likelihoodResults_693187201_693446401_4FGL_J0816.4-1311_daily_bin1751.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) = 10831.3193964
delta logL = -0.00127063760374

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10831.3181258
delta logL = -5.15556166647e-08

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10831.32     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      260 TOTAL
                     EDM=   .47E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    .16891E-01    .42118E-03** at limit **
   2  Index         1.4598        5.8239        .37426        .12151E-10
   3  Normalizat    1.1357        .62481E-03    .89005E-01   -.59249E-04
   4  Prefactor     .92224        .22128E-03    .34491E-01   -.20665E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  Index      = 1.45976
  Normalizat = 1.13566
  Prefactor  = 0.922244
 **********
 **   18 **HESSE 
 **********

 FCN=   10831.32     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      289 TOTAL
                     EDM=   .11E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    .40376E-01    .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.4598        5.6908        .51000       -.78673    
   3  Normalizat    1.1357        .96351E-03    .39418E-03   -.88615    
   4  Prefactor     .92224        .34204E-03    .15241E-03   -.95368    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.05406e-12
Minuit parameter uncertainties:
  1  2.56944e-06
  2  14179.5
  3  0.00096351
  4  0.000342038
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/73720': 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) = 10831.3181257
delta logL = -2.54658516496e-11

Extracting fit parameters...

4FGL J0816.4-1311
   Spectrum: PowerLaw
287    Prefactor:  5.551e-11  2.569e-06  0.000e+00  1.000e+06 ( 1.000e-13)
288        Index:  1.460e+00  1.418e+04  0.000e+00  1.000e+01 (-1.000e+00)
289        Scale:  2.915e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
561    Prefactor:  9.222e-01  3.420e-04  0.000e+00  1.000e+01 ( 1.000e+00)
562        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
563        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
560   Normalization:  1.136e+00  9.635e-04  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 124.112 -13.197

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/73720/cmap_HighResolution_693187201_693446401_4FGL_J0816.4-1311_daily_bin1751.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.64e-03', job_status='DONE', photon_flux_upper_limit='3.57e-08', time_completed='2022-12-23 00:41:56.687719', job_id='73720', GAL2='0.92', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1671784916.69', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='-2.55e-11', ts2='-0.00', photon_index_error='0.00', photon_index='1.85' WHERE bin_id='1751' AND source_name='4FGL J0816.4-1311' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Dec 23 00:41:56 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0025>
Subject: Job 73720: <4FGL_J0816.4-1311_daily_bin1751> in cluster <slac> Done

Job <4FGL_J0816.4-1311_daily_bin1751> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Dec 23 00:25:18 2022
Job was executed on host(s) <bullet0025>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Dec 23 00:25:19 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Dec 23 00:25:19 2022
Terminated at Fri Dec 23 00:41:57 2022
Results reported at Fri Dec 23 00:41:57 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0816.4-1311_daily_bin1751 124.112 -13.1973 693187201 693446401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0816.4-1311 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   787.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             321.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   997 sec.
    Turnaround time :                            999 sec.

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

