/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 11 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 = 7627
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1310.5+3221_daily_bin1167
RA = 197.632, Dec = 32.3547
tmin = 541814401, tmax = 542073601
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='293441', job_status='RUN', time_executed='2021-09-07 01:43:49.124135', time_epoch_executed='1631004229.12' WHERE source_name='4FGL J1310.5+3221' and cadence='daily' and bin_id='1167'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/293441

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/293441/ft1_4FGL_J1310.5+3221_daily_bin1167.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/293441/ft2_4FGL_J1310.5+3221_daily_bin1167.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/293441/ft1_4FGL_J1310.5+3221_daily_bin1167.fits outfile=/scratch/kocevski/293441/ft1_filteredMKT_4FGL_J1310.5+3221_daily_bin1167.fits ra=197.632 dec=32.3547 rad=12.0 tmin=541814401.0 tmax=542073601.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 4.52
user 3.50
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/293441/ft2_4FGL_J1310.5+3221_daily_bin1167.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/293441/ft1_filteredMKT_4FGL_J1310.5+3221_daily_bin1167.fits evtable="EVENTS" outfile="/scratch/kocevski/293441/ft1_filtered_4FGL_J1310.5+3221_daily_bin1167.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.72
user 0.35
sys 0.17

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/293441/ft1_filtered_4FGL_J1310.5+3221_daily_bin1167.fits evtable="EVENTS" scfile=/scratch/kocevski/293441/ft2_4FGL_J1310.5+3221_daily_bin1167.fits sctable="SC_DATA" expcube=/scratch/kocevski/293441/ltcube_541814401_542073601_4FGL_J1310.5+3221_daily_bin1167.fits outfile=/scratch/kocevski/293441/expmap_541814401_542073601_4FGL_J1310.5+3221_daily_bin1167.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/293441/ltcube_541814401_542073601_4FGL_J1310.5+3221_daily_bin1167.fits
.....................!
real 195.08
user 187.31
sys 4.61

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/293441/ft1_filtered_4FGL_J1310.5+3221_daily_bin1167.fits scfile=/scratch/kocevski/293441/ft2_4FGL_J1310.5+3221_daily_bin1167.fits outfile=/scratch/kocevski/293441/cmap_541814401_542073601_4FGL_J1310.5+3221_daily_bin1167.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.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/293441/ft1_filtered_4FGL_J1310.5+3221_daily_bin1167.fits scfile=/scratch/kocevski/293441/ft2_4FGL_J1310.5+3221_daily_bin1167.fits outfile=/scratch/kocevski/293441/cmap_HighResolution_541814401_542073601_4FGL_J1310.5+3221_daily_bin1167.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.59
user 0.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.2199       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.9995       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.0480       1.0000         .10000E-03   10000.    
     5 'norm      '    5.4073       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.0342       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10445E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    75.644       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.2218       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.9326       1.0000         .10000E-03   10000.    
    11 'norm      '    16.117       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.9070       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.1333       1.0000         .10000E-03   10000.    
    15 'norm      '    15.346       1.0000         .10000E-03   10000.    
    16 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10455E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    25.662       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.2709       1.0000         .10000E-03   10000.    
    24 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    8.9671       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    10.863       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0769       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .78246       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=   5335.377     FROM MIGRAD    STATUS=CONVERGED    727 CALLS     3268 TOTAL
                     EDM=   .91E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.2198        3.4496       -.14939E-06    .10673E-03
   2  Prefactor     .10000E-03    4.6299       -.38207E-05** at limit **
   3  Prefactor     2.9994        2.0667       -.59710E-07    .17289E-03
   4  Prefactor     3.0478        2.2205       -.13335E-06    .48559E-04
   5  norm          5.4072        4.8515       -.45171E-06   -.33422E-04
   6  Prefactor     5.0334        11.272       -.19812E-05   -.99249E-04
   7  Prefactor     .10000E-03    39.034        .68274E-05** at limit **
   8  Prefactor     75.642        62.043       -.19745E-05    .35083E-04
   9  Prefactor     7.2217        8.5661       -.14726E-05   -.10001E-03
  10  Prefactor     2.9317        3.4146       -.14766E-06    .14426E-03
  11  norm          16.119        6.5991        .26159E-05    .27365E-03
  12  Prefactor     7.8729        20.873       -.44715E-04   -.18541E-04
  13  norm          .10000E-03    .95046       -.53075E-07** at limit **
  14  Prefactor     5.1298        16.592       -.28300E-05   -.81508E-05
  15  norm          15.348        8.0922        .69624E-06    .17095E-03
  16  norm          .10000E-03    8.0385       -.12065E-05** at limit **
  17  norm          .10000E-03    3.0511       -.90800E-06** at limit **
  18  norm          .10000E-03    3.3140        .19719E-05** at limit **
  19  norm          25.661        17.305       -.87951E-06    .68874E-05
  20  Prefactor     .10000E-03    1.9522       -.43344E-06** at limit **
  21  Prefactor     .10000E-03    7.5497       -.43048E-06** at limit **
  22  norm          .10000E-03    1.7292        .28126E-08** at limit **
  23  Prefactor     7.2989        107.11        .93130E-04    .38835E-04
  24  norm          .10000E-03    5.1668        .35405E-05** at limit **
  25  Prefactor     8.9640        16.021       -.42026E-05   -.45283E-05
  26  Prefactor     .10000E-03    8.5191       -.41359E-06** at limit **
  27  Prefactor     10.791        92.776       -.20100E-03    .23632E-04
  28  Prefactor     .10000E-03    1.3967       -.42966E-07** at limit **
  29  Normalizat    1.0769        .17950        .87428E-05   -.13904E-03
  30  Prefactor     .78236        .21243       -.47195E-06    .31238E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.21981
  Prefactor  = 0.0001
  Prefactor  = 2.99941
  Prefactor  = 3.04784
  norm       = 5.40719
  Prefactor  = 5.03335
  Prefactor  = 0.0001
  Prefactor  = 75.6425
  Prefactor  = 7.2217
  Prefactor  = 2.93174
  norm       = 16.1185
  Prefactor  = 7.87291
  norm       = 0.0001
  Prefactor  = 5.12984
  norm       = 15.3475
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 25.6614
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 7.29891
  norm       = 0.0001
  Prefactor  = 8.96399
  Prefactor  = 0.0001
  Prefactor  = 10.7911
  Prefactor  = 0.0001
  Normalizat = 1.07694
  Prefactor  = 0.782361
 **********
 **   18 **HESSE 
 **********

 FCN=   5335.377     FROM HESSE     STATUS=OK           588 CALLS     3856 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.2198        3.4484        .89889E-04   -1.5171    
   2  Prefactor     .10000E-03    4.6604        .15350E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.9994        2.0702        .83575E-04   -1.5362    
   4  Prefactor     3.0478        2.2168        .88777E-04   -1.5359    
   5  norm          5.4072        4.8495        .14728E-03   -1.5243    
   6  Prefactor     5.0334        11.237        .17922E-03   -1.5259    
   7  Prefactor     .10000E-03    39.530        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     75.642        62.049        .23083E-03   -1.3966    
   9  Prefactor     7.2217        8.5660        .14926E-03   -1.5170    
  10  Prefactor     2.9317        3.4110        .14116E-03   -1.5366    
  11  norm          16.119        6.5952        .99764E-04   -1.4905    
  12  Prefactor     7.8729        20.851        .14259E-03   -1.5147    
  13  norm          .10000E-03    .95310        .69538E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.1298        16.520        .17745E-03   -1.5255    
  15  norm          15.348        8.0483        .10224E-03   -1.4924    
  16  norm          .10000E-03    8.0601        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    3.1400        .24853E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    3.3448        .12983E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          25.661        17.306        .79078E-04   -1.4694    
  20  Prefactor     .10000E-03    1.9745        .99369E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    7.5783        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    1.7323        .93798E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     7.2989        106.77        .14875E-03   -1.5168    
  24  norm          .10000E-03    5.2610        .16207E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     8.9640        16.035        .13385E-03   -1.5109    
  26  Prefactor     .10000E-03    8.5274        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     10.791        93.320        .12156E-03   -1.5051    
  28  Prefactor     .10000E-03    1.4066        .84280E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0769        .21288        .21702E-03   -.90496    
  30  Prefactor     .78236        .25073        .30511E-03   -1.0038    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.27606e-09
Minuit parameter uncertainties:
  1  3.44846
  2  3.35352e-05
  3  2.07027
  4  2.2169
  5  4.84983
  6  11.2421
  7  0.000263311
  8  62.1017
  9  8.56741
  10  3.41123
  11  6.59547
  12  20.8698
  13  4.01452e-06
  14  16.535
  15  8.04887
  16  2.12737e-05
  17  7.4657e-05
  18  1.48069e-05
  19  17.3091
  20  6.77739e-05
  21  0.000144089
  22  8.45977e-06
  23  55.9523
  24  5.97228e-05
  25  16.0423
  26  2.37547e-05
  27  63.6008
  28  1.17769e-05
  29  0.213054
  30  0.251096
Done.

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

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  1.000e-04  7.466e-05  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.824e-01  2.511e-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.077e+00  2.131e-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: 6.88e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.46e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/293441/likelihoodResults_541814401_542073601_4FGL_J1310.5+3221_daily_bin1167.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) = 5335.37834218
delta logL = -0.0015194328671

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5335.37682286
delta logL = -1.12230736704e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4233       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0770       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78238       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5335.377     FROM MIGRAD    STATUS=FAILED        85 CALLS      236 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10009E-03    9.9196        .24860E-03** at limit **
   2  alpha         2.3731        2.8311        .50000        .14064E-05
   3  Normalizat    1.0769        .20323        .21702E-03   -.10692E-03
   4  Prefactor     .78235        .24806        .30511E-03   -.54326E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5335.377     FROM SIMPLEX   STATUS=UNCHANGED    133 CALLS      369 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10009E-03    9.9196        .31686E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3731        2.8311        .23305E-03   -.50762E-01
   3  Normalizat    1.0769        .20323        .17571E-04   -.90495    
   4  Prefactor     .78235        .24806        .17764E-04   -1.0038    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5335.377     FROM MIGRAD    STATUS=CONVERGED     36 CALLS      405 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.1927        .49720E-04** at limit **
   2  alpha         2.2450        3.0867        .50000       -.44088E-07
   3  Normalizat    1.0770        .20336        .43404E-04    .50390E-03
   4  Prefactor     .78235        .24827        .12205E-04    .24275E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.24496
  Normalizat = 1.07695
  Prefactor  = 0.78235
 **********
 **   18 **HESSE 
 **********

 FCN=   5335.377     FROM HESSE     STATUS=OK            29 CALLS      434 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.1556        .99439E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2450        3.7003        .50000       -.10219    
   3  Normalizat    1.0770        .20345        .86808E-05   -.90495    
   4  Prefactor     .78235        .24841        .24409E-05   -1.0038    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.11235e-10
Minuit parameter uncertainties:
  1  3.36749e-06
  2  278.448
  3  0.203595
  4  0.248768
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/293441': 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) = 5335.37682267
delta logL = 7.11715983925e-08

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  1.000e-04  3.367e-06  1.000e-04  1.000e+04 ( 1.000e-13)
332        alpha:  2.245e+00  2.784e+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.824e-01  2.488e-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.077e+00  2.036e-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/293441/cmap_HighResolution_541814401_542073601_4FGL_J1310.5+3221_daily_bin1167.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.46e-05', job_status='DONE', photon_flux_upper_limit='6.88e-08', time_completed='2021-09-07 01:56:58.917117', job_id='293441', GAL2='0.78', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1631005018.92', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='7.12e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.42' WHERE bin_id='1167' AND source_name='4FGL J1310.5+3221' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:56:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 293441: <4FGL_J1310.5+3221_daily_bin1167> in cluster <slac> Done

Job <4FGL_J1310.5+3221_daily_bin1167> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Sep  7 01:40:37 2021
Job was executed on host(s) <bullet0215>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 01:43:07 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:43:07 2021
Terminated at Tue Sep  7 01:56:59 2021
Results reported at Tue Sep  7 01:56:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1310.5+3221_daily_bin1167 197.632 32.3547 541814401 542073601 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 :                                   760.37 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             311.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   832 sec.
    Turnaround time :                            982 sec.

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

