/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 65 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 = 7486
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1310.5+3221_daily_bin70
RA = 197.632, Dec = 32.3547
tmin = 257472001, tmax = 257731201
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='286984', job_status='RUN', time_executed='2021-09-07 01:21:53.443277', time_epoch_executed='1631002913.44' WHERE source_name='4FGL J1310.5+3221' and cadence='daily' and bin_id='70'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/286984

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/286984/ft1_4FGL_J1310.5+3221_daily_bin70.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/286984/ft2_4FGL_J1310.5+3221_daily_bin70.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/286984/ft1_4FGL_J1310.5+3221_daily_bin70.fits outfile=/scratch/kocevski/286984/ft1_filteredMKT_4FGL_J1310.5+3221_daily_bin70.fits ra=197.632 dec=32.3547 rad=12.0 tmin=257472001.0 tmax=257731201.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 2.03
user 1.80
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/286984/ft1_filtered_4FGL_J1310.5+3221_daily_bin70.fits evtable="EVENTS" scfile=/scratch/kocevski/286984/ft2_4FGL_J1310.5+3221_daily_bin70.fits sctable="SC_DATA" expcube=/scratch/kocevski/286984/ltcube_257472001_257731201_4FGL_J1310.5+3221_daily_bin70.fits outfile=/scratch/kocevski/286984/expmap_257472001_257731201_4FGL_J1310.5+3221_daily_bin70.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/286984/ltcube_257472001_257731201_4FGL_J1310.5+3221_daily_bin70.fits
.....................!
real 193.62
user 186.10
sys 5.81

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/286984/ft1_filtered_4FGL_J1310.5+3221_daily_bin70.fits scfile=/scratch/kocevski/286984/ft2_4FGL_J1310.5+3221_daily_bin70.fits outfile=/scratch/kocevski/286984/cmap_257472001_257731201_4FGL_J1310.5+3221_daily_bin70.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/286984/ft1_filtered_4FGL_J1310.5+3221_daily_bin70.fits scfile=/scratch/kocevski/286984/ft2_4FGL_J1310.5+3221_daily_bin70.fits outfile=/scratch/kocevski/286984/cmap_HighResolution_257472001_257731201_4FGL_J1310.5+3221_daily_bin70.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.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.2872       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.4826       1.0000         .10000E-03   10000.    
     5 'norm      '    .10579E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .53164E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.009       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.0801       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.5672       1.0000         .10000E-03   10000.    
    11 'norm      '    2.3764       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.9144       1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.4326       1.0000         .10000E-03   10000.    
    15 'norm      '    13.829       1.0000         .10000E-03   10000.    
    16 'norm      '    12.405       1.0000         .10000E-03   10000.    
    17 'norm      '    6.0731       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    3.6896       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    25.048       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    49.214       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .20438E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1087       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .87048       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=   5711.295     FROM MIGRAD    STATUS=CONVERGED    754 CALLS     3892 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.2923       -.20005E-07** at limit **
   2  Prefactor     .10000E-03    2.1882       -.24632E-06** at limit **
   3  Prefactor     3.2869        2.1158        .69543E-08    .29324E-04
   4  Prefactor     5.4818        2.4321       -.17765E-07    .63495E-04
   5  norm          .10000E-03    2.2428       -.95111E-07** at limit **
   6  Prefactor     .10000E-03    6.2798       -.59375E-07** at limit **
   7  Prefactor     15.009        18.140       -.31766E-06    .44467E-05
   8  Prefactor     .10000E-03    29.624        .23142E-04** at limit **
   9  Prefactor     3.0800        6.2684       -.69101E-06   -.42268E-03
  10  Prefactor     2.5672        3.5123       -.25457E-06   -.49150E-05
  11  norm          2.3748        4.6612        .10965E-05   -.18712E-03
  12  Prefactor     .10000E-03    39.143       -.25001E-04** at limit **
  13  norm          1.9143        2.3060        .85767E-08   -.74542E-04
  14  Prefactor     9.4312        16.993       -.92781E-06    .35364E-05
  15  norm          13.832        6.9272        .14653E-06    .86484E-04
  16  norm          12.405        11.831        .36040E-06    .33234E-03
  17  norm          6.0729        3.6679        .99153E-06    .20534E-03
  18  norm          .10000E-03    2.6394       -.23367E-07** at limit **
  19  norm          .10000E-03    22.785        .82126E-05** at limit **
  20  Prefactor     .10000E-03    2.1110        .54399E-07** at limit **
  21  Prefactor     .10000E-03    5.6841        .54069E-05** at limit **
  22  norm          3.6903        9.8519       -.79801E-06   -.33114E-03
  23  Prefactor     .10000E-03    22.100        .35343E-05** at limit **
  24  norm          25.047        13.780        .10436E-06    .45994E-05
  25  Prefactor     .10000E-03    5.9563       -.64096E-05** at limit **
  26  Prefactor     .10000E-03    18.453       -.16108E-04** at limit **
  27  Prefactor     49.209        60.489       -.58999E-05   -.36007E-05
  28  Prefactor     .10001E-03    1.8532        .57029E-06** at limit **
  29  Normalizat    1.1088        .17693       -.18532E-07    .95262E-04
  30  Prefactor     .87038        .21317        .18138E-06    .59895E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.28686
  Prefactor  = 5.48175
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.0087
  Prefactor  = 0.0001
  Prefactor  = 3.07995
  Prefactor  = 2.56723
  norm       = 2.37479
  Prefactor  = 0.0001
  norm       = 1.91431
  Prefactor  = 9.43122
  norm       = 13.8317
  norm       = 12.405
  norm       = 6.07287
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.69025
  Prefactor  = 0.0001
  norm       = 25.0469
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 49.2092
  Prefactor  = 0.000100014
  Normalizat = 1.10883
  Prefactor  = 0.870376
 **********
 **   18 **HESSE 
 **********

 FCN=   5711.295     FROM HESSE     STATUS=OK           592 CALLS     4484 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.3133        .83732E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.1920        .10917E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.2869        2.1106        .84906E-04   -1.5345    
   4  Prefactor     5.4818        2.4177        .75239E-04   -1.5240    
   5  norm          .10000E-03    4.1599        .22000E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    28.481        .36436E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     15.009        18.134        .10338E-03   -1.4933    
   8  Prefactor     .10000E-03    29.548        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.0800        6.2764        .23111E-03   -1.5357    
  10  Prefactor     2.5672        3.4953        .15857E-03   -1.5388    
  11  norm          2.3748        4.6140        .21400E-03   -1.5400    
  12  Prefactor     .10000E-03    39.656        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.9143        2.2973        .12212E-03   -1.5431    
  14  Prefactor     9.4312        16.968        .13049E-03   -1.5094    
  15  norm          13.832        6.9128        .10771E-03   -1.4964    
  16  norm          12.405        11.843        .56867E-03   -1.5003    
  17  norm          6.0729        3.6612        .10613E-03   -1.5215    
  18  norm          .10000E-03    2.6421        .11975E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    23.004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.1680        .21395E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.6882        .17573E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          3.6903        9.6877        .21026E-03   -1.5324    
  23  Prefactor     .10000E-03    22.106        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          25.047        13.547        .80040E-04   -1.4707    
  25  Prefactor     .10000E-03    5.9602        .18004E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    18.528        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     49.209        60.722        .57162E-04   -1.4304    
  28  Prefactor     .10001E-03    9.6237        .19780E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.1088        .20851        .22009E-03   -.89469    
  30  Prefactor     .87038        .25151        .30122E-03   -.97184    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.15172e-09
Minuit parameter uncertainties:
  1  1.46706e-07
  2  1.14575e-07
  3  2.1106
  4  2.41771
  5  1.45634e-05
  6  1.67904e-05
  7  18.1403
  8  2.8903e-05
  9  6.27777
  10  3.49561
  11  4.6147
  12  0.000151215
  13  2.29739
  14  16.9764
  15  6.91321
  16  11.845
  17  3.66135
  18  1.93942e-05
  19  2.45445e-05
  20  1.16465e-05
  21  1.49443e-05
  22  9.69184
  23  3.77369e-06
  24  13.5491
  25  2.69529e-06
  26  6.20324e-05
  27  60.799
  28  0.000726648
  29  0.208661
  30  0.251846
Done.

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

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  6.073e+00  3.661e+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:  8.704e-01  2.518e-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.109e+00  2.087e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.32
Ra Dec: 197.632 32.355
Photon Index (Fixed Index): 2.42 +/- 0.00
Photon Flux (Fixed Index): 5.32e-08 +/- 3.21e-08
Energy Flux (Fixed Index): 1.90e-05 +/- 1.15e-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) = 5711.28498895
delta logL = 0.0101883902771

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5711.26014106
delta logL = 0.035036285647

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.8629       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5796       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0984       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87831       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=   5711.260     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      207 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.8578        50.145        .45603E-02    .13245E-03
   2  alpha         2.5804        3.6698        .19631        .86561E-04
   3  Normalizat    1.0983        .76593E-01    .38066E-01    .21817E-05
   4  Prefactor     .87846        .76978E-01    .67800E-01    .14934E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.85777
  alpha      = 2.5804
  Normalizat = 1.09829
  Prefactor  = 0.87846
 **********
 **   18 **HESSE 
 **********

 FCN=   5711.260     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.8578        6.1544        .90152E-04   -1.5267    
   2  alpha         2.5804        .68246        .73411E-02    .32167E-01
   3  Normalizat    1.0983        .20753        .22094E-03   -.89807    
   4  Prefactor     .87846        .25026        .29993E-03   -.96898    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.51989e-11
Minuit parameter uncertainties:
  1  6.15522
  2  0.691241
  3  0.207687
  4  0.25059
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/286984': 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) = 5711.26014003
delta logL = 0.0350373110005

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  4.858e+00  6.155e+00  1.000e-04  1.000e+04 ( 1.000e-13)
332        alpha:  2.580e+00  6.912e-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.785e-01  2.506e-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.098e+00  2.077e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.39
Ra Dec: 197.632 32.355
Photon Index (Free Index): 2.58 +/- 0.69
Photon Flux (Free Index): 6.11e-08 +/- 4.58e-08
Energy Flux (Free Index): 1.83e-05 +/- 1.10e-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/286984/cmap_HighResolution_257472001_257731201_4FGL_J1310.5+3221_daily_bin70.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.32e-08', energy_flux2='1.83e-05', photon_flux_error='3.21e-08', dlogl='3.50e-02', energy_flux='1.90e-05', photon_flux2='6.11e-08', job_status='DONE', time_completed='2021-09-07 01:34:08.507736', photon_index_error2='0.69', photon_index2='2.58', ts='9.32', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', energy_flux_error2='1.10e-05', EG='1.11', time_epoch_completed='1631003648.51', return_code='0', job_id='286984', GAL2='0.88', EG2='1.10', return_code2='0', energy_flux_error='1.15e-05', photon_flux_error2='4.58e-08', ts2='9.39', photon_index='2.42' WHERE bin_id='70' AND source_name='4FGL J1310.5+3221' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:34:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 286984: <4FGL_J1310.5+3221_daily_bin70> in cluster <slac> Done

Job <4FGL_J1310.5+3221_daily_bin70> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep  7 01:20:31 2021
Job was executed on host(s) <bullet0207>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 01:20:33 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:20:33 2021
Terminated at Tue Sep  7 01:34:09 2021
Results reported at Tue Sep  7 01:34:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1310.5+3221_daily_bin70 197.632 32.3547 257472001 257731201 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 :                                   727.16 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             279.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   817 sec.
    Turnaround time :                            818 sec.

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

