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


Performing analysis on: 4FGL_J1310.5+3221_daily_bin72
RA = 197.632, Dec = 32.3547
tmin = 257990401, tmax = 258249601
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='286987', job_status='RUN', time_executed='2021-09-07 01:23:38.974618', time_epoch_executed='1631003018.97' WHERE source_name='4FGL J1310.5+3221' and cadence='daily' and bin_id='72'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/286987

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/286987/ft1_4FGL_J1310.5+3221_daily_bin72.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/286987/ft2_4FGL_J1310.5+3221_daily_bin72.fits


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

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

Done.
real 1.46
user 1.28
sys 0.16

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/286987/ft1_filtered_4FGL_J1310.5+3221_daily_bin72.fits evtable="EVENTS" scfile=/scratch/kocevski/286987/ft2_4FGL_J1310.5+3221_daily_bin72.fits sctable="SC_DATA" expcube=/scratch/kocevski/286987/ltcube_257990401_258249601_4FGL_J1310.5+3221_daily_bin72.fits outfile=/scratch/kocevski/286987/expmap_257990401_258249601_4FGL_J1310.5+3221_daily_bin72.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/286987/ltcube_257990401_258249601_4FGL_J1310.5+3221_daily_bin72.fits
.....................!
real 191.59
user 186.45
sys 4.07

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/286987/ft1_filtered_4FGL_J1310.5+3221_daily_bin72.fits scfile=/scratch/kocevski/286987/ft2_4FGL_J1310.5+3221_daily_bin72.fits outfile=/scratch/kocevski/286987/cmap_257990401_258249601_4FGL_J1310.5+3221_daily_bin72.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 1.01
user 0.38
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.6626       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.3538       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.2493       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.3847       1.0000         .10000E-03   10000.    
     5 'norm      '    .12555E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.2676       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.546       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.7616       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    5.6036       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.1363       1.0000         .10000E-03   10000.    
    16 'norm      '    13.371       1.0000         .10000E-03   10000.    
    17 'norm      '    5.1127       1.0000         .10000E-03   10000.    
    18 'norm      '    2.4868       1.0000         .10000E-03   10000.    
    19 'norm      '    22.721       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10485E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .15757E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    4.5205       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    19.170       1.0000         .10000E-03   10000.    
    27 'Prefactor '    61.838       1.0000         .10000E-03   10000.    
    28 'Prefactor '    1.8131       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .51855       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.4203       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=   4707.522     FROM MIGRAD    STATUS=CONVERGED    767 CALLS     3922 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.6623        2.9043       -.20443E-06   -.84018E-04
   2  Prefactor     7.3540        6.8032        .13533E-07   -.24152E-03
   3  Prefactor     2.2493        2.1706        .79666E-07   -.22426E-04
   4  Prefactor     3.3845        2.0590       -.30713E-07   -.19008E-04
   5  norm          .10000E-03    2.1298        .11993E-06** at limit **
   6  Prefactor     .10000E-03    2.5285       -.18683E-07** at limit **
   7  Prefactor     5.2663        14.224        .72762E-07   -.18782E-03
   8  Prefactor     .10000E-03    44.249        .83879E-05** at limit **
   9  Prefactor     10.546        7.9750        .87427E-07    .86097E-04
  10  Prefactor     .10000E-03    1.5817        .14656E-07** at limit **
  11  norm          4.7623        4.9941        .60624E-07    .30978E-04
  12  Prefactor     .10000E-03    19.847        .54828E-07** at limit **
  13  norm          5.6036        3.9606        .30565E-07    .18498E-03
  14  Prefactor     .10000E-03    5.6640       -.36802E-05** at limit **
  15  norm          3.1360        3.8536       -.48886E-06   -.23689E-05
  16  norm          13.371        14.218       -.54519E-07    .32343E-05
  17  norm          5.1142        5.7431       -.12778E-06   -.67592E-03
  18  norm          2.4856        4.4052        .66764E-06   -.14352E-02
  19  norm          22.720        17.826       -.34791E-07    .15829E-03
  20  Prefactor     .10000E-03    2.4835       -.36147E-06** at limit **
  21  Prefactor     .10000E-03    7.5782        .45840E-06** at limit **
  22  norm          .10221E-03    5.2843       -.25487E-05** at limit **
  23  Prefactor     .10000E-03    26.596       -.15953E-05** at limit **
  24  norm          4.5171        9.4606        .11692E-05    .58515E-03
  25  Prefactor     .10000E-03    5.4559        .36956E-05** at limit **
  26  Prefactor     19.170        17.333       -.98407E-07    .37189E-04
  27  Prefactor     61.828        87.443       -.99789E-05   -.62917E-04
  28  Prefactor     1.8136        4.3138       -.11375E-05   -.19146E-03
  29  Normalizat    .51821        .18946        .23961E-05    .26666E-03
  30  Prefactor     1.4207        .23062       -.55828E-06    .39237E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.66235
  Prefactor  = 7.35398
  Prefactor  = 2.24931
  Prefactor  = 3.3845
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.26627
  Prefactor  = 0.000100001
  Prefactor  = 10.5456
  Prefactor  = 0.0001
  norm       = 4.76228
  Prefactor  = 0.0001
  norm       = 5.60358
  Prefactor  = 0.0001
  norm       = 3.13595
  norm       = 13.3712
  norm       = 5.11424
  norm       = 2.48556
  norm       = 22.7198
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000102206
  Prefactor  = 0.0001
  norm       = 4.5171
  Prefactor  = 0.0001
  Prefactor  = 19.17
  Prefactor  = 61.8283
  Prefactor  = 1.81364
  Normalizat = 0.518213
  Prefactor  = 1.42066
 **********
 **   18 **HESSE 
 **********

 FCN=   4707.522     FROM HESSE     STATUS=OK           594 CALLS     4516 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.6623        2.9190        .10894E-03   -1.5382    
   2  Prefactor     7.3540        6.8298        .73951E-03   -1.5166    
   3  Prefactor     2.2493        2.1841        .88665E-04   -1.5408    
   4  Prefactor     3.3845        2.0561        .74022E-04   -1.5340    
   5  norm          .10000E-03    4.1458        .19498E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.5305        .10655E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.2663        14.460        .87564E-03   -1.5249    
   8  Prefactor     .10000E-03    44.205        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.546        7.9759        .12338E-03   -1.5058    
  10  Prefactor     .10000E-03    1.5824        .84265E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.7623        4.9899        .14749E-03   -1.5271    
  12  Prefactor     .10000E-03    19.895        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.6036        3.9579        .11035E-03   -1.5234    
  14  Prefactor     .10000E-03    5.6728        .15946E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.1360        3.8248        .14380E-03   -1.5354    
  16  norm          13.371        14.219        .10954E-03   -1.4976    
  17  norm          5.1142        6.8120        .60096E-03   -1.5256    
  18  norm          2.4856        8.7925        .11591E-02   -1.5393    
  19  norm          22.720        17.786        .84032E-04   -1.4754    
  20  Prefactor     .10000E-03    4.4130        .20259E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    7.6022        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10221E-03    73.052        .26919E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    26.609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          4.5171        8.9655        .18936E-03   -1.5283    
  25  Prefactor     .10000E-03    5.4583        .15642E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     19.170        17.333        .91479E-04   -1.4832    
  27  Prefactor     61.828        87.878        .51026E-04   -1.4134    
  28  Prefactor     1.8136        4.3114        .20640E-03   -1.5439    
  29  Normalizat    .51821        .22296        .28700E-03   -1.1158    
  30  Prefactor     1.4207        .27647        .23544E-03   -.79787    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.33315e-08
Minuit parameter uncertainties:
  1  2.91911
  2  6.83054
  3  2.18413
  4  2.05619
  5  4.00912e-05
  6  1.50503e-06
  7  14.4694
  8  0.00049528
  9  7.9767
  10  2.32022e-07
  11  4.99034
  12  1.61813e-05
  13  3.95813
  14  8.11151e-05
  15  3.82513
  16  14.2227
  17  6.81307
  18  8.79705
  19  17.7904
  20  6.07067e-05
  21  1.31966e-05
  22  0.0254214
  23  6.64952e-05
  24  8.96814
  25  7.99823e-05
  26  17.3374
  27  88.0633
  28  4.31212
  29  0.223342
  30  0.276761
Done.

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

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  5.114e+00  6.813e+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.421e+00  2.768e-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:  5.182e-01  2.233e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.16
Ra Dec: 197.632 32.355
Photon Index (Fixed Index): 2.42 +/- 0.00
Photon Flux (Fixed Index): 4.48e-08 +/- 5.97e-08
Energy Flux (Fixed Index): 1.60e-05 +/- 2.14e-05

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

Saving results to:
/scratch/kocevski/286987/likelihoodResults_257990401_258249601_4FGL_J1310.5+3221_daily_bin72.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) = 4707.46739261
delta logL = 0.0548252421895

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4707.45048844
delta logL = 0.0717294030828

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9766       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9506       1.0000          .0000       5.0000    
     3 'Normalizat'    .49050       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4449       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=   4707.450     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      255 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9707        26.936        .73714E-02    .47754E-03
   2  alpha         2.9520        3.7169        .19937        .79474E-04
   3  Normalizat    .49036        .53198E-01    .66564E-01   -.15727E-04
   4  Prefactor     1.4451        .64359E-01    .52873E-01   -.17668E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.97073
  alpha      = 2.95202
  Normalizat = 0.490363
  Prefactor  = 1.44507
 **********
 **   18 **HESSE 
 **********

 FCN=   4707.450     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      286 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9707        52.211        .69407E-04   -1.5427    
   2  alpha         2.9520        3.9633        .73146E-02    .18181    
   3  Normalizat    .49036        .23612        .29462E-03   -1.1286    
   4  Prefactor     1.4451        .27231        .23375E-03   -.79090    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.17883e-10
Minuit parameter uncertainties:
  1  20.3064
  2  4.65972
  3  0.236602
  4  0.272583
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/286987': 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) = 4707.45048794
delta logL = 0.0717299065964

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  1.971e+00  2.031e+01  1.000e-04  1.000e+04 ( 1.000e-13)
332        alpha:  2.952e+00  4.660e+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:  1.445e+00  2.726e-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:  4.904e-01  2.366e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.39
Ra Dec: 197.632 32.355
Photon Index (Free Index): 2.95 +/- 4.66
Photon Flux (Free Index): 6.12e-08 +/- 9.47e-08
Energy Flux (Free Index): 1.37e-05 +/- 2.21e-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/286987/cmap_HighResolution_257990401_258249601_4FGL_J1310.5+3221_daily_bin72.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.38e-05', comment='SUCCESS', photon_flux='4.48e-08', energy_flux2='1.37e-05', photon_flux_error='5.97e-08', dlogl='7.17e-02', energy_flux='1.60e-05', photon_flux2='6.12e-08', job_status='DONE', time_completed='2021-09-07 01:35:47.303337', photon_index_error2='4.66', photon_index2='2.95', ts='2.16', fit_tolerance='1e-08', GAL='1.42', photon_index_error='0.00', photon_flux_upper_limit='1.22e-07', energy_flux_error2='2.21e-05', EG='0.52', time_epoch_completed='1631003747.3', return_code='0', job_id='286987', GAL2='1.45', EG2='0.49', return_code2='102', energy_flux_error='2.14e-05', photon_flux_error2='9.47e-08', ts2='2.39', photon_index='2.42' WHERE bin_id='72' AND source_name='4FGL J1310.5+3221' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:35:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0103>
Subject: Job 286987: <4FGL_J1310.5+3221_daily_bin72> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1310.5+3221_daily_bin72 197.632 32.3547 257990401 258249601 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 :                                   725.46 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             248.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   914 sec.
    Turnaround time :                            917 sec.

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

