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


Performing analysis on: 4FGL_J1310.5+3221_daily_bin251
RA = 197.632, Dec = 32.3547
tmin = 304387201, tmax = 304646401
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='287264', job_status='RUN', time_executed='2021-09-07 01:22:07.050054', time_epoch_executed='1631002927.05' WHERE source_name='4FGL J1310.5+3221' and cadence='daily' and bin_id='251'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/287264

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/287264/ft1_4FGL_J1310.5+3221_daily_bin251.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/287264/ft2_4FGL_J1310.5+3221_daily_bin251.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/287264/ft1_4FGL_J1310.5+3221_daily_bin251.fits outfile=/scratch/kocevski/287264/ft1_filteredMKT_4FGL_J1310.5+3221_daily_bin251.fits ra=197.632 dec=32.3547 rad=12.0 tmin=304387201.0 tmax=304646401.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.20
user 3.91
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/287264/ft1_filtered_4FGL_J1310.5+3221_daily_bin251.fits evtable="EVENTS" scfile=/scratch/kocevski/287264/ft2_4FGL_J1310.5+3221_daily_bin251.fits sctable="SC_DATA" expcube=/scratch/kocevski/287264/ltcube_304387201_304646401_4FGL_J1310.5+3221_daily_bin251.fits outfile=/scratch/kocevski/287264/expmap_304387201_304646401_4FGL_J1310.5+3221_daily_bin251.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/287264/ltcube_304387201_304646401_4FGL_J1310.5+3221_daily_bin251.fits
.....................!
real 193.33
user 187.63
sys 4.99

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/287264/ft1_filtered_4FGL_J1310.5+3221_daily_bin251.fits scfile=/scratch/kocevski/287264/ft2_4FGL_J1310.5+3221_daily_bin251.fits outfile=/scratch/kocevski/287264/cmap_304387201_304646401_4FGL_J1310.5+3221_daily_bin251.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.65
user 0.41
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/287264/ft1_filtered_4FGL_J1310.5+3221_daily_bin251.fits scfile=/scratch/kocevski/287264/ft2_4FGL_J1310.5+3221_daily_bin251.fits outfile=/scratch/kocevski/287264/cmap_HighResolution_304387201_304646401_4FGL_J1310.5+3221_daily_bin251.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.65
user 0.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    15.507       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.6191       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.4843       1.0000         .10000E-03   10000.    
     5 'norm      '    .69791E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .66485E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.251       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.3404       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.5543       1.0000         .10000E-03   10000.    
    14 'Prefactor '    22.399       1.0000         .10000E-03   10000.    
    15 'norm      '    .10066E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10084E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.4299       1.0000         .10000E-03   10000.    
    18 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.9723       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10598E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    13.627       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    10.650       1.0000         .10000E-03   10000.    
    27 'Prefactor '    29.374       1.0000         .10000E-03   10000.    
    28 'Prefactor '    17.244       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1729       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .65222       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=   5011.640     FROM MIGRAD    STATUS=CONVERGED    769 CALLS     3348 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          15.507        5.3239       -.54068E-07    .64086E-04
   2  Prefactor     .10000E-03    2.3008        .23399E-07** at limit **
   3  Prefactor     7.6188        3.5290       -.56112E-07    .59939E-04
   4  Prefactor     1.4841        1.5350       -.44784E-07    .88840E-04
   5  norm          .10006E-03    2.7767        .27408E-05** at limit **
   6  Prefactor     .10005E-03    100.18       -.43528E-04** at limit **
   7  Prefactor     12.256        19.780       -.17826E-06    .24047E-05
   8  Prefactor     .10000E-03    21.615        .13006E-05** at limit **
   9  Prefactor     .10000E-03    3.6576        .30491E-06** at limit **
  10  Prefactor     .10000E-03    3.0194        .95779E-07** at limit **
  11  norm          3.3404        3.8000       -.19671E-06   -.64681E-04
  12  Prefactor     .10000E-03    21.325        .15463E-05** at limit **
  13  norm          4.5545        4.4756       -.65185E-06   -.40924E-04
  14  Prefactor     22.395        17.745        .59718E-06    .48363E-04
  15  norm          .10000E-03    3.3210        .73333E-06** at limit **
  16  norm          .10000E-03    19.391        .94159E-06** at limit **
  17  norm          3.4305        2.9574        .41938E-06    .15173E-03
  18  norm          .10000E-03    5.1834        .70394E-07** at limit **
  19  norm          .10000E-03    9.4610       -.35255E-06** at limit **
  20  Prefactor     2.9696        3.9296       -.21925E-05   -.41013E-03
  21  Prefactor     .10000E-03    10.736        .32255E-05** at limit **
  22  norm          13.629        7.5970       -.14471E-05    .58121E-04
  23  Prefactor     .10000E-03    73.048       -.12069E-04** at limit **
  24  norm          .10000E-03    16.035       -.15294E-05** at limit **
  25  Prefactor     .10000E-03    4.2225        .22881E-07** at limit **
  26  Prefactor     10.655        19.249       -.41791E-06    .18340E-04
  27  Prefactor     29.405        38.871       -.72599E-05   -.15300E-03
  28  Prefactor     17.244        5.7065        .24574E-07    .10664E-03
  29  Normalizat    1.1731        .19381        .82335E-06   -.35263E-03
  30  Prefactor     .65187        .22585       -.19051E-05    .20304E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 15.5066
  Prefactor  = 0.0001
  Prefactor  = 7.61877
  Prefactor  = 1.48411
  norm       = 0.000100055
  Prefactor  = 0.000100055
  Prefactor  = 12.2561
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.3404
  Prefactor  = 0.0001
  norm       = 4.55447
  Prefactor  = 22.3955
  norm       = 0.0001
  norm       = 0.0001
  norm       = 3.43045
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 2.96957
  Prefactor  = 0.000100003
  norm       = 13.6287
  Prefactor  = 0.0001
  norm       = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 10.6549
  Prefactor  = 29.4048
  Prefactor  = 17.2443
  Normalizat = 1.17311
  Prefactor  = 0.651871
 **********
 **   18 **HESSE 
 **********

 FCN=   5011.640     FROM HESSE     STATUS=OK           584 CALLS     3932 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          15.507        5.3412        .86368E-04   -1.4920    
   2  Prefactor     .10000E-03    2.3045        .10487E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.6188        3.5383        .81719E-04   -1.5156    
   4  Prefactor     1.4841        1.5327        .86239E-04   -1.5464    
   5  norm          .10006E-03    12.261        .21360E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10005E-03    101.01        .34440E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     12.256        19.763        .11445E-03   -1.5008    
   8  Prefactor     .10000E-03    21.627        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.6750        .13223E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.0300        .12004E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.3404        3.7902        .14156E-03   -1.5342    
  12  Prefactor     .10000E-03    21.450        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.5545        4.4698        .14165E-03   -1.5281    
  14  Prefactor     22.395        17.768        .84634E-04   -1.4761    
  15  norm          .10000E-03    3.3576        .12608E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    19.722        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.4305        2.9502        .10749E-03   -1.5338    
  18  norm          .10000E-03    5.2153        .15697E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    9.4825        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.9696        3.9332        .14928E-03   -1.5363    
  21  Prefactor     .10000E-03    10.962        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          13.629        7.5603        .10850E-03   -1.4969    
  23  Prefactor     .10000E-03    73.142        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    16.350        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    4.2263        .14207E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     10.655        19.246        .12277E-03   -1.5055    
  27  Prefactor     29.405        39.147        .73923E-04   -1.4623    
  28  Prefactor     17.244        5.7090        .93268E-04   -1.4877    
  29  Normalizat    1.1731        .22058        .21097E-03   -.87438    
  30  Prefactor     .65187        .25497        .33281E-03   -1.0544    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.64365e-09
Minuit parameter uncertainties:
  1  5.34133
  2  1.32984e-06
  3  3.5384
  4  1.53279
  5  0.00164791
  6  0.00471538
  7  19.7735
  8  7.85414e-05
  9  1.63541e-05
  10  6.36151e-06
  11  3.79042
  12  0.000186145
  13  4.47014
  14  17.7721
  15  6.91707e-05
  16  4.67675e-05
  17  2.95029
  18  2.02724e-05
  19  2.44385e-05
  20  3.93355
  21  0.000342465
  22  7.56082
  23  0.000235572
  24  0.000537451
  25  6.7588e-06
  26  19.2574
  27  39.181
  28  5.70922
  29  0.220751
  30  0.255426
Done.

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

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  3.430e+00  2.950e+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.519e-01  2.554e-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.173e+00  2.208e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.01
Ra Dec: 197.632 32.355
Photon Index (Fixed Index): 2.42 +/- 0.00
Photon Flux (Fixed Index): 3.01e-08 +/- 2.58e-08
Energy Flux (Fixed Index): 1.08e-05 +/- 9.25e-06

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) = 5011.26529925
delta logL = 0.37481796522

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5011.26296666
delta logL = 0.377150549662

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.6172       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7704       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1928       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63725       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=   5011.263     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      311 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.6198        6.5224        .77999E-03    .76550E-04
   2  alpha         1.7708        .72986        .16392E-01    .10754E-04
   3  Normalizat    1.1927        .21002        .20952E-03   -.41759E-04
   4  Prefactor     .63730        .25378        .33637E-03   -.39747E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.61978
  alpha      = 1.77077
  Normalizat = 1.19271
  Prefactor  = 0.637297
 **********
 **   18 **HESSE 
 **********

 FCN=   5011.263     FROM HESSE     STATUS=OK            25 CALLS      336 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.6198        6.4251        .31200E-04   -1.5193    
   2  alpha         1.7708        .71937        .65567E-03   -.29599    
   3  Normalizat    1.1927        .21011        .41904E-04   -.86828    
   4  Prefactor     .63730        .25395        .13455E-04   -1.0604    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18233e-11
Minuit parameter uncertainties:
  1  6.42582
  2  0.730683
  3  0.210262
  4  0.254408
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/287264': 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) = 5011.26296627
delta logL = 0.377150936505

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  6.620e+00  6.426e+00  1.000e-04  1.000e+04 ( 1.000e-13)
332        alpha:  1.771e+00  7.307e-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.373e-01  2.544e-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.193e+00  2.103e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.77
Ra Dec: 197.632 32.355
Photon Index (Free Index): 1.77 +/- 0.73
Photon Flux (Free Index): 1.55e-08 +/- 2.07e-08
Energy Flux (Free Index): 2.01e-05 +/- 2.74e-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/287264/cmap_HighResolution_304387201_304646401_4FGL_J1310.5+3221_daily_bin251.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.01e-08', energy_flux2='2.01e-05', photon_flux_error='2.58e-08', dlogl='3.77e-01', energy_flux='1.08e-05', photon_flux2='1.55e-08', job_status='DONE', time_completed='2021-09-07 01:33:18.811265', photon_index_error2='0.73', photon_index2='1.77', ts='6.01', fit_tolerance='1e-08', GAL='0.65', photon_index_error='0.00', energy_flux_error2='2.74e-05', EG='1.17', time_epoch_completed='1631003598.81', return_code='0', job_id='287264', GAL2='0.64', EG2='1.19', return_code2='0', energy_flux_error='9.25e-06', photon_flux_error2='2.07e-08', ts2='6.77', photon_index='2.42' WHERE bin_id='251' AND source_name='4FGL J1310.5+3221' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:33:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0011>
Subject: Job 287264: <4FGL_J1310.5+3221_daily_bin251> in cluster <slac> Done

Job <4FGL_J1310.5+3221_daily_bin251> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep  7 01:20:53 2021
Job was executed on host(s) <bullet0011>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 01:21:56 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:21:56 2021
Terminated at Tue Sep  7 01:33:20 2021
Results reported at Tue Sep  7 01:33:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1310.5+3221_daily_bin251 197.632 32.3547 304387201 304646401 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 :                                   664.15 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             290.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   683 sec.
    Turnaround time :                            747 sec.

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

