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


Performing analysis on: 4FGL_J1310.5+3221_daily_bin4
RA = 197.632, Dec = 32.3547
tmin = 240364801, tmax = 240624001
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='285669', job_status='RUN', time_executed='2021-09-07 01:19:13.089568', time_epoch_executed='1631002753.09' WHERE source_name='4FGL J1310.5+3221' and cadence='daily' and bin_id='4'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/285669

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/285669/ft1_4FGL_J1310.5+3221_daily_bin4.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/285669/ft2_4FGL_J1310.5+3221_daily_bin4.fits


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

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/285669/ft2_4FGL_J1310.5+3221_daily_bin4.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/285669/ft1_filteredMKT_4FGL_J1310.5+3221_daily_bin4.fits evtable="EVENTS" outfile="/scratch/kocevski/285669/ft1_filtered_4FGL_J1310.5+3221_daily_bin4.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.51
user 0.36
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/285669/ft1_filtered_4FGL_J1310.5+3221_daily_bin4.fits" evtable="EVENTS" scfile=/scratch/kocevski/285669/ft2_4FGL_J1310.5+3221_daily_bin4.fits sctable="SC_DATA" outfile=/scratch/kocevski/285669/ltcube_240364801_240624001_4FGL_J1310.5+3221_daily_bin4.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/285669/ft2_4FGL_J1310.5+3221_daily_bin4.fits
.....................!
real 18.12
user 17.61
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/285669/ft1_filtered_4FGL_J1310.5+3221_daily_bin4.fits evtable="EVENTS" scfile=/scratch/kocevski/285669/ft2_4FGL_J1310.5+3221_daily_bin4.fits sctable="SC_DATA" expcube=/scratch/kocevski/285669/ltcube_240364801_240624001_4FGL_J1310.5+3221_daily_bin4.fits outfile=/scratch/kocevski/285669/expmap_240364801_240624001_4FGL_J1310.5+3221_daily_bin4.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/285669/ltcube_240364801_240624001_4FGL_J1310.5+3221_daily_bin4.fits
.....................!
real 195.29
user 188.59
sys 4.57

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/285669/ft1_filtered_4FGL_J1310.5+3221_daily_bin4.fits scfile=/scratch/kocevski/285669/ft2_4FGL_J1310.5+3221_daily_bin4.fits outfile=/scratch/kocevski/285669/cmap_240364801_240624001_4FGL_J1310.5+3221_daily_bin4.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.59
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/285669/ft1_filtered_4FGL_J1310.5+3221_daily_bin4.fits scfile=/scratch/kocevski/285669/ft2_4FGL_J1310.5+3221_daily_bin4.fits outfile=/scratch/kocevski/285669/cmap_HighResolution_240364801_240624001_4FGL_J1310.5+3221_daily_bin4.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.56
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.2874       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .40366       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.4132       1.0000         .10000E-03   10000.    
     5 'norm      '    4.2881       1.0000         .10000E-03   10000.    
     6 'Prefactor '    16.867       1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.970       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.3066       1.0000         .10000E-03   10000.    
    11 'norm      '    .49191       1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.593       1.0000         .10000E-03   10000.    
    13 'norm      '    1.1294       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    13.436       1.0000         .10000E-03   10000.    
    17 'norm      '    36.342       1.0000         .10000E-03   10000.    
    18 'norm      '    27.909       1.0000         .10000E-03   10000.    
    19 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.6992       1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.5674       1.0000         .10000E-03   10000.    
    22 'norm      '    .10115E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    10.872       1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.9176       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    3.2141       1.0000         .10000E-03   10000.    
    28 'Prefactor '    3.8535       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1109       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .85692       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=   5708.148     FROM MIGRAD    STATUS=CONVERGED    749 CALLS     3935 TOTAL
                     EDM=   .52E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.2873        3.3483       -.10714E-06   -.45283E-04
   2  Prefactor     .10000E-03    5.0619        .38037E-06** at limit **
   3  Prefactor     .40382        1.2809        .10230E-05    .57232E-03
   4  Prefactor     8.4130        3.2177       -.52769E-07   -.25021E-03
   5  norm          4.2883        3.6027        .33174E-07   -.44476E-04
   6  Prefactor     16.866        11.902       -.59705E-08   -.68572E-04
   7  Prefactor     15.971        22.577        .17487E-06   -.12261E-04
   8  Prefactor     .10000E-03    47.883        .24756E-06** at limit **
   9  Prefactor     .10000E-03    2.1568        .84004E-07** at limit **
  10  Prefactor     3.3068        5.1305        .15486E-06   -.19412E-04
  11  norm          .48521        5.2069        .85418E-06   -.58411E-03
  12  Prefactor     16.577        41.184        .12838E-05   -.75079E-04
  13  norm          1.1291        3.9281        .23018E-05    .15494E-03
  14  Prefactor     .10000E-03    6.9043       -.88171E-07** at limit **
  15  norm          .10000E-03    4.2759       -.14623E-06** at limit **
  16  norm          13.437        17.945        .12551E-06   -.57913E-05
  17  norm          36.338        12.847       -.16304E-06   -.24008E-03
  18  norm          27.912        21.278        .27306E-06   -.52397E-04
  19  norm          .10000E-03    11.185        .15559E-06** at limit **
  20  Prefactor     2.7025        4.7171        .35045E-06   -.38910E-05
  21  Prefactor     8.5608        15.449       -.32504E-06   -.30670E-04
  22  norm          .10000E-03    4.7381        .24896E-06** at limit **
  23  Prefactor     .10000E-03    28.132       -.27434E-06** at limit **
  24  norm          10.874        7.9838       -.77895E-07   -.58633E-04
  25  Prefactor     2.9176        12.723        .81835E-06    .14909E-04
  26  Prefactor     .10000E-03    7.5880        .17406E-06** at limit **
  27  Prefactor     3.1228        229.34       -.10871E-04   -.32626E-04
  28  Prefactor     3.8531        3.8436        .83326E-07   -.30655E-05
  29  Normalizat    1.1110        .20940        .34138E-05   -.38934E-03
  30  Prefactor     .85681        .24704       -.63145E-05   -.86188E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.28732
  Prefactor  = 0.0001
  Prefactor  = 0.403822
  Prefactor  = 8.413
  norm       = 4.28826
  Prefactor  = 16.8657
  Prefactor  = 15.9707
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.30682
  norm       = 0.485207
  Prefactor  = 16.5771
  norm       = 1.12913
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 13.4368
  norm       = 36.3383
  norm       = 27.9119
  norm       = 0.0001
  Prefactor  = 2.70246
  Prefactor  = 8.56082
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 10.8739
  Prefactor  = 2.9176
  Prefactor  = 0.0001
  Prefactor  = 3.12279
  Prefactor  = 3.85312
  Normalizat = 1.11104
  Prefactor  = 0.856805
 **********
 **   18 **HESSE 
 **********

 FCN=   5708.148     FROM HESSE     STATUS=OK           600 CALLS     4535 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.2873        3.3462        .89548E-04   -1.5168    
   2  Prefactor     .10000E-03    5.1448        .16605E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .40382        1.2311        .15021E-02   -1.5581    
   4  Prefactor     8.4130        3.2122        .80078E-04   -1.5128    
   5  norm          4.2883        3.6014        .12790E-03   -1.5294    
   6  Prefactor     16.866        11.894        .97521E-04   -1.4886    
   7  Prefactor     15.971        22.550        .10022E-03   -1.4908    
   8  Prefactor     .10000E-03    47.935        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.1589        .10835E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.3068        5.1103        .20246E-03   -1.5344    
  11  norm          .48521        23.948        .26267E-02   -1.5569    
  12  Prefactor     16.577        41.607        .98323E-04   -1.4893    
  13  norm          1.1291        3.9514        .26640E-03   -1.5495    
  14  Prefactor     .10000E-03    6.9180        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    4.4292        .30478E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          13.437        17.944        .10928E-03   -1.4975    
  17  norm          36.338        12.985        .66480E-04   -1.4502    
  18  norm          27.912        21.566        .75834E-04   -1.4651    
  19  norm          .10000E-03    11.208        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.7025        4.6444        .18263E-03   -1.5379    
  21  Prefactor     8.5608        15.275        .13695E-03   -1.5123    
  22  norm          .10000E-03    4.8201        .16028E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    28.145        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          10.874        7.9681        .12151E-03   -1.5048    
  25  Prefactor     2.9176        12.775        .23784E-03   -1.5366    
  26  Prefactor     .10000E-03    7.5953        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     3.1228        237.23        .22598E-03   -1.5355    
  28  Prefactor     3.8531        3.8429        .14133E-03   -1.5315    
  29  Normalizat    1.1110        .22604        .23634E-03   -.89398    
  30  Prefactor     .85681        .26110        .32085E-03   -.97667    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.95906e-09
Minuit parameter uncertainties:
  1  3.3463
  2  1.50132e-05
  3  1.23115
  4  3.21226
  5  3.60154
  6  11.8953
  7  22.5624
  8  1.93754e-05
  9  9.76184e-07
  10  5.11095
  11  6.81975
  12  41.6796
  13  3.95231
  14  1.35773e-05
  15  5.79343e-06
  16  17.9515
  17  12.986
  18  21.5717
  19  2.27967e-06
  20  4.64501
  21  15.2823
  22  9.27425e-06
  23  2.04844e-05
  24  7.96884
  25  12.2143
  26  1.00385e-05
  27  54.6613
  28  3.84317
  29  0.226238
  30  0.261481
Done.

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

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  3.634e+01  1.299e+01  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.568e-01  2.615e-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.111e+00  2.262e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 37.88
Ra Dec: 197.632 32.355
Photon Index (Fixed Index): 2.42 +/- 0.00
Photon Flux (Fixed Index): 3.18e-07 +/- 1.14e-07
Energy Flux (Fixed Index): 1.14e-04 +/- 4.07e-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) = 5707.82719761
delta logL = 0.320906499887

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5707.7613639
delta logL = 0.386740212756

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    50.588       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2331       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1456       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82749       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=   5707.761     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      274 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          50.591        19.985        .56384E-04   -.18269E-02
   2  alpha         2.2330        .20999        .32346E-03   -.66267E-03
   3  Normalizat    1.1456        .21635        .23366E-03    .71521E-04
   4  Prefactor     .82749        .25690        .32588E-03    .15922E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 50.5906
  alpha      = 2.23303
  Normalizat = 1.14556
  Prefactor  = 0.827488
 **********
 **   18 **HESSE 
 **********

 FCN=   5707.761     FROM HESSE     STATUS=OK            23 CALLS      297 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          50.591        19.880        .11277E-04   -1.4284    
   2  alpha         2.2330        .20888        .12938E-04   -.10699    
   3  Normalizat    1.1456        .21654        .93466E-05   -.88302    
   4  Prefactor     .82749        .25714        .13035E-04   -.98723    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06627e-09
Minuit parameter uncertainties:
  1  19.8822
  2  0.209129
  3  0.216713
  4  0.257514
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/285669': 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) = 5707.76136388
delta logL = 0.386740227106

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  5.059e+01  1.988e+01  1.000e-04  1.000e+04 ( 1.000e-13)
332        alpha:  2.233e+00  2.091e-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.275e-01  2.575e-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.146e+00  2.167e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 42.56
Ra Dec: 197.632 32.355
Photon Index (Free Index): 2.23 +/- 0.21
Photon Flux (Free Index): 2.90e-07 +/- 7.25e-08
Energy Flux (Free Index): 1.37e-04 +/- 4.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/285669/cmap_HighResolution_240364801_240624001_4FGL_J1310.5+3221_daily_bin4.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.18e-07', energy_flux2='1.37e-04', photon_flux_error='1.14e-07', dlogl='3.87e-01', energy_flux='1.14e-04', photon_flux2='2.90e-07', job_status='DONE', time_completed='2021-09-07 01:31:38.109774', photon_index_error2='0.21', photon_index2='2.23', ts='37.88', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', energy_flux_error2='4.28e-05', EG='1.11', time_epoch_completed='1631003498.11', return_code='0', job_id='285669', GAL2='0.83', EG2='1.15', return_code2='0', energy_flux_error='4.07e-05', photon_flux_error2='7.25e-08', ts2='42.56', photon_index='2.42' WHERE bin_id='4' AND source_name='4FGL J1310.5+3221' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:31:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 285669: <4FGL_J1310.5+3221_daily_bin4> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1310.5+3221_daily_bin4 197.632 32.3547 240364801 240624001 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.41 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             253.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   901 sec.
    Turnaround time :                            935 sec.

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

