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


Performing analysis on: 4FGL_J1310.5+3221_daily_bin1079
RA = 197.632, Dec = 32.3547
tmin = 519004801, tmax = 519264001
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='291958', job_status='RUN', time_executed='2021-09-07 01:38:23.295307', time_epoch_executed='1631003903.3' WHERE source_name='4FGL J1310.5+3221' and cadence='daily' and bin_id='1079'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/291958

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/291958/ft1_4FGL_J1310.5+3221_daily_bin1079.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/291958/ft2_4FGL_J1310.5+3221_daily_bin1079.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/291958/ft1_4FGL_J1310.5+3221_daily_bin1079.fits outfile=/scratch/kocevski/291958/ft1_filteredMKT_4FGL_J1310.5+3221_daily_bin1079.fits ra=197.632 dec=32.3547 rad=12.0 tmin=519004801.0 tmax=519264001.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 3.78
user 3.35
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/291958/ft2_4FGL_J1310.5+3221_daily_bin1079.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/291958/ft1_filteredMKT_4FGL_J1310.5+3221_daily_bin1079.fits evtable="EVENTS" outfile="/scratch/kocevski/291958/ft1_filtered_4FGL_J1310.5+3221_daily_bin1079.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 1.45
user 0.36
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/291958/ft1_filtered_4FGL_J1310.5+3221_daily_bin1079.fits" evtable="EVENTS" scfile=/scratch/kocevski/291958/ft2_4FGL_J1310.5+3221_daily_bin1079.fits sctable="SC_DATA" outfile=/scratch/kocevski/291958/ltcube_519004801_519264001_4FGL_J1310.5+3221_daily_bin1079.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/291958/ft2_4FGL_J1310.5+3221_daily_bin1079.fits
.....................!
real 16.07
user 15.07
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/291958/ft1_filtered_4FGL_J1310.5+3221_daily_bin1079.fits evtable="EVENTS" scfile=/scratch/kocevski/291958/ft2_4FGL_J1310.5+3221_daily_bin1079.fits sctable="SC_DATA" expcube=/scratch/kocevski/291958/ltcube_519004801_519264001_4FGL_J1310.5+3221_daily_bin1079.fits outfile=/scratch/kocevski/291958/expmap_519004801_519264001_4FGL_J1310.5+3221_daily_bin1079.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/291958/ltcube_519004801_519264001_4FGL_J1310.5+3221_daily_bin1079.fits
.....................!
real 192.19
user 186.02
sys 4.80

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/291958/ft1_filtered_4FGL_J1310.5+3221_daily_bin1079.fits scfile=/scratch/kocevski/291958/ft2_4FGL_J1310.5+3221_daily_bin1079.fits outfile=/scratch/kocevski/291958/cmap_519004801_519264001_4FGL_J1310.5+3221_daily_bin1079.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.57
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/291958/ft1_filtered_4FGL_J1310.5+3221_daily_bin1079.fits scfile=/scratch/kocevski/291958/ft2_4FGL_J1310.5+3221_daily_bin1079.fits outfile=/scratch/kocevski/291958/cmap_HighResolution_519004801_519264001_4FGL_J1310.5+3221_daily_bin1079.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.57
user 0.38
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.7842       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.7665       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.2567       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.1502       1.0000         .10000E-03   10000.    
     5 'norm      '    14.606       1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.004       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    22.409       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    7.2787       1.0000         .10000E-03   10000.    
    12 'Prefactor '    87.041       1.0000         .10000E-03   10000.    
    13 'norm      '    .10649E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.471       1.0000         .10000E-03   10000.    
    15 'norm      '    2.7260       1.0000         .10000E-03   10000.    
    16 'norm      '    .10996E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10078E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.1009       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10152E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.3643       1.0000         .10000E-03   10000.    
    23 'Prefactor '    19.905       1.0000         .10000E-03   10000.    
    24 'norm      '    11.459       1.0000         .10000E-03   10000.    
    25 'Prefactor '    9.1133       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .28076E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .58965E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .84911       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0634       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .71406       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=   5648.122     FROM MIGRAD    STATUS=CONVERGED    766 CALLS     3940 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.7848        3.7027       -.16668E-08   -.81661E-05
   2  Prefactor     4.7665        4.9248        .31424E-09    .37750E-05
   3  Prefactor     2.2566        1.8985       -.15333E-07   -.51667E-05
   4  Prefactor     3.1502        2.1393        .12588E-08    .67591E-05
   5  norm          14.606        6.6542       -.10321E-07    .43665E-05
   6  Prefactor     12.004        8.7221        .14537E-07   -.50735E-07
   7  Prefactor     .10000E-03    6.1689        .77566E-09** at limit **
   8  Prefactor     .10000E-03    29.157       -.85862E-06** at limit **
   9  Prefactor     22.406        11.309        .25521E-06    .86505E-04
  10  Prefactor     .10000E-03    2.8362       -.79161E-07** at limit **
  11  norm          7.2743        5.1525        .26585E-06    .12805E-04
  12  Prefactor     87.068        33.669       -.10823E-05   -.13426E-03
  13  norm          .10000E-03    2.4921       -.20297E-06** at limit **
  14  Prefactor     16.463        15.229        .19207E-06   -.10036E-04
  15  norm          2.7272        3.7195        .13778E-06    .42485E-04
  16  norm          .10000E-03    18.574       -.60609E-06** at limit **
  17  norm          .10000E-03    1.1494        .39255E-06** at limit **
  18  norm          .10000E-03    1.5643        .14189E-06** at limit **
  19  norm          .10000E-03    13.620        .23018E-06** at limit **
  20  Prefactor     2.1009        2.7853        .25373E-06    .11063E-03
  21  Prefactor     .10000E-03    12.077       -.49773E-06** at limit **
  22  norm          1.3524        11.917       -.16477E-05    .42175E-04
  23  Prefactor     19.904        52.779       -.58798E-07   -.66684E-05
  24  norm          11.465        10.879        .61962E-06    .48572E-04
  25  Prefactor     9.1045        11.220        .85409E-06    .65062E-04
  26  Prefactor     .10000E-03    172.66       -.99108E-05** at limit **
  27  Prefactor     .10000E-03    267.15       -.84291E-05** at limit **
  28  Prefactor     .84559        3.3535       -.18233E-06   -.45250E-04
  29  Normalizat    1.0637        .18859       -.13899E-05    .12724E-03
  30  Prefactor     .71371        .22057        .27593E-05   -.63920E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.78481
  Prefactor  = 4.76646
  Prefactor  = 2.25663
  Prefactor  = 3.15022
  norm       = 14.606
  Prefactor  = 12.004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.4063
  Prefactor  = 0.0001
  norm       = 7.27432
  Prefactor  = 87.0682
  norm       = 0.0001
  Prefactor  = 16.4626
  norm       = 2.72716
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 2.10092
  Prefactor  = 0.0001
  norm       = 1.35244
  Prefactor  = 19.9036
  norm       = 11.4647
  Prefactor  = 9.10446
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.845589
  Normalizat = 1.06369
  Prefactor  = 0.71371
 **********
 **   18 **HESSE 
 **********

 FCN=   5648.122     FROM HESSE     STATUS=OK           600 CALLS     4540 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.7848        3.7072        .88465E-04   -1.5115    
   2  Prefactor     4.7665        4.9246        .16507E-03   -1.5271    
   3  Prefactor     2.2566        1.9058        .89751E-04   -1.5408    
   4  Prefactor     3.1502        2.1384        .87300E-04   -1.5353    
   5  norm          14.606        6.6531        .10480E-03   -1.4943    
   6  Prefactor     12.004        8.7192        .11562E-03   -1.5015    
   7  Prefactor     .10000E-03    6.1735        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    29.173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     22.406        11.245        .84615E-04   -1.4761    
  10  Prefactor     .10000E-03    2.8472        .12350E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          7.2743        5.1572        .13144E-03   -1.5168    
  12  Prefactor     87.068        34.340        .21531E-03   -1.3839    
  13  norm          .10000E-03    5.2110        .22858E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     16.463        15.169        .98686E-04   -1.4896    
  15  norm          2.7272        3.7036        .16049E-03   -1.5378    
  16  norm          .10000E-03    18.804        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.1749        .79227E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.5678        .91855E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    13.659        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.1009        2.7566        .13241E-03   -1.5418    
  21  Prefactor     .10000E-03    12.182        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.3524        12.272        .18683E-02   -1.5475    
  23  Prefactor     19.904        52.594        .89775E-04   -1.4815    
  24  norm          11.465        11.006        .11834E-03   -1.5031    
  25  Prefactor     9.1045        11.159        .13276E-03   -1.5104    
  26  Prefactor     .10000E-03    169.36        .67179E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    271.63        .42146E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .84559        5.5079        .24905E-02   -1.5524    
  29  Normalizat    1.0637        .20454        .21789E-03   -.90926    
  30  Prefactor     .71371        .23969        .31551E-03   -1.0299    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.99811e-08
Minuit parameter uncertainties:
  1  3.70734
  2  4.92498
  3  1.90582
  4  2.13841
  5  6.65341
  6  8.72016
  7  1.67883e-06
  8  3.57238e-05
  9  11.2457
  10  4.97987e-07
  11  5.15748
  12  34.3479
  13  2.86078e-05
  14  15.1724
  15  3.70389
  16  3.09585e-05
  17  9.60998e-06
  18  3.83495e-06
  19  4.06603e-06
  20  2.75681
  21  1.42493e-05
  22  8.14975
  23  52.7166
  24  11.0082
  25  11.162
  26  0.000495884
  27  0.00209707
  28  4.31653
  29  0.204691
  30  0.240037
Done.

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

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  1.000e-04  9.610e-06  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.137e-01  2.400e-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.064e+00  2.047e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 197.632 32.355
Photon Flux Upper Limit: 4.86e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.74e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/291958/likelihoodResults_519004801_519264001_4FGL_J1310.5+3221_daily_bin1079.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): 102
logL (Free Index) = 5648.12632738
delta logL = -0.00396522926803

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5648.12236168
delta logL = 4.78789843328e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10170E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3982       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0637       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71374       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=   5648.122     FROM MIGRAD    STATUS=CONVERGED     71 CALLS      218 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    44.164        .90712E-02** at limit **
   2  alpha         1.5093        2.7313        .41195       -.24175E-07
   3  Normalizat    1.0637        .19211E-01    .39721E-01   -.14213E-05
   4  Prefactor     .71371        .23338E-01    .71291E-01    .17622E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.50932
  Normalizat = 1.06368
  Prefactor  = 0.713713
 **********
 **   18 **HESSE 
 **********

 FCN=   5648.122     FROM HESSE     STATUS=OK            31 CALLS      249 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    14.063        .10578E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.5093        4.1973        .16478       -.40745    
   3  Normalizat    1.0637        .19537        .21789E-03   -.90926    
   4  Prefactor     .71371        .23677        .31551E-03   -1.0299    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.28071e-10
Minuit parameter uncertainties:
  1  6.07708e-05
  2  398.637
  3  0.1955
  4  0.237105
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/291958': 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) = 5648.12234367
delta logL = 1.84892051038e-05

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  1.000e-04  6.077e-05  1.000e-04  1.000e+04 ( 1.000e-13)
332        alpha:  1.509e+00  3.986e+02  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.137e-01  2.371e-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.064e+00  1.955e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 197.632 32.355

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/291958/cmap_HighResolution_519004801_519264001_4FGL_J1310.5+3221_daily_bin1079.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.74e-05', job_status='DONE', photon_flux_upper_limit='4.86e-08', time_completed='2021-09-07 01:52:16.780111', job_id='291958', GAL2='0.71', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1631004736.78', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='1.85e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.42' WHERE bin_id='1079' AND source_name='4FGL J1310.5+3221' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:52:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 291958: <4FGL_J1310.5+3221_daily_bin1079> in cluster <slac> Done

Job <4FGL_J1310.5+3221_daily_bin1079> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep  7 01:36:19 2021
Job was executed on host(s) <bullet0043>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 01:38:08 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:38:08 2021
Terminated at Tue Sep  7 01:52:17 2021
Results reported at Tue Sep  7 01:52:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1310.5+3221_daily_bin1079 197.632 32.3547 519004801 519264001 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 :                                   826.53 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             324.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   849 sec.
    Turnaround time :                            958 sec.

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

