/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


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


Performing analysis on: 4FGL_J1310.5+3221_daily_bin1282
RA = 197.632, Dec = 32.3547
tmin = 571622401, tmax = 571881601
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='293653', job_status='RUN', time_executed='2021-09-07 01:45:45.794641', time_epoch_executed='1631004345.79' WHERE source_name='4FGL J1310.5+3221' and cadence='daily' and bin_id='1282'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/293653

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/293653/ft1_4FGL_J1310.5+3221_daily_bin1282.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/293653/ft2_4FGL_J1310.5+3221_daily_bin1282.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/293653/ft1_4FGL_J1310.5+3221_daily_bin1282.fits outfile=/scratch/kocevski/293653/ft1_filteredMKT_4FGL_J1310.5+3221_daily_bin1282.fits ra=197.632 dec=32.3547 rad=12.0 tmin=571622401.0 tmax=571881601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 2.74
user 2.47
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/293653/ft1_filtered_4FGL_J1310.5+3221_daily_bin1282.fits evtable="EVENTS" scfile=/scratch/kocevski/293653/ft2_4FGL_J1310.5+3221_daily_bin1282.fits sctable="SC_DATA" expcube=/scratch/kocevski/293653/ltcube_571622401_571881601_4FGL_J1310.5+3221_daily_bin1282.fits outfile=/scratch/kocevski/293653/expmap_571622401_571881601_4FGL_J1310.5+3221_daily_bin1282.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/293653/ltcube_571622401_571881601_4FGL_J1310.5+3221_daily_bin1282.fits
.....................!
real 192.91
user 186.58
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/293653/ft1_filtered_4FGL_J1310.5+3221_daily_bin1282.fits scfile=/scratch/kocevski/293653/ft2_4FGL_J1310.5+3221_daily_bin1282.fits outfile=/scratch/kocevski/293653/cmap_571622401_571881601_4FGL_J1310.5+3221_daily_bin1282.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/293653/ft1_filtered_4FGL_J1310.5+3221_daily_bin1282.fits scfile=/scratch/kocevski/293653/ft2_4FGL_J1310.5+3221_daily_bin1282.fits outfile=/scratch/kocevski/293653/cmap_HighResolution_571622401_571881601_4FGL_J1310.5+3221_daily_bin1282.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.8523       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11827E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.4389       1.0000         .10000E-03   10000.    
     6 'Prefactor '    35.054       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10168E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.2009       1.0000         .10000E-03   10000.    
    11 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    41.830       1.0000         .10000E-03   10000.    
    13 'norm      '    .10109E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.7903       1.0000         .10000E-03   10000.    
    16 'norm      '    38.558       1.0000         .10000E-03   10000.    
    17 'norm      '    1.5264       1.0000         .10000E-03   10000.    
    18 'norm      '    .11080E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    4.8454       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.0116       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10610E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    17.078       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    21.084       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    11.478       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1615       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .68707       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=   4063.383     FROM MIGRAD    STATUS=CONVERGED    772 CALLS     4013 TOTAL
                     EDM=   .99E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.8500        7.0558        .31609E-06   -.47631E-03
   2  Prefactor     .10000E-03    8.1882        .93780E-08** at limit **
   3  Prefactor     .10103E-03    3.9845        .49279E-06** at limit **
   4  Prefactor     .10000E-03    2.6965       -.44348E-07** at limit **
   5  norm          3.4392        4.3977       -.48226E-07   -.10107E-03
   6  Prefactor     35.053        24.169        .17049E-06   -.73304E-04
   7  Prefactor     .10000E-03    16.343       -.21721E-06** at limit **
   8  Prefactor     .10001E-03    104.11       -.11293E-05** at limit **
   9  Prefactor     .10000E-03    5.2242        .98083E-08** at limit **
  10  Prefactor     5.2023        7.7242        .11863E-06   -.26080E-04
  11  norm          .10000E-03    16.758        .16828E-05** at limit **
  12  Prefactor     41.842        46.108       -.66300E-06    .71638E-04
  13  norm          .10000E-03    2.9054       -.13389E-06** at limit **
  14  Prefactor     .10000E-03    12.612        .54836E-07** at limit **
  15  norm          4.7895        9.1027        .44660E-06   -.48085E-04
  16  norm          38.553        25.517        .58608E-07   -.21156E-04
  17  norm          1.5281        4.6742        .18182E-05    .18903E-03
  18  norm          .10003E-03    9.4573       -.49505E-06** at limit **
  19  norm          4.8447        18.726        .60374E-05   -.84915E-04
  20  Prefactor     3.0105        5.0013       -.49848E-06   -.58229E-04
  21  Prefactor     .10001E-03    37.522       -.30619E-05** at limit **
  22  norm          17.077        12.628       -.27949E-06    .16043E-05
  23  Prefactor     .10000E-03    23.238        .10086E-06** at limit **
  24  norm          21.086        16.902        .11211E-06   -.54940E-05
  25  Prefactor     .10000E-03    4.4311       -.59144E-08** at limit **
  26  Prefactor     .10000E-03    5.2562       -.15340E-07** at limit **
  27  Prefactor     .10001E-03    51.035        .19657E-05** at limit **
  28  Prefactor     11.478        5.6653        .45965E-07   -.90784E-04
  29  Normalizat    1.1613        .21728       -.60140E-06   -.19474E-04
  30  Prefactor     .68722        .24835        .11944E-07   -.24779E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.84995
  Prefactor  = 0.0001
  Prefactor  = 0.000101026
  Prefactor  = 0.0001
  norm       = 3.43916
  Prefactor  = 35.0534
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 5.20226
  norm       = 0.0001
  Prefactor  = 41.8416
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.78953
  norm       = 38.5528
  norm       = 1.5281
  norm       = 0.000100032
  norm       = 4.84468
  Prefactor  = 3.01051
  Prefactor  = 0.000100005
  norm       = 17.0767
  Prefactor  = 0.0001
  norm       = 21.0861
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 11.4781
  Normalizat = 1.16133
  Prefactor  = 0.687223
 **********
 **   18 **HESSE 
 **********

 FCN=   4063.383     FROM HESSE     STATUS=OK           598 CALLS     4611 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.8500        7.9091        .12697E-03   -1.5113    
   2  Prefactor     .10000E-03    8.2073        .17815E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10103E-03    9.0596        .38955E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.7096        .10206E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.4392        4.3938        .14748E-03   -1.5337    
   6  Prefactor     35.053        24.091        .67686E-04   -1.4523    
   7  Prefactor     .10000E-03    16.363        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    104.64        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.2480        .14229E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.2023        7.7044        .17627E-03   -1.5252    
  11  norm          .10000E-03    16.861        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     41.842        45.611        .61981E-04   -1.4413    
  13  norm          .10000E-03    5.1760        .21051E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    12.628        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.7895        8.9840        .18382E-03   -1.5270    
  16  norm          38.553        25.517        .64548E-04   -1.4465    
  17  norm          1.5281        4.2239        .19764E-03   -1.5461    
  18  norm          .10003E-03    22.588        .32312E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          4.8447        18.127        .91374E-03   -1.5268    
  20  Prefactor     3.0105        4.8431        .15540E-03   -1.5361    
  21  Prefactor     .10001E-03    38.363        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          17.077        12.637        .96917E-04   -1.4881    
  23  Prefactor     .10000E-03    23.249        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          21.086        16.930        .87230E-04   -1.4789    
  25  Prefactor     .10000E-03    4.4331        .13105E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    5.2571        .14274E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10001E-03    51.875        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     11.478        5.6742        .10050E-03   -1.5030    
  29  Normalizat    1.1613        .24959        .22242E-03   -.87806    
  30  Prefactor     .68722        .28277        .32906E-03   -1.0403    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.93374e-09
Minuit parameter uncertainties:
  1  7.91006
  2  2.1687e-06
  3  0.00609791
  4  4.36311e-06
  5  4.39422
  6  24.0978
  7  9.2762e-05
  8  0.001452
  9  1.00533e-06
  10  7.70584
  11  9.3377e-05
  12  45.6491
  13  2.59912e-05
  14  1.84011e-05
  15  8.98655
  16  25.5245
  17  4.22472
  18  0.00169949
  19  18.1478
  20  4.84375
  21  0.000914273
  22  12.6391
  23  7.58969e-05
  24  16.934
  25  2.5579e-07
  26  2.85946e-06
  27  0.00139403
  28  5.67446
  29  0.249847
  30  0.283358
Done.

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

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  1.528e+00  4.225e+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:  6.872e-01  2.834e-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.161e+00  2.498e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.18
Ra Dec: 197.632 32.355
Photon Flux Upper Limit: 1.08e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.88e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/293653/likelihoodResults_571622401_571881601_4FGL_J1310.5+3221_daily_bin1282.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): 0
logL (Free Index) = 4063.38257022
delta logL = 8.92105017556e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4063.38252701
delta logL = 0.000132426570872

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4870       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4499       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1612       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68717       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4063.383     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      255 TOTAL
                     EDM=   .94E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4798        5.1144        .19423E-03   -.10474E-03
   2  alpha         2.4470        1.3376        .82324E-02   -.17294E-04
   3  Normalizat    1.1610        .23993        .22245E-03   -.39021E-04
   4  Prefactor     .68744        .27965        .32901E-03    .34071E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.47976
  alpha      = 2.44704
  Normalizat = 1.16104
  Prefactor  = 0.687441
 **********
 **   18 **HESSE 
 **********

 FCN=   4063.383     FROM HESSE     STATUS=OK            25 CALLS      280 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4798        4.8382        .77692E-05   -1.5465    
   2  alpha         2.4470        1.2723        .32930E-03   -.21184E-01
   3  Normalizat    1.1610        .24008        .88978E-05   -.87815    
   4  Prefactor     .68744        .27981        .13160E-04   -1.0402    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.95436e-11
Minuit parameter uncertainties:
  1  4.83951
  2  1.33483
  3  0.240309
  4  0.280379
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/293653': 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) = 4063.38251793
delta logL = 0.000141507444368

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  1.480e+00  4.840e+00  1.000e-04  1.000e+04 ( 1.000e-13)
332        alpha:  2.447e+00  1.335e+00  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:  6.874e-01  2.804e-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.161e+00  2.403e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.18
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/293653/cmap_HighResolution_571622401_571881601_4FGL_J1310.5+3221_daily_bin1282.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.88e-05', job_status='DONE', photon_flux_upper_limit='1.08e-07', time_completed='2021-09-07 01:57:20.089935', job_id='293653', GAL2='0.69', fit_tolerance='1e-08', EG2='1.16', EG='1.16', time_epoch_completed='1631005040.09', return_code2='0', ts='0.18', comment='SUCCESS', return_code='0', GAL='0.69', dlogl='1.42e-04', ts2='0.18', photon_index_error='0.00', photon_index='2.42' WHERE bin_id='1282' AND source_name='4FGL J1310.5+3221' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:57:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0294>
Subject: Job 293653: <4FGL_J1310.5+3221_daily_bin1282> in cluster <slac> Done

Job <4FGL_J1310.5+3221_daily_bin1282> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Sep  7 01:40:47 2021
Job was executed on host(s) <bullet0294>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 01:44:14 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:44:14 2021
Terminated at Tue Sep  7 01:57:20 2021
Results reported at Tue Sep  7 01:57:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1310.5+3221_daily_bin1282 197.632 32.3547 571622401 571881601 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 :                                   677.27 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             308.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   786 sec.
    Turnaround time :                            993 sec.

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

