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


Performing analysis on: 4FGL_J1310.5+3221_daily_bin54
RA = 197.632, Dec = 32.3547
tmin = 253324801, tmax = 253584001
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='285763', job_status='RUN', time_executed='2021-09-07 01:19:25.474961', time_epoch_executed='1631002765.47' WHERE source_name='4FGL J1310.5+3221' and cadence='daily' and bin_id='54'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/285763

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/285763/ft1_4FGL_J1310.5+3221_daily_bin54.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/285763/ft2_4FGL_J1310.5+3221_daily_bin54.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/285763/ft1_4FGL_J1310.5+3221_daily_bin54.fits outfile=/scratch/kocevski/285763/ft1_filteredMKT_4FGL_J1310.5+3221_daily_bin54.fits ra=197.632 dec=32.3547 rad=12.0 tmin=253324801.0 tmax=253584001.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 1.51
user 1.28
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/285763/ft1_filtered_4FGL_J1310.5+3221_daily_bin54.fits" evtable="EVENTS" scfile=/scratch/kocevski/285763/ft2_4FGL_J1310.5+3221_daily_bin54.fits sctable="SC_DATA" outfile=/scratch/kocevski/285763/ltcube_253324801_253584001_4FGL_J1310.5+3221_daily_bin54.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/285763/ft2_4FGL_J1310.5+3221_daily_bin54.fits
.....................!
real 18.21
user 17.75
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/285763/ft1_filtered_4FGL_J1310.5+3221_daily_bin54.fits evtable="EVENTS" scfile=/scratch/kocevski/285763/ft2_4FGL_J1310.5+3221_daily_bin54.fits sctable="SC_DATA" expcube=/scratch/kocevski/285763/ltcube_253324801_253584001_4FGL_J1310.5+3221_daily_bin54.fits outfile=/scratch/kocevski/285763/expmap_253324801_253584001_4FGL_J1310.5+3221_daily_bin54.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/285763/ltcube_253324801_253584001_4FGL_J1310.5+3221_daily_bin54.fits
.....................!
real 194.26
user 187.12
sys 4.75

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/285763/ft1_filtered_4FGL_J1310.5+3221_daily_bin54.fits scfile=/scratch/kocevski/285763/ft2_4FGL_J1310.5+3221_daily_bin54.fits outfile=/scratch/kocevski/285763/cmap_253324801_253584001_4FGL_J1310.5+3221_daily_bin54.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.58
user 0.39
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/285763/ft1_filtered_4FGL_J1310.5+3221_daily_bin54.fits scfile=/scratch/kocevski/285763/ft2_4FGL_J1310.5+3221_daily_bin54.fits outfile=/scratch/kocevski/285763/cmap_HighResolution_253324801_253584001_4FGL_J1310.5+3221_daily_bin54.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.42
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .83630       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.6697       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.5184       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.9630       1.0000         .10000E-03   10000.    
     5 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.9594       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.2235       1.0000         .10000E-03   10000.    
    16 'norm      '    11.121       1.0000         .10000E-03   10000.    
    17 'norm      '    8.5797       1.0000         .10000E-03   10000.    
    18 'norm      '    .10746E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10252E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11433       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10087E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .18721E-02   1.0000         .10000E-03   10000.    
    24 'norm      '    11.370       1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.0025       1.0000         .10000E-03   10000.    
    26 'Prefactor '    9.8105       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.2331       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .73579       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=   4920.657     FROM MIGRAD    STATUS=CONVERGED    775 CALLS     3333 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .83554        3.0895        .49249E-06    .36948E-04
   2  Prefactor     3.6741        8.9450        .42049E-06   -.62511E-05
   3  Prefactor     3.5191        2.9648       -.88184E-07   -.87286E-04
   4  Prefactor     5.9640        2.7301       -.13286E-07   -.17313E-03
   5  norm          .10000E-03    1.5960        .23630E-07** at limit **
   6  Prefactor     .10000E-03    8.7078        .25698E-06** at limit **
   7  Prefactor     .10000E-03    8.6640        .10040E-06** at limit **
   8  Prefactor     .10000E-03    26.472        .18868E-06** at limit **
   9  Prefactor     .10000E-03    2.3286       -.32136E-07** at limit **
  10  Prefactor     .10000E-03    3.9651        .15822E-06** at limit **
  11  norm          .10000E-03    1.2840        .15802E-07** at limit **
  12  Prefactor     .10000E-03    12.530       -.98903E-07** at limit **
  13  norm          2.9597        3.5365        .36541E-06   -.36061E-04
  14  Prefactor     .10000E-03    7.1861        .54711E-06** at limit **
  15  norm          4.2232        4.2243       -.21945E-06   -.50581E-04
  16  norm          11.127        13.284        .19722E-06   -.21032E-04
  17  norm          8.5787        4.3399       -.27290E-06   -.97662E-03
  18  norm          .10000E-03    8.8077       -.33406E-06** at limit **
  19  norm          .10000E-03    22.396       -.24000E-06** at limit **
  20  Prefactor     .11171        1.5682       -.35384E-06    .23223E-04
  21  Prefactor     .10000E-03    5.7991       -.45304E-07** at limit **
  22  norm          .10000E-03    7.8365       -.55789E-06** at limit **
  23  Prefactor     .10001E-03    227.51        .33491E-05** at limit **
  24  norm          11.371        8.7619        .48294E-06    .35960E-03
  25  Prefactor     1.9962        16.924        .12427E-04   -.29205E-04
  26  Prefactor     9.8326        16.681        .67196E-06   -.13734E-03
  27  Prefactor     .10000E-03    23.221        .22407E-06** at limit **
  28  Prefactor     .10000E-03    2.7139        .12918E-05** at limit **
  29  Normalizat    1.2330        .18385        .24492E-07   -.14441E-03
  30  Prefactor     .73563        .21761       -.15244E-05   -.11727E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.83554
  Prefactor  = 3.67409
  Prefactor  = 3.5191
  Prefactor  = 5.96398
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.95972
  Prefactor  = 0.0001
  norm       = 4.22317
  norm       = 11.1266
  norm       = 8.57873
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.111706
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100005
  norm       = 11.3715
  Prefactor  = 1.99619
  Prefactor  = 9.83259
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.23298
  Prefactor  = 0.735629
 **********
 **   18 **HESSE 
 **********

 FCN=   4920.657     FROM HESSE     STATUS=OK           586 CALLS     3919 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .83554        2.9599        .19560E-03   -1.5525    
   2  Prefactor     3.6741        8.9306        .21085E-03   -1.5325    
   3  Prefactor     3.5191        2.8992        .91646E-04   -1.5333    
   4  Prefactor     5.9640        2.7224        .75035E-04   -1.5219    
   5  norm          .10000E-03    1.6056        .86540E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.7830        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.6709        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    26.480        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.3323        .10454E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.9959        .13641E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.2862        .77618E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    12.556        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.9597        3.5314        .13907E-03   -1.5364    
  14  Prefactor     .10000E-03    7.2155        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.2232        4.2181        .13956E-03   -1.5297    
  16  norm          11.127        13.284        .12014E-03   -1.5041    
  17  norm          8.5787        4.2943        .97663E-04   -1.5122    
  18  norm          .10000E-03    8.9417        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    22.511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .11171        11.051        .16575E-02   -1.5641    
  21  Prefactor     .10000E-03    5.8094        .16489E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    7.9590        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10001E-03    231.17        .20287E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          11.371        8.7686        .11881E-03   -1.5033    
  25  Prefactor     1.9962        17.255        .14632E-02   -1.5425    
  26  Prefactor     9.8326        16.725        .12794E-03   -1.5081    
  27  Prefactor     .10000E-03    23.230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    8.3797        .21492E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.2330        .20978        .20561E-03   -.85590    
  30  Prefactor     .73563        .24988        .31237E-03   -1.0215    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.95931e-10
Minuit parameter uncertainties:
  1  2.96045
  2  8.93381
  3  2.89927
  4  2.72243
  5  1.92776e-06
  6  6.59434e-06
  7  8.16344e-06
  8  8.83961e-06
  9  2.86249e-06
  10  2.08421e-05
  11  1.32274e-06
  12  3.71191e-05
  13  3.53164
  14  2.47899e-05
  15  4.21842
  16  13.2875
  17  4.29443
  18  0.00015313
  19  9.34352e-06
  20  2.22153
  21  3.32647e-06
  22  3.70449e-05
  23  0.00222587
  24  8.76961
  25  11.742
  26  16.7333
  27  1.07026e-05
  28  0.000114231
  29  0.209926
  30  0.250261
Done.

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

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  8.579e+00  4.294e+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.356e-01  2.503e-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.233e+00  2.099e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.22
Ra Dec: 197.632 32.355
Photon Index (Fixed Index): 2.42 +/- 0.00
Photon Flux (Fixed Index): 7.52e-08 +/- 3.76e-08
Energy Flux (Fixed Index): 2.69e-05 +/- 1.35e-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) = 4920.62639029
delta logL = 0.0304393492333

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4920.62406617
delta logL = 0.0327634742398

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.0801       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5574       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2214       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74404       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=   4920.624     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      285 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.0792        7.6756        .85173E-04    .27884E-03
   2  alpha         2.5573        .59480        .61434E-02    .19000E-04
   3  Normalizat    1.2212        .21403        .20639E-03   -.38129E-04
   4  Prefactor     .74426        .25177        .31069E-03   -.12383E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.07918
  alpha      = 2.55734
  Normalizat = 1.22125
  Prefactor  = 0.744264
 **********
 **   18 **HESSE 
 **********

 FCN=   4920.624     FROM HESSE     STATUS=OK            25 CALLS      310 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.0792        6.6619        .34069E-05   -1.5176    
   2  alpha         2.5573        .51699        .24574E-03    .22939E-01
   3  Normalizat    1.2212        .21291        .41278E-04   -.85949    
   4  Prefactor     .74426        .25125        .12428E-04   -1.0182    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.38501e-10
Minuit parameter uncertainties:
  1  6.66256
  2  0.520747
  3  0.213065
  4  0.251632
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/285763': 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) = 4920.62406565
delta logL = 0.0327639916341

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  7.079e+00  6.663e+00  1.000e-04  1.000e+04 ( 1.000e-13)
332        alpha:  2.557e+00  5.207e-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:  7.443e-01  2.516e-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.221e+00  2.131e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.26
Ra Dec: 197.632 32.355
Photon Index (Free Index): 2.56 +/- 0.52
Photon Flux (Free Index): 8.43e-08 +/- 5.31e-08
Energy Flux (Free Index): 2.59e-05 +/- 1.28e-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/285763/cmap_HighResolution_253324801_253584001_4FGL_J1310.5+3221_daily_bin54.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.52e-08', energy_flux2='2.59e-05', photon_flux_error='3.76e-08', dlogl='3.28e-02', energy_flux='2.69e-05', photon_flux2='8.43e-08', job_status='DONE', time_completed='2021-09-07 01:30:04.363569', photon_index_error2='0.52', photon_index2='2.56', ts='10.22', fit_tolerance='1e-08', GAL='0.74', photon_index_error='0.00', energy_flux_error2='1.28e-05', EG='1.23', time_epoch_completed='1631003404.36', return_code='0', job_id='285763', GAL2='0.74', EG2='1.22', return_code2='0', energy_flux_error='1.35e-05', photon_flux_error2='5.31e-08', ts2='10.26', photon_index='2.42' WHERE bin_id='54' AND source_name='4FGL J1310.5+3221' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:30:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0110>
Subject: Job 285763: <4FGL_J1310.5+3221_daily_bin54> in cluster <slac> Done

Job <4FGL_J1310.5+3221_daily_bin54> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep  7 01:16:14 2021
Job was executed on host(s) <bullet0110>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 01:16:47 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:16:47 2021
Terminated at Tue Sep  7 01:30:04 2021
Results reported at Tue Sep  7 01:30:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1310.5+3221_daily_bin54 197.632 32.3547 253324801 253584001 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 :                                   633.49 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             315.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   797 sec.
    Turnaround time :                            830 sec.

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

