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


Performing analysis on: 4FGL_J1310.5+3221_daily_bin993
RA = 197.632, Dec = 32.3547
tmin = 496713601, tmax = 496972801
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='291771', job_status='RUN', time_executed='2021-09-07 01:37:36.434021', time_epoch_executed='1631003856.43' WHERE source_name='4FGL J1310.5+3221' and cadence='daily' and bin_id='993'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/291771

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/291771/ft1_4FGL_J1310.5+3221_daily_bin993.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/291771/ft2_4FGL_J1310.5+3221_daily_bin993.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/291771/ft1_4FGL_J1310.5+3221_daily_bin993.fits outfile=/scratch/kocevski/291771/ft1_filteredMKT_4FGL_J1310.5+3221_daily_bin993.fits ra=197.632 dec=32.3547 rad=12.0 tmin=496713601.0 tmax=496972801.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.99
user 4.68
sys 0.23

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/291771/ft1_filtered_4FGL_J1310.5+3221_daily_bin993.fits" evtable="EVENTS" scfile=/scratch/kocevski/291771/ft2_4FGL_J1310.5+3221_daily_bin993.fits sctable="SC_DATA" outfile=/scratch/kocevski/291771/ltcube_496713601_496972801_4FGL_J1310.5+3221_daily_bin993.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/291771/ft2_4FGL_J1310.5+3221_daily_bin993.fits
.....................!
real 13.94
user 13.51
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/291771/ft1_filtered_4FGL_J1310.5+3221_daily_bin993.fits evtable="EVENTS" scfile=/scratch/kocevski/291771/ft2_4FGL_J1310.5+3221_daily_bin993.fits sctable="SC_DATA" expcube=/scratch/kocevski/291771/ltcube_496713601_496972801_4FGL_J1310.5+3221_daily_bin993.fits outfile=/scratch/kocevski/291771/expmap_496713601_496972801_4FGL_J1310.5+3221_daily_bin993.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/291771/ltcube_496713601_496972801_4FGL_J1310.5+3221_daily_bin993.fits
.....................!
real 191.45
user 186.02
sys 4.85

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/291771/ft1_filtered_4FGL_J1310.5+3221_daily_bin993.fits scfile=/scratch/kocevski/291771/ft2_4FGL_J1310.5+3221_daily_bin993.fits outfile=/scratch/kocevski/291771/cmap_496713601_496972801_4FGL_J1310.5+3221_daily_bin993.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=197.632 yref=32.3547 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.58
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/291771/ft1_filtered_4FGL_J1310.5+3221_daily_bin993.fits scfile=/scratch/kocevski/291771/ft2_4FGL_J1310.5+3221_daily_bin993.fits outfile=/scratch/kocevski/291771/cmap_HighResolution_496713601_496972801_4FGL_J1310.5+3221_daily_bin993.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.56
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    15.394       1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.7850       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    13.391       1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.308       1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.083       1.0000         .10000E-03   10000.    
     8 'Prefactor '    97.187       1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.379       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    6.4573       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10687E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .12984E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    24.058       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    5.0774       1.0000         .10000E-03   10000.    
    23 'Prefactor '    14.299       1.0000         .10000E-03   10000.    
    24 'norm      '    8.7296       1.0000         .10000E-03   10000.    
    25 'Prefactor '    17.206       1.0000         .10000E-03   10000.    
    26 'Prefactor '    14.941       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .84257       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1597       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=   4719.986     FROM MIGRAD    STATUS=CONVERGED    739 CALLS     3900 TOTAL
                     EDM=   .97E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          15.389        5.6491        .77606E-07   -.13915E-03
   2  Prefactor     9.7841        9.9252        .44099E-07    .10100E-04
   3  Prefactor     .10000E-03    3.7638        .72211E-06** at limit **
   4  Prefactor     .10000E-03    1.8832       -.59228E-07** at limit **
   5  norm          13.390        7.5671        .36946E-07    .13187E-04
   6  Prefactor     12.303        13.300       -.27757E-06   -.15283E-03
   7  Prefactor     13.082        15.174       -.18857E-06   -.41145E-04
   8  Prefactor     97.180        103.41       -.40487E-05   -.82313E-04
   9  Prefactor     12.380        7.3816       -.30459E-07   -.73171E-04
  10  Prefactor     .10000E-03    2.5441        .97246E-08** at limit **
  11  norm          6.4572        5.7052        .17790E-05   -.89921E-03
  12  Prefactor     .10000E-03    9.7486        .11350E-05** at limit **
  13  norm          .10000E-03    3.2115        .59583E-06** at limit **
  14  Prefactor     .10000E-03    6.9469       -.11412E-05** at limit **
  15  norm          .10000E-03    5.0160        .11085E-05** at limit **
  16  norm          .10000E-03    7.0437       -.17122E-05** at limit **
  17  norm          .10000E-03    1.8702       -.10627E-05** at limit **
  18  norm          .10000E-03    3.8928        .11525E-06** at limit **
  19  norm          24.058        25.315        .34321E-07   -.29321E-05
  20  Prefactor     .10000E-03    1.2629       -.45180E-07** at limit **
  21  Prefactor     .10000E-03    4.4794       -.81012E-06** at limit **
  22  norm          5.0769        5.4545        .79654E-06   -.47105E-03
  23  Prefactor     14.296        48.661       -.16788E-05   -.46285E-04
  24  norm          8.7287        11.767       -.44691E-06   -.72482E-04
  25  Prefactor     17.206        20.199        .14181E-06   -.67820E-04
  26  Prefactor     14.937        30.949       -.18592E-05   -.18953E-03
  27  Prefactor     .10000E-03    26.813       -.29999E-06** at limit **
  28  Prefactor     .10000E-03    5.7506        .13504E-05** at limit **
  29  Normalizat    .84259        .20055        .50528E-06   -.84235E-04
  30  Prefactor     1.1597        .24103       -.34908E-06   -.47315E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 15.389
  Prefactor  = 9.78407
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 13.3901
  Prefactor  = 12.3029
  Prefactor  = 13.0821
  Prefactor  = 97.1801
  Prefactor  = 12.3801
  Prefactor  = 0.0001
  norm       = 6.45722
  Prefactor  = 0.000100001
  norm       = 0.000100001
  Prefactor  = 0.000100001
  norm       = 0.000100001
  norm       = 0.000100002
  norm       = 0.000100003
  norm       = 0.0001
  norm       = 24.0585
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.07687
  Prefactor  = 14.2957
  norm       = 8.72872
  Prefactor  = 17.2061
  Prefactor  = 14.9372
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 0.842595
  Prefactor  = 1.15972
 **********
 **   18 **HESSE 
 **********

 FCN=   4719.986     FROM HESSE     STATUS=OK           592 CALLS     4492 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          15.389        5.5474        .93701E-04   -1.4923    
   2  Prefactor     9.7841        9.9226        .12810E-03   -1.5082    
   3  Prefactor     .10000E-03    3.9163        .25926E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.2021        .18010E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          13.390        7.5562        .10946E-03   -1.4976    
   6  Prefactor     12.303        13.276        .11418E-03   -1.5006    
   7  Prefactor     13.082        15.176        .11074E-03   -1.4984    
   8  Prefactor     97.180        103.58        .40774E-04   -1.3733    
   9  Prefactor     12.380        7.3762        .11385E-03   -1.5004    
  10  Prefactor     .10000E-03    2.5494        .10701E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          6.4572        6.1322        .76124E-03   -1.5200    
  12  Prefactor     .10000E-03    9.9151        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    6.4505        .23359E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.1184        .17888E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    5.2748        .30336E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    7.3884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    4.4286        .17249E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    4.0057        .26402E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          24.058        25.174        .81668E-04   -1.4727    
  20  Prefactor     .10000E-03    1.2696        .75347E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.5521        .14308E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          5.0769        5.5234        .76272E-03   -1.5257    
  23  Prefactor     14.296        48.810        .10592E-03   -1.4952    
  24  norm          8.7287        11.738        .13567E-03   -1.5117    
  25  Prefactor     17.206        20.163        .96555E-04   -1.4878    
  26  Prefactor     14.937        31.372        .10362E-03   -1.4935    
  27  Prefactor     .10000E-03    26.833        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    6.0908        .32400E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .84259        .24072        .25518E-03   -.98508    
  30  Prefactor     1.1597        .29026        .27093E-03   -.87580    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.7848e-09
Minuit parameter uncertainties:
  1  5.54759
  2  9.92423
  3  6.6323e-05
  4  3.74883e-06
  5  7.5567
  6  13.279
  7  15.1807
  8  103.776
  9  7.37675
  10  1.94547e-07
  11  6.13281
  12  0.000206446
  13  0.000139967
  14  0.000173682
  15  0.000128756
  16  0.000260553
  17  0.000245958
  18  3.80279e-05
  19  25.1855
  20  8.51992e-07
  21  9.26037e-05
  22  5.52391
  23  48.9466
  24  11.7413
  25  20.1705
  26  31.4069
  27  9.10773e-05
  28  0.00014794
  29  0.241025
  30  0.290657
Done.

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

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  1.000e-04  2.460e-04  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.160e+00  2.907e-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.426e-01  2.410e-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: 5.42e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.94e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/291771/likelihoodResults_496713601_496972801_4FGL_J1310.5+3221_daily_bin993.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) = 4719.98752484
delta logL = -0.00107853269856

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4719.98644346
delta logL = 2.8549156923e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3319       1.0000          .0000       5.0000    
     3 'Normalizat'    .84282       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1595       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=   4719.986     FROM MIGRAD    STATUS=FAILED       102 CALLS      267 TOTAL
                     EDM=   .33E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .11857E-03    153.00        .20851E-02** at limit **
   2  alpha         2.0178        2.5170        .50000        .13172E-04
   3  Normalizat    .84260        .14318E-01    .25518E-03    .11891E-03
   4  Prefactor     1.1597        .17624E-01    .27093E-03    .75698E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4719.986     FROM SIMPLEX   STATUS=PROGRESS     117 CALLS      384 TOTAL
                     EDM=   .75E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .11294E-03    153.00        .64557E-03** at limit **
   2  alpha         2.0172        2.5170        .33126E-03    .13172E-04
   3  Normalizat    .84259        .14318E-01    .34899E-05    .11891E-03
   4  Prefactor     1.1597        .17624E-01    .41465E-05    .75698E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4719.986     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      445 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.2506        .59749E-01** at limit **
   2  alpha         1.9230        3.4011        .50000        .25382E-05
   3  Normalizat    .84260        .31013E-02    .10207E-04    .39874E-04
   4  Prefactor     1.1597        .38173E-02    .10837E-04    .39863E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  alpha      = 1.92304
  Normalizat = 0.842596
  Prefactor  = 1.15971
 **********
 **   18 **HESSE 
 **********

 FCN=   4719.986     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      474 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    170.77        .22700E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9230        3.3528        .50000       -.23289    
   3  Normalizat    .84260        .14603E-01    .20414E-05   -.98508    
   4  Prefactor     1.1597        .17980E-01    .21675E-05   -.87580    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.11611e-07
Minuit parameter uncertainties:
  1  0.000621806
  2  303.973
  3  0.0146034
  4  0.0179799
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/291771': 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): 102
logL (Free Index) = 4719.98643784
delta logL = 8.47573573992e-06

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  1.000e-04  6.218e-04  1.000e-04  1.000e+04 ( 1.000e-13)
332        alpha:  1.923e+00  3.040e+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:  1.160e+00  1.798e-02  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.426e-01  1.460e-02  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/291771/cmap_HighResolution_496713601_496972801_4FGL_J1310.5+3221_daily_bin993.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.94e-05', job_status='DONE', photon_flux_upper_limit='5.42e-08', time_completed='2021-09-07 01:50:05.750670', job_id='291771', GAL2='1.16', fit_tolerance='1e-08', EG2='0.84', EG='0.84', time_epoch_completed='1631004605.75', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='8.48e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.42' WHERE bin_id='993' AND source_name='4FGL J1310.5+3221' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:50:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0142>
Subject: Job 291771: <4FGL_J1310.5+3221_daily_bin993> in cluster <slac> Done

Job <4FGL_J1310.5+3221_daily_bin993> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep  7 01:35:55 2021
Job was executed on host(s) <bullet0142>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 01:37:18 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:37:18 2021
Terminated at Tue Sep  7 01:50:06 2021
Results reported at Tue Sep  7 01:50:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1310.5+3221_daily_bin993 197.632 32.3547 496713601 496972801 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 :                                   745.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             332.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   768 sec.
    Turnaround time :                            851 sec.

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

