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


Performing analysis on: 4FGL_J1310.5+3221_daily_bin31
RA = 197.632, Dec = 32.3547
tmin = 247363201, tmax = 247622401
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='285710', job_status='RUN', time_executed='2021-09-07 01:19:08.526036', time_epoch_executed='1631002748.53' WHERE source_name='4FGL J1310.5+3221' and cadence='daily' and bin_id='31'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/285710

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/285710/ft1_4FGL_J1310.5+3221_daily_bin31.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/285710/ft2_4FGL_J1310.5+3221_daily_bin31.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/285710/ft1_4FGL_J1310.5+3221_daily_bin31.fits outfile=/scratch/kocevski/285710/ft1_filteredMKT_4FGL_J1310.5+3221_daily_bin31.fits ra=197.632 dec=32.3547 rad=12.0 tmin=247363201.0 tmax=247622401.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.10
user 1.28
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/285710/ft1_filtered_4FGL_J1310.5+3221_daily_bin31.fits evtable="EVENTS" scfile=/scratch/kocevski/285710/ft2_4FGL_J1310.5+3221_daily_bin31.fits sctable="SC_DATA" expcube=/scratch/kocevski/285710/ltcube_247363201_247622401_4FGL_J1310.5+3221_daily_bin31.fits outfile=/scratch/kocevski/285710/expmap_247363201_247622401_4FGL_J1310.5+3221_daily_bin31.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/285710/ltcube_247363201_247622401_4FGL_J1310.5+3221_daily_bin31.fits
.....................!
real 191.65
user 185.99
sys 5.25

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/285710/ft1_filtered_4FGL_J1310.5+3221_daily_bin31.fits scfile=/scratch/kocevski/285710/ft2_4FGL_J1310.5+3221_daily_bin31.fits outfile=/scratch/kocevski/285710/cmap_247363201_247622401_4FGL_J1310.5+3221_daily_bin31.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/285710/ft1_filtered_4FGL_J1310.5+3221_daily_bin31.fits scfile=/scratch/kocevski/285710/ft2_4FGL_J1310.5+3221_daily_bin31.fits outfile=/scratch/kocevski/285710/cmap_HighResolution_247363201_247622401_4FGL_J1310.5+3221_daily_bin31.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8078       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.6090       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.9694       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.6763       1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.1313       1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.121       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .12172E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.4369       1.0000         .10000E-03   10000.    
    13 'norm      '    7.0379       1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.231       1.0000         .10000E-03   10000.    
    15 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    26.731       1.0000         .10000E-03   10000.    
    17 'norm      '    5.3522       1.0000         .10000E-03   10000.    
    18 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    4.6443       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .83816       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    18.975       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    10.430       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .77911       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.2624       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=   7789.916     FROM MIGRAD    STATUS=CONVERGED    760 CALLS     3330 TOTAL
                     EDM=   .71E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8079        1.7801       -.11976E-07    .15544E-04
   2  Prefactor     .10000E-03    1.4503        .35616E-08** at limit **
   3  Prefactor     2.6091        1.7832        .11741E-07    .69439E-04
   4  Prefactor     5.9695        2.4385        .30229E-08    .86542E-04
   5  norm          .10000E-03    1.0371        .24048E-07** at limit **
   6  Prefactor     4.6765        5.4635        .13456E-06    .76275E-04
   7  Prefactor     9.1315        9.9708       -.15929E-07    .24933E-04
   8  Prefactor     11.100        43.797       -.44093E-05   -.70160E-04
   9  Prefactor     .10000E-03    1.9585        .39066E-07** at limit **
  10  Prefactor     .10000E-03    1.6138       -.48916E-07** at limit **
  11  norm          .10001E-03    3.9748       -.24579E-05** at limit **
  12  Prefactor     4.4035        20.646        .41748E-06    .13742E-03
  13  norm          7.0380        3.5057        .11922E-07    .82040E-04
  14  Prefactor     12.233        13.081       -.15658E-06    .10680E-03
  15  norm          .10000E-03    3.5112       -.47753E-06** at limit **
  16  norm          26.731        15.792       -.68751E-07   -.92147E-05
  17  norm          5.3520        3.3131       -.12057E-06    .47058E-03
  18  norm          .10000E-03    2.7742        .16109E-07** at limit **
  19  norm          4.6451        13.515        .21007E-06    .16908E-04
  20  Prefactor     .84360        3.1670        .19680E-05    .61629E-03
  21  Prefactor     .10000E-03    18.902       -.20636E-05** at limit **
  22  norm          .10000E-03    2.4696        .57982E-07** at limit **
  23  Prefactor     .10000E-03    21.506        .73776E-06** at limit **
  24  norm          .10000E-03    4.5285        .42164E-06** at limit **
  25  Prefactor     18.977        15.744       -.25007E-06   -.28945E-05
  26  Prefactor     .10000E-03    10.322        .18133E-06** at limit **
  27  Prefactor     .10000E-03    37.943        .88739E-06** at limit **
  28  Prefactor     10.430        4.7940       -.15081E-07    .26654E-04
  29  Normalizat    .77901        .15653       -.10720E-06    .37535E-03
  30  Prefactor     1.2624        .18616        .42032E-06    .33621E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.80788
  Prefactor  = 0.0001
  Prefactor  = 2.60908
  Prefactor  = 5.96951
  norm       = 0.0001
  Prefactor  = 4.6765
  Prefactor  = 9.13152
  Prefactor  = 11.1003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100007
  Prefactor  = 4.40351
  norm       = 7.03796
  Prefactor  = 12.233
  norm       = 0.0001
  norm       = 26.7315
  norm       = 5.352
  norm       = 0.0001
  norm       = 4.64508
  Prefactor  = 0.843602
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 18.9765
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.4303
  Normalizat = 0.779012
  Prefactor  = 1.26244
 **********
 **   18 **HESSE 
 **********

 FCN=   7789.916     FROM HESSE     STATUS=OK           590 CALLS     3920 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8079        1.7823        .11095E-03   -1.5439    
   2  Prefactor     .10000E-03    1.4517        .10380E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.6091        1.7790        .92165E-04   -1.5385    
   4  Prefactor     5.9695        2.4344        .83830E-04   -1.5219    
   5  norm          .10000E-03    1.0410        .87769E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.6765        5.4560        .18610E-03   -1.5275    
   7  Prefactor     9.1315        9.9707        .13263E-03   -1.5104    
   8  Prefactor     11.100        44.815        .12013E-03   -1.5042    
   9  Prefactor     .10000E-03    1.9650        .12061E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.6162        .10945E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10001E-03    5.1058        .25484E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.4035        20.230        .19117E-03   -1.5288    
  13  norm          7.0380        3.5032        .11155E-03   -1.5177    
  14  Prefactor     12.233        13.058        .11454E-03   -1.5008    
  15  norm          .10000E-03    3.6203        .16203E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          26.731        15.797        .77484E-04   -1.4673    
  17  norm          5.3520        3.2544        .11446E-03   -1.5245    
  18  norm          .10000E-03    2.7832        .14323E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          4.6451        13.507        .18675E-03   -1.5277    
  20  Prefactor     .84360        3.2117        .27290E-03   -1.5524    
  21  Prefactor     .10000E-03    19.833        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    2.4950        .13538E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    21.528        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    4.6604        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     18.977        15.763        .91947E-04   -1.4836    
  26  Prefactor     .10000E-03    10.359        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    38.024        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     10.430        4.7955        .12372E-03   -1.5062    
  29  Normalizat    .77901        .18708        .25931E-03   -1.0085    
  30  Prefactor     1.2624        .22448        .26028E-03   -.84431    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.23636e-09
Minuit parameter uncertainties:
  1  1.78239
  2  5.41146e-08
  3  1.77899
  4  2.43443
  5  6.14074e-07
  6  5.45659
  7  9.97254
  8  44.6659
  9  1.08755e-06
  10  1.94236e-06
  11  0.000386601
  12  18.8873
  13  3.50326
  14  13.061
  15  4.20167e-05
  16  15.7996
  17  3.25448
  18  3.8622e-07
  19  13.5162
  20  3.21235
  21  0.000464217
  22  2.93075e-07
  23  0.000126729
  24  2.8662e-05
  25  15.7662
  26  1.92594e-05
  27  0.000206214
  28  4.79565
  29  0.187238
  30  0.224647
Done.

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

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  5.352e+00  3.254e+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.262e+00  2.246e-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:  7.790e-01  1.872e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.18
Ra Dec: 197.632 32.355
Photon Index (Fixed Index): 2.42 +/- 0.00
Photon Flux (Fixed Index): 4.69e-08 +/- 2.85e-08
Energy Flux (Fixed Index): 1.68e-05 +/- 1.02e-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) = 7789.50427642
delta logL = 0.412110435147

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7789.49596589
delta logL = 0.42042096182

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.4437       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8817       1.0000          .0000       5.0000    
     3 'Normalizat'    .80909       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2420       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=   7789.496     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      248 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.4529        115.59        .34489E-02   -.26703E-04
   2  alpha         1.8822        3.3508        .36222        .26830E-04
   3  Normalizat    .80902        .93708E-01    .43729E-01    .21988E-04
   4  Prefactor     1.2420        .74056E-01    .59278E-01    .66890E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 8.45288
  alpha      = 1.88218
  Normalizat = 0.809019
  Prefactor  = 1.24196
 **********
 **   18 **HESSE 
 **********

 FCN=   7789.496     FROM HESSE     STATUS=OK            33 CALLS      281 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.4529        5.8251        .13796E-03   -1.5126    
   2  alpha         1.8822        .59268        .12707E-01   -.24971    
   3  Normalizat    .80902        .17838        .25493E-03   -.99735    
   4  Prefactor     1.2420        .22142        .26215E-03   -.85050    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.13685e-10
Minuit parameter uncertainties:
  1  5.82549
  2  0.598758
  3  0.178511
  4  0.221588
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/285710': 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) = 7789.49596346
delta logL = 0.420423395711

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  8.453e+00  5.825e+00  1.000e-04  1.000e+04 ( 1.000e-13)
332        alpha:  1.882e+00  5.988e-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.242e+00  2.216e-01  0.000e+00  1.000e+01 ( 1.000e+00)
598        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
599        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
596   Normalization:  8.090e-01  1.785e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.02
Ra Dec: 197.632 32.355
Photon Index (Free Index): 1.88 +/- 0.60
Photon Flux (Free Index): 2.40e-08 +/- 2.60e-08
Energy Flux (Free Index): 2.34e-05 +/- 2.08e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/285710/cmap_HighResolution_247363201_247622401_4FGL_J1310.5+3221_daily_bin31.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.69e-08', energy_flux2='2.34e-05', photon_flux_error='2.85e-08', dlogl='4.20e-01', energy_flux='1.68e-05', photon_flux2='2.40e-08', job_status='DONE', time_completed='2021-09-07 01:32:39.482837', photon_index_error2='0.60', photon_index2='1.88', ts='8.18', fit_tolerance='1e-08', GAL='1.26', photon_index_error='0.00', energy_flux_error2='2.08e-05', EG='0.78', time_epoch_completed='1631003559.48', return_code='0', job_id='285710', GAL2='1.24', EG2='0.81', return_code2='0', energy_flux_error='1.02e-05', photon_flux_error2='2.60e-08', ts2='9.02', photon_index='2.42' WHERE bin_id='31' AND source_name='4FGL J1310.5+3221' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:32:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0133>
Subject: Job 285710: <4FGL_J1310.5+3221_daily_bin31> in cluster <slac> Done

Job <4FGL_J1310.5+3221_daily_bin31> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep  7 01:16:08 2021
Job was executed on host(s) <bullet0133>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 01:16:41 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 01:16:41 2021
Terminated at Tue Sep  7 01:32:40 2021
Results reported at Tue Sep  7 01:32:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1310.5+3221_daily_bin31 197.632 32.3547 247363201 247622401 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 :                                   805.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             324.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   958 sec.
    Turnaround time :                            992 sec.

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

