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 219 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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


Performing analysis on: 4FGL_J1310.7-5553_daily_bin1702
RA = 197.684, Dec = -55.8867
tmin = 680486401, tmax = 680745601
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='235047', job_status='RUN', time_executed='2022-07-29 01:18:51.366333', time_epoch_executed='1659082731.37' WHERE source_name='4FGL J1310.7-5553' and cadence='daily' and bin_id='1702'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/235047

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/235047/ft1_4FGL_J1310.7-5553_daily_bin1702.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/235047/ft2_4FGL_J1310.7-5553_daily_bin1702.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/235047/ft1_4FGL_J1310.7-5553_daily_bin1702.fits outfile=/scratch/kocevski/235047/ft1_filteredMKT_4FGL_J1310.7-5553_daily_bin1702.fits ra=197.684 dec=-55.8867 rad=12.0 tmin=680486401.0 tmax=680745601.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.00
user 2.76
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/235047/ft2_4FGL_J1310.7-5553_daily_bin1702.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/235047/ft2_4FGL_J1310.7-5553_daily_bin1702.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/235047/ft1_filteredMKT_4FGL_J1310.7-5553_daily_bin1702.fits evtable="EVENTS" outfile="/scratch/kocevski/235047/ft1_filtered_4FGL_J1310.7-5553_daily_bin1702.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.53
user 0.35
sys 0.16

Number of photons that the gtmktime cut: 5122

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/235047/ft1_filtered_4FGL_J1310.7-5553_daily_bin1702.fits" evtable="EVENTS" scfile=/scratch/kocevski/235047/ft2_4FGL_J1310.7-5553_daily_bin1702.fits sctable="SC_DATA" outfile=/scratch/kocevski/235047/ltcube_680486401_680745601_4FGL_J1310.7-5553_daily_bin1702.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/235047/ft2_4FGL_J1310.7-5553_daily_bin1702.fits
.....................!
real 16.47
user 16.05
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/235047/ft1_filtered_4FGL_J1310.7-5553_daily_bin1702.fits evtable="EVENTS" scfile=/scratch/kocevski/235047/ft2_4FGL_J1310.7-5553_daily_bin1702.fits sctable="SC_DATA" expcube=/scratch/kocevski/235047/ltcube_680486401_680745601_4FGL_J1310.7-5553_daily_bin1702.fits outfile=/scratch/kocevski/235047/expmap_680486401_680745601_4FGL_J1310.7-5553_daily_bin1702.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/235047/ltcube_680486401_680745601_4FGL_J1310.7-5553_daily_bin1702.fits
.....................!
real 193.67
user 187.63
sys 5.10

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
Extended source HESS J1303-631 in ROI with RadialGaussian spatial model.
Extended source G296.5+10.0 in ROI with RadialDisk spatial model.
Extended source FGES J1213.3-6240 in ROI with RadialDisk spatial model.
Extended source CenA Lobes in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/CenALobes.fits is the correct path to the extended template.
Extended source HESS J1356-645 in ROI with RadialDisk spatial model.
Extended source FGES J1409.1-6121 in ROI with RadialDisk spatial model.
Extended source HESS J1420-607 in ROI with RadialDisk spatial model.
Extended source FGES J1109.4-6115 in ROI with RadialDisk spatial model.
Extended source RCW 86 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/RCW86.fits is the correct path to the extended template.
Extended source FHES J1501.0-6310 in ROI with RadialGaussian spatial model.
Extended source HESS J1507-622 in ROI with RadialDisk spatial model.
Extended source MSH 15-52 in ROI with RadialDisk spatial model.
Extended source FGES J1036.3-5833 in ROI with RadialDisk spatial model.
Extended source HESS J1534-571 in ROI with RadialDisk spatial model.
Added 340 point sources and 14 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1310.7-5553 @ 197.684 -55.8867

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/235047/ft1_filtered_4FGL_J1310.7-5553_daily_bin1702.fits scfile=/scratch/kocevski/235047/ft2_4FGL_J1310.7-5553_daily_bin1702.fits outfile=/scratch/kocevski/235047/cmap_680486401_680745601_4FGL_J1310.7-5553_daily_bin1702.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.684 yref=-55.8867 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.71
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/235047/ft1_filtered_4FGL_J1310.7-5553_daily_bin1702.fits scfile=/scratch/kocevski/235047/ft2_4FGL_J1310.7-5553_daily_bin1702.fits outfile=/scratch/kocevski/235047/cmap_HighResolution_680486401_680745601_4FGL_J1310.7-5553_daily_bin1702.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.684 yref=-55.8867 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.58
user 0.41
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/235047/ft1_filtered_4FGL_J1310.7-5553_daily_bin1702.fits evtable="EVENTS" scfile=/scratch/kocevski/235047/ft2_4FGL_J1310.7-5553_daily_bin1702.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/235047/Model_4FGL_J1310.7-5553_daily_bin1702.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 CenA Lobes
adding source EG_v02
adding source FGES J1036.3-5833
adding source FGES J1109.4-6115
adding source FGES J1213.3-6240
adding source FGES J1409.1-6121
adding source FHES J1501.0-6310
adding source G296.5+10.0
adding source GAL_V02
adding source HESS J1303-631
adding source HESS J1356-645
adding source HESS J1420-607
adding source HESS J1507-622
adding source HESS J1534-571
adding source MSH 15-52
adding source RCW 86
Working on...
/scratch/kocevski/235047/ft1_filtered_4FGL_J1310.7-5553_daily_bin1702.fits.....................!
real 1377.41
user 1365.64
sys 1.88

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/235047/ft1_filtered_4FGL_J1310.7-5553_daily_bin1702.fits', '/scratch/kocevski/235047/ft2_4FGL_J1310.7-5553_daily_bin1702.fits', expMap='/scratch/kocevski/235047/expmap_680486401_680745601_4FGL_J1310.7-5553_daily_bin1702.fits', expCube='/scratch/kocevski/235047/ltcube_680486401_680745601_4FGL_J1310.7-5553_daily_bin1702.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/235047/Model_4FGL_J1310.7-5553_daily_bin1702.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1310.7-5553'

4FGL J1310.7-5553
   Spectrum: PowerLaw
560    Prefactor:  1.758e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
561        Index:  2.821e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
562        Scale:  6.673e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/235047/ft1_filtered_4FGL_J1310.7-5553_daily_bin1702.fits
Spacecraft file(s): /scratch/kocevski/235047/ft2_4FGL_J1310.7-5553_daily_bin1702.fits
Exposure map: /scratch/kocevski/235047/expmap_680486401_680745601_4FGL_J1310.7-5553_daily_bin1702.fits
Exposure cube: /scratch/kocevski/235047/ltcube_680486401_680745601_4FGL_J1310.7-5553_daily_bin1702.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/235047/Model_4FGL_J1310.7-5553_daily_bin1702.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) = 42536.8691641

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    94.651       1.0000         .10000E-03   10000.    
     2 'Prefactor '    51.635       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    31.382       1.0000         .10000E-03   10000.    
     5 'norm      '    .10273E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.6595       1.0000         .10000E-03   10000.    
     9 'Prefactor '    63.691       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .21205E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    40.546       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.7029       1.0000         .10000E-03   10000.    
    13 'norm      '    3.3481       1.0000         .10000E-03   10000.    
    14 'norm      '    4.2742       1.0000         .10000E-03   10000.    
    15 'norm      '    .90806       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    2.7575       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .56187       1.0000          .0000       10.000    
    19 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1270E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   42536.86     FROM MIGRAD    STATUS=CONVERGED    420 CALLS     2107 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     94.650        30.864       -.12334E-05    .13107E-03
   2  Prefactor     51.632        22.512       -.20482E-05    .25542E-03
   3  Prefactor     .10000E-03    1.8732        .32923E-06** at limit **
   4  Prefactor     31.375        34.756       -.98348E-05    .34969E-03
   5  norm          .10000E-03    15.368       -.25532E-07** at limit **
   6  Prefactor     .10000E-03    1.6390       -.29220E-07** at limit **
   7  Prefactor     .10000E-03    3.6234        .25832E-06** at limit **
   8  Prefactor     6.6567        33.109       -.75902E-05    .65134E-04
   9  Prefactor     63.690        25.649       -.68878E-06    .73956E-04
  10  Prefactor     .10000E-03    3.3772       -.23731E-06** at limit **
  11  Prefactor     40.546        17.401       -.44560E-06    .55622E-04
  12  Prefactor     5.7018        5.1451       -.73237E-06    .30426E-04
  13  norm          3.3481        3.6309       -.33450E-06   -.81465E-05
  14  norm          4.2739        3.5150       -.52947E-06   -.12841E-03
  15  norm          .90836        .65042       -.31790E-06   -.71427E-02
  16  Prefactor     .10000E-03    .30966       -.89631E-08** at limit **
  17  Normalizat    2.7577        .25457        .31106E-05   -.29226E-04
  18  Prefactor     .56186        .19490E-01    .10273E-07    .59300E-03
  19  Prefactor    10000.0        3.7583        .32447E-06** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 94.65
  Prefactor  = 51.6316
  Prefactor  = 0.0001
  Prefactor  = 31.375
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.65674
  Prefactor  = 63.6903
  Prefactor  = 0.000100001
  Prefactor  = 40.5459
  Prefactor  = 5.70177
  norm       = 3.34806
  norm       = 4.27388
  norm       = 0.908358
  Prefactor  = 0.0001
  Normalizat = 2.75769
  Prefactor  = 0.561857
  Prefactor  = 10000
 **********
 **   18 **HESSE 
 **********

 FCN=   42536.86     FROM HESSE     STATUS=OK           268 CALLS     2375 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     94.650        30.880        .41311E-04   -1.3759    
   2  Prefactor     51.632        22.351        .55812E-04   -1.4270    
   3  Prefactor     .10000E-03    1.9065        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     31.375        33.552        .71525E-04   -1.4587    
   5  norm          .10000E-03    15.729        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.6400        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.6473        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.6567        32.859        .15550E-03   -1.5192    
   9  Prefactor     63.690        25.737        .50283E-04   -1.4110    
  10  Prefactor     .10000E-03    22.267        .72336E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     40.546        17.398        .62951E-04   -1.4434    
  12  Prefactor     5.7018        5.0800        .16820E-03   -1.5230    
  13  norm          3.3481        3.6212        .22118E-03   -1.5342    
  14  norm          4.2739        3.5090        .19488E-03   -1.5294    
  15  norm          .90836        .63722        .14455E-02   -1.5517    
  16  Prefactor     .10000E-03    .31120        .11208E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    2.7577        .26112        .84469E-03   -.46667    
  18  Prefactor     .56186        .20485E-01    .13051E-03   -1.0922    
  19  Prefactor    10000.0        3.7575        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.38944e-09
Minuit parameter uncertainties:
  1  30.8857
  2  22.3545
  3  4.00619e-05
  4  33.5725
  5  2.0996e-05
  6  6.93913e-07
  7  1.44825e-05
  8  29.6053
  9  25.7419
  10  0.000267195
  11  17.4002
  12  5.08034
  13  3.6214
  14  3.5092
  15  0.637229
  16  1.01396e-07
  17  0.261269
  18  0.0204851
  19  7.73311e-0DoDone.

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

Extracting fit parameters...

4FGL J1310.7-5553
   Spectrum: PowerLaw
560    Prefactor:  5.702e+00  5.080e+00  1.000e-04  1.000e+04 ( 1.000e-12)
561        Index:  2.821e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
562        Scale:  6.673e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1246    Prefactor:  5.619e-01  2.049e-02  0.000e+00  1.000e+01 ( 1.000e+00)
1247        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1248        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1223   Normalization:  2.758e+00  2.613e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.88
Ra Dec: 197.684 -55.887
Photon Index (Fixed Index): 2.82 +/- 0.00
Photon Flux (Fixed Index): 6.63e-08 +/- 5.90e-08
Energy Flux (Fixed Index): 1.46e-05 +/- 1.30e-05

TS (Fixed Index): 1.88
Ra Dec: 197.684 -55.887
Photon Flux Upper Limit: 1.90e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.50e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/235047/likelihoodResults_680486401_680745601_4FGL_J1310.7-5553_daily_bin1702.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) = 42536.5314306
delta logL = 0.325921426651

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 42536.5208383
delta logL = 0.336513696908

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.5442       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3273       1.0000          .0000       10.000    
     3 'Normalizat'    2.7666       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .56147       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1270E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   42536.52     FROM MIGRAD    STATUS=CONVERGED     66 CALLS      269 TOTAL
                     EDM=   .68E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.5470        73.735        .34285E-02    .14933E-03
   2  Index         2.3287        1.5005        .47602        .64588E-04
   3  Normalizat    2.7671        .64953E-01    .18971        .19517E-04
   4  Prefactor     .56145        .50869E-02    .29548E-01    .80813E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.54698
  Index      = 2.32874
  Normalizat = 2.76712
  Prefactor  = 0.561447
 **********
 **   18 **HESSE 
 **********

 FCN=   42536.52     FROM HESSE     STATUS=OK            33 CALLS      302 TOTAL
                     EDM=   .38E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.5470        7.1881        .13714E-03   -1.5123    
   2  Index         2.3287        .57565        .10149E-01   -.56362    
   3  Normalizat    2.7671        .24416        .84385E-03   -.46455    
   4  Prefactor     .56145        .19429E-01    .13055E-03   -1.0923    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.78303e-12
Minuit parameter uncertainties:
  1  7.18887
  2  0.577448
  3  0.24428
  4  0.0194296
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/235047': 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) = 42536.5208311
delta logL = 0.336520982579

Extracting fit parameters...

4FGL J1310.7-5553
   Spectrum: PowerLaw
560    Prefactor:  8.547e+00  7.189e+00  1.000e-04  1.000e+04 ( 1.000e-12)
561        Index:  2.329e+00  5.774e-01  0.000e+00  1.000e+01 (-1.000e+00)
562        Scale:  6.673e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1246    Prefactor:  5.614e-01  1.943e-02  0.000e+00  1.000e+01 ( 1.000e+00)
1247        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1248        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1223   Normalization:  2.767e+00  2.443e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.53
Ra Dec: 197.684 -55.887
Photon Index (Free Index): 2.33 +/- 0.58
Photon Flux (Free Index): 5.35e-08 +/- 5.16e-08
Energy Flux (Free Index): 1.94e-05 +/- 1.75e-05

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/235047/cmap_HighResolution_680486401_680745601_4FGL_J1310.7-5553_daily_bin1702.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.50e-02', comment='SUCCESS', photon_flux='6.63e-08', energy_flux2='1.94e-05', photon_flux_error='5.90e-08', dlogl='3.37e-01', energy_flux='1.46e-05', photon_flux2='5.35e-08', job_status='DONE', time_completed='2022-07-29 03:10:46.731848', photon_index_error2='0.58', photon_index2='2.33', ts='1.88', fit_tolerance='1e-08', GAL='0.56', photon_index_error='0.00', photon_flux_upper_limit='1.90e-07', energy_flux_error2='1.75e-05', EG='2.76', time_epoch_completed='1659089446.73', return_code='0', job_id='235047', GAL2='0.56', EG2='2.77', return_code2='0', energy_flux_error='1.30e-05', photon_flux_error2='5.16e-08', ts2='2.53', photon_index='2.82' WHERE bin_id='1702' AND source_name='4FGL J1310.7-5553' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jul 29 03:10:46 PDT 2022

-----------------------------------------------------------
Sender: LSF System <lsf@bullet0125>
Subject: Job 234844: <4FGL_J1310.7-5553_daily_bin1702> in cluster <slac> Done

Job <4FGL_J1310.7-5553_daily_bin1702> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Jul 29 00:06:40 2022
Job was executed on host(s) <bullet0125>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Jul 29 01:13:08 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Jul 29 01:13:08 2022
Terminated at Fri Jul 29 03:04:05 2022
Results reported at Fri Jul 29 03:04:05 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1310.7-5553_daily_bin1702 197.684 -55.8867 680486401 680745601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1310.7-5553 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   6640.00 sec.
    Max Memory :                                 1271 MB
    Average Memory :                             505.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   6657 sec.
    Turnaround time :                            10645 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0248>
Subject: Job 235047: <4FGL_J1310.7-5553_daily_bin1702> in cluster <slac> Done

Job <4FGL_J1310.7-5553_daily_bin1702> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Jul 29 00:06:49 2022
Job was executed on host(s) <bullet0248>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Jul 29 01:15:02 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Jul 29 01:15:02 2022
Terminated at Fri Jul 29 03:10:47 2022
Results reported at Fri Jul 29 03:10:47 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1310.7-5553_daily_bin1702 197.684 -55.8867 680486401 680745601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1310.7-5553 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   6671.12 sec.
    Max Memory :                                 679 MB
    Average Memory :                             514.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2954 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   6945 sec.
    Turnaround time :                            11038 sec.

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

