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


Performing analysis on: 4FGL_J1310.5+3221_daily_bin1327
RA = 197.632, Dec = 32.3547
tmin = 583286401, tmax = 583545601
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='293716', job_status='RUN', time_executed='2021-09-07 01:45:01.891713', time_epoch_executed='1631004301.89' WHERE source_name='4FGL J1310.5+3221' and cadence='daily' and bin_id='1327'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/293716

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/293716/ft1_4FGL_J1310.5+3221_daily_bin1327.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/293716/ft2_4FGL_J1310.5+3221_daily_bin1327.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/293716/ft1_4FGL_J1310.5+3221_daily_bin1327.fits outfile=/scratch/kocevski/293716/ft1_filteredMKT_4FGL_J1310.5+3221_daily_bin1327.fits ra=197.632 dec=32.3547 rad=12.0 tmin=583286401.0 tmax=583545601.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.79
user 3.30
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/293716/ft1_filtered_4FGL_J1310.5+3221_daily_bin1327.fits evtable="EVENTS" scfile=/scratch/kocevski/293716/ft2_4FGL_J1310.5+3221_daily_bin1327.fits sctable="SC_DATA" expcube=/scratch/kocevski/293716/ltcube_583286401_583545601_4FGL_J1310.5+3221_daily_bin1327.fits outfile=/scratch/kocevski/293716/expmap_583286401_583545601_4FGL_J1310.5+3221_daily_bin1327.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/293716/ltcube_583286401_583545601_4FGL_J1310.5+3221_daily_bin1327.fits
.....................!
real 193.18
user 186.23
sys 4.51

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/293716/ft1_filtered_4FGL_J1310.5+3221_daily_bin1327.fits scfile=/scratch/kocevski/293716/ft2_4FGL_J1310.5+3221_daily_bin1327.fits outfile=/scratch/kocevski/293716/cmap_583286401_583545601_4FGL_J1310.5+3221_daily_bin1327.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.80
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/293716/ft1_filtered_4FGL_J1310.5+3221_daily_bin1327.fits scfile=/scratch/kocevski/293716/ft2_4FGL_J1310.5+3221_daily_bin1327.fits outfile=/scratch/kocevski/293716/cmap_HighResolution_583286401_583545601_4FGL_J1310.5+3221_daily_bin1327.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.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.3582       1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.642       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.1824       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .15969E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    29.433       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.0202       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.0974       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.5135       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .50590E-01   1.0000         .10000E-03   10000.    
    13 'norm      '    .10750E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.2199       1.0000         .10000E-03   10000.    
    15 'norm      '    .41730       1.0000         .10000E-03   10000.    
    16 'norm      '    6.5686       1.0000         .10000E-03   10000.    
    17 'norm      '    23.264       1.0000         .10000E-03   10000.    
    18 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10869E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .31408E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.4689       1.0000         .10000E-03   10000.    
    22 'norm      '    22.419       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    3.2565       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .12392       1.0000         .10000E-03   10000.    
    27 'Prefactor '    48.331       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0872       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .85524       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6000E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6259.257     FROM MIGRAD    STATUS=CONVERGED    159 CALLS     2827 TOTAL
                     EDM=   .93E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.3584        3.5593        .10402E-06   -.24409E-03
   2  Prefactor     10.641        2.3136       -.52470E-06    .96411E-03
   3  Prefactor     2.1822        2.1994        .24799E-06   -.43729E-03
   4  Prefactor     .10000E-03    6.3337        .61016E-06** at limit **
   5  norm          29.433        6.2760       -.91182E-06    .62689E-02
   6  Prefactor     6.0195        1.7419       -.85808E-06    .37096E-03
   7  Prefactor     .10000E-03    6.7809        .93605E-06** at limit **
   8  Prefactor     .10000E-03    46.752       -.15208E-05** at limit **
   9  Prefactor     4.0955        6.6960        .19113E-05    .21497E-02
  10  Prefactor     .10000E-03    2.5846        .16068E-06** at limit **
  11  norm          3.5212        4.1235       -.26722E-05   -.11459E-02
  12  Prefactor     .10008E-03    278.69       -.11435E-05** at limit **
  13  norm          .10000E-03    3.0306       -.70810E-06** at limit **
  14  Prefactor     9.2285        1.2370        .43563E-06   -.52361E-03
  15  norm          .42372        5.4971       -.17473E-05    .49825E-04
  16  norm          6.5652        1.3884        .13041E-05   -.72967E-03
  17  norm          23.277        5.4471        .43233E-05    .73808E-02
  18  norm          .10000E-03    4.3799       -.59201E-06** at limit **
  19  norm          .10001E-03    37.189        .25852E-05** at limit **
  20  Prefactor     .10000E-03    5.2217       -.41925E-06** at limit **
  21  Prefactor     3.4785        7.9507       -.10252E-04    .18383E-02
  22  norm          22.411        8.2446       -.11721E-05    .11535E-02
  23  Prefactor     .10000E-03    26.051       -.16462E-05** at limit **
  24  norm          .10000E-03    2.6079       -.19347E-06** at limit **
  25  Prefactor     3.3044        4.8661       -.51278E-05    .21591E-02
  26  Prefactor     .10645E-03    1516.4        .38451E-05** at limit **
  27  Prefactor     48.317        2.1445        .15588E-06   -.12573E-02
  28  Prefactor     .10000E-03    1.4823        .16116E-06** at limit **
  29  Normalizat    1.0871        .19578       -.24275E-05   -.63280E-03
  30  Prefactor     .85561        .24106        .19463E-05   -.48434E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.35836
  Prefactor  = 10.6414
  Prefactor  = 2.18223
  Prefactor  = 0.0001
  norm       = 29.4333
  Prefactor  = 6.01953
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 4.09554
  Prefactor  = 0.0001
  norm       = 3.52123
  Prefactor  = 0.000100082
  norm       = 0.0001
  Prefactor  = 9.2285
  norm       = 0.423723
  norm       = 6.56524
  norm       = 23.2765
  norm       = 0.0001
  norm       = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 3.4785
  norm       = 22.4109
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 3.30436
  Prefactor  = 0.000106453
  Prefactor  = 48.3171
  Prefactor  = 0.0001
  Normalizat = 1.08708
  Prefactor  = 0.855613
 **********
 **   18 **HESSE 
 **********

 FCN=   6259.257     FROM HESSE     STATUS=OK           682 CALLS     3509 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.3584        3.6160        .43404E-02   -1.5245    
   2  Prefactor     10.641        8.0148        .30704E-02   -1.5055    
   3  Prefactor     2.1822        2.2165        .69664E-02   -1.5413    
   4  Prefactor     .10000E-03    1.4035        .50835E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          29.433        7.9718        .18462E-02   -1.4622    
   6  Prefactor     6.0195        9.3989        .40911E-02   -1.5217    
   7  Prefactor     .10000E-03    6.7816        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    46.771        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.0955        7.2526        .49791E-02   -1.5303    
  10  Prefactor     .10000E-03    2.5720        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.5212        4.2289        .53920E-02   -1.5333    
  12  Prefactor     .10008E-03    14.592        .92730E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.6480        .39776E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     9.2285        13.950        .32997E-02   -1.5100    
  15  norm          .42372        6.3302        .10928E-01   -1.5578    
  16  norm          6.5652        11.377        .39145E-02   -1.5195    
  17  norm          23.277        5.8282        .20762E-02   -1.4743    
  18  norm          .10000E-03    4.3722        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10001E-03    36.122        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.1171        .34455E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.4785        10.432        .54281E-02   -1.5335    
  22  norm          22.411        8.4671        .21149E-02   -1.4761    
  23  Prefactor     .10000E-03    26.060        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    2.6074        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     3.3044        28.044        .56106E-02   -1.5344    
  26  Prefactor     .10645E-03    18.223        .11227       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     48.317        47.949        .14420E-02   -1.4317    
  28  Prefactor     .10000E-03    1.4702        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0871        .17353        .38546E-01   -.90168    
  30  Prefactor     .85561        .20814        .70577E-01   -.97710    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11696e-07
Minuit parameter uncertainties:
  1  3.61616
  2  8.01559
  3  2.2166
  4  4.2861e-06
  5  7.97213
  6  9.40125
  7  8.31061e-05
  8  0.000769581
  9  7.25419
  10  1.1672e-06
  11  4.2293
  12  0.00218631
  13  1.18978e-05
  14  13.9548
  15  3.27555
  16  11.3803
  17  5.82833
  18  1.78458e-05
  19  0.00109015
  20  1.46692e-05
  21  10.4374
  22  8.46759
  23  0.000539011
  24  5.25467e-06
  25  19.2648
  26  0.0216947
  27  47.9871
  28  7.378e-06
  29  0.173617
  30  0.208329
Done.

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

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  2.328e+01  5.828e+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:  8.556e-01  2.083e-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.087e+00  1.736e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 53.01
Ra Dec: 197.632 32.355
Photon Index (Fixed Index): 2.42 +/- 0.00
Photon Flux (Fixed Index): 2.04e-07 +/- 5.10e-08
Energy Flux (Fixed Index): 7.30e-05 +/- 1.83e-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) = 6259.25549195
delta logL = 0.00185556939505

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6259.23432974
delta logL = 0.0230177710828

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    25.334       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3733       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0955       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84869       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=   6259.234     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      211 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          25.325        81.447        .19897E-02   -.35380E-04
   2  alpha         2.3734        1.5268        .84146E-01    .82087E-04
   3  Normalizat    1.0953        .13686        .38188E-01   -.44233E-03
   4  Prefactor     .84877        .12864        .70831E-01   -.27290E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 25.325
  alpha      = 2.37342
  Normalizat = 1.09532
  Prefactor  = 0.848766
 **********
 **   18 **HESSE 
 **********

 FCN=   6259.234     FROM HESSE     STATUS=OK            31 CALLS      242 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          25.325        12.145        .79587E-04   -1.4701    
   2  alpha         2.3734        .25226        .36412E-02   -.50652E-01
   3  Normalizat    1.0953        .19974        .22767E-03   -.89902    
   4  Prefactor     .84877        .24100        .31340E-03   -.97955    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.07963e-09
Minuit parameter uncertainties:
  1  12.1464
  2  0.252693
  3  0.199874
  4  0.241301
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/293716': 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) = 6259.2343288
delta logL = 0.0230187193947

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  2.533e+01  1.215e+01  1.000e-04  1.000e+04 ( 1.000e-13)
332        alpha:  2.373e+00  2.527e-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:  8.488e-01  2.413e-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.095e+00  1.999e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 52.72
Ra Dec: 197.632 32.355
Photon Index (Free Index): 2.37 +/- 0.25
Photon Flux (Free Index): 1.98e-07 +/- 5.61e-08
Energy Flux (Free Index): 7.56e-05 +/- 2.32e-05

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/293716/cmap_HighResolution_583286401_583545601_4FGL_J1310.5+3221_daily_bin1327.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.04e-07', energy_flux2='7.56e-05', photon_flux_error='5.10e-08', dlogl='2.30e-02', energy_flux='7.30e-05', photon_flux2='1.98e-07', job_status='DONE', time_completed='2021-09-07 01:56:58.190120', photon_index_error2='0.25', photon_index2='2.37', ts='53.01', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', energy_flux_error2='2.32e-05', EG='1.09', time_epoch_completed='1631005018.19', return_code='0', job_id='293716', GAL2='0.85', EG2='1.10', return_code2='0', energy_flux_error='1.83e-05', photon_flux_error2='5.61e-08', ts2='52.72', photon_index='2.42' WHERE bin_id='1327' AND source_name='4FGL J1310.5+3221' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:56:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0284>
Subject: Job 293716: <4FGL_J1310.5+3221_daily_bin1327> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1310.5+3221_daily_bin1327 197.632 32.3547 583286401 583545601 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 :                                   701.17 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             291.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   754 sec.
    Turnaround time :                            968 sec.

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

