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


Performing analysis on: 4FGL_J1310.5+3221_daily_bin1081
RA = 197.632, Dec = 32.3547
tmin = 519523201, tmax = 519782401
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='291961', job_status='RUN', time_executed='2021-09-07 01:39:28.881725', time_epoch_executed='1631003968.88' WHERE source_name='4FGL J1310.5+3221' and cadence='daily' and bin_id='1081'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/291961

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

Retrieving the FT1 file...

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

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

Retrieving 37 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/291961/ft1_4FGL_J1310.5+3221_daily_bin1081.fits


Retrieving the FT1 file...

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

Retrieving 37 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/291961/ft2_4FGL_J1310.5+3221_daily_bin1081.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/291961/ft1_4FGL_J1310.5+3221_daily_bin1081.fits outfile=/scratch/kocevski/291961/ft1_filteredMKT_4FGL_J1310.5+3221_daily_bin1081.fits ra=197.632 dec=32.3547 rad=12.0 tmin=519523201.0 tmax=519782401.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 2.54
user 2.25
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/291961/ft2_4FGL_J1310.5+3221_daily_bin1081.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/291961/ft1_filteredMKT_4FGL_J1310.5+3221_daily_bin1081.fits evtable="EVENTS" outfile="/scratch/kocevski/291961/ft1_filtered_4FGL_J1310.5+3221_daily_bin1081.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.44
user 0.28
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/291961/ft1_filtered_4FGL_J1310.5+3221_daily_bin1081.fits" evtable="EVENTS" scfile=/scratch/kocevski/291961/ft2_4FGL_J1310.5+3221_daily_bin1081.fits sctable="SC_DATA" outfile=/scratch/kocevski/291961/ltcube_519523201_519782401_4FGL_J1310.5+3221_daily_bin1081.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/291961/ft2_4FGL_J1310.5+3221_daily_bin1081.fits
.....................!
real 9.98
user 9.57
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/291961/ft1_filtered_4FGL_J1310.5+3221_daily_bin1081.fits evtable="EVENTS" scfile=/scratch/kocevski/291961/ft2_4FGL_J1310.5+3221_daily_bin1081.fits sctable="SC_DATA" expcube=/scratch/kocevski/291961/ltcube_519523201_519782401_4FGL_J1310.5+3221_daily_bin1081.fits outfile=/scratch/kocevski/291961/expmap_519523201_519782401_4FGL_J1310.5+3221_daily_bin1081.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/291961/ltcube_519523201_519782401_4FGL_J1310.5+3221_daily_bin1081.fits
.....................!
real 160.17
user 151.69
sys 3.17

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/291961/ft1_filtered_4FGL_J1310.5+3221_daily_bin1081.fits scfile=/scratch/kocevski/291961/ft2_4FGL_J1310.5+3221_daily_bin1081.fits outfile=/scratch/kocevski/291961/cmap_519523201_519782401_4FGL_J1310.5+3221_daily_bin1081.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.96
user 0.33
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/291961/ft1_filtered_4FGL_J1310.5+3221_daily_bin1081.fits scfile=/scratch/kocevski/291961/ft2_4FGL_J1310.5+3221_daily_bin1081.fits outfile=/scratch/kocevski/291961/cmap_HighResolution_519523201_519782401_4FGL_J1310.5+3221_daily_bin1081.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.55
user 0.34
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.9837       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.8623       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.8145       1.0000         .10000E-03   10000.    
     5 'norm      '    16.463       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.5877       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    53.463       1.0000         .10000E-03   10000.    
    13 'norm      '    4.1033       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.6171       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    48.142       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10168E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .44404E-02   1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    135.27       1.0000         .10000E-03   10000.    
    24 'norm      '    2.9812       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    80.571       1.0000         .10000E-03   10000.    
    27 'Prefactor '    36.795       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .97935       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .95472       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=   4969.821     FROM MIGRAD    STATUS=CONVERGED    763 CALLS     3955 TOTAL
                     EDM=   .93E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.9834        3.5998       -.66905E-07   -.26197E-04
   2  Prefactor     7.8618        8.2884       -.15747E-06    .12334E-03
   3  Prefactor     .10000E-03    1.8631        .75923E-07** at limit **
   4  Prefactor     5.8142        3.0027       -.14240E-06   -.56894E-04
   5  norm          16.462        6.8783       -.14711E-06    .10871E-03
   6  Prefactor     1.5901        25.168        .11016E-04   -.11344E-03
   7  Prefactor     .10000E-03    5.3286       -.12859E-06** at limit **
   8  Prefactor     .10000E-03    26.003       -.15337E-07** at limit **
   9  Prefactor     .10000E-03    4.0596       -.29380E-06** at limit **
  10  Prefactor     .10000E-03    2.4846       -.68170E-07** at limit **
  11  norm          .10000E-03    2.8911       -.10473E-06** at limit **
  12  Prefactor     53.488        29.760       -.57098E-06   -.57124E-03
  13  norm          4.1032        3.7421        .67665E-07   -.42758E-04
  14  Prefactor     4.6188        13.449        .81448E-08   -.16411E-03
  15  norm          .10000E-03    2.1864        .26085E-07** at limit **
  16  norm          .10000E-03    47.957       -.10042E-05** at limit **
  17  norm          .10000E-03    1.8066       -.11806E-06** at limit **
  18  norm          .10000E-03    2.1075       -.64816E-07** at limit **
  19  norm          48.139        27.777        .46026E-07   -.22426E-04
  20  Prefactor     .10000E-03    2.7674        .28665E-05** at limit **
  21  Prefactor     .10177E-03    15.190        .39212E-05** at limit **
  22  norm          .10000E-03    6.4090       -.37096E-06** at limit **
  23  Prefactor     135.37        72.952       -.81177E-05   -.23846E-03
  24  norm          2.9808        6.2380        .35702E-06   -.14999E-03
  25  Prefactor     .10000E-03    6.6904       -.38683E-06** at limit **
  26  Prefactor     80.573        33.350        .16453E-06   -.11981E-03
  27  Prefactor     36.800        63.734        .99176E-06   -.40583E-04
  28  Prefactor     .10000E-03    .93529       -.42007E-07** at limit **
  29  Normalizat    .97911        .19369       -.37823E-05   -.86845E-03
  30  Prefactor     .95507        .22645        .35727E-05   -.55326E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.98336
  Prefactor  = 7.86184
  Prefactor  = 0.0001
  Prefactor  = 5.81418
  norm       = 16.4624
  Prefactor  = 1.59012
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 53.4884
  norm       = 4.1032
  Prefactor  = 4.61884
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 48.1387
  Prefactor  = 0.0001
  Prefactor  = 0.000101774
  norm       = 0.0001
  Prefactor  = 135.374
  norm       = 2.98076
  Prefactor  = 0.0001
  Prefactor  = 80.5731
  Prefactor  = 36.8004
  Prefactor  = 0.0001
  Normalizat = 0.979112
  Prefactor  = 0.955073
 **********
 **   18 **HESSE 
 **********

 FCN=   4969.821     FROM HESSE     STATUS=OK           576 CALLS     4531 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.9834        3.5915        .99464E-04   -1.5219    
   2  Prefactor     7.8618        8.2755        .14300E-03   -1.5147    
   3  Prefactor     .10000E-03    1.8936        .93681E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.8142        3.0074        .82587E-04   -1.5226    
   5  norm          16.462        6.8755        .98712E-04   -1.4896    
   6  Prefactor     1.5901        26.131        .16842E-02   -1.5456    
   7  Prefactor     .10000E-03    5.3294        .15893E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    26.009        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.0788        .13870E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.4937        .10844E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.9058        .11675E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     53.488        29.794        .54855E-04   -1.4244    
  13  norm          4.1032        3.7369        .12554E-03   -1.5303    
  14  Prefactor     4.6188        13.407        .18731E-03   -1.5278    
  15  norm          .10000E-03    2.1934        .10172E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    49.430        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.8243        .92352E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.1105        .99931E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          48.139        27.766        .57792E-04   -1.4319    
  20  Prefactor     .10000E-03    4.2046        .20762E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10177E-03    163.17        .46684E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    6.6073        .34660E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     135.37        74.389        .17314E-03   -1.3376    
  24  norm          2.9808        6.1922        .23514E-03   -1.5363    
  25  Prefactor     .10000E-03    6.6965        .17802E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     80.573        33.391        .44744E-04   -1.3910    
  27  Prefactor     36.800        63.928        .66070E-04   -1.4494    
  28  Prefactor     .10000E-03    .93677        .66578E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .97911        .22648        .23259E-03   -.93734    
  30  Prefactor     .95507        .26641        .29155E-03   -.94242    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10522e-08
Minuit parameter uncertainties:
  1  3.59163
  2  8.27673
  3  6.49033e-06
  4  3.00746
  5  6.87588
  6  12.8983
  7  7.99405e-06
  8  1.29519e-05
  9  8.68333e-06
  10  5.5915e-07
  11  1.29832e-06
  12  29.802
  13  3.73709
  14  13.4157
  15  1.20301e-06
  16  0.000100165
  17  6.96866e-06
  18  3.63853e-06
  19  27.7734
  20  8.06001e-05
  21  0.0341204
  22  8.25416e-05
  23  74.4407
  24  6.19352
  25  3.05456e-05
  26  33.3989
  27  64.0478
  28  2.66082e-07
  29  0.226698
  30  0.26678
Done.

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

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  1.000e-04  6.969e-06  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:  9.551e-01  2.668e-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:  9.791e-01  2.267e-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: 6.17e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.21e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/291961/likelihoodResults_519523201_519782401_4FGL_J1310.5+3221_daily_bin1081.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) = 4969.82365749
delta logL = -0.00260115229139

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4969.82105651
delta logL = -1.72698491951e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10204E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4041       1.0000          .0000       5.0000    
     3 'Normalizat'    .97917       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95506       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=   4969.821     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      244 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    155.46        .94025E-02** at limit **
   2  alpha         1.6078        4.1079        .16476       -.96602E-08
   3  Normalizat    .97912        .36748E-01    .23259E-03    .35586E-03
   4  Prefactor     .95507        .45753E-01    .29155E-03    .32048E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.60785
  Normalizat = 0.979117
  Prefactor  = 0.955073
 **********
 **   18 **HESSE 
 **********

 FCN=   4969.821     FROM HESSE     STATUS=OK            23 CALLS      267 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.6521        .11201E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6078        2.5104        .65904E-02   -.36491    
   3  Normalizat    .97912        .21120        .46518E-04   -.93733    
   4  Prefactor     .95507        .26284        .58309E-04   -.94242    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.00305e-10
Minuit parameter uncertainties:
  1  2.14756e-05
  2  196.411
  3  0.211384
  4  0.263187
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/291961': 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) = 4969.8210478
delta logL = 8.52945322549e-06

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
597    Prefactor:  9.551e-01  2.632e-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:  9.791e-01  2.114e-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/291961/cmap_HighResolution_519523201_519782401_4FGL_J1310.5+3221_daily_bin1081.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.21e-05', job_status='DONE', photon_flux_upper_limit='6.17e-08', time_completed='2021-09-07 01:50:20.659303', job_id='291961', GAL2='0.96', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1631004620.66', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='8.53e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.42' WHERE bin_id='1081' AND source_name='4FGL J1310.5+3221' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:50:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0168>
Subject: Job 291961: <4FGL_J1310.5+3221_daily_bin1081> in cluster <slac> Done

Job <4FGL_J1310.5+3221_daily_bin1081> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep  7 01:36:20 2021
Job was executed on host(s) <bullet0168>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 01:38:08 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:38:08 2021
Terminated at Tue Sep  7 01:50:21 2021
Results reported at Tue Sep  7 01:50:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1310.5+3221_daily_bin1081 197.632 32.3547 519523201 519782401 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 :                                   629.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             340.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   733 sec.
    Turnaround time :                            841 sec.

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

