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


Performing analysis on: 4FGL_J1310.5+3221_daily_bin1453
RA = 197.632, Dec = 32.3547
tmin = 615945601, tmax = 616204801
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='298682', job_status='RUN', time_executed='2021-09-07 01:56:24.412494', time_epoch_executed='1631004984.41' WHERE source_name='4FGL J1310.5+3221' and cadence='daily' and bin_id='1453'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/298682

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/298682/ft1_4FGL_J1310.5+3221_daily_bin1453.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/298682/ft2_4FGL_J1310.5+3221_daily_bin1453.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/298682/ft1_4FGL_J1310.5+3221_daily_bin1453.fits outfile=/scratch/kocevski/298682/ft1_filteredMKT_4FGL_J1310.5+3221_daily_bin1453.fits ra=197.632 dec=32.3547 rad=12.0 tmin=615945601.0 tmax=616204801.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 4.43
user 4.04
sys 0.26

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/298682/ft1_filtered_4FGL_J1310.5+3221_daily_bin1453.fits evtable="EVENTS" scfile=/scratch/kocevski/298682/ft2_4FGL_J1310.5+3221_daily_bin1453.fits sctable="SC_DATA" expcube=/scratch/kocevski/298682/ltcube_615945601_616204801_4FGL_J1310.5+3221_daily_bin1453.fits outfile=/scratch/kocevski/298682/expmap_615945601_616204801_4FGL_J1310.5+3221_daily_bin1453.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/298682/ltcube_615945601_616204801_4FGL_J1310.5+3221_daily_bin1453.fits
.....................!
real 195.30
user 188.66
sys 6.11

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/298682/ft1_filtered_4FGL_J1310.5+3221_daily_bin1453.fits scfile=/scratch/kocevski/298682/ft2_4FGL_J1310.5+3221_daily_bin1453.fits outfile=/scratch/kocevski/298682/cmap_615945601_616204801_4FGL_J1310.5+3221_daily_bin1453.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.68
user 0.42
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/298682/ft1_filtered_4FGL_J1310.5+3221_daily_bin1453.fits scfile=/scratch/kocevski/298682/ft2_4FGL_J1310.5+3221_daily_bin1453.fits outfile=/scratch/kocevski/298682/cmap_HighResolution_615945601_616204801_4FGL_J1310.5+3221_daily_bin1453.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.58
user 0.43
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.6434       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.9752       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.3941       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.7904       1.0000         .10000E-03   10000.    
     5 'norm      '    4.8168       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.6714       1.0000         .10000E-03   10000.    
     8 'Prefactor '    107.93       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.4752       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10526E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.4400       1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.788       1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    6.9029       1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    6.5893       1.0000         .10000E-03   10000.    
    18 'norm      '    1.1067       1.0000         .10000E-03   10000.    
    19 'norm      '    .32546E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.4540       1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.9025       1.0000         .10000E-03   10000.    
    22 'norm      '    30.954       1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.1298       1.0000         .10000E-03   10000.    
    24 'norm      '    .10165E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    15.053       1.0000         .10000E-03   10000.    
    26 'Prefactor '    2.1199       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .85730       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .96806       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=   5418.776     FROM MIGRAD    STATUS=CONVERGED    738 CALLS     3897 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.6434        2.8225       -.48063E-08   -.81021E-05
   2  Prefactor     7.9763        8.4591        .36378E-06   -.20121E-03
   3  Prefactor     9.3939        3.3484       -.79264E-08   -.12566E-04
   4  Prefactor     1.7906        1.9687        .79089E-08   -.22335E-04
   5  norm          4.8168        3.5234       -.51238E-08    .41417E-05
   6  Prefactor     .10000E-03    2.3989       -.16649E-07** at limit **
   7  Prefactor     2.6611        34.272       -.18981E-05   -.81608E-04
   8  Prefactor     107.92        65.112       -.59959E-06   -.85608E-04
   9  Prefactor     2.4740        8.2211        .10931E-06    .37971E-05
  10  Prefactor     .10000E-03    6.7503       -.52307E-06** at limit **
  11  norm          1.4416        2.6998        .35272E-07    .76543E-04
  12  Prefactor     12.781        19.551       -.12047E-05   -.17006E-03
  13  norm          .10000E-03    1.8222       -.17772E-08** at limit **
  14  Prefactor     .10000E-03    11.742       -.46915E-06** at limit **
  15  norm          6.9038        5.2099       -.13878E-06    .61038E-05
  16  norm          .10000E-03    12.147        .28157E-06** at limit **
  17  norm          6.5954        6.8440        .14917E-05    .41532E-03
  18  norm          1.0949        28.535       -.56333E-05   -.14437E-03
  19  norm          .10022E-03    17.156       -.25044E-05** at limit **
  20  Prefactor     3.4532        3.6990        .10004E-05   -.60822E-03
  21  Prefactor     3.9065        22.480       -.26141E-05    .49756E-04
  22  norm          30.949        9.5104        .17226E-07    .45164E-03
  23  Prefactor     6.1341        83.331        .21689E-06    .32445E-04
  24  norm          .10000E-03    7.0791        .22777E-06** at limit **
  25  Prefactor     15.050        17.771       -.35666E-06   -.82787E-04
  26  Prefactor     2.1233        19.571        .18009E-06   -.24824E-05
  27  Prefactor     .10000E-03    32.586        .30464E-06** at limit **
  28  Prefactor     .10000E-03    2.5675        .16924E-07** at limit **
  29  Normalizat    .85708        .17659       -.38085E-06    .18961E-03
  30  Prefactor     .96831        .21555        .37266E-06    .16361E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.64335
  Prefactor  = 7.97625
  Prefactor  = 9.39394
  Prefactor  = 1.7906
  norm       = 4.8168
  Prefactor  = 0.0001
  Prefactor  = 2.66107
  Prefactor  = 107.922
  Prefactor  = 2.47403
  Prefactor  = 0.0001
  norm       = 1.44158
  Prefactor  = 12.7809
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 6.9038
  norm       = 0.0001
  norm       = 6.5954
  norm       = 1.09491
  norm       = 0.000100217
  Prefactor  = 3.45319
  Prefactor  = 3.90654
  norm       = 30.9491
  Prefactor  = 6.13414
  norm       = 0.0001
  Prefactor  = 15.0502
  Prefactor  = 2.12333
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.857083
  Prefactor  = 0.968309
 **********
 **   18 **HESSE 
 **********

 FCN=   5418.776     FROM HESSE     STATUS=OK           596 CALLS     4493 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.6434        2.8281        .10109E-03   -1.5326    
   2  Prefactor     7.9763        8.6270        .70990E-03   -1.5143    
   3  Prefactor     9.3939        3.3541        .74022E-04   -1.5095    
   4  Prefactor     1.7906        1.9523        .10358E-03   -1.5440    
   5  norm          4.8168        3.5235        .11499E-03   -1.5269    
   6  Prefactor     .10000E-03    2.4003        .11135E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.6611        34.590        .24934E-03   -1.5382    
   8  Prefactor     107.92        65.317        .19356E-03   -1.3626    
   9  Prefactor     2.4740        8.2313        .25988E-03   -1.5393    
  10  Prefactor     .10000E-03    6.8603        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.4416        2.6460        .15582E-03   -1.5468    
  12  Prefactor     12.781        19.724        .11201E-03   -1.4993    
  13  norm          .10000E-03    1.8448        .96978E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    11.829        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          6.9038        5.2231        .13854E-03   -1.5182    
  16  norm          .10000E-03    12.228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          6.5954        8.0572        .10512E-03   -1.5194    
  18  norm          1.0949        41.042        .44066E-03   -1.5499    
  19  norm          .10022E-03    53.881        .52517E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.4532        4.9164        .65040E-03   -1.5336    
  21  Prefactor     3.9065        25.758        .20424E-03   -1.5313    
  22  norm          30.949        9.4198        .72016E-04   -1.4595    
  23  Prefactor     6.1341        84.234        .16216E-03   -1.5213    
  24  norm          .10000E-03    7.1481        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     15.050        17.850        .10323E-03   -1.4932    
  26  Prefactor     2.1233        19.388        .28326E-03   -1.5417    
  27  Prefactor     .10000E-03    32.630        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    2.6108        .11506E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .85708        .21059        .23156E-03   -.97985    
  30  Prefactor     .96831        .25637        .27416E-03   -.93793    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.76908e-09
Minuit parameter uncertainties:
  1  2.82824
  2  8.62838
  3  3.35413
  4  1.95238
  5  3.52366
  6  1.5758e-06
  7  19.2014
  8  65.3606
  9  8.23508
  10  4.80563e-05
  11  2.6462
  12  19.734
  13  8.1079e-07
  14  5.36003e-05
  15  5.22349
  16  4.79159e-05
  17  8.05852
  18  13.4164
  19  0.00684216
  20  4.91701
  21  20.0745
  22  9.4203
  23  45.54
  24  2.6735e-05
  25  17.8566
  26  12.8374
  27  8.51456e-05
  28  6.16312e-07
  29  0.210787
  30  0.256694
Done.

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

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  6.595e+00  8.059e+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:  9.683e-01  2.567e-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.571e-01  2.108e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.84
Ra Dec: 197.632 32.355
Photon Index (Fixed Index): 2.42 +/- 0.00
Photon Flux (Fixed Index): 5.78e-08 +/- 7.06e-08
Energy Flux (Fixed Index): 2.07e-05 +/- 2.53e-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) = 5418.65999723
delta logL = 0.1159930002

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5418.640872
delta logL = 0.135118226947

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.2012       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6831       1.0000          .0000       5.0000    
     3 'Normalizat'    .84513       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97844       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=   5418.641     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      235 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.1981        46.419        .49153E-02    .24651E-03
   2  alpha         2.6834        3.6505        .15832        .85630E-04
   3  Normalizat    .84513        .70493E-01    .44196E-01    .11167E-04
   4  Prefactor     .97841        .80123E-01    .45997E-01   -.10315E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 4.19814
  alpha      = 2.68343
  Normalizat = 0.845126
  Prefactor  = 0.978415
 **********
 **   18 **HESSE 
 **********

 FCN=   5418.641     FROM HESSE     STATUS=OK            33 CALLS      268 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.1981        5.7476        .80911E-04   -1.5298    
   2  alpha         2.6834        .60704        .64089E-02    .73438E-01
   3  Normalizat    .84513        .19990        .23294E-03   -.98416    
   4  Prefactor     .97841        .24905        .27288E-03   -.93453    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12686e-11
Minuit parameter uncertainties:
  1  5.74838
  2  0.613202
  3  0.20007
  4  0.24934
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/298682': 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) = 5418.64087175
delta logL = 0.135118476652

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  4.198e+00  5.748e+00  1.000e-04  1.000e+04 ( 1.000e-13)
332        alpha:  2.683e+00  6.132e-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:  9.784e-01  2.493e-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.451e-01  2.001e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.16
Ra Dec: 197.632 32.355
Photon Index (Free Index): 2.68 +/- 0.61
Photon Flux (Free Index): 6.74e-08 +/- 4.06e-08
Energy Flux (Free Index): 1.84e-05 +/- 1.17e-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/298682/cmap_HighResolution_615945601_616204801_4FGL_J1310.5+3221_daily_bin1453.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.78e-08', energy_flux2='1.84e-05', photon_flux_error='7.06e-08', dlogl='1.35e-01', energy_flux='2.07e-05', photon_flux2='6.74e-08', job_status='DONE', time_completed='2021-09-07 02:08:38.206390', photon_index_error2='0.61', photon_index2='2.68', ts='4.84', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', energy_flux_error2='1.17e-05', EG='0.86', time_epoch_completed='1631005718.21', return_code='0', job_id='298682', GAL2='0.98', EG2='0.85', return_code2='0', energy_flux_error='2.53e-05', photon_flux_error2='4.06e-08', ts2='5.16', photon_index='2.42' WHERE bin_id='1453' AND source_name='4FGL J1310.5+3221' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 02:08:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0194>
Subject: Job 298682: <4FGL_J1310.5+3221_daily_bin1453> in cluster <slac> Done

Job <4FGL_J1310.5+3221_daily_bin1453> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep  7 01:55:38 2021
Job was executed on host(s) <bullet0194>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 01:56:10 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:56:10 2021
Terminated at Tue Sep  7 02:08:39 2021
Results reported at Tue Sep  7 02:08:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1310.5+3221_daily_bin1453 197.632 32.3547 615945601 616204801 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 :                                   726.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             344.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   748 sec.
    Turnaround time :                            781 sec.

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

