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


Performing analysis on: 4FGL_J1310.5+3221_daily_bin829
RA = 197.632, Dec = 32.3547
tmin = 454204801, tmax = 454464001
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='291512', job_status='RUN', time_executed='2021-09-07 01:36:13.968290', time_epoch_executed='1631003773.97' WHERE source_name='4FGL J1310.5+3221' and cadence='daily' and bin_id='829'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/291512

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/291512/ft1_4FGL_J1310.5+3221_daily_bin829.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/291512/ft2_4FGL_J1310.5+3221_daily_bin829.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/291512/ft1_4FGL_J1310.5+3221_daily_bin829.fits outfile=/scratch/kocevski/291512/ft1_filteredMKT_4FGL_J1310.5+3221_daily_bin829.fits ra=197.632 dec=32.3547 rad=12.0 tmin=454204801.0 tmax=454464001.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.62
user 3.37
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/291512/ft1_filtered_4FGL_J1310.5+3221_daily_bin829.fits evtable="EVENTS" scfile=/scratch/kocevski/291512/ft2_4FGL_J1310.5+3221_daily_bin829.fits sctable="SC_DATA" expcube=/scratch/kocevski/291512/ltcube_454204801_454464001_4FGL_J1310.5+3221_daily_bin829.fits outfile=/scratch/kocevski/291512/expmap_454204801_454464001_4FGL_J1310.5+3221_daily_bin829.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/291512/ltcube_454204801_454464001_4FGL_J1310.5+3221_daily_bin829.fits
.....................!
real 192.35
user 187.09
sys 4.64

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/291512/ft1_filtered_4FGL_J1310.5+3221_daily_bin829.fits scfile=/scratch/kocevski/291512/ft2_4FGL_J1310.5+3221_daily_bin829.fits outfile=/scratch/kocevski/291512/cmap_454204801_454464001_4FGL_J1310.5+3221_daily_bin829.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 1.59
user 0.41
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/291512/ft1_filtered_4FGL_J1310.5+3221_daily_bin829.fits scfile=/scratch/kocevski/291512/ft2_4FGL_J1310.5+3221_daily_bin829.fits outfile=/scratch/kocevski/291512/cmap_HighResolution_454204801_454464001_4FGL_J1310.5+3221_daily_bin829.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.74
user 0.40
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.930       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.1982       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.3727       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    23.384       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.1298       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    5.7615       1.0000         .10000E-03   10000.    
    17 'norm      '    6.1500       1.0000         .10000E-03   10000.    
    18 'norm      '    .10862E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.0090       1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.3442       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    14.483       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .35139E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    5.0004       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1861       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0570       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=   6367.347     FROM MIGRAD    STATUS=CONVERGED    776 CALLS     3381 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.930        5.2400       -.95459E-07   -.12467E-03
   2  Prefactor     3.1981        7.6002        .48934E-06   -.17235E-04
   3  Prefactor     4.3726        3.2384        .10528E-06    .20655E-04
   4  Prefactor     .10000E-03    2.4626       -.33308E-07** at limit **
   5  norm          23.384        7.9229        .20971E-07   -.18570E-04
   6  Prefactor     .10000E-03    4.1783       -.16467E-07** at limit **
   7  Prefactor     .10000E-03    19.021       -.79116E-06** at limit **
   8  Prefactor     .10001E-03    127.90       -.64486E-05** at limit **
   9  Prefactor     .10000E-03    4.5639        .79115E-07** at limit **
  10  Prefactor     .10000E-03    2.8147        .22905E-07** at limit **
  11  norm          .10000E-03    2.9447       -.47629E-07** at limit **
  12  Prefactor     .10000E-03    8.7740       -.49368E-07** at limit **
  13  norm          2.1285        4.7022        .73274E-06   -.69185E-04
  14  Prefactor     .10000E-03    10.507        .15242E-06** at limit **
  15  norm          .10000E-03    4.6867        .19513E-06** at limit **
  16  norm          5.7613        10.037        .13050E-06   -.35600E-05
  17  norm          6.1596        4.9379        .24772E-06    .35705E-03
  18  norm          .10000E-03    5.3798       -.62618E-06** at limit **
  19  norm          2.9865        43.311        .44863E-06   -.12583E-04
  20  Prefactor     8.3476        5.0331        .11556E-06    .45183E-03
  21  Prefactor     .10000E-03    44.931       -.16183E-05** at limit **
  22  norm          14.489        9.7565        .68854E-07   -.26353E-03
  23  Prefactor     .10000E-03    49.311       -.12600E-05** at limit **
  24  norm          .10023E-03    9.1930        .61972E-06** at limit **
  25  Prefactor     4.9995        10.336        .38671E-05   -.97318E-04
  26  Prefactor     .10000E-03    23.394        .12516E-05** at limit **
  27  Prefactor     .10001E-03    67.223        .75165E-05** at limit **
  28  Prefactor     .10000E-03    1.0874       -.89985E-08** at limit **
  29  Normalizat    1.1861        .18716       -.81161E-06   -.11571E-04
  30  Prefactor     1.0570        .22029        .31359E-07   -.55002E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 13.9301
  Prefactor  = 3.1981
  Prefactor  = 4.37262
  Prefactor  = 0.0001
  norm       = 23.3839
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.12846
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 5.76132
  norm       = 6.15957
  norm       = 0.0001
  norm       = 2.98646
  Prefactor  = 8.34755
  Prefactor  = 0.000100002
  norm       = 14.4888
  Prefactor  = 0.000100001
  norm       = 0.000100231
  Prefactor  = 4.99951
  Prefactor  = 0.0001
  Prefactor  = 0.000100013
  Prefactor  = 0.0001
  Normalizat = 1.18612
  Prefactor  = 1.05701
 **********
 **   18 **HESSE 
 **********

 FCN=   6367.347     FROM HESSE     STATUS=OK           592 CALLS     3973 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.930        5.2599        .99255E-04   -1.4961    
   2  Prefactor     3.1981        7.5896        .22657E-03   -1.5350    
   3  Prefactor     4.3726        3.2490        .10957E-03   -1.5290    
   4  Prefactor     .10000E-03    2.5526        .24397E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          23.384        7.9203        .82834E-04   -1.4740    
   6  Prefactor     .10000E-03    4.1841        .15929E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    19.169        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    130.95        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.6030        .16646E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.8346        .13072E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    3.0051        .13364E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.7825        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.1285        4.6804        .24110E-03   -1.5416    
  14  Prefactor     .10000E-03    10.582        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    4.7677        .16848E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.7613        10.031        .16733E-03   -1.5228    
  17  norm          6.1596        4.3595        .13019E-03   -1.5212    
  18  norm          .10000E-03    12.405        .31298E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.9865        42.679        .23398E-03   -1.5362    
  20  Prefactor     8.3476        5.0682        .12674E-03   -1.5130    
  21  Prefactor     .10000E-03    47.150        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          14.489        9.7964        .10525E-03   -1.4946    
  23  Prefactor     .10000E-03    49.540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10023E-03    11.635        .66560E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     4.9995        10.496        .89918E-03   -1.5261    
  26  Prefactor     .10000E-03    23.634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10001E-03    71.246        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    1.0916        .81255E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.1861        .22881        .24827E-03   -.87033    
  30  Prefactor     1.0570        .26882        .31068E-03   -.90853    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.14646e-10
Minuit parameter uncertainties:
  1  5.2601
  2  7.59186
  3  3.24909
  4  3.76547e-06
  5  7.92062
  6  9.02992e-07
  7  9.49222e-05
  8  0.00213328
  9  5.57894e-06
  10  1.36741e-06
  11  1.35237e-06
  12  5.26146e-06
  13  4.68121
  14  9.38055e-06
  15  6.93908e-06
  16  10.0342
  17  4.35974
  18  0.000142548
  19  22.5987
  20  5.06844
  21  0.000600766
  22  9.7975
  23  0.000330881
  24  0.00327665
  25  10.4999
  26  0.000167944
  27  0.00192718
  28  3.93776e-07
  29  0.229002
  30  0.269167
Done.

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

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  6.160e+00  4.360e+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.057e+00  2.692e-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.186e+00  2.290e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.90
Ra Dec: 197.632 32.355
Photon Index (Fixed Index): 2.42 +/- 0.00
Photon Flux (Fixed Index): 5.40e-08 +/- 3.82e-08
Energy Flux (Fixed Index): 1.93e-05 +/- 1.37e-05

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

Saving results to:
/scratch/kocevski/291512/likelihoodResults_454204801_454464001_4FGL_J1310.5+3221_daily_bin829.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) = 6367.06788157
delta logL = 0.279107111864

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6367.06340584
delta logL = 0.283582838861

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.1546       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9013       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1475       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0858       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=   6367.063     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      254 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.1536        31.895        .57053E-02    .34385E-03
   2  alpha         2.9020        3.6657        .19844        .94990E-04
   3  Normalizat    1.1474        .71687E-01    .56910E-01    .14582E-05
   4  Prefactor     1.0860        .73630E-01    .69381E-01    .63776E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.15357
  alpha      = 2.90202
  Normalizat = 1.14738
  Prefactor  = 1.086
 **********
 **   18 **HESSE 
 **********

 FCN=   6367.063     FROM HESSE     STATUS=OK            33 CALLS      287 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.1536        5.2920        .80674E-04   -1.5353    
   2  alpha         2.9020        .80974        .74142E-02    .16151    
   3  Normalizat    1.1474        .23299        .25166E-03   -.88245    
   4  Prefactor     1.0860        .27031        .30696E-03   -.89915    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.24927e-11
Minuit parameter uncertainties:
  1  5.29278
  2  0.825027
  3  0.233198
  4  0.270655
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/291512': 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) = 6367.06340311
delta logL = 0.283585563633

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  3.154e+00  5.293e+00  1.000e-04  1.000e+04 ( 1.000e-13)
332        alpha:  2.902e+00  8.250e-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.086e+00  2.707e-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.147e+00  2.332e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.51
Ra Dec: 197.632 32.355
Photon Index (Free Index): 2.90 +/- 0.83
Photon Flux (Free Index): 8.64e-08 +/- 6.66e-08
Energy Flux (Free Index): 2.00e-05 +/- 1.21e-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/291512/cmap_HighResolution_454204801_454464001_4FGL_J1310.5+3221_daily_bin829.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.81e-05', comment='SUCCESS', photon_flux='5.40e-08', energy_flux2='2.00e-05', photon_flux_error='3.82e-08', dlogl='2.84e-01', energy_flux='1.93e-05', photon_flux2='8.64e-08', job_status='DONE', time_completed='2021-09-07 01:50:22.923092', photon_index_error2='0.83', photon_index2='2.90', ts='3.90', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', photon_flux_upper_limit='1.34e-07', energy_flux_error2='1.21e-05', EG='1.19', time_epoch_completed='1631004622.92', return_code='0', job_id='291512', GAL2='1.09', EG2='1.15', return_code2='0', energy_flux_error='1.37e-05', photon_flux_error2='6.66e-08', ts2='4.51', photon_index='2.42' WHERE bin_id='829' AND source_name='4FGL J1310.5+3221' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:50:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0120>
Subject: Job 291512: <4FGL_J1310.5+3221_daily_bin829> in cluster <slac> Done

Job <4FGL_J1310.5+3221_daily_bin829> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep  7 01:35:37 2021
Job was executed on host(s) <bullet0120>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 01:35:51 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:35:51 2021
Terminated at Tue Sep  7 01:50:23 2021
Results reported at Tue Sep  7 01:50:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1310.5+3221_daily_bin829 197.632 32.3547 454204801 454464001 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 :                                   839.04 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             328.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   872 sec.
    Turnaround time :                            886 sec.

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

