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


Performing analysis on: 4FGL_J1310.5+3221_daily_bin700
RA = 197.632, Dec = 32.3547
tmin = 420768001, tmax = 421027201
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='290007', job_status='RUN', time_executed='2021-09-07 01:33:02.368740', time_epoch_executed='1631003582.37' WHERE source_name='4FGL J1310.5+3221' and cadence='daily' and bin_id='700'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/290007

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/290007/ft1_4FGL_J1310.5+3221_daily_bin700.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/290007/ft2_4FGL_J1310.5+3221_daily_bin700.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/290007/ft1_4FGL_J1310.5+3221_daily_bin700.fits outfile=/scratch/kocevski/290007/ft1_filteredMKT_4FGL_J1310.5+3221_daily_bin700.fits ra=197.632 dec=32.3547 rad=12.0 tmin=420768001.0 tmax=421027201.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.01
user 3.28
sys 0.20

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/290007/ft1_filtered_4FGL_J1310.5+3221_daily_bin700.fits" evtable="EVENTS" scfile=/scratch/kocevski/290007/ft2_4FGL_J1310.5+3221_daily_bin700.fits sctable="SC_DATA" outfile=/scratch/kocevski/290007/ltcube_420768001_421027201_4FGL_J1310.5+3221_daily_bin700.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/290007/ft2_4FGL_J1310.5+3221_daily_bin700.fits
.....................!
real 17.07
user 15.80
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/290007/ft1_filtered_4FGL_J1310.5+3221_daily_bin700.fits evtable="EVENTS" scfile=/scratch/kocevski/290007/ft2_4FGL_J1310.5+3221_daily_bin700.fits sctable="SC_DATA" expcube=/scratch/kocevski/290007/ltcube_420768001_421027201_4FGL_J1310.5+3221_daily_bin700.fits outfile=/scratch/kocevski/290007/expmap_420768001_421027201_4FGL_J1310.5+3221_daily_bin700.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/290007/ltcube_420768001_421027201_4FGL_J1310.5+3221_daily_bin700.fits
.....................!
real 196.20
user 189.66
sys 5.38

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/290007/ft1_filtered_4FGL_J1310.5+3221_daily_bin700.fits scfile=/scratch/kocevski/290007/ft2_4FGL_J1310.5+3221_daily_bin700.fits outfile=/scratch/kocevski/290007/cmap_420768001_421027201_4FGL_J1310.5+3221_daily_bin700.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.39
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .13698E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.400       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.4889       1.0000         .10000E-03   10000.    
     5 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.1190       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.7195       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.7968       1.0000         .10000E-03   10000.    
    12 'Prefactor '    42.723       1.0000         .10000E-03   10000.    
    13 'norm      '    2.0225       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10266E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    28.295       1.0000         .10000E-03   10000.    
    17 'norm      '    5.1161       1.0000         .10000E-03   10000.    
    18 'norm      '    44.884       1.0000         .10000E-03   10000.    
    19 'norm      '    10.948       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.6084       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    18.004       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    17.652       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    30.355       1.0000         .10000E-03   10000.    
    28 'Prefactor '    2.1586       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.3150       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .42864       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=   5723.999     FROM MIGRAD    STATUS=CONVERGED    756 CALLS     3898 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.9575        .18458E-06** at limit **
   2  Prefactor     15.407        10.069       -.97142E-08   -.39300E-04
   3  Prefactor     .10000E-03    1.4857        .41270E-07** at limit **
   4  Prefactor     1.4897        1.6025        .17584E-07   -.25543E-04
   5  norm          .10000E-03    5.2250        .14755E-07** at limit **
   6  Prefactor     .10000E-03    2.6902        .67608E-08** at limit **
   7  Prefactor     7.1174        10.084        .15797E-06   -.14562E-04
   8  Prefactor     .10000E-03    18.802        .21067E-06** at limit **
   9  Prefactor     6.7192        6.0841        .27217E-07   -.98414E-05
  10  Prefactor     .10000E-03    4.6113        .21571E-06** at limit **
  11  norm          2.8023        5.6843        .40347E-05   -.53116E-03
  12  Prefactor     42.724        36.370       -.44870E-05   -.10205E-03
  13  norm          2.0218        4.7700        .26380E-06   -.36087E-04
  14  Prefactor     .10000E-03    19.961       -.32269E-06** at limit **
  15  norm          .10000E-03    2.3346        .58980E-07** at limit **
  16  norm          28.295        15.351        .27772E-07   -.79181E-05
  17  norm          5.0902        9.3292        .29313E-05    .33811E-03
  18  norm          44.911        18.402       -.20018E-05   -.23773E-03
  19  norm          10.947        16.834        .21193E-07   -.52328E-05
  20  Prefactor     1.6098        2.3404       -.35770E-07   -.20178E-03
  21  Prefactor     .10000E-03    10.906       -.77191E-06** at limit **
  22  norm          18.005        9.3971       -.26768E-08   -.14356E-04
  23  Prefactor     .10000E-03    14.560        .70193E-06** at limit **
  24  norm          17.653        11.988        .20169E-07   -.63074E-05
  25  Prefactor     .10000E-03    7.9979        .25074E-06** at limit **
  26  Prefactor     .10000E-03    36.388       -.67038E-06** at limit **
  27  Prefactor     30.337        44.922        .25594E-05    .15213E-04
  28  Prefactor     2.1591        3.5665        .85660E-08   -.47531E-04
  29  Normalizat    1.3145        .19123        .65346E-06    .79169E-04
  30  Prefactor     .42926        .22567       -.21746E-05   -.55409E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 15.4069
  Prefactor  = 0.0001
  Prefactor  = 1.48968
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.11737
  Prefactor  = 0.0001
  Prefactor  = 6.71921
  Prefactor  = 0.0001
  norm       = 2.80228
  Prefactor  = 42.7242
  norm       = 2.02184
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 28.2953
  norm       = 5.09018
  norm       = 44.9112
  norm       = 10.9474
  Prefactor  = 1.60982
  Prefactor  = 0.0001
  norm       = 18.005
  Prefactor  = 0.0001
  norm       = 17.6533
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.3374
  Prefactor  = 2.15912
  Normalizat = 1.31453
  Prefactor  = 0.429261
 **********
 **   18 **HESSE 
 **********

 FCN=   5723.999     FROM HESSE     STATUS=OK           588 CALLS     4486 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.8556        .20376E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     15.407        10.081        .10206E-03   -1.4923    
   3  Prefactor     .10000E-03    1.5174        .17955E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.4897        1.5895        .96030E-04   -1.5464    
   5  norm          .10000E-03    5.4325        .33750E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.6923        .12118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.1174        10.076        .75172E-03   -1.5174    
   8  Prefactor     .10000E-03    18.802        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.7192        6.0762        .15479E-03   -1.5189    
  10  Prefactor     .10000E-03    4.7067        .15859E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.8023        5.7562        .10794E-02   -1.5373    
  12  Prefactor     42.724        36.347        .61332E-04   -1.4400    
  13  norm          2.0218        4.7328        .23486E-03   -1.5424    
  14  Prefactor     .10000E-03    20.229        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.3472        .11286E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          28.295        15.345        .75316E-04   -1.4644    
  17  norm          5.0902        9.4454        .17775E-03   -1.5257    
  18  norm          44.911        18.562        .59844E-04   -1.4367    
  19  norm          10.947        16.799        .12109E-03   -1.5046    
  20  Prefactor     1.6098        2.3090        .13337E-03   -1.5454    
  21  Prefactor     .10000E-03    11.071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          18.005        9.4046        .94392E-04   -1.4859    
  23  Prefactor     .10000E-03    14.546        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          17.653        12.001        .95329E-04   -1.4867    
  25  Prefactor     .10000E-03    8.0118        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    36.787        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     30.337        44.666        .72721E-04   -1.4606    
  28  Prefactor     2.1591        3.5448        .17530E-03   -1.5414    
  29  Normalizat    1.3145        .20650        .20371E-03   -.83134    
  30  Prefactor     .42926        .23917        .40111E-03   -1.1534    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.89213e-10
Minuit parameter uncertainties:
  1  5.15824e-06
  2  10.0817
  3  1.52517e-06
  4  1.58955
  5  1.76462e-05
  6  9.68897e-07
  7  10.0789
  8  4.86959e-06
  9  6.07672
  10  1.62094e-05
  11  5.75731
  12  36.3655
  13  4.7337
  14  2.94517e-05
  15  6.13241e-06
  16  15.3474
  17  9.44818
  18  18.5641
  19  16.8058
  20  2.30908
  21  2.31694e-05
  22  9.40532
  23  8.84146e-06
  24  12.0022
  25  2.91106e-06
  26  2.86901e-05
  27  44.715
  28  3.54511
  29  0.206628
  30  0.239725
Done.

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

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  5.090e+00  9.448e+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:  4.293e-01  2.397e-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.315e+00  2.066e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.78
Ra Dec: 197.632 32.355
Photon Flux Upper Limit: 1.44e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.17e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/290007/likelihoodResults_420768001_421027201_4FGL_J1310.5+3221_daily_bin700.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): 0
logL (Free Index) = 5723.99337888
delta logL = 0.00568251795175

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5723.98134681
delta logL = 0.017714588118

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.7172       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5922       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3095       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .43371       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.

 FCN=   5723.981     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      253 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.7181        14.719        .15501E-03    .41035E-03
   2  alpha         2.5921        1.5381        .10721E-01    .83378E-04
   3  Normalizat    1.3097        .20372        .20401E-03    .27458E-03
   4  Prefactor     .43357        .23716        .39928E-03    .14416E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.7181
  alpha      = 2.59205
  Normalizat = 1.3097
  Prefactor  = 0.433567
 **********
 **   18 **HESSE 
 **********

 FCN=   5723.981     FROM HESSE     STATUS=OK            25 CALLS      278 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.7181        8.4279        .62003E-05   -1.5322    
   2  alpha         2.5921        .92456        .42885E-03    .36829E-01
   3  Normalizat    1.3097        .20227        .40801E-04   -.83277    
   4  Prefactor     .43357        .23536        .15971E-04   -1.1513    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.24176e-10
Minuit parameter uncertainties:
  1  8.43055
  2  0.947078
  3  0.202391
  4  0.235888
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/290007': 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) = 5723.98134623
delta logL = 0.0177151760654

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
597    Prefactor:  4.336e-01  2.359e-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.310e+00  2.024e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.78
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/290007/cmap_HighResolution_420768001_421027201_4FGL_J1310.5+3221_daily_bin700.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.17e-05', job_status='DONE', photon_flux_upper_limit='1.44e-07', time_completed='2021-09-07 01:47:05.825805', job_id='290007', GAL2='0.43', fit_tolerance='1e-08', EG2='1.31', EG='1.31', time_epoch_completed='1631004425.83', return_code2='0', ts='0.78', comment='SUCCESS', return_code='0', GAL='0.43', dlogl='1.77e-02', ts2='0.95', photon_index_error='0.00', photon_index='2.42' WHERE bin_id='700' AND source_name='4FGL J1310.5+3221' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:47:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0121>
Subject: Job 290007: <4FGL_J1310.5+3221_daily_bin700> in cluster <slac> Done

Job <4FGL_J1310.5+3221_daily_bin700> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep  7 01:30:57 2021
Job was executed on host(s) <bullet0121>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 01:31:15 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:31:15 2021
Terminated at Tue Sep  7 01:47:07 2021
Results reported at Tue Sep  7 01:47:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1310.5+3221_daily_bin700 197.632 32.3547 420768001 421027201 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 :                                   834.46 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             300.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   951 sec.
    Turnaround time :                            970 sec.

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

