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


Performing analysis on: 4FGL_J1310.5+3221_daily_bin1278
RA = 197.632, Dec = 32.3547
tmin = 570585601, tmax = 570844801
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='293646', job_status='RUN', time_executed='2021-09-07 01:44:42.562207', time_epoch_executed='1631004282.56' WHERE source_name='4FGL J1310.5+3221' and cadence='daily' and bin_id='1278'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/293646

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/293646/ft1_4FGL_J1310.5+3221_daily_bin1278.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/293646/ft2_4FGL_J1310.5+3221_daily_bin1278.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/293646/ft1_4FGL_J1310.5+3221_daily_bin1278.fits outfile=/scratch/kocevski/293646/ft1_filteredMKT_4FGL_J1310.5+3221_daily_bin1278.fits ra=197.632 dec=32.3547 rad=12.0 tmin=570585601.0 tmax=570844801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.64
user 2.81
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/293646/ft2_4FGL_J1310.5+3221_daily_bin1278.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/293646/ft1_filteredMKT_4FGL_J1310.5+3221_daily_bin1278.fits evtable="EVENTS" outfile="/scratch/kocevski/293646/ft1_filtered_4FGL_J1310.5+3221_daily_bin1278.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.93
user 0.37
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/293646/ft1_filtered_4FGL_J1310.5+3221_daily_bin1278.fits" evtable="EVENTS" scfile=/scratch/kocevski/293646/ft2_4FGL_J1310.5+3221_daily_bin1278.fits sctable="SC_DATA" outfile=/scratch/kocevski/293646/ltcube_570585601_570844801_4FGL_J1310.5+3221_daily_bin1278.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/293646/ft2_4FGL_J1310.5+3221_daily_bin1278.fits
.....................!
real 17.11
user 16.14
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/293646/ft1_filtered_4FGL_J1310.5+3221_daily_bin1278.fits evtable="EVENTS" scfile=/scratch/kocevski/293646/ft2_4FGL_J1310.5+3221_daily_bin1278.fits sctable="SC_DATA" expcube=/scratch/kocevski/293646/ltcube_570585601_570844801_4FGL_J1310.5+3221_daily_bin1278.fits outfile=/scratch/kocevski/293646/expmap_570585601_570844801_4FGL_J1310.5+3221_daily_bin1278.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/293646/ltcube_570585601_570844801_4FGL_J1310.5+3221_daily_bin1278.fits
.....................!
real 194.41
user 187.54
sys 4.92

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/293646/ft1_filtered_4FGL_J1310.5+3221_daily_bin1278.fits scfile=/scratch/kocevski/293646/ft2_4FGL_J1310.5+3221_daily_bin1278.fits outfile=/scratch/kocevski/293646/cmap_570585601_570844801_4FGL_J1310.5+3221_daily_bin1278.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.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/293646/ft1_filtered_4FGL_J1310.5+3221_daily_bin1278.fits scfile=/scratch/kocevski/293646/ft2_4FGL_J1310.5+3221_daily_bin1278.fits outfile=/scratch/kocevski/293646/cmap_HighResolution_570585601_570844801_4FGL_J1310.5+3221_daily_bin1278.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.58
user 0.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    18.626       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .29880E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    21.153       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    113.10       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.7465       1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.9554       1.0000         .10000E-03   10000.    
    16 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.1058       1.0000         .10000E-03   10000.    
    19 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    10.217       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    8.8043       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    32.754       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .17743E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.2303       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .72022       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=   3774.846     FROM MIGRAD    STATUS=CONVERGED    755 CALLS     3936 TOTAL
                     EDM=   .64E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          18.636        8.8803       -.26008E-07    .10207E-03
   2  Prefactor     .10000E-03    7.2357       -.27623E-06** at limit **
   3  Prefactor     .10000E-03    5.2314       -.23874E-06** at limit **
   4  Prefactor     .10000E-03    1.7493       -.28767E-07** at limit **
   5  norm          21.153        11.328       -.56216E-07    .35598E-05
   6  Prefactor     .10000E-03    14.471       -.20422E-06** at limit **
   7  Prefactor     .10000E-03    14.916        .16424E-06** at limit **
   8  Prefactor     113.14        126.20       -.12582E-05   -.17916E-05
   9  Prefactor     .10000E-03    5.9710        .13062E-06** at limit **
  10  Prefactor     7.7463        10.683       -.16202E-06   -.91943E-04
  11  norm          .10000E-03    3.3389        .55517E-07** at limit **
  12  Prefactor     .10000E-03    14.611        .46676E-07** at limit **
  13  norm          .10000E-03    1.5523       -.47650E-07** at limit **
  14  Prefactor     .10000E-03    111.69        .43694E-05** at limit **
  15  norm          1.9557        5.3628        .64381E-06    .16341E-04
  16  norm          .10000E-03    5.6962       -.14291E-06** at limit **
  17  norm          .10000E-03    2.2792        .26646E-07** at limit **
  18  norm          4.1059        4.5887       -.10111E-06   -.86941E-05
  19  norm          .10000E-03    10.331       -.11759E-06** at limit **
  20  Prefactor     .10000E-03    2.2691        .28212E-06** at limit **
  21  Prefactor     .10000E-03    8.5112        .19487E-06** at limit **
  22  norm          10.218        7.7715       -.50093E-07   -.63351E-05
  23  Prefactor     .10000E-03    34.751        .56994E-06** at limit **
  24  norm          .10000E-03    8.4107       -.37955E-07** at limit **
  25  Prefactor     8.7978        13.911       -.92375E-07   -.99628E-05
  26  Prefactor     .10000E-03    8.1544       -.71920E-07** at limit **
  27  Prefactor     32.953        93.222       -.13444E-04    .42699E-05
  28  Prefactor     .10006E-03    1.7932        .17081E-06** at limit **
  29  Normalizat    1.2298        .21947       -.12427E-05   -.15938E-04
  30  Prefactor     .72075        .24447        .34856E-05   -.58972E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 18.6357
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 21.1533
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 113.143
  Prefactor  = 0.0001
  Prefactor  = 7.74626
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.95567
  norm       = 0.0001
  norm       = 0.0001
  norm       = 4.10587
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.2183
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.79783
  Prefactor  = 0.0001
  Prefactor  = 32.9534
  Prefactor  = 0.000100056
  Normalizat = 1.22978
  Prefactor  = 0.720745
 **********
 **   18 **HESSE 
 **********

 FCN=   3774.846     FROM HESSE     STATUS=OK           580 CALLS     4516 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          18.636        8.3347        .92803E-04   -1.4844    
   2  Prefactor     .10000E-03    7.2436        .16142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    13.511        .25624E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.7528        .79347E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          21.153        11.325        .87088E-04   -1.4788    
   6  Prefactor     .10000E-03    14.540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    14.919        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     113.14        126.16        .37827E-04   -1.3577    
   9  Prefactor     .10000E-03    5.9983        .14659E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.7463        10.600        .14408E-03   -1.5151    
  11  norm          .10000E-03    3.3577        .10949E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    14.625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.5575        .74755E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    114.99        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.9557        5.4215        .11346E-02   -1.5428    
  16  norm          .10000E-03    5.6967        .14322E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.2925        .90075E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.1059        4.5640        .13489E-03   -1.5303    
  19  norm          .10000E-03    10.342        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.3003        .90369E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.5381        .17504E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          10.218        7.7690        .12535E-03   -1.5069    
  23  Prefactor     .10000E-03    34.775        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    8.4719        .17377E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     8.7978        13.914        .13509E-03   -1.5115    
  26  Prefactor     .10000E-03    8.1621        .17135E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     32.953        94.771        .35007E-03   -1.4559    
  28  Prefactor     .10006E-03    35.390        .15695E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.2298        .24169        .20772E-03   -.85687    
  30  Prefactor     .72075        .26747        .31079E-03   -1.0272    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56735e-09
Minuit parameter uncertainties:
  1  8.33521
  2  1.30908e-06
  3  0.000158431
  4  4.40924e-08
  5  11.326
  6  2.85016e-06
  7  5.43563e-06
  8  126.458
  9  7.34165e-06
  10  10.6025
  11  1.80837e-06
  12  2.45749e-07
  13  1.21761e-06
  14  0.00044503
  15  5.42284
  16  8.52269e-07
  17  1.21925e-06
  18  4.56438
  19  3.99451e-06
  20  3.26867e-07
  21  3.4341e-06
  22  7.76976
  23  7.21235e-06
  24  8.31218e-06
  25  13.9191
  26  2.27305e-06
  27  95.2086
  28  0.00280802
  29  0.241914
  30  0.267952
Done.

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

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  1.000e-04  1.219e-06  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:  7.207e-01  2.680e-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.230e+00  2.419e-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: 7.39e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.65e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/293646/likelihoodResults_570585601_570844801_4FGL_J1310.5+3221_daily_bin1278.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) = 3774.8481463
delta logL = -0.00205092537044

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3774.8460996
delta logL = -4.2277160901e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12619E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3863       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2297       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72091       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=   3774.846     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      246 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    43.702        .96028E-02** at limit **
   2  alpha         1.6137        3.7252        .50000        .12687E-07
   3  Normalizat    1.2298        .15400E-01    .20773E-03   -.42887E-03
   4  Prefactor     .72074        .18184E-01    .31078E-03   -.31846E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.61374
  Normalizat = 1.22978
  Prefactor  = 0.720744
 **********
 **   18 **HESSE 
 **********

 FCN=   3774.846     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      275 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    294.41        .13161E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6137        2.5042        .50000       -.36238    
   3  Normalizat    1.2298        .42650E-01    .41546E-04   -.85687    
   4  Prefactor     .72074        .50358E-01    .62156E-04   -1.0272    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.23848e-10
Minuit parameter uncertainties:
  1  1.31677e-05
  2  1204.41
  3  0.0426515
  4  0.0503614
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/293646': 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) = 3774.8460839
delta logL = 1.1474664916e-05

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  1.000e-04  1.317e-05  1.000e-04  1.000e+04 ( 1.000e-13)
332        alpha:  1.614e+00  1.204e+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:  7.207e-01  5.036e-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:  1.230e+00  4.265e-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/293646/cmap_HighResolution_570585601_570844801_4FGL_J1310.5+3221_daily_bin1278.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.65e-05', job_status='DONE', photon_flux_upper_limit='7.39e-08', time_completed='2021-09-07 01:55:45.241278', job_id='293646', GAL2='0.72', fit_tolerance='1e-08', EG2='1.23', EG='1.23', time_epoch_completed='1631004945.24', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='1.15e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.42' WHERE bin_id='1278' AND source_name='4FGL J1310.5+3221' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:55:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 293646: <4FGL_J1310.5+3221_daily_bin1278> in cluster <slac> Done

Job <4FGL_J1310.5+3221_daily_bin1278> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Sep  7 01:40:47 2021
Job was executed on host(s) <bullet0225>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 01:44:14 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:44:14 2021
Terminated at Tue Sep  7 01:55:46 2021
Results reported at Tue Sep  7 01:55:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1310.5+3221_daily_bin1278 197.632 32.3547 570585601 570844801 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 :                                   654.49 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             291.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   691 sec.
    Turnaround time :                            899 sec.

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

