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


Performing analysis on: 4FGL_J1310.5+3221_daily_bin86
RA = 197.632, Dec = 32.3547
tmin = 261619201, tmax = 261878401
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='287009', job_status='RUN', time_executed='2021-09-07 01:24:46.263240', time_epoch_executed='1631003086.26' WHERE source_name='4FGL J1310.5+3221' and cadence='daily' and bin_id='86'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/287009

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/287009/ft1_4FGL_J1310.5+3221_daily_bin86.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/287009/ft2_4FGL_J1310.5+3221_daily_bin86.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/287009/ft1_4FGL_J1310.5+3221_daily_bin86.fits outfile=/scratch/kocevski/287009/ft1_filteredMKT_4FGL_J1310.5+3221_daily_bin86.fits ra=197.632 dec=32.3547 rad=12.0 tmin=261619201.0 tmax=261878401.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.36
user 1.06
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/287009/ft2_4FGL_J1310.5+3221_daily_bin86.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/287009/ft1_filteredMKT_4FGL_J1310.5+3221_daily_bin86.fits evtable="EVENTS" outfile="/scratch/kocevski/287009/ft1_filtered_4FGL_J1310.5+3221_daily_bin86.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.52
user 0.29
sys 0.18

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/287009/ft1_filtered_4FGL_J1310.5+3221_daily_bin86.fits evtable="EVENTS" scfile=/scratch/kocevski/287009/ft2_4FGL_J1310.5+3221_daily_bin86.fits sctable="SC_DATA" expcube=/scratch/kocevski/287009/ltcube_261619201_261878401_4FGL_J1310.5+3221_daily_bin86.fits outfile=/scratch/kocevski/287009/expmap_261619201_261878401_4FGL_J1310.5+3221_daily_bin86.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/287009/ltcube_261619201_261878401_4FGL_J1310.5+3221_daily_bin86.fits
.....................!
real 156.86
user 152.52
sys 3.81

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/287009/ft1_filtered_4FGL_J1310.5+3221_daily_bin86.fits scfile=/scratch/kocevski/287009/ft2_4FGL_J1310.5+3221_daily_bin86.fits outfile=/scratch/kocevski/287009/cmap_261619201_261878401_4FGL_J1310.5+3221_daily_bin86.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.95
user 0.34
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/287009/ft1_filtered_4FGL_J1310.5+3221_daily_bin86.fits scfile=/scratch/kocevski/287009/ft2_4FGL_J1310.5+3221_daily_bin86.fits outfile=/scratch/kocevski/287009/cmap_HighResolution_261619201_261878401_4FGL_J1310.5+3221_daily_bin86.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.63
user 0.35
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1425       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.8064       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .85288       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.9474       1.0000         .10000E-03   10000.    
     5 'norm      '    1.4293       1.0000         .10000E-03   10000.    
     6 'Prefactor '    16.662       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.427       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.8198       1.0000         .10000E-03   10000.    
    11 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    26.490       1.0000         .10000E-03   10000.    
    13 'norm      '    14.138       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    24.313       1.0000         .10000E-03   10000.    
    16 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    7.7199       1.0000         .10000E-03   10000.    
    18 'norm      '    .23620E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    11.916       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    4.7114       1.0000         .10000E-03   10000.    
    23 'Prefactor '    28.523       1.0000         .10000E-03   10000.    
    24 'norm      '    11.320       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    16.689       1.0000         .10000E-03   10000.    
    27 'Prefactor '    26.807       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .84640       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .98766       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .78025       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=   7005.569     FROM MIGRAD    STATUS=CONVERGED    768 CALLS     3950 TOTAL
                     EDM=   .95E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1425        1.2355       -.78954E-08    .77804E-04
   2  Prefactor     6.8062        7.9413        .27091E-06   -.37593E-04
   3  Prefactor     .85285        1.1864        .59473E-07    .63460E-05
   4  Prefactor     4.9475        2.1232        .29304E-08   -.49016E-04
   5  norm          1.4294        3.3264        .74768E-06   -.13952E-03
   6  Prefactor     16.661        9.1926        .11724E-07   -.36784E-04
   7  Prefactor     .10000E-03    5.4061       -.89435E-07** at limit **
   8  Prefactor     .10000E-03    60.449       -.23798E-06** at limit **
   9  Prefactor     12.427        6.1307        .52746E-07    .10708E-04
  10  Prefactor     5.8198        4.4810       -.36601E-07   -.77034E-04
  11  norm          .10001E-03    2.7788        .84783E-06** at limit **
  12  Prefactor     26.500        27.194       -.15508E-05    .52514E-04
  13  norm          14.138        4.6271        .11100E-06    .18401E-03
  14  Prefactor     .10000E-03    5.8969        .11008E-06** at limit **
  15  norm          24.313        7.2045       -.21521E-07    .11192E-03
  16  norm          .10000E-03    13.909       -.73904E-06** at limit **
  17  norm          7.7053        4.0408        .94603E-06    .23981E-02
  18  norm          .10001E-03    5.4844       -.31572E-05** at limit **
  19  norm          11.916        18.901        .20848E-06    .49309E-05
  20  Prefactor     .10000E-03    1.6020        .23163E-07** at limit **
  21  Prefactor     .10000E-03    34.600        .53345E-06** at limit **
  22  norm          4.7111        5.0108        .21828E-06    .16453E-04
  23  Prefactor     28.531        36.974        .83348E-06    .65920E-04
  24  norm          11.319        8.0237        .93084E-07   -.55468E-05
  25  Prefactor     .10000E-03    11.344        .13828E-05** at limit **
  26  Prefactor     16.691        16.841        .49362E-06   -.82873E-04
  27  Prefactor     26.775        42.512       -.30228E-05   -.16691E-03
  28  Prefactor     .84628        3.7798        .19219E-05   -.27459E-03
  29  Normalizat    .98764        .15827       -.42887E-06   -.38726E-04
  30  Prefactor     .78030        .18638       -.96484E-06    .39363E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.14248
  Prefactor  = 6.8062
  Prefactor  = 0.852854
  Prefactor  = 4.9475
  norm       = 1.42942
  Prefactor  = 16.6611
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.4274
  Prefactor  = 5.81979
  norm       = 0.000100006
  Prefactor  = 26.4995
  norm       = 14.1376
  Prefactor  = 0.0001
  norm       = 24.313
  norm       = 0.0001
  norm       = 7.70532
  norm       = 0.000100014
  norm       = 11.916
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.71108
  Prefactor  = 28.531
  norm       = 11.3195
  Prefactor  = 0.0001
  Prefactor  = 16.6907
  Prefactor  = 26.7751
  Prefactor  = 0.846285
  Normalizat = 0.987645
  Prefactor  = 0.780299
 **********
 **   18 **HESSE 
 **********

 FCN=   7005.569     FROM HESSE     STATUS=OK           596 CALLS     4546 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1425        1.2462        .92701E-04   -1.5494    
   2  Prefactor     6.8062        7.9428        .15379E-03   -1.5186    
   3  Prefactor     .85285        1.1851        .50542E-04   -1.5523    
   4  Prefactor     4.9475        2.1215        .76562E-04   -1.5263    
   5  norm          1.4294        3.2982        .22393E-03   -1.5469    
   6  Prefactor     16.661        9.1885        .98118E-04   -1.4891    
   7  Prefactor     .10000E-03    5.4091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    60.584        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     12.427        6.1305        .11363E-03   -1.5003    
  10  Prefactor     5.8198        4.4812        .75209E-03   -1.5225    
  11  norm          .10001E-03    10.328        .23808E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     26.500        25.281        .77834E-04   -1.4678    
  13  norm          14.138        4.6265        .97378E-04   -1.4956    
  14  Prefactor     .10000E-03    5.9074        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          24.313        7.2008        .81239E-04   -1.4721    
  16  norm          .10000E-03    14.050        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          7.7053        4.0935        .56870E-03   -1.5153    
  18  norm          .10001E-03    9.9530        .31688E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          11.916        18.879        .11605E-03   -1.5017    
  20  Prefactor     .10000E-03    1.6268        .10324E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    35.506        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          4.7111        4.9973        .17828E-03   -1.5274    
  23  Prefactor     28.531        37.003        .75016E-04   -1.4639    
  24  norm          11.319        8.0172        .11907E-03   -1.5035    
  25  Prefactor     .10000E-03    11.652        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     16.691        16.832        .49020E-03   -1.4891    
  27  Prefactor     26.775        43.606        .77374E-04   -1.4673    
  28  Prefactor     .84628        3.8179        .29960E-03   -1.5524    
  29  Normalizat    .98764        .18670        .23029E-03   -.93445    
  30  Prefactor     .78030        .21766        .30985E-03   -1.0046    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.38938e-09
Minuit parameter uncertainties:
  1  1.24623
  2  7.944
  3  1.18508
  4  2.12154
  5  3.29864
  6  9.18926
  7  5.05531e-06
  8  0.000112121
  9  6.13084
  10  4.48146
  11  0.000499106
  12  25.2912
  13  4.6266
  14  1.25992e-05
  15  7.20102
  16  7.85853e-05
  17  4.09365
  18  0.000744573
  19  18.8889
  20  2.17155e-06
  21  1.60158e-05
  22  4.99772
  23  37.0323
  24  8.01796
  25  0.000101677
  26  16.8363
  27  43.6575
  28  3.59518
  29  0.186821
  30  0.217904
Done.

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

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  7.705e+00  4.094e+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:  7.803e-01  2.179e-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:  9.876e-01  1.868e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.76
Ra Dec: 197.632 32.355
Photon Index (Fixed Index): 2.42 +/- 0.00
Photon Flux (Fixed Index): 6.75e-08 +/- 3.58e-08
Energy Flux (Fixed Index): 2.42e-05 +/- 1.28e-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) = 7005.56877987
delta logL = 0.000458880210317

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7005.56773021
delta logL = 0.00150853785726

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.0083       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3969       1.0000          .0000       5.0000    
     3 'Normalizat'    .98949       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77889       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=   7005.568     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      207 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.0166        68.637        .35421E-02    .16544E-03
   2  alpha         2.3967        3.5828        .21023        .88998E-04
   3  Normalizat    .98962        .77315E-01    .46035E-01    .81151E-05
   4  Prefactor     .77874        .69212E-01    .70088E-01    .18669E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.01664
  alpha      = 2.39672
  Normalizat = 0.989625
  Prefactor  = 0.778736
 **********
 **   18 **HESSE 
 **********

 FCN=   7005.568     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.0166        7.8298        .11651E-03   -1.5142    
   2  alpha         2.3967        .56314        .76374E-02   -.41325E-01
   3  Normalizat    .98962        .18181        .23009E-03   -.93379    
   4  Prefactor     .77874        .21609        .31013E-03   -1.0052    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10165e-11
Minuit parameter uncertainties:
  1  7.83084
  2  0.56802
  3  0.181924
  4  0.216324
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/287009': 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) = 7005.56772861
delta logL = 0.00151014475341

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  8.017e+00  7.831e+00  1.000e-04  1.000e+04 ( 1.000e-13)
332        alpha:  2.397e+00  5.680e-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:  7.787e-01  2.163e-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:  9.896e-01  1.819e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.74
Ra Dec: 197.632 32.355
Photon Index (Free Index): 2.40 +/- 0.57
Photon Flux (Free Index): 6.59e-08 +/- 4.52e-08
Energy Flux (Free Index): 2.45e-05 +/- 1.45e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/287009/cmap_HighResolution_261619201_261878401_4FGL_J1310.5+3221_daily_bin86.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.75e-08', energy_flux2='2.45e-05', photon_flux_error='3.58e-08', dlogl='1.51e-03', energy_flux='2.42e-05', photon_flux2='6.59e-08', job_status='DONE', time_completed='2021-09-07 01:36:02.948309', photon_index_error2='0.57', photon_index2='2.40', ts='7.76', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', energy_flux_error2='1.45e-05', EG='0.99', time_epoch_completed='1631003762.95', return_code='0', job_id='287009', GAL2='0.78', EG2='0.99', return_code2='0', energy_flux_error='1.28e-05', photon_flux_error2='4.52e-08', ts2='7.74', photon_index='2.42' WHERE bin_id='86' AND source_name='4FGL J1310.5+3221' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:36:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 287009: <4FGL_J1310.5+3221_daily_bin86> in cluster <slac> Done

Job <4FGL_J1310.5+3221_daily_bin86> 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) <bullet0071>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 01:20:41 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:41 2021
Terminated at Tue Sep  7 01:36:03 2021
Results reported at Tue Sep  7 01:36:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1310.5+3221_daily_bin86 197.632 32.3547 261619201 261878401 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 :                                   669.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             293.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   922 sec.
    Turnaround time :                            930 sec.

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

