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


Performing analysis on: 4FGL_J1310.5+3221_daily_bin1762
RA = 197.632, Dec = 32.3547
tmin = 696038401, tmax = 696297601
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='109182', job_status='RUN', time_executed='2023-01-25 00:59:25.773369', time_epoch_executed='1674637165.77' WHERE source_name='4FGL J1310.5+3221' and cadence='daily' and bin_id='1762'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/109182

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/109182/ft1_4FGL_J1310.5+3221_daily_bin1762.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/109182/ft2_4FGL_J1310.5+3221_daily_bin1762.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/109182/ft1_4FGL_J1310.5+3221_daily_bin1762.fits outfile=/scratch/kocevski/109182/ft1_filteredMKT_4FGL_J1310.5+3221_daily_bin1762.fits ra=197.632 dec=32.3547 rad=12.0 tmin=696038401.0 tmax=696297601.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.70
user 3.45
sys 0.21

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

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

Number of photons that the gtmktime cut: 608

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/109182/ft1_filtered_4FGL_J1310.5+3221_daily_bin1762.fits" evtable="EVENTS" scfile=/scratch/kocevski/109182/ft2_4FGL_J1310.5+3221_daily_bin1762.fits sctable="SC_DATA" outfile=/scratch/kocevski/109182/ltcube_696038401_696297601_4FGL_J1310.5+3221_daily_bin1762.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/109182/ft2_4FGL_J1310.5+3221_daily_bin1762.fits
.....................!
real 14.17
user 13.77
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/109182/ft1_filtered_4FGL_J1310.5+3221_daily_bin1762.fits evtable="EVENTS" scfile=/scratch/kocevski/109182/ft2_4FGL_J1310.5+3221_daily_bin1762.fits sctable="SC_DATA" expcube=/scratch/kocevski/109182/ltcube_696038401_696297601_4FGL_J1310.5+3221_daily_bin1762.fits outfile=/scratch/kocevski/109182/expmap_696038401_696297601_4FGL_J1310.5+3221_daily_bin1762.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/109182/ltcube_696038401_696297601_4FGL_J1310.5+3221_daily_bin1762.fits
.....................!
real 192.44
user 186.52
sys 5.43

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/109182/ft1_filtered_4FGL_J1310.5+3221_daily_bin1762.fits scfile=/scratch/kocevski/109182/ft2_4FGL_J1310.5+3221_daily_bin1762.fits outfile=/scratch/kocevski/109182/cmap_696038401_696297601_4FGL_J1310.5+3221_daily_bin1762.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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/109182/ft1_filtered_4FGL_J1310.5+3221_daily_bin1762.fits scfile=/scratch/kocevski/109182/ft2_4FGL_J1310.5+3221_daily_bin1762.fits outfile=/scratch/kocevski/109182/cmap_HighResolution_696038401_696297601_4FGL_J1310.5+3221_daily_bin1762.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.59
user 0.39
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/109182/ft1_filtered_4FGL_J1310.5+3221_daily_bin1762.fits', '/scratch/kocevski/109182/ft2_4FGL_J1310.5+3221_daily_bin1762.fits', expMap='/scratch/kocevski/109182/expmap_696038401_696297601_4FGL_J1310.5+3221_daily_bin1762.fits', expCube='/scratch/kocevski/109182/ltcube_696038401_696297601_4FGL_J1310.5+3221_daily_bin1762.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/109182/Model_4FGL_J1310.5+3221_daily_bin1762.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/109182/ft1_filtered_4FGL_J1310.5+3221_daily_bin1762.fits
Spacecraft file(s): /scratch/kocevski/109182/ft2_4FGL_J1310.5+3221_daily_bin1762.fits
Exposure map: /scratch/kocevski/109182/expmap_696038401_696297601_4FGL_J1310.5+3221_daily_bin1762.fits
Exposure cube: /scratch/kocevski/109182/ltcube_696038401_696297601_4FGL_J1310.5+3221_daily_bin1762.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/109182/Model_4FGL_J1310.5+3221_daily_bin1762.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) = 6846.0098184

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.2954       1.0000          .0000       .10000E+07
     2 'Prefactor '    7.5694       1.0000          .0000       .10000E+07
     3 'Prefactor '    .19373E-07   1.0000          .0000       .10000E+07
     4 'Prefactor '    2.7261       1.0000          .0000       .10000E+07
     5 'norm      '    14.235       1.0000          .0000       .10000E+07
     6 'Prefactor '    .18982E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    17.917       1.0000          .0000       .10000E+07
     8 'Prefactor '    3.0340       1.0000          .0000       .10000E+07
     9 'Prefactor '    .35285E-03   1.0000          .0000       .10000E+07
    10 'norm      '    11.137       1.0000          .0000       .10000E+07
    11 'Prefactor '    36.720       1.0000          .0000       .10000E+07
    12 'norm      '    5.7346       1.0000          .0000       .10000E+07
    13 'Prefactor '    .21311E-01   1.0000          .0000       .10000E+07
    14 'norm      '    .63692E-05   1.0000          .0000       .10000E+07
    15 'norm      '    .34887E-05   1.0000          .0000       .10000E+07
    16 'norm      '    41.944       1.0000          .0000       .10000E+07
    17 'norm      '    19.737       1.0000          .0000       .10000E+07
    18 'norm      '    38.925       1.0000          .0000       .10000E+07
    19 'Prefactor '    .17163E-04   1.0000          .0000       .10000E+07
    20 'Prefactor '    .38058E-02   1.0000          .0000       .10000E+07
    21 'norm      '    63.748       1.0000          .0000       .10000E+07
    22 'Prefactor '    18.912       1.0000          .0000       .10000E+07
    23 'norm      '    .27769E-02   1.0000          .0000       .10000E+07
    24 'Prefactor '    17.963       1.0000          .0000       .10000E+07
    25 'Prefactor '    .48506E-02   1.0000          .0000       .10000E+07
    26 'Prefactor '    8.6009       1.0000          .0000       .10000E+07
    27 'Normalizat'    .98884       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0135       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=   6845.865     FROM MIGRAD    STATUS=CONVERGED    209 CALLS     2568 TOTAL
                     EDM=   .66E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.2985        1.9644       -.73318E-10    .36750E-04
   2  Prefactor     7.6121        7.0463        .18569E-06    .10858E-02
   3  Prefactor      .0000        .76846        .10145E-07** at limit **
   4  Prefactor     2.7315        2.2082       -.21088E-07   -.75225E-04
   5  norm          14.263        6.4986       -.67523E-07    .36052E-03
   6  Prefactor     .14988E-08    5.9171       -.32236E-07** at limit **
   7  Prefactor     18.051        6.2402       -.52592E-07    .10682    
   8  Prefactor     3.0643        6.2556        .14703E-06    .55849E-03
   9  Prefactor     .30531E-07    4.8529       -.75487E-06** at limit **
  10  norm          11.211        8.3530       -.15621E-06   -.56105E-02
  11  Prefactor     37.542        7.5757       -.52867E-06    .10106    
  12  norm          5.7922        4.4828       -.44247E-07    .41929E-03
  13  Prefactor      .0000        13.498        .45655E-06** at limit **
  14  norm           .0000        2.2072        .45291E-07** at limit **
  15  norm          .23148E-07    4.5954        .63690E-06** at limit **
  16  norm          41.565        10.110       -.26748E-07   -.18815E-01
  17  norm          19.988        13.642        .16029E-06    .16308E-01
  18  norm          38.765        2.3807        .36537E-07    .34228E-02
  19  Prefactor     .55511E-08    9.6189       -.60668E-06** at limit **
  20  Prefactor     .67707E-06    78.472        .85315E-05** at limit **
  21  norm          63.868        12.797        .28526E-06    .17655E-01
  22  Prefactor     28.494        69.704        .17824E-05   -.48113E-02
  23  norm          .11102E-08    18.648        .15100E-06** at limit **
  24  Prefactor     18.080        11.611       -.11924E-06    .54547E-01
  25  Prefactor     .10547E-07    31.699       -.28163E-06** at limit **
  26  Prefactor     8.5606        5.9052        .47356E-07    .29239E-03
  27  Normalizat    .98592        .22976        .99650E-05   -.39977E-04
  28  Prefactor     1.0126        .26028       -.34095E-05   -.39376E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.29847
  Prefactor  = 7.61213
  Prefactor  = 0
  Prefactor  = 2.73153
  norm       = 14.2627
  Prefactor  = 1.4988e-09
  Prefactor  = 18.0513
  Prefactor  = 3.0643
  Prefactor  = 3.05311e-08
  norm       = 11.2112
  Prefactor  = 37.5416
  norm       = 5.79223
  Prefactor  = 0
  norm       = 0
  norm       = 2.31482e-08
  norm       = 41.565
  norm       = 19.9883
  norm       = 38.765
  Prefactor  = 5.55112e-09
  Prefactor  = 6.7707e-07
  norm       = 63.8685
  Prefactor  = 28.4942
  norm       = 1.11022e-09
  Prefactor  = 18.0797
  Prefactor  = 1.05471e-08
  Prefactor  = 8.56056
  Normalizat = 0.985921
  Prefactor  = 1.01255
 **********
 **   18 **HESSE 
 **********

 FCN=   6845.865     FROM HESSE     STATUS=OK           579 CALLS     3147 TOTAL
                     EDM=   .10E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.2985        1.9600        .67716E-03   -1.5678    
   2  Prefactor     7.6121        7.0504        .36427E-03   -1.5653    
   3  Prefactor      .0000        .76855        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.7315        2.2084        .61650E-03   -1.5675    
   5  norm          14.263        6.4988        .26521E-03   -1.5632    
   6  Prefactor     .14988E-08    5.9237        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     18.051        15.682        .23634E-03   -1.5623    
   8  Prefactor     3.0643        6.2670        .58230E-03   -1.5673    
   9  Prefactor     .30531E-07    4.9160        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          11.211        10.381        .29995E-03   -1.5641    
  11  Prefactor     37.542        51.377        .16504E-03   -1.5585    
  12  norm          5.7922        4.5123        .41920E-03   -1.5660    
  13  Prefactor      .0000        13.140        .16952E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        2.2030        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .23148E-07    4.6674        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          41.565        12.575        .15442E-03   -1.5579    
  17  norm          19.988        17.331        .22516E-03   -1.5619    
  18  norm          38.765        25.937        .16030E-03   -1.5583    
  19  Prefactor     .55511E-08    9.5008        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .67707E-06    78.879        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          63.868        13.019        .12525E-03   -1.5548    
  22  Prefactor     28.494        69.357        .23003E-03   -1.5601    
  23  norm          .11102E-08    18.717        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     18.080        22.358        .23604E-03   -1.5623    
  25  Prefactor     .10547E-07    31.864        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     8.5606        5.9127        .34156E-03   -1.5649    
  27  Normalizat    .98592        .19616        .46027E-01   -.93504    
  28  Prefactor     1.0126        .22256        .74821E-01   -.92312    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03263e-06
Minuit parameter uncertainties:
  1  1.95999
  2  7.05041
  3  8.94871e-07
  4  2.20838
  5  6.49881
  6  0.000186921
  7  15.6824
  8  6.26699
  9  0.000775024
  10  10.3811
  11  51.3778
  12  4.51228
  13  2.06704e-05
  14  6.57038e-06
  15  0.000657403
  16  12.5755
  17  17.3311
  18  25.9369
  19  0.000460236
  20  0.014616
  21  13.0191
  22  69.359
  23  0.000286945
  24  22.3582
  25  0.0011584
  26  5.91266
  27  0.196306
  28  0.222761
Done.

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

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  4.156e+01  1.258e+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.013e+00  2.228e-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:  9.859e-01  1.963e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 43.14
Ra Dec: 197.632 32.355
Photon Index (Fixed Index): 2.42 +/- 0.00
Photon Flux (Fixed Index): 3.64e-07 +/- 1.10e-07
Energy Flux (Fixed Index): 1.30e-04 +/- 3.94e-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) = 6845.86489649
delta logL = 0.000524123667674

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6845.86287401
delta logL = 0.00254660261362

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6845.863     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      259 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          40.458        19.068        .62890E-05    .76769E-02
   2  alpha         2.4413        .25185        .32854E-02    .20343E-03
   3  Normalizat    .98152        .23030        .28533E-03    .46219E-04
   4  Prefactor     1.0161        .26209        .33057E-03   -.12477E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 40.458
  alpha      = 2.44129
  Normalizat = 0.981523
  Prefactor  = 1.01611
 **********
 **   18 **HESSE 
 **********

 FCN=   6845.863     FROM HESSE     STATUS=OK            25 CALLS      284 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          40.458        17.681        .12578E-05   -1.5581    
   2  alpha         2.4413        .23343        .13142E-03   -.23487E-01
   3  Normalizat    .98152        .22946        .11413E-04   -.93652    
   4  Prefactor     1.0161        .26165        .13223E-04   -.92194    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.84025e-10
Minuit parameter uncertainties:
  1  17.6812
  2  0.233769
  3  0.229689
  4  0.261979
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/109182': 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) = 6845.86287307
delta logL = 0.00254754024809

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  4.046e+01  1.768e+01  0.000e+00  1.000e+06 ( 1.000e-13)
332        alpha:  2.441e+00  2.338e-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.016e+00  2.620e-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:  9.815e-01  2.297e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 46.81
Ra Dec: 197.632 32.355
Photon Index (Free Index): 2.44 +/- 0.23
Photon Flux (Free Index): 3.68e-07 +/- 9.47e-08
Energy Flux (Free Index): 1.29e-04 +/- 3.23e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/109182/cmap_HighResolution_696038401_696297601_4FGL_J1310.5+3221_daily_bin1762.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.64e-07', energy_flux2='1.29e-04', photon_flux_error='1.10e-07', dlogl='2.55e-03', energy_flux='1.30e-04', photon_flux2='3.68e-07', job_status='DONE', time_completed='2023-01-25 01:10:56.352704', photon_index_error2='0.23', photon_index2='2.44', ts='43.14', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='3.23e-05', EG='0.99', time_epoch_completed='1674637856.35', return_code='0', job_id='109182', GAL2='1.02', EG2='0.98', return_code2='0', energy_flux_error='3.94e-05', photon_flux_error2='9.47e-08', ts2='46.81', photon_index='2.42' WHERE bin_id='1762' AND source_name='4FGL J1310.5+3221' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jan 25 01:10:56 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 109182: <4FGL_J1310.5+3221_daily_bin1762> in cluster <slac> Done

Job <4FGL_J1310.5+3221_daily_bin1762> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Wed Jan 25 00:55:25 2023
Job was executed on host(s) <bullet0243>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jan 25 00:56:55 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jan 25 00:56:55 2023
Terminated at Wed Jan 25 01:10:57 2023
Results reported at Wed Jan 25 01:10:57 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1310.5+3221_daily_bin1762 197.632 32.3547 696038401 696297601 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 :                                   693.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             291.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   841 sec.
    Turnaround time :                            932 sec.

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

