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


Performing analysis on: 4FGL_J1310.5+3221_daily_bin58
RA = 197.632, Dec = 32.3547
tmin = 254361601, tmax = 254620801
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='285770', job_status='RUN', time_executed='2021-09-07 01:18:57.199418', time_epoch_executed='1631002737.2' WHERE source_name='4FGL J1310.5+3221' and cadence='daily' and bin_id='58'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/285770

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/285770/ft1_4FGL_J1310.5+3221_daily_bin58.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/285770/ft2_4FGL_J1310.5+3221_daily_bin58.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/285770/ft1_4FGL_J1310.5+3221_daily_bin58.fits outfile=/scratch/kocevski/285770/ft1_filteredMKT_4FGL_J1310.5+3221_daily_bin58.fits ra=197.632 dec=32.3547 rad=12.0 tmin=254361601.0 tmax=254620801.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.55
user 1.26
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/285770/ft1_filtered_4FGL_J1310.5+3221_daily_bin58.fits" evtable="EVENTS" scfile=/scratch/kocevski/285770/ft2_4FGL_J1310.5+3221_daily_bin58.fits sctable="SC_DATA" outfile=/scratch/kocevski/285770/ltcube_254361601_254620801_4FGL_J1310.5+3221_daily_bin58.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/285770/ft2_4FGL_J1310.5+3221_daily_bin58.fits
.....................!
real 18.74
user 18.31
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/285770/ft1_filtered_4FGL_J1310.5+3221_daily_bin58.fits evtable="EVENTS" scfile=/scratch/kocevski/285770/ft2_4FGL_J1310.5+3221_daily_bin58.fits sctable="SC_DATA" expcube=/scratch/kocevski/285770/ltcube_254361601_254620801_4FGL_J1310.5+3221_daily_bin58.fits outfile=/scratch/kocevski/285770/expmap_254361601_254620801_4FGL_J1310.5+3221_daily_bin58.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/285770/ltcube_254361601_254620801_4FGL_J1310.5+3221_daily_bin58.fits
.....................!
real 195.37
user 187.46
sys 3.96

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/285770/ft1_filtered_4FGL_J1310.5+3221_daily_bin58.fits scfile=/scratch/kocevski/285770/ft2_4FGL_J1310.5+3221_daily_bin58.fits outfile=/scratch/kocevski/285770/cmap_254361601_254620801_4FGL_J1310.5+3221_daily_bin58.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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/285770/ft1_filtered_4FGL_J1310.5+3221_daily_bin58.fits scfile=/scratch/kocevski/285770/ft2_4FGL_J1310.5+3221_daily_bin58.fits outfile=/scratch/kocevski/285770/cmap_HighResolution_254361601_254620801_4FGL_J1310.5+3221_daily_bin58.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.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.3346       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.4985       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.2147       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.4375       1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.285       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.9188       1.0000         .10000E-03   10000.    
    11 'norm      '    3.5525       1.0000         .10000E-03   10000.    
    12 'Prefactor '    23.583       1.0000         .10000E-03   10000.    
    13 'norm      '    1.8341       1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.249       1.0000         .10000E-03   10000.    
    15 'norm      '    7.8861       1.0000         .10000E-03   10000.    
    16 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    5.4152       1.0000         .10000E-03   10000.    
    18 'norm      '    3.5076       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.2894       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    49.093       1.0000         .10000E-03   10000.    
    24 'norm      '    20.870       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    10.850       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    1.0784       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .84723       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0383       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=   5481.914     FROM MIGRAD    STATUS=CONVERGED    740 CALLS     3859 TOTAL
                     EDM=   .74E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.3346        2.7378        .84695E-07    .81688E-04
   2  Prefactor     .10000E-03    2.1714        .12330E-06** at limit **
   3  Prefactor     1.4985        1.4440        .61439E-07    .19081E-03
   4  Prefactor     6.2148        2.7256       -.25145E-06    .22563E-05
   5  norm          .10000E-03    2.3424        .11392E-06** at limit **
   6  Prefactor     8.4375        11.048       -.36310E-06   -.88338E-04
   7  Prefactor     14.285        16.361       -.13201E-06   -.90104E-05
   8  Prefactor     .10000E-03    33.594        .35857E-04** at limit **
   9  Prefactor     .10000E-03    1.7687       -.38595E-06** at limit **
  10  Prefactor     8.9192        6.5493        .11046E-06   -.32139E-04
  11  norm          3.5522        3.4343       -.53524E-07   -.20475E-03
  12  Prefactor     23.583        18.787       -.77989E-07   -.35943E-04
  13  norm          1.8342        2.0078       -.48915E-07    .89188E-04
  14  Prefactor     10.246        18.388       -.15943E-05   -.36103E-04
  15  norm          7.8857        6.2354        .17150E-07   -.13395E-03
  16  norm          .10000E-03    20.279       -.11945E-04** at limit **
  17  norm          5.4148        3.6848        .35603E-07   -.14849E-03
  18  norm          3.5075        4.7859        .62170E-08   -.81778E-04
  19  norm          .10000E-03    11.717        .32971E-05** at limit **
  20  Prefactor     1.2904        3.6067        .11216E-05   -.61220E-03
  21  Prefactor     .10000E-03    3.5455        .85251E-07** at limit **
  22  norm          .10000E-03    5.2528        .24288E-06** at limit **
  23  Prefactor     49.080        64.321       -.16052E-04   -.63335E-05
  24  norm          20.871        9.5450       -.95477E-07   -.39145E-04
  25  Prefactor     .10000E-03    8.9054       -.15888E-05** at limit **
  26  Prefactor     10.852        17.425        .43688E-06    .37303E-05
  27  Prefactor     .10000E-03    45.314       -.30275E-04** at limit **
  28  Prefactor     1.0783        3.1971       -.16542E-05   -.99667E-03
  29  Normalizat    .84721        .17304        .17690E-05    .53532E-04
  30  Prefactor     1.0383        .20842        .16962E-06    .13476E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.3346
  Prefactor  = 0.0001
  Prefactor  = 1.49851
  Prefactor  = 6.21477
  norm       = 0.0001
  Prefactor  = 8.43745
  Prefactor  = 14.285
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.9192
  norm       = 3.55216
  Prefactor  = 23.5826
  norm       = 1.83419
  Prefactor  = 10.2458
  norm       = 7.88572
  norm       = 0.0001
  norm       = 5.41478
  norm       = 3.50749
  norm       = 0.0001
  Prefactor  = 1.2904
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 49.0798
  norm       = 20.8706
  Prefactor  = 0.0001
  Prefactor  = 10.8518
  Prefactor  = 0.0001
  Prefactor  = 1.07827
  Normalizat = 0.847206
  Prefactor  = 1.03832
 **********
 **   18 **HESSE 
 **********

 FCN=   5481.914     FROM HESSE     STATUS=OK           596 CALLS     4455 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.3346        2.7382        .84536E-04   -1.5246    
   2  Prefactor     .10000E-03    2.1739        .10655E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.4985        1.4628        .84134E-04   -1.5463    
   4  Prefactor     6.2148        2.7240        .76880E-04   -1.5209    
   5  norm          .10000E-03    2.3603        .11064E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.4375        11.037        .13801E-03   -1.5127    
   7  Prefactor     14.285        16.361        .10597E-03   -1.4952    
   8  Prefactor     .10000E-03    33.390        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.7707        .96165E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.9192        6.5398        .13421E-03   -1.5111    
  11  norm          3.5522        3.4263        .12903E-03   -1.5331    
  12  Prefactor     23.583        18.762        .82485E-04   -1.4736    
  13  norm          1.8342        2.0112        .10680E-03   -1.5437    
  14  Prefactor     10.246        18.381        .12516E-03   -1.5068    
  15  norm          7.8857        6.1787        .14278E-03   -1.5146    
  16  norm          .10000E-03    20.616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.4148        3.6992        .10287E-03   -1.5243    
  18  norm          3.5075        4.8149        .17066E-03   -1.5333    
  19  norm          .10000E-03    11.766        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.2904        3.4692        .19597E-03   -1.5481    
  21  Prefactor     .10000E-03    3.5467        .13609E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    5.3087        .16519E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     49.080        62.955        .57233E-04   -1.4306    
  24  norm          20.871        9.5221        .87676E-04   -1.4794    
  25  Prefactor     .10000E-03    8.9516        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     10.852        17.418        .12163E-03   -1.5049    
  27  Prefactor     .10000E-03    45.249        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     1.0783        3.2012        .21809E-03   -1.5500    
  29  Normalizat    .84721        .20913        .23701E-03   -.98341    
  30  Prefactor     1.0383        .25224        .26948E-03   -.91463    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.4221e-09
Minuit parameter uncertainties:
  1  2.7383
  2  1.81638e-06
  3  1.46287
  4  2.72407
  5  2.90326e-06
  6  11.0396
  7  16.366
  8  2.9611e-05
  9  1.39221e-06
  10  6.54034
  11  3.42653
  12  18.7668
  13  2.01126
  14  18.3912
  15  6.17915
  16  7.26259e-05
  17  3.69936
  18  4.81546
  19  1.74684e-05
  20  3.46976
  21  6.10618e-06
  22  1.21061e-05
  23  63.0404
  24  9.52276
  25  5.84559e-06
  26  17.4262
  27  3.51671e-05
  28  3.20166
  29  0.209326
  30  0.252529
Done.

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

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  5.415e+00  3.699e+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.038e+00  2.525e-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:  8.472e-01  2.093e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.75
Ra Dec: 197.632 32.355
Photon Index (Fixed Index): 2.42 +/- 0.00
Photon Flux (Fixed Index): 4.74e-08 +/- 3.24e-08
Energy Flux (Fixed Index): 1.70e-05 +/- 1.16e-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) = 5479.34527006
delta logL = 2.56846909647

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5479.1338055
delta logL = 2.77993365795

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.399       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.2236       1.0000          .0000       5.0000    
     3 'Normalizat'    .87820       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0228       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=   5479.134     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      213 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.390        7.2021        .31062E-02   -.12362E-02
   2  alpha         1.2225        .40778        .33548       -.23401E-04
   3  Normalizat    .87808        .16585        .44622E-01    .10006E-04
   4  Prefactor     1.0231        .20744        .61408E-01    .80493E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 10.3897
  alpha      = 1.22253
  Normalizat = 0.878082
  Prefactor  = 1.02305
 **********
 **   18 **HESSE 
 **********

 FCN=   5479.134     FROM HESSE     STATUS=OK            33 CALLS      246 TOTAL
                     EDM=   .40E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.390        8.5410        .62124E-03   -1.5063    
   2  alpha         1.2225        .51989        .13718E-01   -.53634    
   3  Normalizat    .87808        .20040        .23355E-03   -.97235    
   4  Prefactor     1.0231        .25076        .27157E-03   -.91965    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.00762e-12
Minuit parameter uncertainties:
  1  8.54196
  2  0.525096
  3  0.200568
  4  0.251043
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/285770': 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) = 5479.13380254
delta logL = 2.77993660962

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  1.039e+01  8.542e+00  1.000e-04  1.000e+04 ( 1.000e-13)
332        alpha:  1.223e+00  5.251e-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:  1.023e+00  2.510e-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:  8.781e-01  2.006e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.38
Ra Dec: 197.632 32.355
Photon Index (Free Index): 1.22 +/- 0.53
Photon Flux (Free Index): 1.30e-08 +/- 1.27e-08
Energy Flux (Free Index): 8.16e-05 +/- 8.47e-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/285770/cmap_HighResolution_254361601_254620801_4FGL_J1310.5+3221_daily_bin58.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.74e-08', energy_flux2='8.16e-05', photon_flux_error='3.24e-08', dlogl='2.78e+00', energy_flux='1.70e-05', photon_flux2='1.30e-08', job_status='DONE', time_completed='2021-09-07 01:30:45.274282', photon_index_error2='0.53', photon_index2='1.22', ts='6.75', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', energy_flux_error2='8.47e-05', EG='0.85', time_epoch_completed='1631003445.27', return_code='0', job_id='285770', GAL2='1.02', EG2='0.88', return_code2='0', energy_flux_error='1.16e-05', photon_flux_error2='1.27e-08', ts2='12.38', photon_index='2.42' WHERE bin_id='58' AND source_name='4FGL J1310.5+3221' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:30:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 285770: <4FGL_J1310.5+3221_daily_bin58> in cluster <slac> Done

Job <4FGL_J1310.5+3221_daily_bin58> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep  7 01:16:14 2021
Job was executed on host(s) <bullet0278>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 01:16:49 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:16:49 2021
Terminated at Tue Sep  7 01:30:46 2021
Results reported at Tue Sep  7 01:30:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1310.5+3221_daily_bin58 197.632 32.3547 254361601 254620801 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 :                                   701.37 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             312.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   836 sec.
    Turnaround time :                            872 sec.

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

