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


Performing analysis on: 4FGL_J1310.5+3221_daily_bin90
RA = 197.632, Dec = 32.3547
tmin = 262656001, tmax = 262915201
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='287016', job_status='RUN', time_executed='2021-09-07 01:24:43.306594', time_epoch_executed='1631003083.31' WHERE source_name='4FGL J1310.5+3221' and cadence='daily' and bin_id='90'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/287016

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/287016/ft1_4FGL_J1310.5+3221_daily_bin90.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/287016/ft2_4FGL_J1310.5+3221_daily_bin90.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/287016/ft1_4FGL_J1310.5+3221_daily_bin90.fits outfile=/scratch/kocevski/287016/ft1_filteredMKT_4FGL_J1310.5+3221_daily_bin90.fits ra=197.632 dec=32.3547 rad=12.0 tmin=262656001.0 tmax=262915201.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.44
user 1.26
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/287016/ft1_filtered_4FGL_J1310.5+3221_daily_bin90.fits" evtable="EVENTS" scfile=/scratch/kocevski/287016/ft2_4FGL_J1310.5+3221_daily_bin90.fits sctable="SC_DATA" outfile=/scratch/kocevski/287016/ltcube_262656001_262915201_4FGL_J1310.5+3221_daily_bin90.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/287016/ft2_4FGL_J1310.5+3221_daily_bin90.fits
.....................!
real 16.93
user 16.57
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/287016/ft1_filtered_4FGL_J1310.5+3221_daily_bin90.fits evtable="EVENTS" scfile=/scratch/kocevski/287016/ft2_4FGL_J1310.5+3221_daily_bin90.fits sctable="SC_DATA" expcube=/scratch/kocevski/287016/ltcube_262656001_262915201_4FGL_J1310.5+3221_daily_bin90.fits outfile=/scratch/kocevski/287016/expmap_262656001_262915201_4FGL_J1310.5+3221_daily_bin90.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/287016/ltcube_262656001_262915201_4FGL_J1310.5+3221_daily_bin90.fits
.....................!
real 192.28
user 186.40
sys 5.51

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/287016/ft1_filtered_4FGL_J1310.5+3221_daily_bin90.fits scfile=/scratch/kocevski/287016/ft2_4FGL_J1310.5+3221_daily_bin90.fits outfile=/scratch/kocevski/287016/cmap_262656001_262915201_4FGL_J1310.5+3221_daily_bin90.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.58
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/287016/ft1_filtered_4FGL_J1310.5+3221_daily_bin90.fits scfile=/scratch/kocevski/287016/ft2_4FGL_J1310.5+3221_daily_bin90.fits outfile=/scratch/kocevski/287016/cmap_HighResolution_262656001_262915201_4FGL_J1310.5+3221_daily_bin90.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.70
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.1020       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .13790E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.2270       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.7686       1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.0495       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .60537E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.9418       1.0000         .10000E-03   10000.    
    12 'Prefactor '    29.243       1.0000         .10000E-03   10000.    
    13 'norm      '    7.1833       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    12.074       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    14.233       1.0000         .10000E-03   10000.    
    18 'norm      '    .15663E-01   1.0000         .10000E-03   10000.    
    19 'norm      '    5.6121       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.2867       1.0000         .10000E-03   10000.    
    22 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    45.884       1.0000         .10000E-03   10000.    
    24 'norm      '    6.6064       1.0000         .10000E-03   10000.    
    25 'Prefactor '    39.476       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10265E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    4.0388       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.2073       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .51881       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=   4593.484     FROM MIGRAD    STATUS=CONVERGED    773 CALLS     3984 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.1022        3.2489       -.50871E-06   -.14335E-03
   2  Prefactor     .10005E-03    7.4493        .74494E-06** at limit **
   3  Prefactor     2.2269        2.3599        .14546E-06   -.22211E-03
   4  Prefactor     2.7687        2.2868       -.41705E-07   -.19243E-03
   5  norm          .10000E-03    1.6027        .40038E-07** at limit **
   6  Prefactor     .10000E-03    2.7212        .51023E-07** at limit **
   7  Prefactor     .10000E-03    10.459        .13556E-06** at limit **
   8  Prefactor     .10000E-03    16.749       -.22468E-05** at limit **
   9  Prefactor     5.0482        6.4771        .51430E-06   -.16297E-03
  10  Prefactor     .10054E-03    5.4015        .29579E-05** at limit **
  11  norm          1.9469        5.0810        .55244E-05   -.12603E-03
  12  Prefactor     29.195        37.877       -.32036E-04   -.12786E-03
  13  norm          7.1836        4.8459        .35285E-06   -.56953E-04
  14  Prefactor     .10000E-03    20.906        .63346E-05** at limit **
  15  norm          12.076        7.0758        .18691E-05   -.35790E-03
  16  norm          .10000E-03    6.4923       -.30435E-07** at limit **
  17  norm          14.245        7.0113        .24931E-05    .84053E-03
  18  norm          .10038E-03    11.381       -.14869E-05** at limit **
  19  norm          5.6087        17.685        .23739E-05   -.33773E-04
  20  Prefactor     .10000E-03    2.5822        .56446E-06** at limit **
  21  Prefactor     5.2912        15.310        .31164E-05   -.15188E-04
  22  norm          .10000E-03    3.4754       -.29399E-07** at limit **
  23  Prefactor     45.862        71.854       -.24570E-04   -.97944E-05
  24  norm          6.6073        10.447       -.11440E-05   -.88693E-04
  25  Prefactor     39.483        23.566       -.28050E-05   -.84581E-05
  26  Prefactor     .10000E-03    21.487        .36490E-05** at limit **
  27  Prefactor     .10000E-03    26.774       -.15699E-04** at limit **
  28  Prefactor     4.0393        3.3776       -.51086E-08   -.28752E-04
  29  Normalizat    1.2069        .20437        .51683E-05   -.56848E-03
  30  Prefactor     .51935        .23447       -.42880E-05   -.79071E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.10219
  Prefactor  = 0.000100054
  Prefactor  = 2.22692
  Prefactor  = 2.76867
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.04819
  Prefactor  = 0.000100541
  norm       = 1.9469
  Prefactor  = 29.1949
  norm       = 7.18359
  Prefactor  = 0.0001
  norm       = 12.0756
  norm       = 0.0001
  norm       = 14.2454
  norm       = 0.000100378
  norm       = 5.60869
  Prefactor  = 0.000100001
  Prefactor  = 5.29123
  norm       = 0.0001
  Prefactor  = 45.8622
  norm       = 6.60727
  Prefactor  = 39.4833
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.03932
  Normalizat = 1.20688
  Prefactor  = 0.519347
 **********
 **   18 **HESSE 
 **********

 FCN=   4593.484     FROM HESSE     STATUS=OK           606 CALLS     4590 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.1022        3.2627        .11164E-03   -1.5356    
   2  Prefactor     .10005E-03    30.797        .35432E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.2269        2.3618        .96160E-04   -1.5410    
   4  Prefactor     2.7687        2.2764        .88272E-04   -1.5375    
   5  norm          .10000E-03    1.6157        .83789E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.7243        .10919E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.468        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    16.748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.0482        6.4678        .17894E-03   -1.5259    
  10  Prefactor     .10054E-03    5.0322        .50805E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.9469        4.9711        .20792E-03   -1.5429    
  12  Prefactor     29.195        37.697        .74088E-04   -1.4627    
  13  norm          7.1836        4.8415        .11614E-03   -1.5172    
  14  Prefactor     .10000E-03    21.120        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          12.076        7.0569        .11529E-03   -1.5013    
  16  norm          .10000E-03    6.4974        .16867E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          14.245        7.4192        .91101E-04   -1.4953    
  18  norm          .10038E-03    15.825        .54700E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          5.6087        17.651        .16958E-03   -1.5234    
  20  Prefactor     .10000E-03    2.6115        .10591E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.2912        15.223        .17481E-03   -1.5248    
  22  norm          .10000E-03    3.4850        .12313E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     45.862        71.556        .59191E-04   -1.4352    
  24  norm          6.6073        10.419        .15613E-03   -1.5194    
  25  Prefactor     39.483        23.575        .63795E-04   -1.4450    
  26  Prefactor     .10000E-03    21.595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    26.751        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     4.0393        3.3747        .11012E-03   -1.5306    
  29  Normalizat    1.2069        .23041        .20549E-03   -.86391    
  30  Prefactor     .51935        .26225        .35657E-03   -1.1110    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.94983e-09
Minuit parameter uncertainties:
  1  3.26287
  2  0.00257293
  3  2.3619
  4  2.27648
  5  2.50621e-06
  6  1.85784e-06
  7  5.01266e-06
  8  1.8118e-05
  9  6.46867
  10  0.00329877
  11  4.97219
  12  37.7273
  13  4.84178
  14  4.38952e-05
  15  7.05741
  16  4.98272e-06
  17  7.41971
  18  0.00489295
  19  17.6677
  20  7.47585e-05
  21  15.234
  22  4.80486e-07
  23  71.6908
  24  10.4221
  25  23.5803
  26  4.73352e-05
  27  6.74536e-06
  28  3.37483
  29  0.230602
  30  0.262862
Done.

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

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  1.425e+01  7.420e+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.193e-01  2.629e-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.207e+00  2.306e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 17.94
Ra Dec: 197.632 32.355
Photon Index (Fixed Index): 2.42 +/- 0.00
Photon Flux (Fixed Index): 1.25e-07 +/- 6.50e-08
Energy Flux (Fixed Index): 4.47e-05 +/- 2.33e-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) = 4592.99739659
delta logL = 0.486818198965

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4592.9941634
delta logL = 0.490051391595

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.0924       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8176       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1692       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .55069       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=   4592.994     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      277 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.0921        7.4197        .60023E-04    .11374E-02
   2  alpha         2.8176        .47844        .40110E-02    .18862E-03
   3  Normalizat    1.1693        .22304        .20795E-03   -.58826E-04
   4  Prefactor     .55068        .25985        .34697E-03   -.11209E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.09207
  alpha      = 2.81761
  Normalizat = 1.16926
  Prefactor  = 0.550678
 **********
 **   18 **HESSE 
 **********

 FCN=   4592.994     FROM HESSE     STATUS=OK            25 CALLS      302 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.0921        6.3509        .24009E-05   -1.5175    
   2  alpha         2.8176        .41003        .16044E-03    .12739    
   3  Normalizat    1.1693        .22246        .41589E-04   -.87558    
   4  Prefactor     .55068        .25944        .13879E-04   -1.0970    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.02999e-10
Minuit parameter uncertainties:
  1  6.35147
  2  0.41192
  3  0.222638
  4  0.260007
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/287016': 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) = 4592.99416339
delta logL = 0.490051399875

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  7.092e+00  6.351e+00  1.000e-04  1.000e+04 ( 1.000e-13)
332        alpha:  2.818e+00  4.119e-01  0.000e+00  5.000e+00 ( 1.000e+00)
333         beta:  5.326e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
334           Eb:  2.155e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
597    Prefactor:  5.507e-01  2.600e-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.169e+00  2.226e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 19.11
Ra Dec: 197.632 32.355
Photon Index (Free Index): 2.82 +/- 0.41
Photon Flux (Free Index): 1.58e-07 +/- 6.23e-08
Energy Flux (Free Index): 3.87e-05 +/- 1.41e-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/287016/cmap_HighResolution_262656001_262915201_4FGL_J1310.5+3221_daily_bin90.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.25e-07', energy_flux2='3.87e-05', photon_flux_error='6.50e-08', dlogl='4.90e-01', energy_flux='4.47e-05', photon_flux2='1.58e-07', job_status='DONE', time_completed='2021-09-07 01:35:39.580873', photon_index_error2='0.41', photon_index2='2.82', ts='17.94', fit_tolerance='1e-08', GAL='0.52', photon_index_error='0.00', energy_flux_error2='1.41e-05', EG='1.21', time_epoch_completed='1631003739.58', return_code='0', job_id='287016', GAL2='0.55', EG2='1.17', return_code2='0', energy_flux_error='2.33e-05', photon_flux_error2='6.23e-08', ts2='19.11', photon_index='2.42' WHERE bin_id='90' AND source_name='4FGL J1310.5+3221' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:35:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0210>
Subject: Job 287016: <4FGL_J1310.5+3221_daily_bin90> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1310.5+3221_daily_bin90 197.632 32.3547 262656001 262915201 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 :                                   653.49 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             267.34 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   897 sec.
    Turnaround time :                            907 sec.

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

