/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 8 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 = 7385
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1310.5+3221_daily_bin433
RA = 197.632, Dec = 32.3547
tmin = 351561601, tmax = 351820801
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='288593', job_status='RUN', time_executed='2021-09-07 01:26:55.922331', time_epoch_executed='1631003215.92' WHERE source_name='4FGL J1310.5+3221' and cadence='daily' and bin_id='433'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/288593

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

Retrieving the FT1 file...

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

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

Retrieving 52 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/288593/ft1_4FGL_J1310.5+3221_daily_bin433.fits


Retrieving the FT1 file...

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

Retrieving 52 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/288593/ft2_4FGL_J1310.5+3221_daily_bin433.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/288593/ft1_4FGL_J1310.5+3221_daily_bin433.fits outfile=/scratch/kocevski/288593/ft1_filteredMKT_4FGL_J1310.5+3221_daily_bin433.fits ra=197.632 dec=32.3547 rad=12.0 tmin=351561601.0 tmax=351820801.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 7.10
user 6.59
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/288593/ft1_filtered_4FGL_J1310.5+3221_daily_bin433.fits" evtable="EVENTS" scfile=/scratch/kocevski/288593/ft2_4FGL_J1310.5+3221_daily_bin433.fits sctable="SC_DATA" outfile=/scratch/kocevski/288593/ltcube_351561601_351820801_4FGL_J1310.5+3221_daily_bin433.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/288593/ft2_4FGL_J1310.5+3221_daily_bin433.fits
.....................!
real 16.49
user 15.77
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/288593/ft1_filtered_4FGL_J1310.5+3221_daily_bin433.fits evtable="EVENTS" scfile=/scratch/kocevski/288593/ft2_4FGL_J1310.5+3221_daily_bin433.fits sctable="SC_DATA" expcube=/scratch/kocevski/288593/ltcube_351561601_351820801_4FGL_J1310.5+3221_daily_bin433.fits outfile=/scratch/kocevski/288593/expmap_351561601_351820801_4FGL_J1310.5+3221_daily_bin433.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/288593/ltcube_351561601_351820801_4FGL_J1310.5+3221_daily_bin433.fits
.....................!
real 196.25
user 186.38
sys 4.95

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/288593/ft1_filtered_4FGL_J1310.5+3221_daily_bin433.fits scfile=/scratch/kocevski/288593/ft2_4FGL_J1310.5+3221_daily_bin433.fits outfile=/scratch/kocevski/288593/cmap_351561601_351820801_4FGL_J1310.5+3221_daily_bin433.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.93
user 0.40
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/288593/ft1_filtered_4FGL_J1310.5+3221_daily_bin433.fits scfile=/scratch/kocevski/288593/ft2_4FGL_J1310.5+3221_daily_bin433.fits outfile=/scratch/kocevski/288593/cmap_HighResolution_351561601_351820801_4FGL_J1310.5+3221_daily_bin433.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.57
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.7867       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.3469       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.5685       1.0000         .10000E-03   10000.    
     5 'norm      '    7.1972       1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.856       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .36181E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.7489       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.4469       1.0000         .10000E-03   10000.    
    16 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.5863       1.0000         .10000E-03   10000.    
    18 'norm      '    9.1412       1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .56062       1.0000         .10000E-03   10000.    
    22 'norm      '    2.7039       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    9.7720       1.0000         .10000E-03   10000.    
    25 'Prefactor '    7.4544       1.0000         .10000E-03   10000.    
    26 'Prefactor '    21.904       1.0000         .10000E-03   10000.    
    27 'Prefactor '    17.991       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .94941       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.3143       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .51267       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=   5423.436     FROM MIGRAD    STATUS=CONVERGED    738 CALLS     3926 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.7866        3.4709       -.12179E-07    .94179E-05
   2  Prefactor     .10000E-03    2.3604       -.69985E-07** at limit **
   3  Prefactor     1.3468        1.4731       -.18343E-07   -.24262E-04
   4  Prefactor     8.5684        3.4259       -.32034E-09    .32540E-04
   5  norm          7.1971        5.0163       -.17870E-07    .28116E-04
   6  Prefactor     13.855        11.222        .13735E-07    .96378E-05
   7  Prefactor     .10000E-03    11.229       -.54954E-06** at limit **
   8  Prefactor     .10000E-03    16.860        .70674E-06** at limit **
   9  Prefactor     .10000E-03    6.8877       -.89946E-06** at limit **
  10  Prefactor     .10000E-03    1.6033       -.56598E-07** at limit **
  11  norm          .10000E-03    1.1477       -.64424E-07** at limit **
  12  Prefactor     .10000E-03    10.943       -.42571E-06** at limit **
  13  norm          1.7493        1.8553       -.25765E-07    .69131E-04
  14  Prefactor     .10000E-03    5.0133       -.72542E-08** at limit **
  15  norm          4.4467        3.8122        .63880E-07    .18779E-04
  16  norm          .10000E-03    9.3964        .64162E-06** at limit **
  17  norm          2.5848        5.6733        .49225E-06   -.76638E-05
  18  norm          9.1411        9.6077       -.22043E-06    .11966E-04
  19  norm          .10000E-03    6.4124       -.25031E-06** at limit **
  20  Prefactor     .10000E-03    .79715       -.19866E-07** at limit **
  21  Prefactor     .56398        9.7818        .12929E-05   -.17293E-03
  22  norm          2.7031        6.7452        .68124E-05   -.16423E-04
  23  Prefactor     .10000E-03    15.227       -.65822E-06** at limit **
  24  norm          9.7726        10.206       -.26737E-05    .28256E-04
  25  Prefactor     7.4516        16.597        .84600E-06    .34521E-04
  26  Prefactor     21.902        22.845        .45212E-06    .31314E-04
  27  Prefactor     18.041        71.892       -.11543E-04    .20003E-04
  28  Prefactor     .94728        3.9003        .80840E-06   -.64630E-04
  29  Normalizat    1.3142        .19092       -.20076E-05    .20123E-03
  30  Prefactor     .51286        .21497        .43663E-05    .24467E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.78662
  Prefactor  = 0.0001
  Prefactor  = 1.34683
  Prefactor  = 8.56835
  norm       = 7.19711
  Prefactor  = 13.8548
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.74935
  Prefactor  = 0.0001
  norm       = 4.44667
  norm       = 0.0001
  norm       = 2.58479
  norm       = 9.14114
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.563978
  norm       = 2.70305
  Prefactor  = 0.0001
  norm       = 9.7726
  Prefactor  = 7.45156
  Prefactor  = 21.9017
  Prefactor  = 18.0406
  Prefactor  = 0.947276
  Normalizat = 1.31423
  Prefactor  = 0.512862
 **********
 **   18 **HESSE 
 **********

 FCN=   5423.436     FROM HESSE     STATUS=OK           596 CALLS     4522 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.7866        3.4709        .87805E-04   -1.5150    
   2  Prefactor     .10000E-03    2.3640        .11050E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.3468        1.4769        .90022E-04   -1.5476    
   4  Prefactor     8.5684        3.4248        .81551E-04   -1.5122    
   5  norm          7.1971        5.0137        .13322E-03   -1.5171    
   6  Prefactor     13.855        11.211        .10760E-03   -1.4963    
   7  Prefactor     .10000E-03    11.280        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    16.857        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    21.592        .37071E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.6058        .91065E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.1507        .77036E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    10.972        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.7493        1.8624        .10057E-03   -1.5443    
  14  Prefactor     .10000E-03    5.0296        .16102E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.4467        3.8097        .12895E-03   -1.5286    
  16  norm          .10000E-03    9.4158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.5848        5.6731        .16758E-03   -1.5386    
  18  norm          9.1411        9.7058        .13256E-03   -1.5103    
  19  norm          .10000E-03    6.4177        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    .79963        .64162E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .56398        39.439        .42071E-02   -1.5558    
  22  norm          2.7031        6.8212        .12386E-02   -1.5379    
  23  Prefactor     .10000E-03    15.231        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          9.7726        10.250        .12819E-03   -1.5083    
  25  Prefactor     7.4516        16.515        .14689E-03   -1.5162    
  26  Prefactor     21.902        22.824        .85584E-04   -1.4772    
  27  Prefactor     18.041        72.500        .94425E-04   -1.4858    
  28  Prefactor     .94728        6.3734        .25968E-02   -1.5513    
  29  Normalizat    1.3142        .21291        .19806E-03   -.83143    
  30  Prefactor     .51286        .23820        .36149E-03   -1.1139    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.90833e-08
Minuit parameter uncertainties:
  1  3.47097
  2  4.803e-06
  3  1.47692
  4  3.42491
  5  5.01398
  6  11.2128
  7  1.80884e-05
  8  2.67045e-05
  9  1.25427e-05
  10  3.21643e-06
  11  4.05019e-06
  12  3.30449e-05
  13  1.86242
  14  9.53555e-06
  15  3.80986
  16  3.13421e-05
  17  5.67432
  18  9.70746
  19  5.06087e-06
  20  1.55027e-06
  21  9.43804
  22  6.82312
  23  1.8435e-05
  24  10.2523
  25  16.5254
  26  22.8331
  27  72.4844
  28  4.91471
  29  0.21305
  30  0.238662
Done.

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

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  2.585e+00  5.674e+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.129e-01  2.387e-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.314e+00  2.130e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.54
Ra Dec: 197.632 32.355
Photon Flux Upper Limit: 9.71e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.47e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/288593/likelihoodResults_351561601_351820801_4FGL_J1310.5+3221_daily_bin433.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) = 5423.26788273
delta logL = 0.168016491319

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5423.24323181
delta logL = 0.192667410676

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .68931       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1813       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2915       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .53201       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=   5423.243     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      251 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .68989        14.322        .12021E-01    .14457E-02
   2  alpha         3.1812        3.8518        .20932        .98407E-04
   3  Normalizat    1.2915        .36394E-01    .32959E-01    .40972E-04
   4  Prefactor     .53196        .43265E-01    .80230E-01    .29222E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.689892
  alpha      = 3.18123
  Normalizat = 1.2915
  Prefactor  = 0.531955
 **********
 **   18 **HESSE 
 **********

 FCN=   5423.243     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      282 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .68989        44.044        .67629E-04   -1.5542    
   2  alpha         3.1812        3.6563        .10880E-01    .27598    
   3  Normalizat    1.2915        .19561        .19947E-03   -.83820    
   4  Prefactor     .53196        .22657        .35535E-03   -1.1053    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.25402e-09
Minuit parameter uncertainties:
  1  11.0323
  2  6.51044
  3  0.195721
  4  0.226958
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/288593': 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): 102
logL (Free Index) = 5423.24323163
delta logL = 0.192667595582

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  6.899e-01  1.103e+01  1.000e-04  1.000e+04 ( 1.000e-13)
332        alpha:  3.181e+00  6.510e+00  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.320e-01  2.270e-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.292e+00  1.957e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.54
Ra Dec: 197.632 32.355

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/288593/cmap_HighResolution_351561601_351820801_4FGL_J1310.5+3221_daily_bin433.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.47e-05', job_status='DONE', photon_flux_upper_limit='9.71e-08', time_completed='2021-09-07 01:40:51.787303', job_id='288593', GAL2='0.53', fit_tolerance='1e-08', EG2='1.29', EG='1.31', time_epoch_completed='1631004051.79', return_code2='102', ts='0.54', comment='SUCCESS', return_code='0', GAL='0.51', dlogl='1.93e-01', ts2='0.96', photon_index_error='0.00', photon_index='2.42' WHERE bin_id='433' AND source_name='4FGL J1310.5+3221' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:40:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0122>
Subject: Job 288593: <4FGL_J1310.5+3221_daily_bin433> in cluster <slac> Done

Job <4FGL_J1310.5+3221_daily_bin433> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep  7 01:25:39 2021
Job was executed on host(s) <bullet0122>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 01:26:37 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:26:37 2021
Terminated at Tue Sep  7 01:40:52 2021
Results reported at Tue Sep  7 01:40:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1310.5+3221_daily_bin433 197.632 32.3547 351561601 351820801 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 :                                   816.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             329.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   855 sec.
    Turnaround time :                            913 sec.

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

