/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 94 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 = 7373
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1310.5+3221_daily_bin555
RA = 197.632, Dec = 32.3547
tmin = 383184001, tmax = 383443201
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='289773', job_status='RUN', time_executed='2021-09-07 01:33:03.221757', time_epoch_executed='1631003583.22' WHERE source_name='4FGL J1310.5+3221' and cadence='daily' and bin_id='555'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/289773

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/289773/ft1_4FGL_J1310.5+3221_daily_bin555.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/289773/ft2_4FGL_J1310.5+3221_daily_bin555.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/289773/ft1_4FGL_J1310.5+3221_daily_bin555.fits outfile=/scratch/kocevski/289773/ft1_filteredMKT_4FGL_J1310.5+3221_daily_bin555.fits ra=197.632 dec=32.3547 rad=12.0 tmin=383184001.0 tmax=383443201.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.99
user 3.22
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/289773/ft2_4FGL_J1310.5+3221_daily_bin555.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/289773/ft1_filteredMKT_4FGL_J1310.5+3221_daily_bin555.fits evtable="EVENTS" outfile="/scratch/kocevski/289773/ft1_filtered_4FGL_J1310.5+3221_daily_bin555.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 3.92
user 0.34
sys 0.19

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/289773/ft1_filtered_4FGL_J1310.5+3221_daily_bin555.fits evtable="EVENTS" scfile=/scratch/kocevski/289773/ft2_4FGL_J1310.5+3221_daily_bin555.fits sctable="SC_DATA" expcube=/scratch/kocevski/289773/ltcube_383184001_383443201_4FGL_J1310.5+3221_daily_bin555.fits outfile=/scratch/kocevski/289773/expmap_383184001_383443201_4FGL_J1310.5+3221_daily_bin555.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/289773/ltcube_383184001_383443201_4FGL_J1310.5+3221_daily_bin555.fits
.....................!
real 198.32
user 186.35
sys 5.30

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/289773/ft1_filtered_4FGL_J1310.5+3221_daily_bin555.fits scfile=/scratch/kocevski/289773/ft2_4FGL_J1310.5+3221_daily_bin555.fits outfile=/scratch/kocevski/289773/cmap_383184001_383443201_4FGL_J1310.5+3221_daily_bin555.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.57
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/289773/ft1_filtered_4FGL_J1310.5+3221_daily_bin555.fits scfile=/scratch/kocevski/289773/ft2_4FGL_J1310.5+3221_daily_bin555.fits outfile=/scratch/kocevski/289773/cmap_HighResolution_383184001_383443201_4FGL_J1310.5+3221_daily_bin555.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.61
user 0.40
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/289773/ft1_filtered_4FGL_J1310.5+3221_daily_bin555.fits', '/scratch/kocevski/289773/ft2_4FGL_J1310.5+3221_daily_bin555.fits', expMap='/scratch/kocevski/289773/expmap_383184001_383443201_4FGL_J1310.5+3221_daily_bin555.fits', expCube='/scratch/kocevski/289773/ltcube_383184001_383443201_4FGL_J1310.5+3221_daily_bin555.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/289773/Model_4FGL_J1310.5+3221_daily_bin555.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  1.000e-04  1.000e+04 ( 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  0.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/289773/ft1_filtered_4FGL_J1310.5+3221_daily_bin555.fits
Spacecraft file(s): /scratch/kocevski/289773/ft2_4FGL_J1310.5+3221_daily_bin555.fits
Exposure map: /scratch/kocevski/289773/expmap_383184001_383443201_4FGL_J1310.5+3221_daily_bin555.fits
Exposure cube: /scratch/kocevski/289773/ltcube_383184001_383443201_4FGL_J1310.5+3221_daily_bin555.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/289773/Model_4FGL_J1310.5+3221_daily_bin555.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) = 5371.01241262

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.107       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.5057       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.6100       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.0668       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    10.974       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.1271       1.0000         .10000E-03   10000.    
    16 'norm      '    10.304       1.0000         .10000E-03   10000.    
    17 'norm      '    3.7980       1.0000         .10000E-03   10000.    
    18 'norm      '    .10568E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    8.4104       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    15.367       1.0000         .10000E-03   10000.    
    23 'Prefactor '    22.406       1.0000         .10000E-03   10000.    
    24 'norm      '    .19544E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    21.044       1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.2919       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.2399       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .54209       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=   5371.012     FROM MIGRAD    STATUS=CONVERGED    752 CALLS     3900 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.106        4.0396        .11441E-06    .23309E-03
   2  Prefactor     .10000E-03    6.4457       -.10285E-05** at limit **
   3  Prefactor     .10000E-03    2.0803        .11957E-06** at limit **
   4  Prefactor     .10000E-03    1.1872       -.30385E-07** at limit **
   5  norm          2.5057        2.7209       -.13516E-06   -.11345E-03
   6  Prefactor     .10000E-03    3.0009        .13510E-06** at limit **
   7  Prefactor     .10000E-03    8.3252       -.14559E-05** at limit **
   8  Prefactor     .10002E-03    39.902       -.87817E-05** at limit **
   9  Prefactor     5.6097        7.4033        .24981E-05   -.11922E-02
  10  Prefactor     .10000E-03    1.6145       -.29763E-08** at limit **
  11  norm          1.0668        3.2940        .46165E-06   -.25489E-03
  12  Prefactor     .10000E-03    7.0289        .99775E-06** at limit **
  13  norm          10.974        4.7897       -.12528E-06   -.62575E-04
  14  Prefactor     .10000E-03    6.6588       -.43371E-06** at limit **
  15  norm          3.1272        3.3686        .49338E-06   -.77588E-03
  16  norm          10.304        9.6677        .36494E-07    .11602E-04
  17  norm          3.7981        2.9686        .16494E-07   -.45160E-03
  18  norm          .10000E-03    4.5991        .30796E-06** at limit **
  19  norm          8.4106        15.138        .36461E-07   -.13577E-04
  20  Prefactor     .10000E-03    1.0030       -.87202E-08** at limit **
  21  Prefactor     .10000E-03    7.0618        .12605E-05** at limit **
  22  norm          15.363        7.1636        .27223E-07   -.97862E-05
  23  Prefactor     22.402        48.445       -.20603E-05   -.81353E-04
  24  norm          .10000E-03    4.5966        .10034E-06** at limit **
  25  Prefactor     21.047        16.334        .27690E-06    .41708E-04
  26  Prefactor     1.2915        40.834        .11704E-05   -.65309E-04
  27  Prefactor     .10002E-03    37.127        .82964E-05** at limit **
  28  Prefactor     .10000E-03    2.6746       -.91713E-07** at limit **
  29  Normalizat    1.2399        .17210       -.26669E-06   -.41436E-04
  30  Prefactor     .54211        .21023       -.52931E-06   -.38606E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 11.1057
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.50566
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100018
  Prefactor  = 5.60971
  Prefactor  = 0.0001
  norm       = 1.06676
  Prefactor  = 0.0001
  norm       = 10.9743
  Prefactor  = 0.0001
  norm       = 3.12717
  norm       = 10.304
  norm       = 3.79808
  norm       = 0.0001
  norm       = 8.41055
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 15.3634
  Prefactor  = 22.4024
  norm       = 0.0001
  Prefactor  = 21.0473
  Prefactor  = 1.29149
  Prefactor  = 0.000100016
  Prefactor  = 0.0001
  Normalizat = 1.23992
  Prefactor  = 0.542114
 **********
 **   18 **HESSE 
 **********

 FCN=   5371.012     FROM HESSE     STATUS=OK           586 CALLS     4486 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.106        3.9640        .84674E-04   -1.5041    
   2  Prefactor     .10000E-03    6.5856        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.1393        .20458E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.0520        .15376E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.5057        2.7228        .12275E-03   -1.5391    
   6  Prefactor     .10000E-03    3.0051        .12399E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.3999        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10002E-03    42.313        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.6097        8.6213        .84804E-03   -1.5234    
  10  Prefactor     .10000E-03    1.6178        .90933E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.0668        3.2674        .22431E-03   -1.5501    
  12  Prefactor     .10000E-03    7.0678        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          10.974        4.7912        .10132E-03   -1.5045    
  14  Prefactor     .10000E-03    6.6961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.1272        3.4166        .68774E-03   -1.5354    
  16  norm          10.304        9.6694        .12482E-03   -1.5066    
  17  norm          3.7981        2.6109        .94638E-04   -1.5318    
  18  norm          .10000E-03    7.8597        .26869E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          8.4106        15.129        .13823E-03   -1.5128    
  20  Prefactor     .10000E-03    1.0176        .71575E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    7.2117        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          15.363        6.9875        .10217E-03   -1.4924    
  23  Prefactor     22.402        48.708        .84619E-04   -1.4761    
  24  norm          .10000E-03    12.981        .29797E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     21.047        16.303        .87313E-04   -1.4790    
  26  Prefactor     1.2915        41.635        .38949E-03   -1.5481    
  27  Prefactor     .10002E-03    39.301        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    2.7420        .23388E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.2399        .19578        .19392E-03   -.85378    
  30  Prefactor     .54211        .23693        .34115E-03   -1.1008    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.41824e-09
Minuit parameter uncertainties:
  1  3.96408
  2  7.52685e-05
  3  2.39505e-06
  4  2.00958e-06
  5  2.72297
  6  6.99009e-06
  7  0.000128334
  8  0.00174006
  9  8.62324
  10  3.37119e-08
  11  3.26797
  12  8.1039e-05
  13  4.7914
  14  3.32198e-05
  15  3.41681
  16  9.67082
  17  2.61102
  18  9.60621e-05
  19  15.1363
  20  1.98641e-06
  21  0.000104415
  22  6.98787
  23  48.7947
  24  5.45349e-05
  25  16.3061
  26  14.6764
  27  0.00158005
  28  4.98213e-06
  29  0.195893
  30  0.237364
Done.

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

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  3.798e+00  2.611e+00  1.000e-04  1.000e+04 ( 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  0.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:  5.421e-01  2.374e-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.240e+00  1.959e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.10
Ra Dec: 197.632 32.355
Photon Index (Fixed Index): 2.42 +/- 0.00
Photon Flux (Fixed Index): 3.33e-08 +/- 2.29e-08
Energy Flux (Fixed Index): 1.19e-05 +/- 8.19e-06

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) = 5370.33868215
delta logL = 0.673061924384

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5370.33800145
delta logL = 0.673742623701

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.8794       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7761       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2577       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .52968       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5370.338     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      313 TOTAL
                     EDM=   .23E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.8745        6.1687        .71423E-03    .72424E-05
   2  alpha         1.7755        .54683        .12880E-01    .64037E-05
   3  Normalizat    1.2575        .19271        .19277E-03    .23649E-04
   4  Prefactor     .52987        .23257        .34480E-03    .12892E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.87445
  alpha      = 1.77547
  Normalizat = 1.25755
  Prefactor  = 0.529866
 **********
 **   18 **HESSE 
 **********

 FCN=   5370.338     FROM HESSE     STATUS=OK            25 CALLS      338 TOTAL
                     EDM=   .45E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.8745        6.0652        .28569E-04   -1.5147    
   2  alpha         1.7755        .53783        .51520E-03   -.29403    
   3  Normalizat    1.2575        .19284        .77108E-05   -.84843    
   4  Prefactor     .52987        .23275        .13792E-04   -1.1063    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.54984e-13
Minuit parameter uncertainties:
  1  6.06563
  2  0.542464
  3  0.192948
  4  0.233171
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/289773': 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) = 5370.33799969
delta logL = 0.673744382239

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  7.874e+00  6.066e+00  1.000e-04  1.000e+04 ( 1.000e-13)
332        alpha:  1.775e+00  5.425e-01  0.000e+00  5.000e+00 ( 1.000e+00)
333         beta:  5.326e-02  0.000e+00  0.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:  5.299e-01  2.332e-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.258e+00  1.929e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.46
Ra Dec: 197.632 32.355
Photon Index (Free Index): 1.78 +/- 0.54
Photon Flux (Free Index): 1.85e-08 +/- 1.79e-08
Energy Flux (Free Index): 2.38e-05 +/- 2.57e-05

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/289773/cmap_HighResolution_383184001_383443201_4FGL_J1310.5+3221_daily_bin555.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.33e-08', energy_flux2='2.38e-05', photon_flux_error='2.29e-08', dlogl='6.74e-01', energy_flux='1.19e-05', photon_flux2='1.85e-08', job_status='DONE', time_completed='2021-09-07 01:45:10.285899', photon_index_error2='0.54', photon_index2='1.78', ts='6.10', fit_tolerance='1e-08', GAL='0.54', photon_index_error='0.00', energy_flux_error2='2.57e-05', EG='1.24', time_epoch_completed='1631004310.29', return_code='0', job_id='289773', GAL2='0.53', EG2='1.26', return_code2='0', energy_flux_error='8.19e-06', photon_flux_error2='1.79e-08', ts2='7.46', photon_index='2.42' WHERE bin_id='555' AND source_name='4FGL J1310.5+3221' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:45:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0155>
Subject: Job 289773: <4FGL_J1310.5+3221_daily_bin555> in cluster <slac> Done

Job <4FGL_J1310.5+3221_daily_bin555> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep  7 01:30:35 2021
Job was executed on host(s) <bullet0155>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 01:30:47 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 01:30:47 2021
Terminated at Tue Sep  7 01:45:12 2021
Results reported at Tue Sep  7 01:45:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1310.5+3221_daily_bin555 197.632 32.3547 383184001 383443201 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 :                                   708.29 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             289.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   864 sec.
    Turnaround time :                            877 sec.

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

