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


Performing analysis on: 4FGL_J1310.5+3221_daily_bin657
RA = 197.632, Dec = 32.3547
tmin = 409622401, tmax = 409881601
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='289938', job_status='RUN', time_executed='2021-09-07 01:33:00.828232', time_epoch_executed='1631003580.83' WHERE source_name='4FGL J1310.5+3221' and cadence='daily' and bin_id='657'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/289938

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/289938/ft1_4FGL_J1310.5+3221_daily_bin657.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/289938/ft2_4FGL_J1310.5+3221_daily_bin657.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/289938/ft1_4FGL_J1310.5+3221_daily_bin657.fits outfile=/scratch/kocevski/289938/ft1_filteredMKT_4FGL_J1310.5+3221_daily_bin657.fits ra=197.632 dec=32.3547 rad=12.0 tmin=409622401.0 tmax=409881601.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 6.19
user 5.48
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/289938/ft1_filtered_4FGL_J1310.5+3221_daily_bin657.fits" evtable="EVENTS" scfile=/scratch/kocevski/289938/ft2_4FGL_J1310.5+3221_daily_bin657.fits sctable="SC_DATA" outfile=/scratch/kocevski/289938/ltcube_409622401_409881601_4FGL_J1310.5+3221_daily_bin657.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/289938/ft2_4FGL_J1310.5+3221_daily_bin657.fits
.....................!
real 15.70
user 15.08
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/289938/ft1_filtered_4FGL_J1310.5+3221_daily_bin657.fits evtable="EVENTS" scfile=/scratch/kocevski/289938/ft2_4FGL_J1310.5+3221_daily_bin657.fits sctable="SC_DATA" expcube=/scratch/kocevski/289938/ltcube_409622401_409881601_4FGL_J1310.5+3221_daily_bin657.fits outfile=/scratch/kocevski/289938/expmap_409622401_409881601_4FGL_J1310.5+3221_daily_bin657.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/289938/ltcube_409622401_409881601_4FGL_J1310.5+3221_daily_bin657.fits
.....................!
real 195.22
user 187.79
sys 5.45

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/289938/ft1_filtered_4FGL_J1310.5+3221_daily_bin657.fits scfile=/scratch/kocevski/289938/ft2_4FGL_J1310.5+3221_daily_bin657.fits outfile=/scratch/kocevski/289938/cmap_409622401_409881601_4FGL_J1310.5+3221_daily_bin657.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.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/289938/ft1_filtered_4FGL_J1310.5+3221_daily_bin657.fits scfile=/scratch/kocevski/289938/ft2_4FGL_J1310.5+3221_daily_bin657.fits outfile=/scratch/kocevski/289938/cmap_HighResolution_409622401_409881601_4FGL_J1310.5+3221_daily_bin657.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.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.1130       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.3580       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.7727       1.0000         .10000E-03   10000.    
     5 'norm      '    2.6170       1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.102       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12978E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.383       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10127E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    37.791       1.0000         .10000E-03   10000.    
    13 'norm      '    7.6536       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    13.185       1.0000         .10000E-03   10000.    
    17 'norm      '    9.2596       1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.114       1.0000         .10000E-03   10000.    
    22 'norm      '    15.201       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    5.8066       1.0000         .10000E-03   10000.    
    25 'Prefactor '    5.0244       1.0000         .10000E-03   10000.    
    26 'Prefactor '    6.2526       1.0000         .10000E-03   10000.    
    27 'Prefactor '    69.806       1.0000         .10000E-03   10000.    
    28 'Prefactor '    2.3599       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.3444       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .53016       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=   4432.109     FROM MIGRAD    STATUS=CONVERGED    739 CALLS     3885 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.1130        3.9168        .38375E-06    .60953E-04
   2  Prefactor     6.3590        8.5332        .10696E-05   -.73694E-04
   3  Prefactor     .10000E-03    .72126       -.21670E-07** at limit **
   4  Prefactor     2.7736        3.1354       -.24503E-06   -.28836E-03
   5  norm          2.6169        6.9988       -.11855E-05   -.44640E-03
   6  Prefactor     12.100        13.385        .16107E-06   -.13682E-04
   7  Prefactor     .10000E-03    6.4057       -.64915E-07** at limit **
   8  Prefactor     .10000E-03    161.40       -.12158E-05** at limit **
   9  Prefactor     16.383        9.4174       -.51889E-07    .53533E-05
  10  Prefactor     .10000E-03    3.0898       -.20963E-07** at limit **
  11  norm          .10000E-03    2.2287        .10954E-06** at limit **
  12  Prefactor     37.776        34.194       -.53296E-05   -.63285E-06
  13  norm          7.6539        4.7695        .10318E-06    .34448E-05
  14  Prefactor     .10000E-03    7.2320       -.16936E-06** at limit **
  15  norm          .10000E-03    2.4410        .73628E-07** at limit **
  16  norm          13.185        15.204       -.26655E-06   -.10032E-04
  17  norm          9.2620        5.6147        .94427E-06   -.87466E-04
  18  norm          .10000E-03    4.0195       -.16300E-07** at limit **
  19  norm          .10000E-03    8.0434        .59320E-07** at limit **
  20  Prefactor     .10000E-03    2.1975        .42007E-06** at limit **
  21  Prefactor     12.122        16.518       -.83148E-05   -.42989E-04
  22  norm          15.201        9.4689        .31798E-06   -.10266E-04
  23  Prefactor     .10000E-03    34.197       -.10584E-06** at limit **
  24  norm          5.8077        10.317        .12067E-05   -.86308E-04
  25  Prefactor     5.0268        17.360       -.43648E-05   -.42655E-04
  26  Prefactor     6.2550        32.552       -.11842E-05   -.77832E-05
  27  Prefactor     69.820        63.462        .12538E-04    .23181E-05
  28  Prefactor     2.3606        4.6726        .24461E-06   -.44253E-03
  29  Normalizat    1.3441        .21084        .89570E-06   -.11206E-04
  30  Prefactor     .53043        .24359        .54956E-06    .36844E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 9.11301
  Prefactor  = 6.35902
  Prefactor  = 0.0001
  Prefactor  = 2.77362
  norm       = 2.61695
  Prefactor  = 12.0997
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.383
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 37.7759
  norm       = 7.65385
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 13.1855
  norm       = 9.26203
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.1216
  norm       = 15.2015
  Prefactor  = 0.0001
  norm       = 5.80775
  Prefactor  = 5.02682
  Prefactor  = 6.25502
  Prefactor  = 69.8202
  Prefactor  = 2.36059
  Normalizat = 1.34413
  Prefactor  = 0.530431
 **********
 **   18 **HESSE 
 **********

 FCN=   4432.109     FROM HESSE     STATUS=OK           588 CALLS     4473 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.1130        3.9159        .83230E-04   -1.5104    
   2  Prefactor     6.3590        8.5231        .15918E-03   -1.5204    
   3  Prefactor     .10000E-03    .72186        .55194E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.7736        3.1159        .11568E-03   -1.5375    
   5  norm          2.6169        7.0322        .25213E-03   -1.5384    
   6  Prefactor     12.100        13.351        .11515E-03   -1.5012    
   7  Prefactor     .10000E-03    6.4082        .16457E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    162.63        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     16.383        9.4153        .98952E-04   -1.4898    
  10  Prefactor     .10000E-03    3.1379        .11426E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.2331        .96985E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     37.776        34.350        .65197E-04   -1.4478    
  13  norm          7.6539        4.7706        .11101E-03   -1.5155    
  14  Prefactor     .10000E-03    7.2566        .17484E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.4572        .10156E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          13.185        15.203        .11031E-03   -1.4982    
  17  norm          9.2620        5.5972        .10853E-03   -1.5099    
  18  norm          .10000E-03    4.0254        .13014E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    8.0449        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.2541        .19276E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     12.122        16.525        .11509E-03   -1.5012    
  22  norm          15.201        9.4601        .10273E-03   -1.4928    
  23  Prefactor     .10000E-03    34.239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          5.8077        10.272        .16667E-03   -1.5226    
  25  Prefactor     5.0268        17.295        .17940E-03   -1.5260    
  26  Prefactor     6.2550        32.286        .16053E-03   -1.5208    
  27  Prefactor     69.820        63.258        .48045E-04   -1.4035    
  28  Prefactor     2.3606        4.6525        .19215E-03   -1.5401    
  29  Normalizat    1.3441        .24472        .20895E-03   -.82258    
  30  Prefactor     .53043        .27518        .37731E-03   -1.1060    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.1774e-10
Minuit parameter uncertainties:
  1  3.916
  2  8.52469
  3  1.07219e-06
  4  3.11605
  5  7.03443
  6  13.3545
  7  1.19882e-06
  8  0.000183179
  9  9.4162
  10  5.91259e-06
  11  1.85967e-05
  12  34.3676
  13  4.77079
  14  9.8972e-06
  15  1.10589e-05
  16  15.2072
  17  5.59756
  18  3.94197e-06
  19  3.32642e-06
  20  5.68183e-05
  21  16.5311
  22  9.46104
  23  0.000115261
  24  10.2752
  25  17.3126
  26  28.446
  27  63.3195
  28  4.65317
  29  0.244934
  30  0.275879
Done.

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

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  9.262e+00  5.598e+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:  5.304e-01  2.759e-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.344e+00  2.449e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.29
Ra Dec: 197.632 32.355
Photon Index (Fixed Index): 2.42 +/- 0.00
Photon Flux (Fixed Index): 8.12e-08 +/- 4.90e-08
Energy Flux (Fixed Index): 2.90e-05 +/- 1.76e-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) = 4430.28669746
delta logL = 1.82225865326

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4430.17403919
delta logL = 1.9349169198

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .74039       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.7102       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2352       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .62313       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.

 FCN=   4430.174     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      256 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .73806        4.5529        .51378E-02   -.80159E-03
   2  alpha         3.7114        1.6592        .10633        .11456E-04
   3  Normalizat    1.2355        .80328E-01    .48804E-01   -.79127E-04
   4  Prefactor     .62269        .93043E-01    .79119E-01   -.18885E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.73806
  alpha      = 3.71139
  Normalizat = 1.23553
  Prefactor  = 0.622694
 **********
 **   18 **HESSE 
 **********

 FCN=   4430.174     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      287 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .73806        6.3660        .22871E-04   -1.5536    
   2  alpha         3.7114        3.7606        .46077E-02    .50585    
   3  Normalizat    1.2355        .24626        .21576E-03   -.85512    
   4  Prefactor     .62269        .28596        .35036E-03   -1.0664    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.90107e-10
Minuit parameter uncertainties:
  1  4.33553
  2  2.31215
  3  0.246487
  4  0.286629
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/289938': 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): 102
logL (Free Index) = 4430.1740363
delta logL = 1.93491981777

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  7.381e-01  4.336e+00  1.000e-04  1.000e+04 ( 1.000e-13)
332        alpha:  3.711e+00  2.312e+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.227e-01  2.866e-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.236e+00  2.465e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.48
Ra Dec: 197.632 32.355
Photon Index (Free Index): 3.71 +/- 2.31
Photon Flux (Free Index): 1.64e-07 +/- 8.52e-08
Energy Flux (Free Index): 2.73e-05 +/- 1.39e-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/289938/cmap_HighResolution_409622401_409881601_4FGL_J1310.5+3221_daily_bin657.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.12e-08', energy_flux2='2.73e-05', photon_flux_error='4.90e-08', dlogl='1.93e+00', energy_flux='2.90e-05', photon_flux2='1.64e-07', job_status='DONE', time_completed='2021-09-07 01:44:12.966232', photon_index_error2='2.31', photon_index2='3.71', ts='5.29', fit_tolerance='1e-08', GAL='0.53', photon_index_error='0.00', energy_flux_error2='1.39e-05', EG='1.34', time_epoch_completed='1631004252.97', return_code='0', job_id='289938', GAL2='0.62', EG2='1.24', return_code2='102', energy_flux_error='1.76e-05', photon_flux_error2='8.52e-08', ts2='9.48', photon_index='2.42' WHERE bin_id='657' AND source_name='4FGL J1310.5+3221' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:44:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0273>
Subject: Job 289938: <4FGL_J1310.5+3221_daily_bin657> in cluster <slac> Done

Job <4FGL_J1310.5+3221_daily_bin657> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep  7 01:30:50 2021
Job was executed on host(s) <bullet0273>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 01:31:06 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:31:06 2021
Terminated at Tue Sep  7 01:44:13 2021
Results reported at Tue Sep  7 01:44:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1310.5+3221_daily_bin657 197.632 32.3547 409622401 409881601 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 :                                   661.23 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             339.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   787 sec.
    Turnaround time :                            803 sec.

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

