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


Performing analysis on: 4FGL_J1310.5+3221_daily_bin1599
RA = 197.632, Dec = 32.3547
tmin = 653788801, tmax = 654048001
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='953724', job_status='RUN', time_executed='2021-09-23 00:27:18.403183', time_epoch_executed='1632382038.4' WHERE source_name='4FGL J1310.5+3221' and cadence='daily' and bin_id='1599'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/953724

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/953724/ft1_4FGL_J1310.5+3221_daily_bin1599.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/953724/ft2_4FGL_J1310.5+3221_daily_bin1599.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/953724/ft1_4FGL_J1310.5+3221_daily_bin1599.fits outfile=/scratch/kocevski/953724/ft1_filteredMKT_4FGL_J1310.5+3221_daily_bin1599.fits ra=197.632 dec=32.3547 rad=12.0 tmin=653788801.0 tmax=654048001.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.89
user 3.66
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/953724/ft2_4FGL_J1310.5+3221_daily_bin1599.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/953724/ft1_filteredMKT_4FGL_J1310.5+3221_daily_bin1599.fits evtable="EVENTS" outfile="/scratch/kocevski/953724/ft1_filtered_4FGL_J1310.5+3221_daily_bin1599.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.56
user 0.33
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/953724/ft1_filtered_4FGL_J1310.5+3221_daily_bin1599.fits" evtable="EVENTS" scfile=/scratch/kocevski/953724/ft2_4FGL_J1310.5+3221_daily_bin1599.fits sctable="SC_DATA" outfile=/scratch/kocevski/953724/ltcube_653788801_654048001_4FGL_J1310.5+3221_daily_bin1599.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/953724/ft2_4FGL_J1310.5+3221_daily_bin1599.fits
.....................!
real 15.21
user 14.80
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/953724/ft1_filtered_4FGL_J1310.5+3221_daily_bin1599.fits evtable="EVENTS" scfile=/scratch/kocevski/953724/ft2_4FGL_J1310.5+3221_daily_bin1599.fits sctable="SC_DATA" expcube=/scratch/kocevski/953724/ltcube_653788801_654048001_4FGL_J1310.5+3221_daily_bin1599.fits outfile=/scratch/kocevski/953724/expmap_653788801_654048001_4FGL_J1310.5+3221_daily_bin1599.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/953724/ltcube_653788801_654048001_4FGL_J1310.5+3221_daily_bin1599.fits
.....................!
real 191.96
user 186.58
sys 5.04

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/953724/ft1_filtered_4FGL_J1310.5+3221_daily_bin1599.fits scfile=/scratch/kocevski/953724/ft2_4FGL_J1310.5+3221_daily_bin1599.fits outfile=/scratch/kocevski/953724/cmap_653788801_654048001_4FGL_J1310.5+3221_daily_bin1599.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.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/953724/ft1_filtered_4FGL_J1310.5+3221_daily_bin1599.fits scfile=/scratch/kocevski/953724/ft2_4FGL_J1310.5+3221_daily_bin1599.fits outfile=/scratch/kocevski/953724/cmap_HighResolution_653788801_654048001_4FGL_J1310.5+3221_daily_bin1599.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.41
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.9088       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.7287       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.5571       1.0000         .10000E-03   10000.    
     5 'norm      '    51.313       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .26378E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.8944       1.0000         .10000E-03   10000.    
     8 'Prefactor '    95.677       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.4186       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .71697E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    7.2206       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11282E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.2620       1.0000         .10000E-03   10000.    
    15 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    15.141       1.0000         .10000E-03   10000.    
    18 'norm      '    1.3843       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.1334       1.0000         .10000E-03   10000.    
    22 'norm      '    .20701E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    27.900       1.0000         .10000E-03   10000.    
    24 'norm      '    1.5793       1.0000         .10000E-03   10000.    
    25 'Prefactor '    36.146       1.0000         .10000E-03   10000.    
    26 'Prefactor '    20.096       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    9.4443       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.2477       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .67082       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=   6494.158     FROM MIGRAD    STATUS=CONVERGED    797 CALLS     4021 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.9087        3.1716       -.36314E-08   -.91659E-04
   2  Prefactor     .10000E-03    10.020       -.17626E-06** at limit **
   3  Prefactor     2.7286        1.8428        .20173E-07   -.85457E-04
   4  Prefactor     4.5569        2.4553       -.18815E-07   -.22555E-03
   5  norm          51.312        10.170       -.33853E-07   -.17093E-03
   6  Prefactor     .10030E-03    48.237        .91396E-05** at limit **
   7  Prefactor     5.8868        15.951       -.91369E-06    .25366E-04
   8  Prefactor     95.653        125.19       -.21062E-05    .39248E-04
   9  Prefactor     3.4187        4.2265       -.89261E-07    .32492E-05
  10  Prefactor     .10013E-03    11.795        .29553E-05** at limit **
  11  norm          7.2201        6.0222        .31406E-06    .70003E-04
  12  Prefactor     .10003E-03    170.67        .97788E-05** at limit **
  13  norm          .10000E-03    .96779       -.89647E-08** at limit **
  14  Prefactor     6.2433        15.946       -.17960E-05    .49562E-04
  15  norm          .10000E-03    2.0357        .24853E-06** at limit **
  16  norm          .10000E-03    8.2208       -.15312E-06** at limit **
  17  norm          15.137        6.9946       -.20958E-07   -.35738E-03
  18  norm          1.3891        14.407       -.10906E-05    .55078E-04
  19  norm          .10000E-03    6.1336        .29075E-07** at limit **
  20  Prefactor     .10000E-03    .88954        .20802E-06** at limit **
  21  Prefactor     6.1335        8.1609       -.50942E-07   -.18802E-04
  22  norm          .10001E-03    4.4348        .88194E-06** at limit **
  23  Prefactor     27.896        54.736       -.26068E-06    .78889E-05
  24  norm          1.5835        6.2314       -.43632E-05   -.37580E-03
  25  Prefactor     36.141        21.950        .16263E-06   -.87670E-04
  26  Prefactor     20.097        29.830        .16833E-06   -.44663E-04
  27  Prefactor     .10000E-03    45.874       -.22255E-05** at limit **
  28  Prefactor     9.4443        4.8430       -.25704E-08   -.10420E-03
  29  Normalizat    1.2478        .18133       -.10370E-05   -.19815E-03
  30  Prefactor     .67079        .20962        .22966E-05   -.14814E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.90866
  Prefactor  = 0.0001
  Prefactor  = 2.72865
  Prefactor  = 4.5569
  norm       = 51.3125
  Prefactor  = 0.000100296
  Prefactor  = 5.88682
  Prefactor  = 95.6534
  Prefactor  = 3.4187
  Prefactor  = 0.000100131
  norm       = 7.2201
  Prefactor  = 0.00010003
  norm       = 0.0001
  Prefactor  = 6.24327
  norm       = 0.0001
  norm       = 0.0001
  norm       = 15.1366
  norm       = 1.38915
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.13349
  norm       = 0.000100013
  Prefactor  = 27.8962
  norm       = 1.58347
  Prefactor  = 36.1415
  Prefactor  = 20.0968
  Prefactor  = 0.000100001
  Prefactor  = 9.44428
  Normalizat = 1.24776
  Prefactor  = 0.670785
 **********
 **   18 **HESSE 
 **********

 FCN=   6494.158     FROM HESSE     STATUS=OK           598 CALLS     4619 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.9087        3.1700        .93494E-04   -1.5182    
   2  Prefactor     .10000E-03    10.187        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.7286        1.8476        .86610E-04   -1.5378    
   4  Prefactor     4.5569        2.4453        .89086E-04   -1.5281    
   5  norm          51.312        10.149        .55987E-04   -1.4274    
   6  Prefactor     .10030E-03    67.668        .35837E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.8868        15.796        .16541E-03   -1.5223    
   8  Prefactor     95.653        124.93        .41091E-04   -1.3749    
   9  Prefactor     3.4187        4.2225        .17923E-03   -1.5338    
  10  Prefactor     .10013E-03    24.626        .32759E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          7.2201        5.9801        .14927E-03   -1.5170    
  12  Prefactor     .10003E-03    175.62        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .96979        .77415E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.2433        14.938        .16041E-03   -1.5208    
  15  norm          .10000E-03    2.0477        .11224E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    8.2742        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          15.137        6.9826        .95723E-04   -1.4930    
  18  norm          1.3891        14.601        .36971E-03   -1.5472    
  19  norm          .10000E-03    6.1363        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    .89407        .74226E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     6.1335        8.1490        .16211E-03   -1.5213    
  22  norm          .10001E-03    15.732        .28968E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     27.896        54.724        .75847E-04   -1.4651    
  24  norm          1.5835        6.2658        .33800E-03   -1.5456    
  25  Prefactor     36.141        21.939        .66659E-04   -1.4505    
  26  Prefactor     20.097        29.799        .89346E-04   -1.4811    
  27  Prefactor     .10000E-03    45.601        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     9.4443        4.8423        .12136E-03   -1.5093    
  29  Normalizat    1.2478        .21361        .22771E-03   -.85140    
  30  Prefactor     .67079        .24130        .35846E-03   -1.0468    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05902e-08
Minuit parameter uncertainties:
  1  3.1701
  2  3.49186e-06
  3  1.84762
  4  2.44537
  5  10.1497
  6  0.00895759
  7  15.8071
  8  125.28
  9  4.22287
  10  0.00359555
  11  5.9806
  12  0.0046413
  13  1.07941e-07
  14  14.9473
  15  1.49339e-05
  16  3.75781e-06
  17  6.98293
  18  9.00976
  19  3.06255e-06
  20  4.38055e-06
  21  8.15048
  22  0.000907603
  23  54.8222
  24  6.26839
  25  21.9442
  26  29.821
  27  0.000520885
  28  4.84254
  29  0.213765
  30  0.24168
Done.

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

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  1.514e+01  6.983e+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:  6.708e-01  2.417e-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.248e+00  2.138e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 25.02
Ra Dec: 197.632 32.355
Photon Index (Fixed Index): 2.42 +/- 0.00
Photon Flux (Fixed Index): 1.33e-07 +/- 6.12e-08
Energy Flux (Fixed Index): 4.75e-05 +/- 2.19e-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) = 6494.03214689
delta logL = 0.125424202715

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6494.02174411
delta logL = 0.135826980052

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    19.494       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2532       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2682       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65453       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=   6494.022     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      272 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          19.495        11.291        .90715E-04   -.11700E-02
   2  alpha         2.2532        .34365        .55300E-02   -.25730E-03
   3  Normalizat    1.2682        .20534        .22628E-03    .10433E-03
   4  Prefactor     .65453        .24039        .36256E-03    .10893E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 19.4948
  alpha      = 2.25316
  Normalizat = 1.26821
  Prefactor  = 0.654528
 **********
 **   18 **HESSE 
 **********

 FCN=   6494.022     FROM HESSE     STATUS=OK            25 CALLS      297 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          19.495        10.642        .18143E-04   -1.4825    
   2  alpha         2.2532        .32379        .22120E-03   -.98899E-01
   3  Normalizat    1.2682        .20503        .45255E-04   -.84520    
   4  Prefactor     .65453        .24030        .14502E-04   -1.0534    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.96721e-10
Minuit parameter uncertainties:
  1  10.6428
  2  0.32471
  3  0.205165
  4  0.240679
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/953724': 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) = 6494.02174409
delta logL = 0.135826997273

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  1.949e+01  1.064e+01  1.000e-04  1.000e+04 ( 1.000e-13)
332        alpha:  2.253e+00  3.247e-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:  6.545e-01  2.407e-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.268e+00  2.052e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 25.49
Ra Dec: 197.632 32.355
Photon Index (Free Index): 2.25 +/- 0.32
Photon Flux (Free Index): 1.17e-07 +/- 4.91e-08
Energy Flux (Free Index): 5.34e-05 +/- 2.22e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.355e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.614e-03 [aplpy.core]
Saving /scratch/kocevski/953724/cmap_HighResolution_653788801_654048001_4FGL_J1310.5+3221_daily_bin1599.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.33e-07', energy_flux2='5.34e-05', photon_flux_error='6.12e-08', dlogl='1.36e-01', energy_flux='4.75e-05', photon_flux2='1.17e-07', job_status='DONE', time_completed='2021-09-23 00:40:54.433031', photon_index_error2='0.32', photon_index2='2.25', ts='25.02', fit_tolerance='1e-08', GAL='0.67', photon_index_error='0.00', energy_flux_error2='2.22e-05', EG='1.25', time_epoch_completed='1632382854.43', return_code='0', job_id='953724', GAL2='0.65', EG2='1.27', return_code2='0', energy_flux_error='2.19e-05', photon_flux_error2='4.91e-08', ts2='25.49', photon_index='2.42' WHERE bin_id='1599' AND source_name='4FGL J1310.5+3221' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 23 00:40:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 953724: <4FGL_J1310.5+3221_daily_bin1599> in cluster <slac> Done

Job <4FGL_J1310.5+3221_daily_bin1599> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 23 00:26:46 2021
Job was executed on host(s) <bullet0246>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 23 00:26:56 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 23 00:26:56 2021
Terminated at Thu Sep 23 00:40:55 2021
Results reported at Thu Sep 23 00:40:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1310.5+3221_daily_bin1599 197.632 32.3547 653788801 654048001 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 :                                   818.14 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             312.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   838 sec.
    Turnaround time :                            849 sec.

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

