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


Performing analysis on: 4FGL_J1310.5+3221_daily_bin1768
RA = 197.632, Dec = 32.3547
tmin = 697593601, tmax = 697852801
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='271534', job_status='RUN', time_executed='2023-02-12 01:00:35.631087', time_epoch_executed='1676192435.63' WHERE source_name='4FGL J1310.5+3221' and cadence='daily' and bin_id='1768'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/271534

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/271534/ft1_4FGL_J1310.5+3221_daily_bin1768.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/271534/ft2_4FGL_J1310.5+3221_daily_bin1768.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/271534/ft1_4FGL_J1310.5+3221_daily_bin1768.fits outfile=/scratch/kocevski/271534/ft1_filteredMKT_4FGL_J1310.5+3221_daily_bin1768.fits ra=197.632 dec=32.3547 rad=12.0 tmin=697593601.0 tmax=697852801.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.64
user 3.41
sys 0.20

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

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

Number of photons that the gtmktime cut: 616

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/271534/ft1_filtered_4FGL_J1310.5+3221_daily_bin1768.fits" evtable="EVENTS" scfile=/scratch/kocevski/271534/ft2_4FGL_J1310.5+3221_daily_bin1768.fits sctable="SC_DATA" outfile=/scratch/kocevski/271534/ltcube_697593601_697852801_4FGL_J1310.5+3221_daily_bin1768.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/271534/ft2_4FGL_J1310.5+3221_daily_bin1768.fits
.....................!
real 14.29
user 13.83
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/271534/ft1_filtered_4FGL_J1310.5+3221_daily_bin1768.fits evtable="EVENTS" scfile=/scratch/kocevski/271534/ft2_4FGL_J1310.5+3221_daily_bin1768.fits sctable="SC_DATA" expcube=/scratch/kocevski/271534/ltcube_697593601_697852801_4FGL_J1310.5+3221_daily_bin1768.fits outfile=/scratch/kocevski/271534/expmap_697593601_697852801_4FGL_J1310.5+3221_daily_bin1768.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/271534/ltcube_697593601_697852801_4FGL_J1310.5+3221_daily_bin1768.fits
.....................!
real 192.33
user 186.59
sys 4.49

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/271534/ft1_filtered_4FGL_J1310.5+3221_daily_bin1768.fits scfile=/scratch/kocevski/271534/ft2_4FGL_J1310.5+3221_daily_bin1768.fits outfile=/scratch/kocevski/271534/cmap_697593601_697852801_4FGL_J1310.5+3221_daily_bin1768.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/271534/ft1_filtered_4FGL_J1310.5+3221_daily_bin1768.fits scfile=/scratch/kocevski/271534/ft2_4FGL_J1310.5+3221_daily_bin1768.fits outfile=/scratch/kocevski/271534/cmap_HighResolution_697593601_697852801_4FGL_J1310.5+3221_daily_bin1768.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.42
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.3279       1.0000          .0000       .10000E+07
     2 'Prefactor '    .56350E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    .60435E-06   1.0000          .0000       .10000E+07
     4 'Prefactor '    .44054E-06   1.0000          .0000       .10000E+07
     5 'norm      '    1.9220       1.0000          .0000       .10000E+07
     6 'Prefactor '    2.6670       1.0000          .0000       .10000E+07
     7 'Prefactor '    .71242E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    .98109E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    1.8394       1.0000          .0000       .10000E+07
    10 'norm      '    4.2388       1.0000          .0000       .10000E+07
    11 'Prefactor '    .58165E-03   1.0000          .0000       .10000E+07
    12 'norm      '    .33957       1.0000          .0000       .10000E+07
    13 'Prefactor '    .68875E-03   1.0000          .0000       .10000E+07
    14 'norm      '    .30782E-03   1.0000          .0000       .10000E+07
    15 'norm      '    .19412E-06   1.0000          .0000       .10000E+07
    16 'norm      '    23.187       1.0000          .0000       .10000E+07
    17 'norm      '    .19976E-03   1.0000          .0000       .10000E+07
    18 'norm      '    24.046       1.0000          .0000       .10000E+07
    19 'Prefactor '    2.8280       1.0000          .0000       .10000E+07
    20 'Prefactor '    .23404E-01   1.0000          .0000       .10000E+07
    21 'norm      '    46.892       1.0000          .0000       .10000E+07
    22 'Prefactor '    .12365       1.0000          .0000       .10000E+07
    23 'norm      '    .17388E-03   1.0000          .0000       .10000E+07
    24 'Prefactor '    .13571E-03   1.0000          .0000       .10000E+07
    25 'Prefactor '    .13370E-03   1.0000          .0000       .10000E+07
    26 'Prefactor '    .40395E-04   1.0000          .0000       .10000E+07
    27 'Normalizat'    1.2205       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .85326       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=   6565.261     FROM MIGRAD    STATUS=CONVERGED    172 CALLS     2531 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.3313        3.1285       -.25798E-07    .59748E-02
   2  Prefactor      .0000        3.1711        .26391E-06** at limit **
   3  Prefactor      .0000        .66421       -.18115E-07** at limit **
   4  Prefactor     .55511E-10    .57557       -.15641E-06** at limit **
   5  norm          1.9206        2.8180       -.65889E-07   -.17965E-02
   6  Prefactor     2.7105        5.3934       -.10503E-07   -.25696E-02
   7  Prefactor     .16098E-08    3.8423       -.26146E-05** at limit **
   8  Prefactor     .55511E-10    1.7619       -.30497E-06** at limit **
   9  Prefactor     1.8189        3.3151       -.23253E-06   -.95478E-04
  10  norm          4.2489        3.8128       -.34609E-07   -.91704E-03
  11  Prefactor     .11202E-06    8.2056       -.10728E-05** at limit **
  12  norm          .33687        2.6143        .50643E-06    .17370E-02
  13  Prefactor     .55400E-07    63.530       -.94118E-06** at limit **
  14  norm          .11102E-09    2.1325       -.41487E-07** at limit **
  15  norm          .94980E-07    3.5288       -.25336E-05** at limit **
  16  norm          23.184        5.3365       -.47128E-08   -.61815E-03
  17  norm          .83877E-07    2.2950        .19745E-05** at limit **
  18  norm          24.558        8.2683        .20327E-05   -.17860    
  19  Prefactor     2.8287        3.0293        .31996E-06   -.69106E-02
  20  Prefactor     .71054E-07    41.377       -.62283E-05** at limit **
  21  norm          46.833        1.4127       -.25920E-07    .37682E-01
  22  Prefactor     .14377E-07    1.6264       -.49664E-06** at limit **
  23  norm          .14272E-06    2.9328       -.52785E-06** at limit **
  24  Prefactor     .21227E-06    5.9078        .30398E-05** at limit **
  25  Prefactor     .27256E-07    22.494        .97256E-06** at limit **
  26  Prefactor     .80880E-07    1.6706        .12738E-05** at limit **
  27  Normalizat    1.2207        .20246       -.37715E-05   -.20483E-03
  28  Prefactor     .85290        .24412        .97708E-05   -.28793E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.3313
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 5.55112e-11
  norm       = 1.92055
  Prefactor  = 2.71051
  Prefactor  = 1.60982e-09
  Prefactor  = 5.55112e-11
  Prefactor  = 1.8189
  norm       = 4.24891
  Prefactor  = 1.12022e-07
  norm       = 0.336867
  Prefactor  = 5.54001e-08
  norm       = 1.11022e-10
  norm       = 9.49796e-08
  norm       = 23.1844
  norm       = 8.38773e-08
  norm       = 24.5575
  Prefactor  = 2.82872
  Prefactor  = 7.10543e-08
  norm       = 46.8329
  Prefactor  = 1.43774e-08
  norm       = 1.42719e-07
  Prefactor  = 2.12275e-07
  Prefactor  = 2.7256e-08
  Prefactor  = 8.08797e-08
  Normalizat = 1.22074
  Prefactor  = 0.852899
 **********
 **   18 **HESSE 
 **********

 FCN=   6565.261     FROM HESSE     STATUS=OK           577 CALLS     3108 TOTAL
                     EDM=   .68E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.3313        3.1365        .39879E-03   -1.5658    
   2  Prefactor      .0000        3.1817        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        .66535        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .55511E-10    .57733        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.9206        2.8322        .74917E-03   -1.5680    
   6  Prefactor     2.7105        5.4163        .62382E-03   -1.5675    
   7  Prefactor     .16098E-08    5.8240        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .55511E-10    1.7662        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.8189        3.3446        .76886E-03   -1.5681    
  10  norm          4.2489        3.8185        .48918E-03   -1.5667    
  11  Prefactor     .11202E-06    8.6575        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .33687        2.6367        .96851E-03   -1.5696    
  13  Prefactor     .55400E-07    62.833        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .11102E-09    2.1418        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .94980E-07    3.9660        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          23.184        5.3798        .20772E-03   -1.5612    
  17  norm          .83877E-07    4.4326        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          24.558        18.090        .20398E-03   -1.5609    
  19  Prefactor     2.8287        3.2531        .60450E-03   -1.5674    
  20  Prefactor     .71054E-07    7.8283        .11968E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          46.833        10.896        .14604E-03   -1.5571    
  22  Prefactor     .14377E-07    85.753        .13333E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .14272E-06    5.0380        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .21227E-06    6.9562        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .27256E-07    22.509        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .80880E-07    4.5130        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.2207        .16798        .50709E-01   -.85964    
  28  Prefactor     .85290        .20244        .72402E-01   -.97807    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.80071e-07
Minuit parameter uncertainties:
  1  3.13652
  2  1.11671e-05
  3  1.28634e-06
  4  8.78594e-06
  5  2.83222
  6  5.41633
  7  0.00019451
  8  1.77803e-05
  9  3.34465
  10  3.8185
  11  0.00196948
  12  1.88492
  13  0.00373177
  14  2.78929e-05
  15  0.00122759
  16  5.37975
  17  0.00121963
  18  18.0897
  19  3.25312
  20  0.00149151
  21  10.8959
  22  0.00222276
  23  0.00169598
  24  0.00243038
  25  0.00156623
  26  0.00120831
  27  0.168051
  28  0.202622
Done.

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

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  2.318e+01  5.380e+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

GAL_V02
   Spectrum: PowerLaw
597    Prefactor:  8.529e-01  2.026e-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:  1.221e+00  1.681e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 77.15
Ra Dec: 197.632 32.355
Photon Index (Fixed Index): 2.42 +/- 0.00
Photon Flux (Fixed Index): 2.03e-07 +/- 4.71e-08
Energy Flux (Fixed Index): 7.27e-05 +/- 1.69e-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) = 6561.06999104
delta logL = 4.19052118797

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6561.06924533
delta logL = 4.19126689997

Fit tolerance = 1e-08

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

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

 FCN=   6561.069     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      282 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          49.253        180.98        .14252E-03    .12715E-03
   2  alpha         1.7544        3.3696        .15210        .68135E-04
   3  Normalizat    1.3355        .33000        .49020E-01    .51454E-05
   4  Prefactor     .76757        .21802        .76012E-01    .24650E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 49.253
  alpha      = 1.75436
  Normalizat = 1.33551
  Prefactor  = 0.767567
 **********
 **   18 **HESSE 
 **********

 FCN=   6561.069     FROM HESSE     STATUS=OK            33 CALLS      315 TOTAL
                     EDM=   .13E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          49.253        14.062        .57009E-05   -1.5568    
   2  alpha         1.7544        .23262        .62012E-02   -.30287    
   3  Normalizat    1.3355        .20182        .21671E-03   -.82512    
   4  Prefactor     .76757        .24187        .33646E-03   -1.0094    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.2558e-12
Minuit parameter uncertainties:
  1  14.0618
  2  0.232989
  3  0.201935
  4  0.242202
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/271534': 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) = 6561.06924245
delta logL = 4.19126978052

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  4.925e+01  1.406e+01  0.000e+00  1.000e+06 ( 1.000e-13)
332        alpha:  1.754e+00  2.330e-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:  7.676e-01  2.422e-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:  1.336e+00  2.019e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 85.49
Ra Dec: 197.632 32.355
Photon Index (Free Index): 1.75 +/- 0.23
Photon Flux (Free Index): 1.12e-07 +/- 4.14e-08
Energy Flux (Free Index): 1.52e-04 +/- 6.81e-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/271534/cmap_HighResolution_697593601_697852801_4FGL_J1310.5+3221_daily_bin1768.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.03e-07', energy_flux2='1.52e-04', photon_flux_error='4.71e-08', dlogl='4.19e+00', energy_flux='7.27e-05', photon_flux2='1.12e-07', job_status='DONE', time_completed='2023-02-12 01:11:52.002753', photon_index_error2='0.23', photon_index2='1.75', ts='77.15', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', energy_flux_error2='6.81e-05', EG='1.22', time_epoch_completed='1676193112.0', return_code='0', job_id='271534', GAL2='0.77', EG2='1.34', return_code2='0', energy_flux_error='1.69e-05', photon_flux_error2='4.14e-08', ts2='85.49', photon_index='2.42' WHERE bin_id='1768' AND source_name='4FGL J1310.5+3221' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Feb 12 01:11:52 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0248>
Subject: Job 271534: <4FGL_J1310.5+3221_daily_bin1768> in cluster <slac> Done

Job <4FGL_J1310.5+3221_daily_bin1768> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Feb 12 00:55:14 2023
Job was executed on host(s) <bullet0248>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Feb 12 00:57:17 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Feb 12 00:57:17 2023
Terminated at Sun Feb 12 01:11:53 2023
Results reported at Sun Feb 12 01:11:53 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1310.5+3221_daily_bin1768 197.632 32.3547 697593601 697852801 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 :                                   675.85 sec.
    Max Memory :                                 631 MB
    Average Memory :                             242.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2930 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   875 sec.
    Turnaround time :                            999 sec.

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

