/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 20 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 = 7659
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1310.5+3221_daily_bin6
RA = 197.632, Dec = 32.3547
tmin = 240883201, tmax = 241142401
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='285672', job_status='RUN', time_executed='2021-09-07 01:17:10.754427', time_epoch_executed='1631002630.75' WHERE source_name='4FGL J1310.5+3221' and cadence='daily' and bin_id='6'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/285672

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/285672/ft1_4FGL_J1310.5+3221_daily_bin6.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/285672/ft2_4FGL_J1310.5+3221_daily_bin6.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/285672/ft1_4FGL_J1310.5+3221_daily_bin6.fits outfile=/scratch/kocevski/285672/ft1_filteredMKT_4FGL_J1310.5+3221_daily_bin6.fits ra=197.632 dec=32.3547 rad=12.0 tmin=240883201.0 tmax=241142401.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 1.51
user 1.33
sys 0.16

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/285672/ft1_filtered_4FGL_J1310.5+3221_daily_bin6.fits evtable="EVENTS" scfile=/scratch/kocevski/285672/ft2_4FGL_J1310.5+3221_daily_bin6.fits sctable="SC_DATA" expcube=/scratch/kocevski/285672/ltcube_240883201_241142401_4FGL_J1310.5+3221_daily_bin6.fits outfile=/scratch/kocevski/285672/expmap_240883201_241142401_4FGL_J1310.5+3221_daily_bin6.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/285672/ltcube_240883201_241142401_4FGL_J1310.5+3221_daily_bin6.fits
.....................!
real 189.77
user 185.20
sys 4.15

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/285672/ft1_filtered_4FGL_J1310.5+3221_daily_bin6.fits scfile=/scratch/kocevski/285672/ft2_4FGL_J1310.5+3221_daily_bin6.fits outfile=/scratch/kocevski/285672/cmap_240883201_241142401_4FGL_J1310.5+3221_daily_bin6.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/285672/ft1_filtered_4FGL_J1310.5+3221_daily_bin6.fits scfile=/scratch/kocevski/285672/ft2_4FGL_J1310.5+3221_daily_bin6.fits outfile=/scratch/kocevski/285672/cmap_HighResolution_240883201_241142401_4FGL_J1310.5+3221_daily_bin6.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/285672/ft1_filtered_4FGL_J1310.5+3221_daily_bin6.fits evtable="EVENTS" scfile=/scratch/kocevski/285672/ft2_4FGL_J1310.5+3221_daily_bin6.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/285672/Model_4FGL_J1310.5+3221_daily_bin6.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/285672/ft1_filtered_4FGL_J1310.5+3221_daily_bin6.fits.....................!
real 54.65
user 53.34
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.5660       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.6996       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.5428       1.0000         .10000E-03   10000.    
     5 'norm      '    .45743E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.815       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10634E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.7681       1.0000         .10000E-03   10000.    
    11 'norm      '    .20805       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .92023E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.7577       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .32775       1.0000         .10000E-03   10000.    
    16 'norm      '    16.519       1.0000         .10000E-03   10000.    
    17 'norm      '    26.164       1.0000         .10000E-03   10000.    
    18 'norm      '    .10637E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.0868       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11549E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.6045       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10116E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .21420E-01   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .11378E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .88670       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1850       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=   6711.291     FROM MIGRAD    STATUS=CONVERGED    831 CALLS     3451 TOTAL
                     EDM=   .89E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.5660        3.0907        .66331E-07   -.14684E-04
   2  Prefactor     6.6975        8.6332        .38696E-06   -.23586E-04
   3  Prefactor     .10000E-03    1.0434       -.69894E-07** at limit **
   4  Prefactor     8.5466        3.0444        .12909E-06   -.31930E-03
   5  norm          .10731E-03    20.475        .58040E-05** at limit **
   6  Prefactor     .10000E-03    11.183        .10767E-06** at limit **
   7  Prefactor     11.809        14.679        .27436E-06   -.21591E-04
   8  Prefactor     .10000E-03    20.438        .13447E-06** at limit **
   9  Prefactor     .10000E-03    5.9556       -.36215E-06** at limit **
  10  Prefactor     7.7681        6.6560        .10264E-05   -.11920E-03
  11  norm          .19522        3.0714        .79264E-06   -.26845E-03
  12  Prefactor     .10000E-03    94.155        .64995E-05** at limit **
  13  norm          4.7584        2.9911       -.22064E-06   -.14947E-03
  14  Prefactor     .10000E-03    5.7605       -.45490E-06** at limit **
  15  norm          .32714        4.8841        .94261E-06   -.12183E-03
  16  norm          16.503        12.298        .18934E-07    .49928E-05
  17  norm          26.158        5.5072        .14389E-06    .45525E-03
  18  norm          .10002E-03    9.0830       -.24003E-05** at limit **
  19  norm          3.0750        19.814        .52040E-06    .12434E-06
  20  Prefactor     .10000E-03    2.0400       -.56681E-07** at limit **
  21  Prefactor     .10000E-03    7.5439        .92403E-07** at limit **
  22  norm          1.6056        1.2672       -.68360E-07   -.29143E-03
  23  Prefactor     .10000E-03    12.014        .57048E-07** at limit **
  24  norm          .10000E-03    4.4763        .15581E-06** at limit **
  25  Prefactor     .10000E-03    4.7570        .35283E-07** at limit **
  26  Prefactor     .10045E-03    149.73       -.78931E-05** at limit **
  27  Prefactor     .10000E-03    50.618        .16471E-05** at limit **
  28  Prefactor     .10000E-03    6.0874       -.41729E-05** at limit **
  29  Normalizat    .88653        .16276       -.17962E-05   -.82194E-03
  30  Prefactor     1.1854        .20274       -.46692E-06   -.51509E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.56596
  Prefactor  = 6.69749
  Prefactor  = 0.0001
  Prefactor  = 8.54662
  norm       = 0.000107312
  Prefactor  = 0.0001
  Prefactor  = 11.809
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.7681
  norm       = 0.195221
  Prefactor  = 0.0001
  norm       = 4.75837
  Prefactor  = 0.0001
  norm       = 0.327138
  norm       = 16.5028
  norm       = 26.1583
  norm       = 0.000100019
  norm       = 3.07502
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.60564
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010045
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Normalizat = 0.886534
  Prefactor  = 1.18542
 **********
 **   18 **HESSE 
 **********

 FCN=   6711.291     FROM HESSE     STATUS=OK           600 CALLS     4051 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.5660        3.0811        .10305E-03   -1.5236    
   2  Prefactor     6.6975        8.6357        .15503E-03   -1.5190    
   3  Prefactor     .10000E-03    1.0546        .81416E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.5466        3.0427        .81502E-04   -1.5123    
   5  norm          .10731E-03    4.3287        .43175E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    11.388        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     11.809        14.673        .11654E-03   -1.5021    
   8  Prefactor     .10000E-03    20.442        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.0048        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.7681        6.6161        .71937E-03   -1.5150    
  11  norm          .19522        22.085        .23648E-02   -1.5620    
  12  Prefactor     .10000E-03    95.485        .41632E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.7584        2.9869        .10848E-03   -1.5272    
  14  Prefactor     .10000E-03    5.7797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .32714        5.0187        .34731E-03   -1.5594    
  16  norm          16.503        12.298        .98544E-04   -1.4895    
  17  norm          26.158        5.7574        .39159E-03   -1.4685    
  18  norm          .10002E-03    37.584        .36610E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.0750        20.719        .23084E-03   -1.5357    
  20  Prefactor     .10000E-03    2.1320        .22829E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    7.5886        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.6056        6.0418        .16729E-02   -1.5455    
  23  Prefactor     .10000E-03    12.016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    4.5145        .16932E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    4.7700        .17449E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10045E-03    163.86        .46421E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    50.628        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    6.4721        .20436E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .88653        .19286        .24881E-03   -.96935    
  30  Prefactor     1.1854        .24120        .27286E-03   -.86781    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.51425e-09
Minuit parameter uncertainties:
  1  3.08117
  2  8.63725
  3  8.98856e-07
  4  3.04274
  5  0.011253
  6  2.25082e-05
  7  14.6772
  8  1.92658e-06
  9  8.80574e-06
  10  6.61674
  11  4.15327
  12  0.000310908
  13  2.98699
  14  2.80033e-05
  15  2.56253
  16  12.2999
  17  5.75752
  18  0.00168293
  19  15.9715
  20  7.75369e-07
  21  3.14586e-06
  22  6.04412
  23  1.39258e-06
  24  2.871e-05
  25  4.34807e-06
  26  0.0172205
  27  0.000240877
  28  0.000284886
  29  0.193015
  30  0.241425
Done.

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

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  2.616e+01  5.758e+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:  1.185e+00  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:  8.865e-01  1.930e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 64.67
Ra Dec: 197.632 32.355
Photon Index (Fixed Index): 2.42 +/- 0.00
Photon Flux (Fixed Index): 2.29e-07 +/- 5.04e-08
Energy Flux (Fixed Index): 8.20e-05 +/- 1.81e-05

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) = 6711.24357008
delta logL = 0.0472204021607

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6711.23992856
delta logL = 0.0508619230932

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    29.302       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3556       1.0000          .0000       5.0000    
     3 'Normalizat'    .89912       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1745       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6000E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6711.240     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      237 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          29.312        85.701        .18503E-02    .22649E-03
   2  alpha         2.3556        1.4180        .79111E-01    .10796E-03
   3  Normalizat    .89891        .13990        .44890E-01    .44633E-05
   4  Prefactor     1.1748        .13273        .61939E-01    .54133E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 29.3122
  alpha      = 2.35556
  Normalizat = 0.898907
  Prefactor  = 1.17477
 **********
 **   18 **HESSE 
 **********

 FCN=   6711.240     FROM HESSE     STATUS=OK            31 CALLS      268 TOTAL
                     EDM=   .27E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          29.312        12.123        .37007E-03   -1.4625    
   2  alpha         2.3556        .21871        .34376E-03   -.57809E-01
   3  Normalizat    .89891        .19519        .24738E-03   -.96499    
   4  Prefactor     1.1748        .23980        .27394E-03   -.87111    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.73891e-13
Minuit parameter uncertainties:
  1  12.1244
  2  0.218995
  3  0.195348
  4  0.240018
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/285672': 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) = 6711.23992673
delta logL = 0.0508637513603

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  2.931e+01  1.212e+01  1.000e-04  1.000e+04 ( 1.000e-13)
332        alpha:  2.356e+00  2.190e-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:  1.175e+00  2.400e-01  0.000e+00  1.000e+01 ( 1.000e+00)
598        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
599        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
596   Normalization:  8.989e-01  1.953e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 64.38
Ra Dec: 197.632 32.355
Photon Index (Free Index): 2.36 +/- 0.22
Photon Flux (Free Index): 2.20e-07 +/- 5.64e-08
Energy Flux (Free Index): 8.62e-05 +/- 2.37e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/285672/cmap_HighResolution_240883201_241142401_4FGL_J1310.5+3221_daily_bin6.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.29e-07', energy_flux2='8.62e-05', photon_flux_error='5.04e-08', dlogl='5.09e-02', energy_flux='8.20e-05', photon_flux2='2.20e-07', job_status='DONE', time_completed='2021-09-07 01:29:42.035496', photon_index_error2='0.22', photon_index2='2.36', ts='64.67', fit_tolerance='1e-08', GAL='1.19', photon_index_error='0.00', energy_flux_error2='2.37e-05', EG='0.89', time_epoch_completed='1631003382.04', return_code='0', job_id='285672', GAL2='1.17', EG2='0.90', return_code2='0', energy_flux_error='1.81e-05', photon_flux_error2='5.64e-08', ts2='64.38', photon_index='2.42' WHERE bin_id='6' AND source_name='4FGL J1310.5+3221' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:29:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0158>
Subject: Job 285672: <4FGL_J1310.5+3221_daily_bin6> in cluster <slac> Done

Job <4FGL_J1310.5+3221_daily_bin6> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep  7 01:16:04 2021
Job was executed on host(s) <bullet0158>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 01:16:38 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:16:38 2021
Terminated at Tue Sep  7 01:29:43 2021
Results reported at Tue Sep  7 01:29:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1310.5+3221_daily_bin6 197.632 32.3547 240883201 241142401 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 :                                   748.19 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             328.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   39 MB
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   786 sec.
    Turnaround time :                            819 sec.

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

