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


Performing analysis on: 4FGL_J1310.5+3221_daily_bin506
RA = 197.632, Dec = 32.3547
tmin = 370483201, tmax = 370742401
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='288709', job_status='RUN', time_executed='2021-09-07 01:29:00.763567', time_epoch_executed='1631003340.76' WHERE source_name='4FGL J1310.5+3221' and cadence='daily' and bin_id='506'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/288709

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/288709/ft1_4FGL_J1310.5+3221_daily_bin506.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/288709/ft2_4FGL_J1310.5+3221_daily_bin506.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/288709/ft1_4FGL_J1310.5+3221_daily_bin506.fits outfile=/scratch/kocevski/288709/ft1_filteredMKT_4FGL_J1310.5+3221_daily_bin506.fits ra=197.632 dec=32.3547 rad=12.0 tmin=370483201.0 tmax=370742401.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 20.19
user 19.04
sys 0.52

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/288709/ft1_filtered_4FGL_J1310.5+3221_daily_bin506.fits evtable="EVENTS" scfile=/scratch/kocevski/288709/ft2_4FGL_J1310.5+3221_daily_bin506.fits sctable="SC_DATA" expcube=/scratch/kocevski/288709/ltcube_370483201_370742401_4FGL_J1310.5+3221_daily_bin506.fits outfile=/scratch/kocevski/288709/expmap_370483201_370742401_4FGL_J1310.5+3221_daily_bin506.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/288709/ltcube_370483201_370742401_4FGL_J1310.5+3221_daily_bin506.fits
.....................!
real 191.47
user 186.00
sys 4.63

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/288709/ft1_filtered_4FGL_J1310.5+3221_daily_bin506.fits scfile=/scratch/kocevski/288709/ft2_4FGL_J1310.5+3221_daily_bin506.fits outfile=/scratch/kocevski/288709/cmap_370483201_370742401_4FGL_J1310.5+3221_daily_bin506.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 1.28
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/288709/ft1_filtered_4FGL_J1310.5+3221_daily_bin506.fits scfile=/scratch/kocevski/288709/ft2_4FGL_J1310.5+3221_daily_bin506.fits outfile=/scratch/kocevski/288709/cmap_HighResolution_370483201_370742401_4FGL_J1310.5+3221_daily_bin506.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.67
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.437       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.1178       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10059E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    52.488       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .19204E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10400E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .13709E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.0869       1.0000         .10000E-03   10000.    
    14 'Prefactor '    25.459       1.0000         .10000E-03   10000.    
    15 'norm      '    .10462E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    17.955       1.0000         .10000E-03   10000.    
    18 'norm      '    .10214E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    13.180       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    12.657       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .14238E-02   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .97963       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .78208       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=   1889.645     FROM MIGRAD    STATUS=CONVERGED    760 CALLS     3853 TOTAL
                     EDM=   .80E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.437        10.087       -.46902E-07   -.37853E-04
   2  Prefactor     .10000E-03    13.519        .46379E-06** at limit **
   3  Prefactor     4.1182        6.7864       -.22554E-06   -.13020E-03
   4  Prefactor     .10000E-03    2.9448        .90034E-08** at limit **
   5  norm          .10000E-03    9.4864        .42086E-05** at limit **
   6  Prefactor     52.497        30.943        .20074E-06   -.26076E-04
   7  Prefactor     .10000E-03    15.309        .29411E-05** at limit **
   8  Prefactor     .10000E-03    42.980        .14600E-04** at limit **
   9  Prefactor     .10242E-03    21.906       -.43264E-05** at limit **
  10  Prefactor     .10000E-03    7.2355        .16000E-06** at limit **
  11  norm          .10000E-03    2.8952        .62827E-07** at limit **
  12  Prefactor     .10000E-03    98.622        .45544E-04** at limit **
  13  norm          2.0878        7.0188        .11385E-05    .24365E-04
  14  Prefactor     25.461        28.100       -.48030E-06   -.47093E-04
  15  norm          .10000E-03    6.2730        .49574E-08** at limit **
  16  norm          .10000E-03    9.1484       -.57481E-05** at limit **
  17  norm          17.950        9.7489       -.17547E-06    .76500E-04
  18  norm          .10000E-03    9.5245        .41870E-05** at limit **
  19  norm          13.165        82.297       -.26787E-04    .10103E-04
  20  Prefactor     .10000E-03    3.6695        .20266E-07** at limit **
  21  Prefactor     .10000E-03    59.174       -.41204E-04** at limit **
  22  norm          12.661        20.282        .38845E-05    .44228E-04
  23  Prefactor     .10000E-03    240.15       -.19772E-04** at limit **
  24  norm          .10000E-03    10.933       -.40990E-05** at limit **
  25  Prefactor     .10000E-03    20.102       -.81037E-05** at limit **
  26  Prefactor     .10000E-03    21.911        .49878E-05** at limit **
  27  Prefactor     .10000E-03    85.937        .16002E-04** at limit **
  28  Prefactor     .10000E-03    3.6686       -.29161E-07** at limit **
  29  Normalizat    .97936        .29335        .38262E-06    .14422E-03
  30  Prefactor     .78187        .34271        .14178E-05    .72220E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 14.4371
  Prefactor  = 0.0001
  Prefactor  = 4.11821
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 52.4975
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000102418
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.08777
  Prefactor  = 25.4606
  norm       = 0.0001
  norm       = 0.0001
  norm       = 17.9497
  norm       = 0.0001
  norm       = 13.1653
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.6612
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.97936
  Prefactor  = 0.781865
 **********
 **   18 **HESSE 
 **********

 FCN=   1889.645     FROM HESSE     STATUS=OK           574 CALLS     4427 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.437        10.132        .90397E-04   -1.4948    
   2  Prefactor     .10000E-03    13.597        .15608E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.1182        6.8021        .11359E-03   -1.5302    
   4  Prefactor     .10000E-03    2.9587        .72781E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    9.5368        .13071E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     52.497        30.919        .55359E-04   -1.4258    
   7  Prefactor     .10000E-03    15.317        .16615E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    42.992        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10242E-03    177.37        .38459E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.2509        .11411E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.8966        .72233E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    98.931        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.0878        6.8686        .19893E-03   -1.5419    
  14  Prefactor     25.461        28.068        .79392E-04   -1.4698    
  15  norm          .10000E-03    6.2797        .10622E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    9.1549        .12846E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          17.950        9.7513        .93957E-04   -1.4860    
  18  norm          .10000E-03    9.5340        .13092E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          13.165        82.010        .11033E-03   -1.4982    
  20  Prefactor     .10000E-03    3.6826        .81247E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    59.423        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          12.661        20.254        .11259E-03   -1.4996    
  23  Prefactor     .10000E-03    240.89        .20511E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    10.934        .14040E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    20.127        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    21.918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    85.970        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    3.6728        .81320E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .97936        .34527        .23213E-03   -.93725    
  30  Prefactor     .78187        .40205        .30446E-03   -1.0040    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31439e-08
Minuit parameter uncertainties:
  1  10.1336
  2  1.66478e-05
  3  6.8034
  4  3.28077e-06
  5  1.37955e-05
  6  30.928
  7  5.88426e-06
  8  5.67471e-06
  9  0.0415468
  10  6.57987e-06
  11  1.58553e-06
  12  0.00021509
  13  6.8712
  14  28.0823
  15  9.11376e-07
  16  1.8128e-06
  17  9.75213
  18  2.38575e-06
  19  65.8507
  20  8.55619e-06
  21  0.000242537
  22  20.2653
  23  0.000234816
  24  3.971e-06
  25  8.39315e-06
  26  1.79063e-06
  27  2.15749e-05
  28  5.18802e-07
  29  0.346064
  30  0.403569
Done.

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

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  1.795e+01  9.752e+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:  7.819e-01  4.036e-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:  9.794e-01  3.461e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.07
Ra Dec: 197.632 32.355
Photon Index (Fixed Index): 2.42 +/- 0.00
Photon Flux (Fixed Index): 1.57e-07 +/- 8.54e-08
Energy Flux (Fixed Index): 5.63e-05 +/- 3.06e-05

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) = 1888.81990643
delta logL = 0.825520902714

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1888.81624374
delta logL = 0.829183587525

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.6366       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1375       1.0000          .0000       5.0000    
     3 'Normalizat'    .90431       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84351       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=   1888.816     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      246 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.6340        44.168        .46728E-02   -.17454E-02
   2  alpha         3.1380        3.7079        .76161E-01   -.22012E-03
   3  Normalizat    .90416        .15836        .44957E-01    .34936E-03
   4  Prefactor     .84374        .18211        .66394E-01    .25521E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.63396
  alpha      = 3.13805
  Normalizat = 0.90416
  Prefactor  = 0.843742
 **********
 **   18 **HESSE 
 **********

 FCN=   1888.816     FROM HESSE     STATUS=OK            25 CALLS      271 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.6340        6.8264        .42344E-04   -1.5277    
   2  alpha         3.1380        .60871        .33302E-03    .25807    
   3  Normalizat    .90416        .34611        .23981E-03   -.96314    
   4  Prefactor     .84374        .40345        .29371E-03   -.98136    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10079e-09
Minuit parameter uncertainties:
  1  6.82753
  2  0.615339
  3  0.346965
  4  0.404881
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/288709': 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) = 1888.81624236
delta logL = 0.829184971096

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  4.634e+00  6.828e+00  1.000e-04  1.000e+04 ( 1.000e-13)
332        alpha:  3.138e+00  6.153e-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:  8.437e-01  4.049e-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:  9.042e-01  3.470e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.77
Ra Dec: 197.632 32.355
Photon Index (Free Index): 3.14 +/- 0.62
Photon Flux (Free Index): 2.30e-07 +/- 1.19e-07
Energy Flux (Free Index): 4.68e-05 +/- 2.33e-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/288709/cmap_HighResolution_370483201_370742401_4FGL_J1310.5+3221_daily_bin506.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.57e-07', energy_flux2='4.68e-05', photon_flux_error='8.54e-08', dlogl='8.29e-01', energy_flux='5.63e-05', photon_flux2='2.30e-07', job_status='DONE', time_completed='2021-09-07 01:37:59.686679', photon_index_error2='0.62', photon_index2='3.14', ts='6.07', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', energy_flux_error2='2.33e-05', EG='0.98', time_epoch_completed='1631003879.69', return_code='0', job_id='288709', GAL2='0.84', EG2='0.90', return_code2='0', energy_flux_error='3.06e-05', photon_flux_error2='1.19e-07', ts2='7.77', photon_index='2.42' WHERE bin_id='506' AND source_name='4FGL J1310.5+3221' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:37:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 288709: <4FGL_J1310.5+3221_daily_bin506> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1310.5+3221_daily_bin506 197.632 32.3547 370483201 370742401 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 :                                   524.16 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             270.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   670 sec.
    Turnaround time :                            731 sec.

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

