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


Performing analysis on: 4FGL_J0816.3+5739_daily_bin1748
RA = 124.1, Dec = 57.6616
tmin = 692409601, tmax = 692668801
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='881614', job_status='RUN', time_executed='2022-12-14 00:25:54.660451', time_epoch_executed='1671006354.66' WHERE source_name='4FGL J0816.3+5739' and cadence='daily' and bin_id='1748'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/881614

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/881614/ft1_4FGL_J0816.3+5739_daily_bin1748.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/881614/ft2_4FGL_J0816.3+5739_daily_bin1748.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/881614/ft1_4FGL_J0816.3+5739_daily_bin1748.fits outfile=/scratch/kocevski/881614/ft1_filteredMKT_4FGL_J0816.3+5739_daily_bin1748.fits ra=124.1 dec=57.6616 rad=12.0 tmin=692409601.0 tmax=692668801.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.63
user 3.37
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/881614/ft2_4FGL_J0816.3+5739_daily_bin1748.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/881614/ft2_4FGL_J0816.3+5739_daily_bin1748.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/881614/ft1_filteredMKT_4FGL_J0816.3+5739_daily_bin1748.fits evtable="EVENTS" outfile="/scratch/kocevski/881614/ft1_filtered_4FGL_J0816.3+5739_daily_bin1748.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.50
user 0.32
sys 0.16

Number of photons that the gtmktime cut: 766

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/881614/ft1_filtered_4FGL_J0816.3+5739_daily_bin1748.fits" evtable="EVENTS" scfile=/scratch/kocevski/881614/ft2_4FGL_J0816.3+5739_daily_bin1748.fits sctable="SC_DATA" outfile=/scratch/kocevski/881614/ltcube_692409601_692668801_4FGL_J0816.3+5739_daily_bin1748.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/881614/ft2_4FGL_J0816.3+5739_daily_bin1748.fits
.....................!
real 12.25
user 11.90
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/881614/ft1_filtered_4FGL_J0816.3+5739_daily_bin1748.fits evtable="EVENTS" scfile=/scratch/kocevski/881614/ft2_4FGL_J0816.3+5739_daily_bin1748.fits sctable="SC_DATA" expcube=/scratch/kocevski/881614/ltcube_692409601_692668801_4FGL_J0816.3+5739_daily_bin1748.fits outfile=/scratch/kocevski/881614/expmap_692409601_692668801_4FGL_J0816.3+5739_daily_bin1748.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/881614/ltcube_692409601_692668801_4FGL_J0816.3+5739_daily_bin1748.fits
.....................!
real 192.97
user 186.54
sys 5.63

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

Setting source of interest to:
4FGL J0816.3+5739 @ 124.1 57.6616

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/881614/ft1_filtered_4FGL_J0816.3+5739_daily_bin1748.fits scfile=/scratch/kocevski/881614/ft2_4FGL_J0816.3+5739_daily_bin1748.fits outfile=/scratch/kocevski/881614/cmap_692409601_692668801_4FGL_J0816.3+5739_daily_bin1748.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.1 yref=57.6616 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/881614/ft1_filtered_4FGL_J0816.3+5739_daily_bin1748.fits scfile=/scratch/kocevski/881614/ft2_4FGL_J0816.3+5739_daily_bin1748.fits outfile=/scratch/kocevski/881614/cmap_HighResolution_692409601_692668801_4FGL_J0816.3+5739_daily_bin1748.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.1 yref=57.6616 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.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/881614/ft1_filtered_4FGL_J0816.3+5739_daily_bin1748.fits evtable="EVENTS" scfile=/scratch/kocevski/881614/ft2_4FGL_J0816.3+5739_daily_bin1748.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/881614/Model_4FGL_J0816.3+5739_daily_bin1748.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/881614/ft1_filtered_4FGL_J0816.3+5739_daily_bin1748.fits.....................!
real 86.74
user 85.05
sys 1.31

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/881614/ft1_filtered_4FGL_J0816.3+5739_daily_bin1748.fits', '/scratch/kocevski/881614/ft2_4FGL_J0816.3+5739_daily_bin1748.fits', expMap='/scratch/kocevski/881614/expmap_692409601_692668801_4FGL_J0816.3+5739_daily_bin1748.fits', expCube='/scratch/kocevski/881614/ltcube_692409601_692668801_4FGL_J0816.3+5739_daily_bin1748.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/881614/Model_4FGL_J0816.3+5739_daily_bin1748.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0816.3+5739'

4FGL J0816.3+5739
   Spectrum: PowerLaw
339    Prefactor:  5.498e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
340        Index:  2.085e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
341        Scale:  1.529e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/881614/ft1_filtered_4FGL_J0816.3+5739_daily_bin1748.fits
Spacecraft file(s): /scratch/kocevski/881614/ft2_4FGL_J0816.3+5739_daily_bin1748.fits
Exposure map: /scratch/kocevski/881614/expmap_692409601_692668801_4FGL_J0816.3+5739_daily_bin1748.fits
Exposure cube: /scratch/kocevski/881614/ltcube_692409601_692668801_4FGL_J0816.3+5739_daily_bin1748.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/881614/Model_4FGL_J0816.3+5739_daily_bin1748.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) = 8240.69535121

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.108       1.0000          .0000       .10000E+07
     2 'Prefactor '    .91834E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    .16863       1.0000          .0000       .10000E+07
     4 'Prefactor '    12.141       1.0000          .0000       .10000E+07
     5 'Prefactor '    .54169E-03   1.0000          .0000       .10000E+07
     6 'norm      '    .15543E-07   1.0000          .0000       .10000E+07
     7 'Prefactor '    .19151E-01   1.0000          .0000       .10000E+07
     8 'norm      '    4.3786       1.0000          .0000       .10000E+07
     9 'Prefactor '    .18619E-02   1.0000          .0000       .10000E+07
    10 'norm      '    .43436E-02   1.0000          .0000       .10000E+07
    11 'norm      '    .11338E-05   1.0000          .0000       .10000E+07
    12 'norm      '    6.5429       1.0000          .0000       .10000E+07
    13 'Prefactor '    3.3411       1.0000          .0000       .10000E+07
    14 'Prefactor '    1.4328       1.0000          .0000       .10000E+07
    15 'Prefactor '    5.0872       1.0000          .0000       .10000E+07
    16 'Prefactor '    .48914       1.0000          .0000       .10000E+07
    17 'Prefactor '    58.776       1.0000          .0000       .10000E+07
    18 'norm      '    .26444E-03   1.0000          .0000       .10000E+07
    19 'norm      '    4.6669       1.0000          .0000       .10000E+07
    20 'Prefactor '    5.5651       1.0000          .0000       .10000E+07
    21 'Prefactor '    32.202       1.0000          .0000       .10000E+07
    22 'norm      '    2.8363       1.0000          .0000       .10000E+07
    23 'Prefactor '    .10610E-03   1.0000          .0000       .10000E+07
    24 'Prefactor '    2.0442       1.0000          .0000       .10000E+07
    25 'norm      '    .26040E-06   1.0000          .0000       .10000E+07
    26 'Normalizat'    .76041       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1257       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7440E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8240.679     FROM MIGRAD    STATUS=CONVERGED    146 CALLS     2398 TOTAL
                     EDM=   .97E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.217        4.4433       -.30643E-07    .68883E-01
   2  Prefactor     .13617E-06    15.172       -.30178E-06** at limit **
   3  Prefactor     .90483E-07    45.697       -.46397E-06** at limit **
   4  Prefactor     12.269        1.3121        .13066E-07    .50514E-02
   5  Prefactor     .14240E-05    16.091       -.42856E-06** at limit **
   6  norm           .0000        .59216       -.51526E-07** at limit **
   7  Prefactor     .25291E-01    .82826       -.26694E-07** at limit **
   8  norm          4.3781        2.3087       -.10479E-07   -.64109E-03
   9  Prefactor     .11042E-05    20.286        .47175E-07** at limit **
  10  norm          .10904E-01    1.0305        .10248E-07** at limit **
  11  norm          .55511E-10    1.7799       -.31451E-07** at limit **
  12  norm          6.5435        2.6130       -.70382E-08   -.26159E-03
  13  Prefactor     3.3404        1.9222        .10102E-06    .76304E-02
  14  Prefactor     1.4313        8.9268        .51759E-07    .98816E-02
  15  Prefactor     5.0717        4.1193        .84750E-07    .10673E-03
  16  Prefactor     .48294        7.1632        .30400E-07    .53219E-02
  17  Prefactor     58.741        15.884        .72345E-07    .19475    
  18  norm          .55511E-09    4.2380        .12456E-06** at limit **
  19  norm          4.6870        5.8299        .58331E-07   -.97140E-03
  20  Prefactor     5.5598        3.2728       -.50589E-07    .41766E-02
  21  Prefactor     32.205        2.1629        .13588E-07   -.34312E-02
  22  norm          2.8369        .93527       -.11335E-07   -.15491E-02
  23  Prefactor     .77716E-09    3.3680        .10325E-06** at limit **
  24  Prefactor     2.0335        4.4771        .52460E-07   -.20148E-01
  25  norm          .13878E-08    3.2923        .13111E-06** at limit **
  26  Normalizat    .76034        .19597        .20565E-05    .75531E-04
  27  Prefactor     1.1258        .14774       -.15459E-05    .41506E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.2174
  Prefactor  = 1.36169e-07
  Prefactor  = 9.04832e-08
  Prefactor  = 12.2688
  Prefactor  = 1.42397e-06
  norm       = 0
  Prefactor  = 0.0252915
  norm       = 4.37812
  Prefactor  = 1.10417e-06
  norm       = 0.0109037
  norm       = 5.55112e-11
  norm       = 6.54353
  Prefactor  = 3.34037
  Prefactor  = 1.43125
  Prefactor  = 5.07169
  Prefactor  = 0.482936
  Prefactor  = 58.7413
  norm       = 5.55112e-10
  norm       = 4.68702
  Prefactor  = 5.55983
  Prefactor  = 32.2055
  norm       = 2.83689
  Prefactor  = 7.77156e-10
  Prefactor  = 2.03346
  norm       = 1.38778e-09
  Normalizat = 0.760344
  Prefactor  = 1.12579
 **********
 **   18 **HESSE 
 **********

 FCN=   8240.679     FROM HESSE     STATUS=OK           558 CALLS     2956 TOTAL
                     EDM=   .15E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.217        14.392        .27641E-03   -1.5635    
   2  Prefactor     .13617E-06    15.555        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .90483E-07    48.146        .12363E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     12.269        20.330        .28724E-03   -1.5638    
   5  Prefactor     .14240E-05    18.916        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm           .0000        .56496        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .25291E-01    4.2848        .99571E-02   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.3781        2.3253        .48108E-03   -1.5666    
   9  Prefactor     .11042E-05    21.690        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10904E-01    1.8058        .42118E-02   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .55511E-10    1.7845        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          6.5435        2.6233        .39210E-03   -1.5657    
  13  Prefactor     3.3404        1.9786        .55347E-03   -1.5671    
  14  Prefactor     1.4313        9.6619        .90186E-03   -1.5684    
  15  Prefactor     5.0717        4.1395        .44555E-03   -1.5663    
  16  Prefactor     .48294        9.2197        .79810E-03   -1.5694    
  17  Prefactor     58.741        42.064        .13044E-03   -1.5555    
  18  norm          .55511E-09    4.2383        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          4.6870        6.0038        .46561E-03   -1.5665    
  20  Prefactor     5.5598        11.497        .42564E-03   -1.5661    
  21  Prefactor     32.205        21.593        .17625E-03   -1.5594    
  22  norm          2.8369        .94887        .60355E-03   -1.5674    
  23  Prefactor     .77716E-09    3.3937        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     2.0335        7.5785        .72291E-03   -1.5679    
  25  norm          .13878E-08    3.3269        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .76034        .18152        .72095E-01   -1.0156    
  27  Prefactor     1.1258        .13144        .36681E-01   -.88647    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46003e-06
Minuit parameter uncertainties:
  1  14.3917
  2  0.0029108
  3  0.00417395
  4  20.3301
  5  0.01038
  6  3.27138e-06
  7  0.65839
  8  2.32535
  9  0.00978746
  10  0.280645
  11  2.40116e-05
  12  2.62331
  13  1.97862
  14  7.43741
  15  4.13954
  16  4.22021
  17  42.0644
  18  9.53079e-05
  19  6.00379
  20  11.4966
  21  21.5935
  22  0.948871
  23  0.000102945
  24  7.57852
  25  0.000136128
  26  0.181664
  27  0.131481
Done.

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

Extracting fit parameters...

4FGL J0816.3+5739
   Spectrum: PowerLaw
339    Prefactor:  1.431e+00  7.437e+00  0.000e+00  1.000e+06 ( 1.000e-13)
340        Index:  2.085e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
341        Scale:  1.529e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
741    Prefactor:  1.126e+00  1.315e-01  0.000e+00  1.000e+01 ( 1.000e+00)
742        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
743        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
740   Normalization:  7.603e-01  1.817e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.04
Ra Dec: 124.100 57.662
Photon Flux Upper Limit: 5.87e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.43e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/881614/likelihoodResults_692409601_692668801_4FGL_J0816.3+5739_daily_bin1748.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) = 8240.67853658
delta logL = 1.19263950182e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8240.67853627
delta logL = 1.22367182485e-05

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8240.679     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      211 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4196        80.506        .90256E-03    .70343E-02
   2  Index         2.0927        .86441        .50000        .22725E-04
   3  Normalizat    .76032        .12716E-01    .72096E-01    .41603E-04
   4  Prefactor     1.1258        .98086E-02    .36680E-01    .16459E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.41959
  Index      = 2.0927
  Normalizat = 0.760316
  Prefactor  = 1.1258
 **********
 **   18 **HESSE 
 **********

 FCN=   8240.679     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .39E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4196        10.918        .36102E-04   -1.5684    
   2  Index         2.0927        1.4707        .63860E-02   -.62052    
   3  Normalizat    .76032        .18988        .31907E-03   -1.0156    
   4  Prefactor     1.1258        .14756        .20523E-03   -.88646    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.88983e-11
Minuit parameter uncertainties:
  1  7.87378
  2  1.50476
  3  0.190041
  4  0.147615
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/881614': 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) = 8240.67853511
delta logL = 1.33988123707e-05

Extracting fit parameters...

4FGL J0816.3+5739
   Spectrum: PowerLaw
339    Prefactor:  1.420e+00  7.874e+00  0.000e+00  1.000e+06 ( 1.000e-13)
340        Index:  2.093e+00  1.505e+00  0.000e+00  1.000e+01 (-1.000e+00)
341        Scale:  1.529e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
741    Prefactor:  1.126e+00  1.476e-01  0.000e+00  1.000e+01 ( 1.000e+00)
742        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
743        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
740   Normalization:  7.603e-01  1.900e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.04
Ra Dec: 124.100 57.662

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/881614/cmap_HighResolution_692409601_692668801_4FGL_J0816.3+5739_daily_bin1748.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.43e-03', job_status='DONE', photon_flux_upper_limit='5.87e-08', time_completed='2022-12-14 00:41:29.932675', job_id='881614', GAL2='1.13', fit_tolerance='1e-08', EG2='0.76', EG='0.76', time_epoch_completed='1671007289.93', return_code2='0', ts='0.04', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='1.34e-05', ts2='0.04', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='1748' AND source_name='4FGL J0816.3+5739' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec 14 00:41:29 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 881614: <4FGL_J0816.3+5739_daily_bin1748> in cluster <slac> Done

Job <4FGL_J0816.3+5739_daily_bin1748> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Dec 14 00:25:17 2022
Job was executed on host(s) <bullet0046>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec 14 00:25:19 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec 14 00:25:19 2022
Terminated at Wed Dec 14 00:41:30 2022
Results reported at Wed Dec 14 00:41:30 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0816.3+5739_daily_bin1748 124.1 57.6616 692409601 692668801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0816.3+5739 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   936.07 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             350.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   971 sec.
    Turnaround time :                            973 sec.

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

