/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 8 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 = 7648
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1310.5+3221_daily_bin268
RA = 197.632, Dec = 32.3547
tmin = 308793601, tmax = 309052801
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='287289', job_status='RUN', time_executed='2021-09-07 01:22:21.363536', time_epoch_executed='1631002941.36' WHERE source_name='4FGL J1310.5+3221' and cadence='daily' and bin_id='268'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/287289

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/287289/ft1_4FGL_J1310.5+3221_daily_bin268.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/287289/ft2_4FGL_J1310.5+3221_daily_bin268.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/287289/ft1_4FGL_J1310.5+3221_daily_bin268.fits outfile=/scratch/kocevski/287289/ft1_filteredMKT_4FGL_J1310.5+3221_daily_bin268.fits ra=197.632 dec=32.3547 rad=12.0 tmin=308793601.0 tmax=309052801.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 3.54
user 3.30
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/287289/ft1_filtered_4FGL_J1310.5+3221_daily_bin268.fits evtable="EVENTS" scfile=/scratch/kocevski/287289/ft2_4FGL_J1310.5+3221_daily_bin268.fits sctable="SC_DATA" expcube=/scratch/kocevski/287289/ltcube_308793601_309052801_4FGL_J1310.5+3221_daily_bin268.fits outfile=/scratch/kocevski/287289/expmap_308793601_309052801_4FGL_J1310.5+3221_daily_bin268.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/287289/ltcube_308793601_309052801_4FGL_J1310.5+3221_daily_bin268.fits
.....................!
real 193.94
user 187.74
sys 5.25

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/287289/ft1_filtered_4FGL_J1310.5+3221_daily_bin268.fits scfile=/scratch/kocevski/287289/ft2_4FGL_J1310.5+3221_daily_bin268.fits outfile=/scratch/kocevski/287289/cmap_308793601_309052801_4FGL_J1310.5+3221_daily_bin268.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.56
user 0.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/287289/ft1_filtered_4FGL_J1310.5+3221_daily_bin268.fits scfile=/scratch/kocevski/287289/ft2_4FGL_J1310.5+3221_daily_bin268.fits outfile=/scratch/kocevski/287289/cmap_HighResolution_308793601_309052801_4FGL_J1310.5+3221_daily_bin268.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.57
user 0.40
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10079E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.5726       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.7977       1.0000         .10000E-03   10000.    
     5 'norm      '    21.237       1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.843       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.0578       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .15081E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.161       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.2125       1.0000         .10000E-03   10000.    
    11 'norm      '    2.9510       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.5989       1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.535       1.0000         .10000E-03   10000.    
    15 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.6551       1.0000         .10000E-03   10000.    
    18 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10185E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.7380       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    5.4030       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    7.9517       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    2.2378       1.0000         .10000E-03   10000.    
    27 'Prefactor '    58.084       1.0000         .10000E-03   10000.    
    28 'Prefactor '    7.8348       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .79951       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0563       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=   5578.186     FROM MIGRAD    STATUS=CONVERGED    772 CALLS     3895 TOTAL
                     EDM=   .43E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.1992       -.46264E-07** at limit **
   2  Prefactor     .10000E-03    5.7906        .11978E-06** at limit **
   3  Prefactor     5.5709        2.7412       -.21908E-07    .11612E-04
   4  Prefactor     3.7975        2.5445       -.51043E-07   -.63588E-05
   5  norm          21.238        7.9244        .15163E-06   -.14467E-05
   6  Prefactor     10.843        9.2024        .66437E-07   -.13723E-05
   7  Prefactor     4.0599        22.496       -.58440E-06   -.30284E-05
   8  Prefactor     .10000E-03    128.09       -.19063E-05** at limit **
   9  Prefactor     10.162        7.8686        .58147E-07   -.45181E-05
  10  Prefactor     2.2112        2.5304        .47561E-07   -.65606E-03
  11  norm          2.9483        3.2792       -.17887E-08   -.23323E-03
  12  Prefactor     .10000E-03    22.073        .79409E-05** at limit **
  13  norm          1.5988        2.2219        .98225E-08   -.20248E-03
  14  Prefactor     10.542        15.020       -.15366E-05   -.14137E-04
  15  norm          .10000E-03    1.7101        .10206E-06** at limit **
  16  norm          .10000E-03    4.7453       -.80494E-07** at limit **
  17  norm          4.6549        3.3949        .33343E-07    .12056E-03
  18  norm          .10000E-03    4.8800        .22076E-06** at limit **
  19  norm          .10000E-03    34.515        .20186E-05** at limit **
  20  Prefactor     1.7391        2.7406        .17372E-06    .36800E-03
  21  Prefactor     .10000E-03    23.469       -.89281E-05** at limit **
  22  norm          5.4007        5.3350       -.11697E-06   -.27081E-04
  23  Prefactor     .10000E-03    15.092       -.34278E-06** at limit **
  24  norm          7.9517        7.3957        .30384E-06   -.86387E-05
  25  Prefactor     .10000E-03    5.4822       -.39229E-06** at limit **
  26  Prefactor     2.2369        26.778       -.22039E-06   -.94428E-04
  27  Prefactor     58.088        68.231        .41371E-05    .59439E-05
  28  Prefactor     7.8355        3.9603       -.36302E-06    .29445E-04
  29  Normalizat    .79925        .17102       -.95905E-07    .51123E-04
  30  Prefactor     1.0566        .20564        .14916E-06    .34847E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.57087
  Prefactor  = 3.79746
  norm       = 21.2376
  Prefactor  = 10.8431
  Prefactor  = 4.05986
  Prefactor  = 0.0001
  Prefactor  = 10.1617
  Prefactor  = 2.2112
  norm       = 2.94827
  Prefactor  = 0.0001
  norm       = 1.59878
  Prefactor  = 10.542
  norm       = 0.0001
  norm       = 0.0001
  norm       = 4.65493
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.73906
  Prefactor  = 0.0001
  norm       = 5.40065
  Prefactor  = 0.0001
  norm       = 7.95173
  Prefactor  = 0.0001
  Prefactor  = 2.23685
  Prefactor  = 58.0883
  Prefactor  = 7.83554
  Normalizat = 0.799253
  Prefactor  = 1.05656
 **********
 **   18 **HESSE 
 **********

 FCN=   5578.186     FROM HESSE     STATUS=OK           594 CALLS     4489 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.2899        .25835E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.8545        .17546E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.5709        2.7205        .82155E-04   -1.5236    
   4  Prefactor     3.7975        2.5396        .91968E-04   -1.5318    
   5  norm          21.238        7.9291        .86916E-04   -1.4786    
   6  Prefactor     10.843        9.2021        .12167E-03   -1.5049    
   7  Prefactor     4.0599        24.114        .20016E-03   -1.5305    
   8  Prefactor     .10000E-03    128.94        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.162        7.8652        .12570E-03   -1.5070    
  10  Prefactor     2.2112        5.8952        .12844E-02   -1.5411    
  11  norm          2.9483        3.2841        .68724E-03   -1.5365    
  12  Prefactor     .10000E-03    22.168        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.5988        2.2171        .64077E-03   -1.5455    
  14  Prefactor     10.542        15.544        .12344E-03   -1.5058    
  15  norm          .10000E-03    1.7139        .95315E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    4.7483        .15890E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.6549        3.3677        .10955E-03   -1.5276    
  18  norm          .10000E-03    4.9103        .16043E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    35.045        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.7391        2.7113        .14454E-03   -1.5444    
  21  Prefactor     .10000E-03    23.657        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          5.4007        5.3265        .15993E-03   -1.5243    
  23  Prefactor     .10000E-03    15.094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          7.9517        7.3867        .14219E-03   -1.5144    
  25  Prefactor     .10000E-03    5.5005        .17076E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     2.2369        31.674        .13738E-02   -1.5409    
  27  Prefactor     58.088        68.634        .52640E-04   -1.4182    
  28  Prefactor     7.8355        3.9631        .10166E-03   -1.5148    
  29  Normalizat    .79925        .20504        .23953E-03   -1.0010    
  30  Prefactor     1.0566        .24703        .26533E-03   -.90867    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.22131e-10
Minuit parameter uncertainties:
  1  2.71104e-06
  2  1.1409e-07
  3  2.72061
  4  2.53972
  5  7.9295
  6  9.20327
  7  19.8006
  8  5.35687e-07
  9  7.86597
  10  5.89674
  11  3.28429
  12  1.4361e-05
  13  2.21724
  14  15.55
  15  3.94268e-06
  16  3.95834e-08
  17  3.36779
  18  7.78578e-07
  19  2.23543e-05
  20  2.71151
  21  5.73101e-05
  22  5.327
  23  7.82578e-08
  24  7.38754
  25  2.31051e-06
  26  16.845
  27  68.7272
  28  3.96323
  29  0.205239
  30  0.2473
Done.

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

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  4.655e+00  3.368e+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:  1.057e+00  2.473e-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:  7.993e-01  2.052e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.51
Ra Dec: 197.632 32.355
Photon Index (Fixed Index): 2.42 +/- 0.00
Photon Flux (Fixed Index): 4.08e-08 +/- 2.95e-08
Energy Flux (Fixed Index): 1.46e-05 +/- 1.06e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5577.68794199
delta logL = 0.497656699224

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5577.68176116
delta logL = 0.50383753292

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.5566       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7433       1.0000          .0000       5.0000    
     3 'Normalizat'    .82801       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0371       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=   5577.682     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      286 TOTAL
                     EDM=   .52E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.5567        7.1059        .13704E-03   -.11565E-03
   2  alpha         1.7433        .68522        .13259E-01   -.22697E-04
   3  Normalizat    .82797        .19256        .23572E-03    .39692E-04
   4  Prefactor     1.0371        .24199        .26758E-03    .39767E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.55673
  alpha      = 1.74329
  Normalizat = 0.827973
  Prefactor  = 1.0371
 **********
 **   18 **HESSE 
 **********

 FCN=   5577.682     FROM HESSE     STATUS=OK            25 CALLS      311 TOTAL
                     EDM=   .62E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.5567        7.0688        .54815E-05   -1.5123    
   2  alpha         1.7433        .68142        .53038E-03   -.30751    
   3  Normalizat    .82797        .19270        .94290E-05   -.99039    
   4  Prefactor     1.0371        .24225        .10703E-04   -.91503    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.23124e-11
Minuit parameter uncertainties:
  1  7.06953
  2  0.691064
  3  0.192862
  4  0.242511
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/287289': 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) = 5577.68176114
delta logL = 0.503837551683

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  8.557e+00  7.070e+00  1.000e-04  1.000e+04 ( 1.000e-13)
332        alpha:  1.743e+00  6.911e-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:  1.037e+00  2.425e-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:  8.280e-01  1.929e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.51
Ra Dec: 197.632 32.355
Photon Index (Free Index): 1.74 +/- 0.69
Photon Flux (Free Index): 1.91e-08 +/- 2.52e-08
Energy Flux (Free Index): 2.67e-05 +/- 3.15e-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/287289/cmap_HighResolution_308793601_309052801_4FGL_J1310.5+3221_daily_bin268.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.08e-08', energy_flux2='2.67e-05', photon_flux_error='2.95e-08', dlogl='5.04e-01', energy_flux='1.46e-05', photon_flux2='1.91e-08', job_status='DONE', time_completed='2021-09-07 01:34:48.023843', photon_index_error2='0.69', photon_index2='1.74', ts='5.51', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='3.15e-05', EG='0.80', time_epoch_completed='1631003688.02', return_code='0', job_id='287289', GAL2='1.04', EG2='0.83', return_code2='0', energy_flux_error='1.06e-05', photon_flux_error2='2.52e-08', ts2='6.51', photon_index='2.42' WHERE bin_id='268' AND source_name='4FGL J1310.5+3221' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:34:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0108>
Subject: Job 287289: <4FGL_J1310.5+3221_daily_bin268> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1310.5+3221_daily_bin268 197.632 32.3547 308793601 309052801 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 :                                   740.22 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             293.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   765 sec.
    Turnaround time :                            832 sec.

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

