/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 96 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 = 7430
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1310.5+3221_daily_bin1107
RA = 197.632, Dec = 32.3547
tmin = 526262401, tmax = 526521601
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='293306', job_status='RUN', time_executed='2021-09-07 01:43:46.725232', time_epoch_executed='1631004226.73' WHERE source_name='4FGL J1310.5+3221' and cadence='daily' and bin_id='1107'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/293306

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/293306/ft1_4FGL_J1310.5+3221_daily_bin1107.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/293306/ft2_4FGL_J1310.5+3221_daily_bin1107.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/293306/ft1_4FGL_J1310.5+3221_daily_bin1107.fits outfile=/scratch/kocevski/293306/ft1_filteredMKT_4FGL_J1310.5+3221_daily_bin1107.fits ra=197.632 dec=32.3547 rad=12.0 tmin=526262401.0 tmax=526521601.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 5.01
user 3.79
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/293306/ft1_filtered_4FGL_J1310.5+3221_daily_bin1107.fits" evtable="EVENTS" scfile=/scratch/kocevski/293306/ft2_4FGL_J1310.5+3221_daily_bin1107.fits sctable="SC_DATA" outfile=/scratch/kocevski/293306/ltcube_526262401_526521601_4FGL_J1310.5+3221_daily_bin1107.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/293306/ft2_4FGL_J1310.5+3221_daily_bin1107.fits
.....................!
real 14.33
user 13.40
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/293306/ft1_filtered_4FGL_J1310.5+3221_daily_bin1107.fits evtable="EVENTS" scfile=/scratch/kocevski/293306/ft2_4FGL_J1310.5+3221_daily_bin1107.fits sctable="SC_DATA" expcube=/scratch/kocevski/293306/ltcube_526262401_526521601_4FGL_J1310.5+3221_daily_bin1107.fits outfile=/scratch/kocevski/293306/expmap_526262401_526521601_4FGL_J1310.5+3221_daily_bin1107.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/293306/ltcube_526262401_526521601_4FGL_J1310.5+3221_daily_bin1107.fits
.....................!
real 194.74
user 187.31
sys 5.01

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/293306/ft1_filtered_4FGL_J1310.5+3221_daily_bin1107.fits scfile=/scratch/kocevski/293306/ft2_4FGL_J1310.5+3221_daily_bin1107.fits outfile=/scratch/kocevski/293306/cmap_526262401_526521601_4FGL_J1310.5+3221_daily_bin1107.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/293306/ft1_filtered_4FGL_J1310.5+3221_daily_bin1107.fits scfile=/scratch/kocevski/293306/ft2_4FGL_J1310.5+3221_daily_bin1107.fits outfile=/scratch/kocevski/293306/cmap_HighResolution_526262401_526521601_4FGL_J1310.5+3221_daily_bin1107.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    21.120       1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.238       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.1397       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.4964       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11134E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    28.373       1.0000         .10000E-03   10000.    
     8 'Prefactor '    19.487       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .18665E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.7094       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.9245       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .97792       1.0000         .10000E-03   10000.    
    16 'norm      '    28.581       1.0000         .10000E-03   10000.    
    17 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.0089       1.0000         .10000E-03   10000.    
    19 'norm      '    13.197       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    17.796       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    21.220       1.0000         .10000E-03   10000.    
    26 'Prefactor '    9.5098       1.0000         .10000E-03   10000.    
    27 'Prefactor '    78.595       1.0000         .10000E-03   10000.    
    28 'Prefactor '    2.4746       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .86970       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .99068       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=   4417.066     FROM MIGRAD    STATUS=CONVERGED    753 CALLS     3934 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          21.120        6.7106        .13953E-06   -.70373E-04
   2  Prefactor     13.238        12.327       -.42532E-06   -.20999E-04
   3  Prefactor     1.1385        3.1318       -.70152E-06   -.81595E-03
   4  Prefactor     .10000E-03    1.6057       -.16377E-07** at limit **
   5  norm          4.4960        4.1407        .76341E-08    .23612E-04
   6  Prefactor     .10001E-03    9.6800        .12597E-05** at limit **
   7  Prefactor     28.383        25.759        .57216E-05    .67540E-04
   8  Prefactor     19.438        147.26       -.10447E-03   -.77735E-05
   9  Prefactor     .10000E-03    3.1263       -.23697E-07** at limit **
  10  Prefactor     .10000E-03    5.3404       -.76280E-06** at limit **
  11  norm          2.7105        4.4456        .36589E-05    .16140E-03
  12  Prefactor     3.9240        15.263        .61688E-06   -.22878E-04
  13  norm          .10000E-03    1.9416       -.23314E-10** at limit **
  14  Prefactor     .10000E-03    10.194       -.92185E-07** at limit **
  15  norm          .97721        5.8335       -.19033E-05   -.85424E-03
  16  norm          28.580        20.822       -.68168E-06    .13154E-04
  17  norm          .10000E-03    2.1006        .10243E-06** at limit **
  18  norm          2.0066        3.9103       -.18785E-06   -.25214E-03
  19  norm          13.198        21.297       -.49409E-06   -.81835E-05
  20  Prefactor     .10000E-03    2.2626        .39774E-08** at limit **
  21  Prefactor     .10000E-03    6.0680       -.33265E-07** at limit **
  22  norm          17.797        8.7216       -.19171E-06    .96020E-05
  23  Prefactor     .10000E-03    21.861       -.18881E-06** at limit **
  24  norm          .10000E-03    4.7090       -.35251E-07** at limit **
  25  Prefactor     21.218        20.997       -.10707E-05    .22106E-04
  26  Prefactor     9.5097        16.116       -.12105E-06   -.40378E-05
  27  Prefactor     78.587        82.357       -.79735E-05    .18305E-04
  28  Prefactor     2.4746        5.3829       -.15972E-05   -.53729E-03
  29  Normalizat    .86963        .20074        .61840E-05   -.15143E-03
  30  Prefactor     .99079        .23424       -.11865E-05    .16147E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 21.1202
  Prefactor  = 13.2381
  Prefactor  = 1.13853
  Prefactor  = 0.0001
  norm       = 4.49599
  Prefactor  = 0.000100011
  Prefactor  = 28.3833
  Prefactor  = 19.4378
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 2.71049
  Prefactor  = 3.92397
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.977214
  norm       = 28.5804
  norm       = 0.0001
  norm       = 2.00664
  norm       = 13.1976
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 17.7967
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 21.2178
  Prefactor  = 9.5097
  Prefactor  = 78.5871
  Prefactor  = 2.47456
  Normalizat = 0.869628
  Prefactor  = 0.99079
 **********
 **   18 **HESSE 
 **********

 FCN=   4417.066     FROM HESSE     STATUS=OK           592 CALLS     4526 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          21.120        6.5981        .83167E-04   -1.4789    
   2  Prefactor     13.238        12.326        .11009E-03   -1.4980    
   3  Prefactor     1.1385        3.0481        .16771E-03   -1.5495    
   4  Prefactor     .10000E-03    1.6502        .16410E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.4960        4.1395        .12616E-03   -1.5284    
   6  Prefactor     .10001E-03    82.993        .39110E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     28.383        25.571        .37607E-03   -1.4642    
   8  Prefactor     19.438        144.89        .90732E-04   -1.4826    
   9  Prefactor     .10000E-03    3.1352        .11476E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    12.111        .29302E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.7105        4.3954        .15790E-03   -1.5379    
  12  Prefactor     3.9240        15.174        .20364E-03   -1.5312    
  13  norm          .10000E-03    1.9577        .90412E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    10.219        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .97721        5.8128        .30660E-03   -1.5510    
  16  norm          28.580        20.819        .74939E-04   -1.4638    
  17  norm          .10000E-03    2.1192        .18603E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.0066        3.8374        .17617E-03   -1.5425    
  19  norm          13.198        21.286        .11026E-03   -1.4981    
  20  Prefactor     .10000E-03    2.2940        .97430E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    6.0846        .15987E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          17.797        8.7131        .94942E-04   -1.4864    
  23  Prefactor     .10000E-03    21.865        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    4.7257        .14075E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     21.218        20.989        .86950E-04   -1.4786    
  26  Prefactor     9.5097        16.101        .12995E-03   -1.5091    
  27  Prefactor     78.587        82.472        .45299E-04   -1.3933    
  28  Prefactor     2.4746        5.3864        .21216E-03   -1.5393    
  29  Normalizat    .86963        .23237        .23934E-03   -.97536    
  30  Prefactor     .99079        .27248        .27600E-03   -.93037    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.62478e-09
Minuit parameter uncertainties:
  1  6.59829
  2  12.3279
  3  3.04849
  4  4.65802e-06
  5  4.13975
  6  0.00189501
  7  25.5805
  8  106.5
  9  4.86713e-06
  10  0.000281585
  11  4.39595
  12  15.1889
  13  5.60769e-06
  14  7.65283e-06
  15  4.76714
  16  20.8244
  17  1.15691e-05
  18  3.83788
  19  21.2986
  20  2.99446e-06
  21  5.43263e-06
  22  8.71371
  23  9.28312e-06
  24  7.0519e-06
  25  20.9966
  26  16.1084
  27  82.592
  28  5.38746
  29  0.232635
  30  0.272857
Done.

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

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  1.000e-04  1.157e-05  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:  9.908e-01  2.729e-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:  8.696e-01  2.326e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/293306/likelihoodResults_526262401_526521601_4FGL_J1310.5+3221_daily_bin1107.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): 102
logL (Free Index) = 4417.0681229
delta logL = -0.00224147651898

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4417.0658811
delta logL = 3.19229002343e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10922E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3731       1.0000          .0000       5.0000    
     3 'Normalizat'    .86956       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99093       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6000E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4417.066     FROM MIGRAD    STATUS=CONVERGED    107 CALLS      252 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    127.79        .20700E-02** at limit **
   2  alpha         1.7272        3.6930        .50000        .46066E-07
   3  Normalizat    .86963        .24508E-01    .23934E-03    .75278E-03
   4  Prefactor     .99079        .30143E-01    .27601E-03    .74314E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.72719
  Normalizat = 0.869634
  Prefactor  = 0.990788
 **********
 **   18 **HESSE 
 **********

 FCN=   4417.066     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      281 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    520.72        .41400E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7272        2.7924        .50000       -.31427    
   3  Normalizat    .86963        .56541E-01    .47868E-04   -.97536    
   4  Prefactor     .99079        .69538E-01    .55201E-04   -.93037    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.1564e-10
Minuit parameter uncertainties:
  1  8.88503e-05
  2  1239.34
  3  0.0565447
  4  0.069544
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/293306': 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) = 4417.06586821
delta logL = 1.32119703267e-05

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  1.000e-04  8.885e-05  1.000e-04  1.000e+04 ( 1.000e-13)
332        alpha:  1.727e+00  1.239e+03  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:  9.908e-01  6.954e-02  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:  8.696e-01  5.654e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/293306/cmap_HighResolution_526262401_526521601_4FGL_J1310.5+3221_daily_bin1107.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.15e-05', job_status='DONE', photon_flux_upper_limit='6.02e-08', time_completed='2021-09-07 01:56:03.469076', job_id='293306', GAL2='0.99', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1631004963.47', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='1.32e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.42' WHERE bin_id='1107' AND source_name='4FGL J1310.5+3221' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:56:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0276>
Subject: Job 293306: <4FGL_J1310.5+3221_daily_bin1107> in cluster <slac> Done

Job <4FGL_J1310.5+3221_daily_bin1107> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Sep  7 01:40:30 2021
Job was executed on host(s) <bullet0276>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 01:41:45 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:41:45 2021
Terminated at Tue Sep  7 01:56:04 2021
Results reported at Tue Sep  7 01:56:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1310.5+3221_daily_bin1107 197.632 32.3547 526262401 526521601 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 :                                   707.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             326.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   858 sec.
    Turnaround time :                            934 sec.

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

