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


Performing analysis on: 4FGL_J1310.5+3221_daily_bin1127
RA = 197.632, Dec = 32.3547
tmin = 531446401, tmax = 531705601
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='293338', job_status='RUN', time_executed='2021-09-07 01:42:06.728801', time_epoch_executed='1631004126.73' WHERE source_name='4FGL J1310.5+3221' and cadence='daily' and bin_id='1127'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/293338

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/293338/ft1_4FGL_J1310.5+3221_daily_bin1127.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/293338/ft2_4FGL_J1310.5+3221_daily_bin1127.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/293338/ft1_4FGL_J1310.5+3221_daily_bin1127.fits outfile=/scratch/kocevski/293338/ft1_filteredMKT_4FGL_J1310.5+3221_daily_bin1127.fits ra=197.632 dec=32.3547 rad=12.0 tmin=531446401.0 tmax=531705601.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.72
user 3.41
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/293338/ft1_filtered_4FGL_J1310.5+3221_daily_bin1127.fits" evtable="EVENTS" scfile=/scratch/kocevski/293338/ft2_4FGL_J1310.5+3221_daily_bin1127.fits sctable="SC_DATA" outfile=/scratch/kocevski/293338/ltcube_531446401_531705601_4FGL_J1310.5+3221_daily_bin1127.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/293338/ft2_4FGL_J1310.5+3221_daily_bin1127.fits
.....................!
real 14.91
user 14.50
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/293338/ft1_filtered_4FGL_J1310.5+3221_daily_bin1127.fits evtable="EVENTS" scfile=/scratch/kocevski/293338/ft2_4FGL_J1310.5+3221_daily_bin1127.fits sctable="SC_DATA" expcube=/scratch/kocevski/293338/ltcube_531446401_531705601_4FGL_J1310.5+3221_daily_bin1127.fits outfile=/scratch/kocevski/293338/expmap_531446401_531705601_4FGL_J1310.5+3221_daily_bin1127.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/293338/ltcube_531446401_531705601_4FGL_J1310.5+3221_daily_bin1127.fits
.....................!
real 191.14
user 186.04
sys 4.29

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/293338/ft1_filtered_4FGL_J1310.5+3221_daily_bin1127.fits scfile=/scratch/kocevski/293338/ft2_4FGL_J1310.5+3221_daily_bin1127.fits outfile=/scratch/kocevski/293338/cmap_531446401_531705601_4FGL_J1310.5+3221_daily_bin1127.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.61
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/293338/ft1_filtered_4FGL_J1310.5+3221_daily_bin1127.fits scfile=/scratch/kocevski/293338/ft2_4FGL_J1310.5+3221_daily_bin1127.fits outfile=/scratch/kocevski/293338/cmap_HighResolution_531446401_531705601_4FGL_J1310.5+3221_daily_bin1127.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.68
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.714       1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.876       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.4131       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.8089       1.0000         .10000E-03   10000.    
     5 'norm      '    14.319       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    44.079       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11216E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10064E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    48.593       1.0000         .10000E-03   10000.    
    13 'norm      '    7.8022       1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.926       1.0000         .10000E-03   10000.    
    15 'norm      '    .10045E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    19.418       1.0000         .10000E-03   10000.    
    17 'norm      '    .23442       1.0000         .10000E-03   10000.    
    18 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.5677       1.0000         .10000E-03   10000.    
    22 'norm      '    .11021E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    9.9993       1.0000         .10000E-03   10000.    
    25 'Prefactor '    4.8669       1.0000         .10000E-03   10000.    
    26 'Prefactor '    21.474       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    4.3858       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1027       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .68114       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=   5732.917     FROM MIGRAD    STATUS=CONVERGED    749 CALLS     3950 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.714        5.0627       -.41164E-07    .26230E-04
   2  Prefactor     13.876        10.086        .32149E-07   -.45710E-04
   3  Prefactor     3.4132        2.4750       -.25050E-07    .26334E-04
   4  Prefactor     5.8091        2.7750        .11978E-07   -.83765E-06
   5  norm          14.319        5.8033       -.42574E-07    .28957E-04
   6  Prefactor     .10000E-03    5.4750       -.32034E-06** at limit **
   7  Prefactor     .10000E-03    6.4872        .46284E-06** at limit **
   8  Prefactor     44.073        65.402       -.24646E-05    .52288E-04
   9  Prefactor     .10000E-03    2.5234       -.11813E-06** at limit **
  10  Prefactor     .10000E-03    6.6080       -.12782E-06** at limit **
  11  norm          .10000E-03    2.1383       -.35037E-06** at limit **
  12  Prefactor     48.598        31.875        .27192E-05   -.41080E-04
  13  norm          7.8025        4.9133       -.98938E-06    .66269E-03
  14  Prefactor     11.924        16.945       -.77567E-06    .33712E-04
  15  norm          .10000E-03    1.8609       -.16486E-06** at limit **
  16  norm          19.417        16.036       -.29042E-06    .17300E-04
  17  norm          .21145        16.120       -.70820E-05   -.26730E-03
  18  norm          .10000E-03    4.5389       -.59162E-08** at limit **
  19  norm          .10000E-03    31.330       -.11103E-05** at limit **
  20  Prefactor     .10000E-03    1.6306       -.10263E-06** at limit **
  21  Prefactor     5.5686        15.534        .17841E-05    .56867E-04
  22  norm          .10007E-03    27.220       -.98995E-05** at limit **
  23  Prefactor     .10000E-03    20.828       -.38051E-07** at limit **
  24  norm          10.010        9.2776        .15433E-05    .66727E-03
  25  Prefactor     4.8660        21.025       -.51896E-07    .58465E-04
  26  Prefactor     21.472        28.375       -.11662E-05    .10655E-03
  27  Prefactor     .10000E-03    30.086        .35139E-05** at limit **
  28  Prefactor     4.3855        4.4180       -.23997E-06    .75115E-04
  29  Normalizat    1.1025        .18590        .11201E-05    .32065E-03
  30  Prefactor     .68142        .20660        .57460E-06    .24853E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 14.7144
  Prefactor  = 13.8761
  Prefactor  = 3.41316
  Prefactor  = 5.8091
  norm       = 14.3192
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 44.0733
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 48.598
  norm       = 7.80245
  Prefactor  = 11.9239
  norm       = 0.0001
  norm       = 19.4174
  norm       = 0.21145
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.56861
  norm       = 0.000100066
  Prefactor  = 0.0001
  norm       = 10.0101
  Prefactor  = 4.86605
  Prefactor  = 21.4716
  Prefactor  = 0.000100001
  Prefactor  = 4.38551
  Normalizat = 1.1025
  Prefactor  = 0.681415
 **********
 **   18 **HESSE 
 **********

 FCN=   5732.917     FROM HESSE     STATUS=OK           594 CALLS     4544 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.714        5.0650        .91458E-04   -1.4941    
   2  Prefactor     13.876        10.087        .10752E-03   -1.4963    
   3  Prefactor     3.4132        2.4768        .93918E-04   -1.5338    
   4  Prefactor     5.8091        2.7747        .83429E-04   -1.5226    
   5  norm          14.319        5.8032        .10585E-03   -1.4951    
   6  Prefactor     .10000E-03    5.4981        .17294E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.4815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     44.073        65.174        .60385E-04   -1.4379    
   9  Prefactor     .10000E-03    2.5356        .11745E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.6712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.1473        .10811E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     48.598        31.966        .57525E-04   -1.4313    
  13  norm          7.8025        4.8508        .62434E-03   -1.5149    
  14  Prefactor     11.924        16.882        .11600E-03   -1.5017    
  15  norm          .10000E-03    1.8662        .10085E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          19.417        16.040        .90891E-04   -1.4826    
  17  norm          .21145        28.716        .21242E-02   -1.5616    
  18  norm          .10000E-03    4.5629        .15714E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    31.901        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.6454        .94167E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.5686        15.581        .17026E-03   -1.5236    
  22  norm          .10007E-03    54.313        .27923E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    20.836        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          10.010        8.8599        .12672E-03   -1.5075    
  25  Prefactor     4.8660        20.648        .18234E-03   -1.5267    
  26  Prefactor     21.472        28.153        .86435E-04   -1.4781    
  27  Prefactor     .10000E-03    29.771        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     4.3855        4.4181        .15170E-03   -1.5289    
  29  Normalizat    1.1025        .21534        .22766E-03   -.89671    
  30  Prefactor     .68142        .23747        .32794E-03   -1.0426    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.31072e-09
Minuit parameter uncertainties:
  1  5.06518
  2  10.0886
  3  2.47689
  4  2.77473
  5  5.80347
  6  1.4568e-05
  7  2.53035e-05
  8  65.2799
  9  2.32554e-06
  10  3.78438e-06
  11  1.72799e-05
  12  31.9774
  13  4.85103
  14  16.889
  15  4.46697e-06
  16  16.0436
  17  4.92956
  18  2.15357e-05
  19  0.000101784
  20  1.07199e-05
  21  15.5926
  22  0.00377588
  23  7.62089e-06
  24  8.86104
  25  20.059
  26  28.17
  27  0.00035207
  28  4.41844
  29  0.215513
  30  0.237825
Done.

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

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  2.114e-01  4.930e+00  1.000e-04  1.000e+04 ( 1.000e-13)
332        alpha:  2.425e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
333         beta:  5.326e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
334           Eb:  2.155e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
597    Prefactor:  6.814e-01  2.378e-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.103e+00  2.155e-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: 9.30e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.33e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/293338/likelihoodResults_531446401_531705601_4FGL_J1310.5+3221_daily_bin1127.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) = 5732.73014782
delta logL = 0.187238407278

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5732.60221113
delta logL = 0.315175094979

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10424E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    4.8464       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0453       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72434       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=   5732.602     FROM MIGRAD    STATUS=FAILED       102 CALLS      317 TOTAL
                     EDM=   .37E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10146E-01    .82060        .95097E-05    .44472E-03
   2  alpha         4.8563        4.0391        .67360E-01   -.24638E-03
   3  Normalizat    1.0452        .16057        .23286E-03    .93738E-05
   4  Prefactor     .72438        .18029        .31887E-03    .39218E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5732.602     FROM SIMPLEX   STATUS=UNCHANGED     88 CALLS      405 TOTAL
                     EDM=   .81E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10146E-01    .82060        .12654E-04    .44472E-03
   2  alpha         4.8563        4.0391        .62057E-02   -.24638E-03
   3  Normalizat    1.0452        .16057        .13502E-03    .93738E-05
   4  Prefactor     .72438        .18029        .14790E-03    .39218E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5732.602     FROM MIGRAD    STATUS=CONVERGED     35 CALLS      440 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10146E-01    .83328        .38039E-06    .36839E-03
   2  alpha         4.8563        4.0433        .13472E-01    .41181E-06
   3  Normalizat    1.0452        .20542        .93144E-05    .12450E-04
   4  Prefactor     .72438        .23170        .12755E-04    .51697E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0101459
  alpha      = 4.85631
  Normalizat = 1.04521
  Prefactor  = 0.724379
 **********
 **   18 **HESSE 
 **********

 FCN=   5732.602     FROM HESSE     STATUS=OK            25 CALLS      465 TOTAL
                     EDM=   .37E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10146E-01    .15921        .37403E-06   -1.5688    
   2  alpha         4.8563        4.6991        .53888E-03    1.2301    
   3  Normalizat    1.0452        .21430        .18629E-05   -.91531    
   4  Prefactor     .72438        .24103        .25510E-05   -1.0258    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.66512e-13
Minuit parameter uncertainties:
  1  0.0799864
  2  2.85344
  3  0.214473
  4  0.241382
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/293338': 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) = 5732.60220418
delta logL = 0.315182047457

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  1.015e-02  7.999e-02  1.000e-04  1.000e+04 ( 1.000e-13)
332        alpha:  4.856e+00  2.853e+00  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.244e-01  2.414e-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.045e+00  2.145e-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/293338/cmap_HighResolution_531446401_531705601_4FGL_J1310.5+3221_daily_bin1127.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.33e-05', job_status='DONE', photon_flux_upper_limit='9.30e-08', time_completed='2021-09-07 01:55:58.329358', job_id='293338', GAL2='0.72', fit_tolerance='1e-08', EG2='1.05', EG='1.10', time_epoch_completed='1631004958.33', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.68', dlogl='3.15e-01', ts2='0.69', photon_index_error='0.00', photon_index='2.42' WHERE bin_id='1127' AND source_name='4FGL J1310.5+3221' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:55:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0025>
Subject: Job 293338: <4FGL_J1310.5+3221_daily_bin1127> in cluster <slac> Done

Job <4FGL_J1310.5+3221_daily_bin1127> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Sep  7 01:40:33 2021
Job was executed on host(s) <bullet0025>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 01:41:49 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 01:41:49 2021
Terminated at Tue Sep  7 01:55:59 2021
Results reported at Tue Sep  7 01:55:59 2021

Your job looked like:

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

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

