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


Performing analysis on: 4FGL_J1310.5+3221_daily_bin1044
RA = 197.632, Dec = 32.3547
tmin = 509932801, tmax = 510192001
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='291835', job_status='RUN', time_executed='2021-09-07 01:38:07.645425', time_epoch_executed='1631003887.65' WHERE source_name='4FGL J1310.5+3221' and cadence='daily' and bin_id='1044'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/291835

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/291835/ft1_4FGL_J1310.5+3221_daily_bin1044.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/291835/ft2_4FGL_J1310.5+3221_daily_bin1044.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/291835/ft1_4FGL_J1310.5+3221_daily_bin1044.fits outfile=/scratch/kocevski/291835/ft1_filteredMKT_4FGL_J1310.5+3221_daily_bin1044.fits ra=197.632 dec=32.3547 rad=12.0 tmin=509932801.0 tmax=510192001.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.58
user 3.31
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/291835/ft2_4FGL_J1310.5+3221_daily_bin1044.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/291835/ft1_filteredMKT_4FGL_J1310.5+3221_daily_bin1044.fits evtable="EVENTS" outfile="/scratch/kocevski/291835/ft1_filtered_4FGL_J1310.5+3221_daily_bin1044.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.88
user 0.34
sys 0.19

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/291835/ft1_filtered_4FGL_J1310.5+3221_daily_bin1044.fits evtable="EVENTS" scfile=/scratch/kocevski/291835/ft2_4FGL_J1310.5+3221_daily_bin1044.fits sctable="SC_DATA" expcube=/scratch/kocevski/291835/ltcube_509932801_510192001_4FGL_J1310.5+3221_daily_bin1044.fits outfile=/scratch/kocevski/291835/expmap_509932801_510192001_4FGL_J1310.5+3221_daily_bin1044.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/291835/ltcube_509932801_510192001_4FGL_J1310.5+3221_daily_bin1044.fits
.....................!
real 192.90
user 187.15
sys 4.35

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/291835/ft1_filtered_4FGL_J1310.5+3221_daily_bin1044.fits scfile=/scratch/kocevski/291835/ft2_4FGL_J1310.5+3221_daily_bin1044.fits outfile=/scratch/kocevski/291835/cmap_509932801_510192001_4FGL_J1310.5+3221_daily_bin1044.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/291835/ft1_filtered_4FGL_J1310.5+3221_daily_bin1044.fits scfile=/scratch/kocevski/291835/ft2_4FGL_J1310.5+3221_daily_bin1044.fits outfile=/scratch/kocevski/291835/cmap_HighResolution_509932801_510192001_4FGL_J1310.5+3221_daily_bin1044.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.151       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.5781       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.0056       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .18839       1.0000         .10000E-03   10000.    
     5 'norm      '    7.7902       1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.409       1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.184       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .21193       1.0000         .10000E-03   10000.    
    11 'norm      '    4.7397       1.0000         .10000E-03   10000.    
    12 'Prefactor '    21.100       1.0000         .10000E-03   10000.    
    13 'norm      '    6.9776       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.4466       1.0000         .10000E-03   10000.    
    16 'norm      '    8.9961       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.8175       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .88177       1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.4412       1.0000         .10000E-03   10000.    
    24 'norm      '    7.0317       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    10.669       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .74361       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1688       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=   5576.785     FROM MIGRAD    STATUS=CONVERGED    742 CALLS     3903 TOTAL
                     EDM=   .95E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.149        4.1694       -.28984E-06    .54927E-04
   2  Prefactor     3.5771        9.4489        .63118E-06   -.11491E-04
   3  Prefactor     1.0069        2.1187        .10049E-05    .98277E-03
   4  Prefactor     .19016        1.3429       -.21178E-06    .15694E-03
   5  norm          7.7897        4.8438       -.72944E-08   -.47487E-04
   6  Prefactor     10.404        10.884       -.21584E-06   -.75548E-04
   7  Prefactor     11.184        11.072       -.13978E-06   -.13679E-04
   8  Prefactor     .10000E-03    23.637        .30685E-06** at limit **
   9  Prefactor     .10000E-03    1.9756        .13650E-06** at limit **
  10  Prefactor     .21543        3.2578       -.37959E-06    .26843E-03
  11  norm          4.7400        3.9266       -.25558E-08   -.44990E-04
  12  Prefactor     21.102        24.604       -.75014E-06   -.14165E-04
  13  norm          6.9775        3.7251       -.12206E-07   -.14346E-03
  14  Prefactor     .10000E-03    7.2104        .17569E-06** at limit **
  15  norm          2.4469        4.7537        .54919E-06    .56783E-04
  16  norm          8.9957        15.551        .29290E-05    .65647E-04
  17  norm          .10000E-03    1.1740        .30114E-06** at limit **
  18  norm          .10000E-03    1.5676        .10698E-06** at limit **
  19  norm          .10000E-03    8.4676        .55445E-07** at limit **
  20  Prefactor     5.8184        3.4894       -.20425E-06   -.11121E-03
  21  Prefactor     .10000E-03    4.4957        .14456E-06** at limit **
  22  norm          .88226        7.0079        .50972E-05    .15848E-03
  23  Prefactor     4.4410        88.336        .41097E-06   -.46061E-05
  24  norm          7.0313        7.8599       -.10357E-05   -.30055E-03
  25  Prefactor     .10000E-03    4.7871        .32624E-06** at limit **
  26  Prefactor     .10000E-03    4.1917        .14784E-06** at limit **
  27  Prefactor     10.520        128.58       -.88861E-05   -.68575E-04
  28  Prefactor     .10000E-03    1.2369        .31552E-06** at limit **
  29  Normalizat    .74339        .19137        .58066E-05   -.48518E-03
  30  Prefactor     1.1691        .23239       -.76295E-05    .98923E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 11.1493
  Prefactor  = 3.57711
  Prefactor  = 1.00685
  Prefactor  = 0.190163
  norm       = 7.7897
  Prefactor  = 10.4043
  Prefactor  = 11.1835
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.215426
  norm       = 4.74003
  Prefactor  = 21.1021
  norm       = 6.9775
  Prefactor  = 0.0001
  norm       = 2.44693
  norm       = 8.99566
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 5.81838
  Prefactor  = 0.0001
  norm       = 0.882256
  Prefactor  = 4.44101
  norm       = 7.03133
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.5202
  Prefactor  = 0.0001
  Normalizat = 0.743392
  Prefactor  = 1.16913
 **********
 **   18 **HESSE 
 **********

 FCN=   5576.785     FROM HESSE     STATUS=OK           598 CALLS     4501 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.149        4.1354        .83858E-04   -1.5040    
   2  Prefactor     3.5771        9.4471        .21364E-03   -1.5330    
   3  Prefactor     1.0069        1.8584        .14535E-02   -1.5507    
   4  Prefactor     .19016        5.1062        .16220E-02   -1.5621    
   5  norm          7.7897        4.8392        .12536E-03   -1.5150    
   6  Prefactor     10.404        10.830        .12419E-03   -1.5063    
   7  Prefactor     11.184        11.262        .11979E-03   -1.5039    
   8  Prefactor     .10000E-03    23.642        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.9781        .10251E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .21543        24.971        .25308E-02   -1.5615    
  11  norm          4.7400        3.9217        .12651E-03   -1.5273    
  12  Prefactor     21.102        24.485        .87198E-04   -1.4789    
  13  norm          6.9775        3.7248        .10194E-03   -1.5180    
  14  Prefactor     .10000E-03    7.2274        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.4469        4.7143        .21150E-03   -1.5395    
  16  norm          8.9957        15.598        .66815E-03   -1.5108    
  17  norm          .10000E-03    1.1806        .78993E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.5686        .91313E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    8.4935        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.8184        3.4694        .96801E-04   -1.5225    
  21  Prefactor     .10000E-03    4.5019        .15459E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .88226        7.1150        .37070E-03   -1.5520    
  23  Prefactor     4.4410        87.832        .19108E-03   -1.5286    
  24  norm          7.0313        7.7924        .15128E-03   -1.5178    
  25  Prefactor     .10000E-03    4.7979        .15959E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    4.1935        .14933E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     10.520        131.43        .12266E-03   -1.5059    
  28  Prefactor     .10000E-03    1.2477        .81115E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .74339        .20469        .24551E-03   -1.0220    
  30  Prefactor     1.1691        .24710        .25307E-03   -.87287    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.16439e-09
Minuit parameter uncertainties:
  1  4.13548
  2  9.45103
  3  1.85854
  4  1.97046
  5  4.83946
  6  10.8322
  7  11.2638
  8  2.78138e-05
  9  2.66057e-06
  10  4.63961
  11  3.92192
  12  24.4969
  13  3.72493
  14  1.11807e-05
  15  4.715
  16  15.6051
  17  4.37968e-06
  18  2.26371e-06
  19  1.90714e-05
  20  3.46948
  21  3.68931e-06
  22  5.01142
  23  39.5665
  24  7.79357
  25  8.38735e-06
  26  4.48234e-06
  27  74.5702
  28  2.79902e-06
  29  0.204906
  30  0.247343
Done.

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

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  1.000e-04  4.380e-06  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.169e+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.434e-01  2.049e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 197.632 32.355
Photon Flux Upper Limit: 4.98e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.78e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/291835/likelihoodResults_509932801_510192001_4FGL_J1310.5+3221_daily_bin1044.txt

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): 102
logL (Free Index) = 5576.78886914
delta logL = -0.00395930943796

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5576.78490943
delta logL = 3.98772499466e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10197E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3974       1.0000          .0000       5.0000    
     3 'Normalizat'    .74340       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1692       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=   5576.785     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      246 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    127.09        .81491E-02** at limit **
   2  alpha         1.5239        2.7527        .16478       -.14323E-07
   3  Normalizat    .74340        .33341E-01    .24550E-03    .39468E-03
   4  Prefactor     1.1691        .42382E-01    .25307E-03    .41014E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.52385
  Normalizat = 0.743399
  Prefactor  = 1.16912
 **********
 **   18 **HESSE 
 **********

 FCN=   5576.785     FROM HESSE     STATUS=OK            25 CALLS      271 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.1106        .10427E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.5239        3.2589        .32956E-01   -.40113    
   3  Normalizat    .74340        .19069        .49099E-04   -1.0220    
   4  Prefactor     1.1691        .24239        .50614E-04   -.87287    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.95788e-10
Minuit parameter uncertainties:
  1  3.92892e-05
  2  161.605
  3  0.190863
  4  0.24262
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/291835': 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) = 5576.78489193
delta logL = 1.7891792595e-05

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  1.000e-04  3.929e-05  1.000e-04  1.000e+04 ( 1.000e-13)
332        alpha:  1.524e+00  1.616e+02  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.169e+00  2.426e-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.434e-01  1.909e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 197.632 32.355

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/291835/cmap_HighResolution_509932801_510192001_4FGL_J1310.5+3221_daily_bin1044.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.78e-05', job_status='DONE', photon_flux_upper_limit='4.98e-08', time_completed='2021-09-07 01:51:39.940079', job_id='291835', GAL2='1.17', fit_tolerance='1e-08', EG2='0.74', EG='0.74', time_epoch_completed='1631004699.94', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.17', dlogl='1.79e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.42' WHERE bin_id='1044' AND source_name='4FGL J1310.5+3221' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:51:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 291835: <4FGL_J1310.5+3221_daily_bin1044> in cluster <slac> Done

Job <4FGL_J1310.5+3221_daily_bin1044> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep  7 01:36:00 2021
Job was executed on host(s) <bullet0258>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 01:37:48 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:37:48 2021
Terminated at Tue Sep  7 01:51:40 2021
Results reported at Tue Sep  7 01:51:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1310.5+3221_daily_bin1044 197.632 32.3547 509932801 510192001 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 :                                   806.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             322.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   832 sec.
    Turnaround time :                            940 sec.

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

