/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 9 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7462
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1310.5+3221_daily_bin1026
RA = 197.632, Dec = 32.3547
tmin = 505267201, tmax = 505526401
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='291817', job_status='RUN', time_executed='2021-09-07 01:38:01.594303', time_epoch_executed='1631003881.59' WHERE source_name='4FGL J1310.5+3221' and cadence='daily' and bin_id='1026'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/291817

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/291817/ft1_4FGL_J1310.5+3221_daily_bin1026.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/291817/ft2_4FGL_J1310.5+3221_daily_bin1026.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/291817/ft1_4FGL_J1310.5+3221_daily_bin1026.fits outfile=/scratch/kocevski/291817/ft1_filteredMKT_4FGL_J1310.5+3221_daily_bin1026.fits ra=197.632 dec=32.3547 rad=12.0 tmin=505267201.0 tmax=505526401.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.05
user 2.78
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/291817/ft1_filtered_4FGL_J1310.5+3221_daily_bin1026.fits evtable="EVENTS" scfile=/scratch/kocevski/291817/ft2_4FGL_J1310.5+3221_daily_bin1026.fits sctable="SC_DATA" expcube=/scratch/kocevski/291817/ltcube_505267201_505526401_4FGL_J1310.5+3221_daily_bin1026.fits outfile=/scratch/kocevski/291817/expmap_505267201_505526401_4FGL_J1310.5+3221_daily_bin1026.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/291817/ltcube_505267201_505526401_4FGL_J1310.5+3221_daily_bin1026.fits
.....................!
real 156.32
user 151.57
sys 3.84

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/291817/ft1_filtered_4FGL_J1310.5+3221_daily_bin1026.fits scfile=/scratch/kocevski/291817/ft2_4FGL_J1310.5+3221_daily_bin1026.fits outfile=/scratch/kocevski/291817/cmap_505267201_505526401_4FGL_J1310.5+3221_daily_bin1026.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.52
user 0.33
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/291817/ft1_filtered_4FGL_J1310.5+3221_daily_bin1026.fits scfile=/scratch/kocevski/291817/ft2_4FGL_J1310.5+3221_daily_bin1026.fits outfile=/scratch/kocevski/291817/cmap_HighResolution_505267201_505526401_4FGL_J1310.5+3221_daily_bin1026.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.50
user 0.35
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.224       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.5343       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.0826       1.0000         .10000E-03   10000.    
     5 'norm      '    2.4377       1.0000         .10000E-03   10000.    
     6 'Prefactor '    20.163       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.7876       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    10.618       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.6006       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.6354       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    9.2003       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    5.6751       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    7.4891       1.0000         .10000E-03   10000.    
    27 'Prefactor '    35.104       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .31737       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.3648       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .41785       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=   5362.906     FROM MIGRAD    STATUS=CONVERGED    757 CALLS     3845 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.223        4.6867       -.11624E-06    .19782E-04
   2  Prefactor     .10000E-03    2.3801       -.25139E-07** at limit **
   3  Prefactor     3.5344        2.6292       -.10250E-07   -.81791E-05
   4  Prefactor     3.0826        2.1271       -.40733E-07   -.74320E-05
   5  norm          2.4378        2.8425       -.50474E-07   -.20071E-04
   6  Prefactor     20.163        10.861       -.24017E-06    .18379E-04
   7  Prefactor     .10000E-03    11.259       -.64151E-06** at limit **
   8  Prefactor     .10000E-03    26.210        .76511E-05** at limit **
   9  Prefactor     3.7876        4.4577       -.21418E-06    .40276E-04
  10  Prefactor     .10000E-03    2.4107       -.13345E-06** at limit **
  11  norm          .10000E-03    1.1501       -.31522E-07** at limit **
  12  Prefactor     .10000E-03    8.8154       -.48146E-05** at limit **
  13  norm          10.618        5.0738       -.30882E-06    .48957E-04
  14  Prefactor     .10000E-03    14.605        .84862E-05** at limit **
  15  norm          .10000E-03    3.5213       -.84594E-06** at limit **
  16  norm          .10000E-03    4.2724       -.73530E-06** at limit **
  17  norm          2.6015        2.4709       -.41729E-06   -.70684E-04
  18  norm          .10000E-03    3.8930        .12301E-05** at limit **
  19  norm          .10000E-03    18.221       -.53662E-05** at limit **
  20  Prefactor     4.6318        3.9369        .16333E-05    .21417E-03
  21  Prefactor     .10000E-03    18.628       -.81875E-05** at limit **
  22  norm          9.1999        5.9753       -.10107E-06    .80661E-04
  23  Prefactor     .10000E-03    74.685       -.32075E-05** at limit **
  24  norm          5.6752        6.8312       -.30771E-06   -.10310E-03
  25  Prefactor     .10000E-03    8.1789        .36647E-05** at limit **
  26  Prefactor     7.4873        20.513       -.18364E-05   -.10481E-04
  27  Prefactor     35.073        64.729       -.43530E-04    .14605E-04
  28  Prefactor     .31473        2.1658       -.80341E-06    .10136E-03
  29  Normalizat    1.3649        .19143        .30419E-05    .51268E-04
  30  Prefactor     .41766        .21736       -.11677E-05    .11484E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 12.2233
  Prefactor  = 0.0001
  Prefactor  = 3.53437
  Prefactor  = 3.08261
  norm       = 2.43785
  Prefactor  = 20.1633
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.78764
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 10.618
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 2.60152
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 4.63177
  Prefactor  = 0.000100001
  norm       = 9.19987
  Prefactor  = 0.0001
  norm       = 5.67516
  Prefactor  = 0.0001
  Prefactor  = 7.48732
  Prefactor  = 35.0726
  Prefactor  = 0.314729
  Normalizat = 1.3649
  Prefactor  = 0.417663
 **********
 **   18 **HESSE 
 **********

 FCN=   5362.906     FROM HESSE     STATUS=OK           590 CALLS     4435 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.223        4.6934        .90277E-04   -1.5009    
   2  Prefactor     .10000E-03    2.3842        .11034E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.5344        2.6330        .94506E-04   -1.5332    
   4  Prefactor     3.0826        2.1242        .85379E-04   -1.5357    
   5  norm          2.4378        2.8380        .12988E-03   -1.5396    
   6  Prefactor     20.163        10.857        .89197E-04   -1.4810    
   7  Prefactor     .10000E-03    11.275        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    26.212        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.7876        4.4552        .16320E-03   -1.5319    
  10  Prefactor     .10000E-03    2.4165        .11103E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.1523        .76691E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.8381        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          10.618        5.0700        .10928E-03   -1.5056    
  14  Prefactor     .10000E-03    14.652        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.5667        .13411E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    4.2754        .14784E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.6015        2.4616        .10746E-03   -1.5385    
  18  norm          .10000E-03    3.9110        .14060E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    18.281        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.6318        3.9380        .12437E-03   -1.5278    
  21  Prefactor     .10000E-03    18.981        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          9.1999        5.9771        .13213E-03   -1.5101    
  23  Prefactor     .10000E-03    75.164        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          5.6752        6.8287        .16862E-03   -1.5231    
  25  Prefactor     .10000E-03    8.2022        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     7.4873        20.496        .14655E-03   -1.5161    
  27  Prefactor     35.073        64.870        .67638E-04   -1.4523    
  28  Prefactor     .31473        10.548        .20377E-02   -1.5596    
  29  Normalizat    1.3649        .20778        .19457E-03   -.81649    
  30  Prefactor     .41766        .23167        .39156E-03   -1.1592    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.9428e-10
Minuit parameter uncertainties:
  1  4.69356
  2  3.62428e-06
  3  2.63306
  4  2.1242
  5  2.83819
  6  10.8584
  7  2.23182e-05
  8  2.57572e-05
  9  4.45559
  10  1.01044e-05
  11  2.8865e-06
  12  2.41059e-05
  13  5.07019
  14  0.000103223
  15  4.23044e-05
  16  1.50381e-06
  17  2.46169
  18  3.15781e-06
  19  5.6656e-06
  20  3.93818
  21  0.000232843
  22  5.97744
  23  0.000305193
  24  6.82962
  25  1.23559e-05
  26  20.515
  27  65.0006
  28  3.64418
  29  0.207908
  30  0.232186
Done.

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

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  2.602e+00  2.462e+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:  4.177e-01  2.322e-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.365e+00  2.079e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.58
Ra Dec: 197.632 32.355
Photon Index (Fixed Index): 2.42 +/- 0.00
Photon Flux (Fixed Index): 2.28e-08 +/- 2.16e-08
Energy Flux (Fixed Index): 8.16e-06 +/- 7.72e-06

TS (Fixed Index): 3.58
Ra Dec: 197.632 32.355
Photon Flux Upper Limit: 8.17e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.92e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/291817/likelihoodResults_505267201_505526401_4FGL_J1310.5+3221_daily_bin1026.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5362.38125232
delta logL = 0.524652774944

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5362.38026069
delta logL = 0.525644413475

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.8285       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7239       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3772       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .40844       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=   5362.380     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      314 TOTAL
                     EDM=   .29E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.8454        5.8557        .81928E-03    .14820E-04
   2  alpha         1.7261        .64446        .15637E-01    .64880E-05
   3  Normalizat    1.3771        .19531        .96921E-03    .36832E-05
   4  Prefactor     .40842        .22871        .39570E-03    .33902E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 5.84536
  alpha      = 1.72606
  Normalizat = 1.37712
  Prefactor  = 0.408418
 **********
 **   18 **HESSE 
 **********

 FCN=   5362.380     FROM HESSE     STATUS=OK            27 CALLS      341 TOTAL
                     EDM=   .51E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.8454        5.7757        .32771E-04   -1.5224    
   2  alpha         1.7261        .63600        .62549E-03   -.31475    
   3  Normalizat    1.3771        .19596        .38768E-04   -.81293    
   4  Prefactor     .40842        .22949        .15828E-04   -1.1638    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.11785e-13
Minuit parameter uncertainties:
  1  5.77623
  2  0.643846
  3  0.196062
  4  0.230004
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/291817': 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) = 5362.38024658
delta logL = 0.525658517145

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  5.845e+00  5.776e+00  1.000e-04  1.000e+04 ( 1.000e-13)
332        alpha:  1.726e+00  6.438e-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:  4.084e-01  2.300e-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.377e+00  1.961e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.64
Ra Dec: 197.632 32.355
Photon Index (Free Index): 1.73 +/- 0.64
Photon Flux (Free Index): 1.27e-08 +/- 1.55e-08
Energy Flux (Free Index): 1.86e-05 +/- 2.57e-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/291817/cmap_HighResolution_505267201_505526401_4FGL_J1310.5+3221_daily_bin1026.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.92e-05', comment='SUCCESS', photon_flux='2.28e-08', energy_flux2='1.86e-05', photon_flux_error='2.16e-08', dlogl='5.26e-01', energy_flux='8.16e-06', photon_flux2='1.27e-08', job_status='DONE', time_completed='2021-09-07 01:49:08.691500', photon_index_error2='0.64', photon_index2='1.73', ts='3.58', fit_tolerance='1e-08', GAL='0.42', photon_index_error='0.00', photon_flux_upper_limit='8.17e-08', energy_flux_error2='2.57e-05', EG='1.36', time_epoch_completed='1631004548.69', return_code='0', job_id='291817', GAL2='0.41', EG2='1.38', return_code2='0', energy_flux_error='7.72e-06', photon_flux_error2='1.55e-08', ts2='4.64', photon_index='2.42' WHERE bin_id='1026' AND source_name='4FGL J1310.5+3221' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:49:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 291817: <4FGL_J1310.5+3221_daily_bin1026> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1310.5+3221_daily_bin1026 197.632 32.3547 505267201 505526401 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 :                                   660.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             342.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   689 sec.
    Turnaround time :                            791 sec.

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

