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


Performing analysis on: 4FGL_J1310.5+3221_daily_bin1773
RA = 197.632, Dec = 32.3547
tmin = 698889601, tmax = 699148801
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='790581', job_status='RUN', time_executed='2023-02-27 09:49:34.038706', time_epoch_executed='1677520174.04' WHERE source_name='4FGL J1310.5+3221' and cadence='daily' and bin_id='1773'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/790581

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/790581/ft1_4FGL_J1310.5+3221_daily_bin1773.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/790581/ft2_4FGL_J1310.5+3221_daily_bin1773.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/790581/ft1_4FGL_J1310.5+3221_daily_bin1773.fits outfile=/scratch/kocevski/790581/ft1_filteredMKT_4FGL_J1310.5+3221_daily_bin1773.fits ra=197.632 dec=32.3547 rad=12.0 tmin=698889601.0 tmax=699148801.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.97
user 2.73
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/790581/ft2_4FGL_J1310.5+3221_daily_bin1773.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/790581/ft2_4FGL_J1310.5+3221_daily_bin1773.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/790581/ft1_filteredMKT_4FGL_J1310.5+3221_daily_bin1773.fits evtable="EVENTS" outfile="/scratch/kocevski/790581/ft1_filtered_4FGL_J1310.5+3221_daily_bin1773.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.68
user 0.33
sys 0.15

Number of photons that the gtmktime cut: 315

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/790581/ft1_filtered_4FGL_J1310.5+3221_daily_bin1773.fits" evtable="EVENTS" scfile=/scratch/kocevski/790581/ft2_4FGL_J1310.5+3221_daily_bin1773.fits sctable="SC_DATA" outfile=/scratch/kocevski/790581/ltcube_698889601_699148801_4FGL_J1310.5+3221_daily_bin1773.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/790581/ft2_4FGL_J1310.5+3221_daily_bin1773.fits
.....................!
real 13.21
user 12.58
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/790581/ft1_filtered_4FGL_J1310.5+3221_daily_bin1773.fits evtable="EVENTS" scfile=/scratch/kocevski/790581/ft2_4FGL_J1310.5+3221_daily_bin1773.fits sctable="SC_DATA" expcube=/scratch/kocevski/790581/ltcube_698889601_699148801_4FGL_J1310.5+3221_daily_bin1773.fits outfile=/scratch/kocevski/790581/expmap_698889601_699148801_4FGL_J1310.5+3221_daily_bin1773.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/790581/ltcube_698889601_699148801_4FGL_J1310.5+3221_daily_bin1773.fits
.....................!
real 191.33
user 185.81
sys 5.01

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 J1310.5+3221 @ 197.632 32.3547

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/790581/ft1_filtered_4FGL_J1310.5+3221_daily_bin1773.fits scfile=/scratch/kocevski/790581/ft2_4FGL_J1310.5+3221_daily_bin1773.fits outfile=/scratch/kocevski/790581/cmap_698889601_699148801_4FGL_J1310.5+3221_daily_bin1773.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=197.632 yref=32.3547 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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/790581/ft1_filtered_4FGL_J1310.5+3221_daily_bin1773.fits scfile=/scratch/kocevski/790581/ft2_4FGL_J1310.5+3221_daily_bin1773.fits outfile=/scratch/kocevski/790581/cmap_HighResolution_698889601_699148801_4FGL_J1310.5+3221_daily_bin1773.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=197.632 yref=32.3547 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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/790581/ft1_filtered_4FGL_J1310.5+3221_daily_bin1773.fits evtable="EVENTS" scfile=/scratch/kocevski/790581/ft2_4FGL_J1310.5+3221_daily_bin1773.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/790581/Model_4FGL_J1310.5+3221_daily_bin1773.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/790581/ft1_filtered_4FGL_J1310.5+3221_daily_bin1773.fits.....................!
real 35.37
user 33.98
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/790581/ft1_filtered_4FGL_J1310.5+3221_daily_bin1773.fits', '/scratch/kocevski/790581/ft2_4FGL_J1310.5+3221_daily_bin1773.fits', expMap='/scratch/kocevski/790581/expmap_698889601_699148801_4FGL_J1310.5+3221_daily_bin1773.fits', expCube='/scratch/kocevski/790581/ltcube_698889601_699148801_4FGL_J1310.5+3221_daily_bin1773.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/790581/Model_4FGL_J1310.5+3221_daily_bin1773.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1310.5+3221'

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  5.555e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
332        alpha:  2.425e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
333         beta:  5.326e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
334           Eb:  2.155e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/790581/ft1_filtered_4FGL_J1310.5+3221_daily_bin1773.fits
Spacecraft file(s): /scratch/kocevski/790581/ft2_4FGL_J1310.5+3221_daily_bin1773.fits
Exposure map: /scratch/kocevski/790581/expmap_698889601_699148801_4FGL_J1310.5+3221_daily_bin1773.fits
Exposure cube: /scratch/kocevski/790581/ltcube_698889601_699148801_4FGL_J1310.5+3221_daily_bin1773.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/790581/Model_4FGL_J1310.5+3221_daily_bin1773.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) = 3572.04216455

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .37235E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    6.5183       1.0000          .0000       .10000E+07
     3 'Prefactor '    .42377E-06   1.0000          .0000       .10000E+07
     4 'Prefactor '    .18963E-05   1.0000          .0000       .10000E+07
     5 'norm      '    9.0295       1.0000          .0000       .10000E+07
     6 'Prefactor '    51.399       1.0000          .0000       .10000E+07
     7 'Prefactor '    .45026E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .12107E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    .11975E-05   1.0000          .0000       .10000E+07
    10 'norm      '    .77827E-07   1.0000          .0000       .10000E+07
    11 'Prefactor '    .90206E-07   1.0000          .0000       .10000E+07
    12 'norm      '    3.7108       1.0000          .0000       .10000E+07
    13 'Prefactor '    .72870E-03   1.0000          .0000       .10000E+07
    14 'norm      '    .24226       1.0000          .0000       .10000E+07
    15 'norm      '    .72164E-09   1.0000          .0000       .10000E+07
    16 'norm      '    61.149       1.0000          .0000       .10000E+07
    17 'norm      '    .84605E-06   1.0000          .0000       .10000E+07
    18 'norm      '    14.293       1.0000          .0000       .10000E+07
    19 'Prefactor '    .23426E-07   1.0000          .0000       .10000E+07
    20 'Prefactor '    4.6766       1.0000          .0000       .10000E+07
    21 'norm      '    20.778       1.0000          .0000       .10000E+07
    22 'Prefactor '    .82712E-07   1.0000          .0000       .10000E+07
    23 'norm      '    1.5340       1.0000          .0000       .10000E+07
    24 'Prefactor '    .19440E-06   1.0000          .0000       .10000E+07
    25 'Prefactor '    11.376       1.0000          .0000       .10000E+07
    26 'Prefactor '    1.1841       1.0000          .0000       .10000E+07
    27 'Normalizat'    .69621       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.3401       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6000E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3571.985     FROM MIGRAD    STATUS=CONVERGED    238 CALLS     3128 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .14294E-06    5.4396        .79493E-07** at limit **
   2  Prefactor     6.5296        4.9009       -.84449E-08    .17427E-01
   3  Prefactor     .59397E-08    7.3162        .11772E-06** at limit **
   4  Prefactor      .0000        4.5073       -.11947E-06** at limit **
   5  norm          9.0331        10.408        .60907E-07    .84270E-01
   6  Prefactor     51.448        30.153        .42373E-07    .14270    
   7  Prefactor     .75016E-03    142.80       -.84808E-06** at limit **
   8  Prefactor     .20584E-06    11.285        .15334E-06** at limit **
   9  Prefactor     .65581E-06    5.1784       -.30087E-07** at limit **
  10  norm          .18985E-07    9.6193        .14806E-06** at limit **
  11  Prefactor     .12490E-07    31.853        .44038E-06** at limit **
  12  norm          3.7141        7.9113       -.18351E-09   -.72480E-03
  13  Prefactor     .63097E-05    104.42       -.89415E-06** at limit **
  14  norm          .30299        39.424       -.42971E-06    .25295E-02
  15  norm          .24952E-06    7.1100       -.53189E-07** at limit **
  16  norm          61.137        10.490        .14357E-07    .18043E-02
  17  norm          .43632E-07    13.282       -.21771E-06** at limit **
  18  norm          14.291        1.2892        .42298E-08   -.82002E-02
  19  Prefactor     .55511E-10    2.4708       -.33211E-07** at limit **
  20  Prefactor     4.6755        3.0652        .26071E-07   -.24076E-02
  21  norm          20.782        4.8524        .30079E-07    .45556E-02
  22  Prefactor     .44163E-03    116.04       -.75745E-06** at limit **
  23  norm          1.5330        10.789        .16823E-06    .68690E-03
  24  Prefactor     .28311E-07    7.9816       -.66189E-07** at limit **
  25  Prefactor     11.379        1.8574        .31483E-08   -.20371E-01
  26  Prefactor     1.1855        5.2937       -.56331E-07   -.11973E-03
  27  Normalizat    .69602        .29351        .63389E-05   -.17032E-03
  28  Prefactor     1.3401        .35772       -.10091E-04   -.28499E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.42941e-07
  Prefactor  = 6.5296
  Prefactor  = 5.93969e-09
  Prefactor  = 0
  norm       = 9.03306
  Prefactor  = 51.4479
  Prefactor  = 0.000750162
  Prefactor  = 2.05835e-07
  Prefactor  = 6.55809e-07
  norm       = 1.89848e-08
  Prefactor  = 1.249e-08
  norm       = 3.71409
  Prefactor  = 6.30973e-06
  norm       = 0.302987
  norm       = 2.49523e-07
  norm       = 61.1367
  norm       = 4.36318e-08
  norm       = 14.2911
  Prefactor  = 5.55112e-11
  Prefactor  = 4.67548
  norm       = 20.7816
  Prefactor  = 0.000441628
  norm       = 1.53304
  Prefactor  = 2.83107e-08
  Prefactor  = 11.3792
  Prefactor  = 1.18548
  Normalizat = 0.696023
  Prefactor  = 1.34015
 **********
 **   18 **HESSE 
 **********

 FCN=   3571.985     FROM HESSE     STATUS=OK           581 CALLS     3709 TOTAL
                     EDM=   .58E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .14294E-06    9.8030        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.5296        37.970        .39285E-03   -1.5657    
   3  Prefactor     .59397E-08    7.3054        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        4.4977        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          9.0331        11.751        .33330E-03   -1.5648    
   6  Prefactor     51.448        32.984        .13949E-03   -1.5565    
   7  Prefactor     .75016E-03    272.91        .42118E-03   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .20584E-06    13.209        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .65581E-06    15.315        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .18985E-07    11.298        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .12490E-07    31.991        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.7141        7.9950        .52399E-03   -1.5669    
  13  Prefactor     .63097E-05    105.09        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .30299        5.6886        .78621E-02   -1.5697    
  15  norm          .24952E-06    8.9184        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          61.137        11.148        .12789E-03   -1.5552    
  17  norm          .43632E-07    15.105        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          14.291        26.281        .26467E-03   -1.5632    
  19  Prefactor     .55511E-10    2.4780        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.6755        14.435        .46512E-03   -1.5665    
  21  norm          20.782        15.000        .21945E-03   -1.5617    
  22  Prefactor     .44163E-03    194.57        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.5330        25.201        .86111E-03   -1.5683    
  24  Prefactor     .28311E-07    8.0920        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     11.379        24.174        .29678E-03   -1.5640    
  26  Prefactor     1.1855        4.9730        .10488E-02   -1.5730    
  27  Normalizat    .69602        .24093        .66964E-01   -1.0405    
  28  Prefactor     1.3401        .29292        .61525E-01   -.82121    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.80602e-06
Minuit parameter uncertainties:
  1  0.00236753
  2  31.4917
  3  0.000415848
  4  1.49327e-05
  5  11.7507
  6  32.9841
  7  0.90497
  8  0.0032978
  9  0.00633835
  10  0.000925962
  11  0.00126555
  12  7.99502
  13  0.0515026
  14  2.62569
  15  0.0029834
  16  11.1476
  17  0.0016233
  18  26.2808
  19  2.6401e-05
  20  14.435
  21  15.0004
  22  0.586283
  23  12.4313
  24  0.000956803
  25  24.1743
  26  4.85612
  27  0.241297
  28  0.293281
Done.

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

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  6.114e+01  1.115e+01  0.000e+00  1.000e+06 ( 1.000e-13)
332        alpha:  2.425e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
333         beta:  5.326e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
334           Eb:  2.155e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
597    Prefactor:  1.340e+00  2.933e-01  0.000e+00  1.000e+01 ( 1.000e+00)
598        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
599        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
596   Normalization:  6.960e-01  2.413e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 144.35
Ra Dec: 197.632 32.355
Photon Index (Fixed Index): 2.42 +/- 0.00
Photon Flux (Fixed Index): 5.36e-07 +/- 9.76e-08
Energy Flux (Fixed Index): 1.92e-04 +/- 3.50e-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) = 3566.43799374
delta logL = 5.54739576187

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3566.43111556
delta logL = 5.55427394261

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3566.431     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      240 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          132.05        31.474        .53860E-06   -.21960E-01
   2  alpha         1.8706        .15301       -.10793E-04   -.11067E-02
   3  Normalizat    .87807        .24059        .16908E-05    .71418E-04
   4  Prefactor     1.1907        .29136       -.11865E-05    .10450E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 132.047
  alpha      = 1.87065
  Normalizat = 0.878073
  Prefactor  = 1.19074
 **********
 **   18 **HESSE 
 **********

 FCN=   3566.431     FROM HESSE     STATUS=OK            25 CALLS      265 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          132.05        31.819        .17406E-04   -1.5478    
   2  alpha         1.8706        .15788        .28481E-03   -.25448    
   3  Normalizat    .87807        .29175        .26808E-03   -.97235    
   4  Prefactor     1.1907        .35340        .28655E-03   -.86617    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.58688e-09
Minuit parameter uncertainties:
  1  31.8187
  2  0.157992
  3  0.292276
  4  0.354105
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/790581': 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) = 3566.43111483
delta logL = 5.55427467332

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  1.320e+02  3.182e+01  0.000e+00  1.000e+06 ( 1.000e-13)
332        alpha:  1.871e+00  1.580e-01  0.000e+00  5.000e+00 ( 1.000e+00)
333         beta:  5.326e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
334           Eb:  2.155e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
597    Prefactor:  1.191e+00  3.541e-01  0.000e+00  1.000e+01 ( 1.000e+00)
598        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
599        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
596   Normalization:  8.781e-01  2.923e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 155.29
Ra Dec: 197.632 32.355
Photon Index (Free Index): 1.87 +/- 0.16
Photon Flux (Free Index): 3.67e-07 +/- 8.57e-08
Energy Flux (Free Index): 3.68e-04 +/- 1.17e-04

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/790581/cmap_HighResolution_698889601_699148801_4FGL_J1310.5+3221_daily_bin1773.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.36e-07', energy_flux2='3.68e-04', photon_flux_error='9.76e-08', dlogl='5.55e+00', energy_flux='1.92e-04', photon_flux2='3.67e-07', job_status='DONE', time_completed='2023-02-27 09:58:24.566637', photon_index_error2='0.16', photon_index2='1.87', ts='144.35', fit_tolerance='1e-08', GAL='1.34', photon_index_error='0.00', energy_flux_error2='1.17e-04', EG='0.70', time_epoch_completed='1677520704.57', return_code='0', job_id='790581', GAL2='1.19', EG2='0.88', return_code2='0', energy_flux_error='3.50e-05', photon_flux_error2='8.57e-08', ts2='155.29', photon_index='2.42' WHERE bin_id='1773' AND source_name='4FGL J1310.5+3221' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Feb 27 09:58:24 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 790581: <4FGL_J1310.5+3221_daily_bin1773> in cluster <slac> Done

Job <4FGL_J1310.5+3221_daily_bin1773> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Feb 27 09:45:21 2023
Job was executed on host(s) <bullet0040>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Feb 27 09:45:22 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Feb 27 09:45:22 2023
Terminated at Mon Feb 27 09:58:25 2023
Results reported at Mon Feb 27 09:58:25 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1310.5+3221_daily_bin1773 197.632 32.3547 698889601 699148801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1310.5+3221 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   525.22 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             284.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   782 sec.
    Turnaround time :                            784 sec.

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

