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


Performing analysis on: 4FGL_J1310.5+3221_daily_bin682
RA = 197.632, Dec = 32.3547
tmin = 416102401, tmax = 416361601
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='289978', job_status='RUN', time_executed='2021-09-07 01:33:01.267847', time_epoch_executed='1631003581.27' WHERE source_name='4FGL J1310.5+3221' and cadence='daily' and bin_id='682'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/289978

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/289978/ft1_4FGL_J1310.5+3221_daily_bin682.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/289978/ft2_4FGL_J1310.5+3221_daily_bin682.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/289978/ft1_4FGL_J1310.5+3221_daily_bin682.fits outfile=/scratch/kocevski/289978/ft1_filteredMKT_4FGL_J1310.5+3221_daily_bin682.fits ra=197.632 dec=32.3547 rad=12.0 tmin=416102401.0 tmax=416361601.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 11.24
user 5.08
sys 0.29

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/289978/ft2_4FGL_J1310.5+3221_daily_bin682.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/289978/ft1_filteredMKT_4FGL_J1310.5+3221_daily_bin682.fits evtable="EVENTS" outfile="/scratch/kocevski/289978/ft1_filtered_4FGL_J1310.5+3221_daily_bin682.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.60
user 0.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/289978/ft1_filtered_4FGL_J1310.5+3221_daily_bin682.fits" evtable="EVENTS" scfile=/scratch/kocevski/289978/ft2_4FGL_J1310.5+3221_daily_bin682.fits sctable="SC_DATA" outfile=/scratch/kocevski/289978/ltcube_416102401_416361601_4FGL_J1310.5+3221_daily_bin682.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/289978/ft2_4FGL_J1310.5+3221_daily_bin682.fits
.....................!
real 15.29
user 14.80
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/289978/ft1_filtered_4FGL_J1310.5+3221_daily_bin682.fits evtable="EVENTS" scfile=/scratch/kocevski/289978/ft2_4FGL_J1310.5+3221_daily_bin682.fits sctable="SC_DATA" expcube=/scratch/kocevski/289978/ltcube_416102401_416361601_4FGL_J1310.5+3221_daily_bin682.fits outfile=/scratch/kocevski/289978/expmap_416102401_416361601_4FGL_J1310.5+3221_daily_bin682.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/289978/ltcube_416102401_416361601_4FGL_J1310.5+3221_daily_bin682.fits
.....................!
real 159.51
user 154.85
sys 3.55

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/289978/ft1_filtered_4FGL_J1310.5+3221_daily_bin682.fits scfile=/scratch/kocevski/289978/ft2_4FGL_J1310.5+3221_daily_bin682.fits outfile=/scratch/kocevski/289978/cmap_416102401_416361601_4FGL_J1310.5+3221_daily_bin682.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.53
user 0.35
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/289978/ft1_filtered_4FGL_J1310.5+3221_daily_bin682.fits scfile=/scratch/kocevski/289978/ft2_4FGL_J1310.5+3221_daily_bin682.fits outfile=/scratch/kocevski/289978/cmap_HighResolution_416102401_416361601_4FGL_J1310.5+3221_daily_bin682.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.52
user 0.35
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.716       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .48029       1.0000         .10000E-03   10000.    
     5 'norm      '    5.4359       1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.014       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10210E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    39.038       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.7840       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10126E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    9.6845       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .41015E-02   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.7590       1.0000         .10000E-03   10000.    
    18 'norm      '    1.4758       1.0000         .10000E-03   10000.    
    19 'norm      '    22.609       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    10.992       1.0000         .10000E-03   10000.    
    23 'Prefactor '    16.080       1.0000         .10000E-03   10000.    
    24 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.4388       1.0000         .10000E-03   10000.    
    26 'Prefactor '    13.835       1.0000         .10000E-03   10000.    
    27 'Prefactor '    18.090       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.3669       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .67533       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=   7808.759     FROM MIGRAD    STATUS=CONVERGED    759 CALLS     3901 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.716        4.2264        .54672E-06    .29662E-03
   2  Prefactor     .10000E-03    14.794       -.19262E-06** at limit **
   3  Prefactor     .10000E-03    .95476       -.33615E-07** at limit **
   4  Prefactor     .48073        2.4396       -.66890E-06   -.44972E-03
   5  norm          5.4363        4.7247       -.21606E-06    .11736E-04
   6  Prefactor     11.013        8.9795       -.13251E-06    .49047E-04
   7  Prefactor     .10000E-03    56.054       -.37322E-06** at limit **
   8  Prefactor     39.024        63.191       -.14798E-04   -.44953E-04
   9  Prefactor     4.7842        5.7525       -.20844E-06   -.25233E-04
  10  Prefactor     .10000E-03    4.3009        .43255E-07** at limit **
  11  norm          9.6832        5.0607       -.79423E-07    .12104E-04
  12  Prefactor     .10000E-03    43.153        .71259E-06** at limit **
  13  norm          .10000E-03    .66052        .10852E-07** at limit **
  14  Prefactor     .10000E-03    11.291       -.69883E-06** at limit **
  15  norm          .10000E-03    1.1981        .37652E-08** at limit **
  16  norm          .10000E-03    4.7995        .35850E-07** at limit **
  17  norm          4.7590        3.8230        .36018E-06    .83674E-04
  18  norm          1.4754        4.9133       -.11052E-05   -.19179E-03
  19  norm          22.605        17.440       -.34449E-06   -.46049E-05
  20  Prefactor     .10000E-03    .63558       -.10334E-07** at limit **
  21  Prefactor     .10000E-03    2.7988       -.31748E-07** at limit **
  22  norm          10.989        6.4675       -.14503E-05   -.15669E-03
  23  Prefactor     16.084        41.054        .52329E-05    .36125E-04
  24  norm          .10000E-03    9.5405        .37752E-06** at limit **
  25  Prefactor     1.4339        6.3860        .35444E-05   -.10137E-02
  26  Prefactor     13.845        16.528       -.11826E-05    .27636E-05
  27  Prefactor     18.068        64.855       -.34657E-04   -.42624E-04
  28  Prefactor     .10000E-03    1.6837       -.59076E-07** at limit **
  29  Normalizat    1.3667        .15989        .19836E-05   -.10128E-04
  30  Prefactor     .67554        .18549        .24126E-06    .18648E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 10.7162
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.480733
  norm       = 5.43629
  Prefactor  = 11.0134
  Prefactor  = 0.0001
  Prefactor  = 39.0239
  Prefactor  = 4.78417
  Prefactor  = 0.0001
  norm       = 9.68322
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 4.75896
  norm       = 1.47539
  norm       = 22.6053
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.9893
  Prefactor  = 16.0839
  norm       = 0.0001
  Prefactor  = 1.43392
  Prefactor  = 13.8446
  Prefactor  = 18.0675
  Prefactor  = 0.0001
  Normalizat = 1.36669
  Prefactor  = 0.675538
 **********
 **   18 **HESSE 
 **********

 FCN=   7808.759     FROM HESSE     STATUS=OK           590 CALLS     4491 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.716        4.1769        .10671E-03   -1.5053    
   2  Prefactor     .10000E-03    15.481        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    .95954        .84158E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .48073        2.4793        .25502E-03   -1.5569    
   5  norm          5.4363        4.7162        .17235E-03   -1.5242    
   6  Prefactor     11.013        8.9364        .12072E-03   -1.5044    
   7  Prefactor     .10000E-03    57.909        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     39.024        63.314        .64151E-04   -1.4458    
   9  Prefactor     4.7842        5.7510        .18394E-03   -1.5270    
  10  Prefactor     .10000E-03    4.3299        .17868E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          9.6832        5.0537        .12877E-03   -1.5086    
  12  Prefactor     .10000E-03    43.734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .66176        .70131E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    65.627        .56035E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.2000        .94418E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    4.8049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.7590        3.8260        .11649E-03   -1.5272    
  18  norm          1.4754        4.8771        .27409E-03   -1.5465    
  19  norm          22.605        17.436        .84241E-04   -1.4757    
  20  Prefactor     .10000E-03    .63737        .68751E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.8021        .14436E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          10.989        6.4390        .12084E-03   -1.5045    
  23  Prefactor     16.084        41.080        .99880E-04   -1.4906    
  24  norm          .10000E-03    9.7229        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     1.4339        29.540        .17987E-02   -1.5468    
  26  Prefactor     13.845        16.914        .10769E-03   -1.4964    
  27  Prefactor     18.068        65.506        .94167E-04   -1.4858    
  28  Prefactor     .10000E-03    1.7459        .22378E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.3667        .18933        .21060E-03   -.81597    
  30  Prefactor     .67554        .21805        .34564E-03   -1.0449    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.26485e-08
Minuit parameter uncertainties:
  1  4.17697
  2  9.09376e-05
  3  5.0398e-06
  4  2.1834
  5  4.71655
  6  8.93748
  7  0.000201328
  8  63.4235
  9  5.75161
  10  7.88648e-06
  11  5.05396
  12  1.32677e-05
  13  3.97517e-07
  14  0.000389773
  15  8.01692e-07
  16  3.42133e-06
  17  3.82616
  18  4.87845
  19  17.4397
  20  1.62866e-06
  21  5.25363e-06
  22  6.43939
  23  41.1522
  24  0.000131403
  25  13.0236
  26  16.9202
  27  65.7682
  28  9.76154e-06
  29  0.189428
  30  0.218322
Done.

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

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  4.759e+00  3.826e+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:  6.755e-01  2.183e-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.367e+00  1.894e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.07
Ra Dec: 197.632 32.355
Photon Index (Fixed Index): 2.42 +/- 0.00
Photon Flux (Fixed Index): 4.17e-08 +/- 3.35e-08
Energy Flux (Fixed Index): 1.49e-05 +/- 1.20e-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) = 7808.75189686
delta logL = 0.00703189575597

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7808.73819631
delta logL = 0.0207324412286

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.5996       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3126       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3714       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67178       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=   7808.738     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      243 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.5992        6.0489        .12860E-03    .52528E-03
   2  alpha         2.3126        .60200        .10147E-01    .62894E-04
   3  Normalizat    1.3714        .18083        .21031E-03   -.19323E-03
   4  Prefactor     .67179        .21492        .34653E-03   -.13113E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.59925
  alpha      = 2.31262
  Normalizat = 1.37142
  Prefactor  = 0.671786
 **********
 **   18 **HESSE 
 **********

 FCN=   7808.738     FROM HESSE     STATUS=OK            25 CALLS      268 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.5992        5.4593        .51441E-05   -1.5235    
   2  alpha         2.3126        .54402        .40589E-03   -.75023E-01
   3  Normalizat    1.3714        .18063        .42062E-04   -.81459    
   4  Prefactor     .67179        .21487        .13861E-04   -1.0464    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04404e-10
Minuit parameter uncertainties:
  1  5.45983
  2  0.548432
  3  0.180717
  4  0.215136
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/289978': 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) = 7808.73819631
delta logL = 0.0207324456715

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  5.599e+00  5.460e+00  1.000e-04  1.000e+04 ( 1.000e-13)
332        alpha:  2.313e+00  5.484e-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:  6.718e-01  2.151e-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.371e+00  1.807e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.15
Ra Dec: 197.632 32.355
Photon Index (Free Index): 2.31 +/- 0.55
Photon Flux (Free Index): 3.82e-08 +/- 3.03e-08
Energy Flux (Free Index): 1.59e-05 +/- 1.15e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/289978/cmap_HighResolution_416102401_416361601_4FGL_J1310.5+3221_daily_bin682.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.17e-08', energy_flux2='1.59e-05', photon_flux_error='3.35e-08', dlogl='2.07e-02', energy_flux='1.49e-05', photon_flux2='3.82e-08', job_status='DONE', time_completed='2021-09-07 01:45:35.189699', photon_index_error2='0.55', photon_index2='2.31', ts='5.07', fit_tolerance='1e-08', GAL='0.68', photon_index_error='0.00', energy_flux_error2='1.15e-05', EG='1.37', time_epoch_completed='1631004335.19', return_code='0', job_id='289978', GAL2='0.67', EG2='1.37', return_code2='0', energy_flux_error='1.20e-05', photon_flux_error2='3.03e-08', ts2='5.15', photon_index='2.42' WHERE bin_id='682' AND source_name='4FGL J1310.5+3221' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:45:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0023>
Subject: Job 289978: <4FGL_J1310.5+3221_daily_bin682> in cluster <slac> Done

Job <4FGL_J1310.5+3221_daily_bin682> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep  7 01:30:53 2021
Job was executed on host(s) <bullet0023>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 01:31:12 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:31:12 2021
Terminated at Tue Sep  7 01:45:36 2021
Results reported at Tue Sep  7 01:45:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1310.5+3221_daily_bin682 197.632 32.3547 416102401 416361601 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 :                                   739.23 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             266.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   863 sec.
    Turnaround time :                            883 sec.

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

