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


Performing analysis on: 4FGL_J1310.5+3221_daily_bin991
RA = 197.632, Dec = 32.3547
tmin = 496195201, tmax = 496454401
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='291768', job_status='RUN', time_executed='2021-09-07 01:37:39.324527', time_epoch_executed='1631003859.32' WHERE source_name='4FGL J1310.5+3221' and cadence='daily' and bin_id='991'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/291768

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/291768/ft1_4FGL_J1310.5+3221_daily_bin991.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/291768/ft2_4FGL_J1310.5+3221_daily_bin991.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/291768/ft1_4FGL_J1310.5+3221_daily_bin991.fits outfile=/scratch/kocevski/291768/ft1_filteredMKT_4FGL_J1310.5+3221_daily_bin991.fits ra=197.632 dec=32.3547 rad=12.0 tmin=496195201.0 tmax=496454401.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.59
user 3.26
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/291768/ft1_filtered_4FGL_J1310.5+3221_daily_bin991.fits" evtable="EVENTS" scfile=/scratch/kocevski/291768/ft2_4FGL_J1310.5+3221_daily_bin991.fits sctable="SC_DATA" outfile=/scratch/kocevski/291768/ltcube_496195201_496454401_4FGL_J1310.5+3221_daily_bin991.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/291768/ft2_4FGL_J1310.5+3221_daily_bin991.fits
.....................!
real 17.33
user 16.89
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/291768/ft1_filtered_4FGL_J1310.5+3221_daily_bin991.fits evtable="EVENTS" scfile=/scratch/kocevski/291768/ft2_4FGL_J1310.5+3221_daily_bin991.fits sctable="SC_DATA" expcube=/scratch/kocevski/291768/ltcube_496195201_496454401_4FGL_J1310.5+3221_daily_bin991.fits outfile=/scratch/kocevski/291768/expmap_496195201_496454401_4FGL_J1310.5+3221_daily_bin991.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/291768/ltcube_496195201_496454401_4FGL_J1310.5+3221_daily_bin991.fits
.....................!
real 192.14
user 186.64
sys 4.81

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/291768/ft1_filtered_4FGL_J1310.5+3221_daily_bin991.fits scfile=/scratch/kocevski/291768/ft2_4FGL_J1310.5+3221_daily_bin991.fits outfile=/scratch/kocevski/291768/cmap_496195201_496454401_4FGL_J1310.5+3221_daily_bin991.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.63
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/291768/ft1_filtered_4FGL_J1310.5+3221_daily_bin991.fits scfile=/scratch/kocevski/291768/ft2_4FGL_J1310.5+3221_daily_bin991.fits outfile=/scratch/kocevski/291768/cmap_HighResolution_496195201_496454401_4FGL_J1310.5+3221_daily_bin991.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.7029       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.0177       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.7280       1.0000         .10000E-03   10000.    
     5 'norm      '    7.9972       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.1038       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    10.565       1.0000         .10000E-03   10000.    
    12 'Prefactor '    32.237       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10074E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .42140E-01   1.0000         .10000E-03   10000.    
    17 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10158E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.5829       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    8.6480       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11402E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .11775E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    4.3770       1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.4985       1.0000         .10000E-03   10000.    
    27 'Prefactor '    15.223       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0030       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1443       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6000E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5823.468     FROM MIGRAD    STATUS=CONVERGED    147 CALLS     3273 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.7021        3.8283       -.44821E-06   -.81726E-05
   2  Prefactor     1.0193        9.2093        .14971E-04    .37207E-03
   3  Prefactor     .10000E-03    1.1132       -.52489E-07** at limit **
   4  Prefactor     7.7281        3.2858        .18633E-06   -.85747E-04
   5  norm          7.9968        1.0763        .92384E-07   -.39514E-03
   6  Prefactor     4.1032        1.1351       -.41576E-06    .49863E-03
   7  Prefactor     .10000E-03    6.1156       -.67750E-06** at limit **
   8  Prefactor     .10000E-03    37.434       -.60196E-06** at limit **
   9  Prefactor     .10000E-03    6.9408        .41071E-06** at limit **
  10  Prefactor     .10000E-03    4.1407        .81321E-06** at limit **
  11  norm          10.569        1.5660        .42480E-06   -.10046E-02
  12  Prefactor     32.217        4.3532        .10018E-05   -.22872E-02
  13  norm          .10000E-03    1.4741        .51735E-06** at limit **
  14  Prefactor     .10000E-03    7.1999       -.14288E-05** at limit **
  15  norm          .10000E-03    2.3718       -.98039E-07** at limit **
  16  norm          .10002E-03    538.28        .12684E-04** at limit **
  17  norm          .10000E-03    .77472        .39881E-07** at limit **
  18  norm          .10000E-03    1.3118       -.38117E-06** at limit **
  19  norm          .10002E-03    15.640        .61233E-05** at limit **
  20  Prefactor     1.5841        2.3143       -.39500E-07   -.36657E-05
  21  Prefactor     .10000E-03    3.6270       -.56098E-06** at limit **
  22  norm          8.6632        4.1938       -.40466E-06   -.33173E-02
  23  Prefactor     .10001E-03    16.266       -.24577E-05** at limit **
  24  norm          .10000E-03    57.076       -.60154E-05** at limit **
  25  Prefactor     4.3741        2.2609        .14130E-05   -.88593E-03
  26  Prefactor     1.5621        77.900       -.17784E-04   -.12657E-04
  27  Prefactor     15.240        2.6827        .19182E-06   -.45010E-03
  28  Prefactor     .10000E-03    4.1532       -.12058E-05** at limit **
  29  Normalizat    1.0027        .20276       -.98285E-06   -.17111E-04
  30  Prefactor     1.1446        .25466        .94333E-06   -.16085E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.70211
  Prefactor  = 1.01931
  Prefactor  = 0.0001
  Prefactor  = 7.72812
  norm       = 7.99681
  Prefactor  = 4.10323
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.5691
  Prefactor  = 32.2174
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100021
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.000100015
  Prefactor  = 1.58409
  Prefactor  = 0.0001
  norm       = 8.66325
  Prefactor  = 0.000100011
  norm       = 0.0001
  Prefactor  = 4.37413
  Prefactor  = 1.56209
  Prefactor  = 15.2401
  Prefactor  = 0.0001
  Normalizat = 1.00266
  Prefactor  = 1.1446
 **********
 **   18 **HESSE 
 **********

 FCN=   5823.468     FROM HESSE     STATUS=OK           652 CALLS     3925 TOTAL
                     EDM=   .17E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.7021        3.8402        .36121E-02   -1.5153    
   2  Prefactor     1.0193        9.3632        .12879E-01   -1.5506    
   3  Prefactor     .10000E-03    1.1034        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.7281        3.3857        .36062E-02   -1.5152    
   5  norm          7.9968        5.3677        .35446E-02   -1.5142    
   6  Prefactor     4.1032        11.355        .49751E-02   -1.5303    
   7  Prefactor     .10000E-03    6.1127        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    37.532        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.8399        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.0654        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          10.569        6.2694        .30816E-02   -1.5058    
  12  Prefactor     32.217        30.633        .17643E-02   -1.4572    
  13  norm          .10000E-03    1.4665        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.1867        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.3548        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10002E-03    11.984        .92317E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .77385        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.3120        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10002E-03    17.893        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.5841        2.3509        .84375E-02   -1.5456    
  21  Prefactor     .10000E-03    3.6245        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          8.6632        9.5856        .34077E-02   -1.5119    
  23  Prefactor     .10001E-03    18.086        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    8.2352        .90712E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     4.3741        10.597        .48128E-02   -1.5290    
  26  Prefactor     1.5621        82.660        .87472E-02   -1.5458    
  27  Prefactor     15.240        60.246        .25664E-02   -1.4927    
  28  Prefactor     .10000E-03    4.0087        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0027        .17422        .46204E-01   -.92941    
  30  Prefactor     1.1446        .21348        .62758E-01   -.88053    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.65106e-07
Minuit parameter uncertainties:
  1  3.84033
  2  6.17967
  3  1.93137e-07
  4  3.38579
  5  5.36805
  6  11.3611
  7  2.92108e-07
  8  0.000434953
  9  4.2293e-06
  10  1.06829e-06
  11  6.26977
  12  30.6482
  13  2.56312e-06
  14  1.00501e-05
  15  1.22963e-06
  16  0.00100008
  17  2.04866e-07
  18  1.52208e-06
  19  0.00104416
  20  2.35105
  21  5.50187e-07
  22  9.58734
  23  0.000881635
  24  2.83801e-05
  25  10.6018
  26  22.7589
  27  60.4878
  28  5.18164e-07
  29  0.174319
  30  0.213643
Done.

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

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  1.000e-04  2.049e-07  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.145e+00  2.136e-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.003e+00  1.743e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/291768/likelihoodResults_496195201_496454401_4FGL_J1310.5+3221_daily_bin991.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): 102
logL (Free Index) = 5823.46850332
delta logL = -4.60775454485e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5823.46846689
delta logL = -9.64092760114e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12721E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3552       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0027       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1446       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=   5823.468     FROM MIGRAD    STATUS=CONVERGED     68 CALLS      218 TOTAL
                     EDM=   .41E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    34.313        .90712E-02** at limit **
   2  alpha         1.3839        3.5238        .41239       -.14275E-06
   3  Normalizat    1.0027        .18496E-01    .46201E-01    .15454E-04
   4  Prefactor     1.1446        .23184E-01    .62758E-01    .16186E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.38388
  Normalizat = 1.00266
  Prefactor  = 1.1446
 **********
 **   18 **HESSE 
 **********

 FCN=   5823.468     FROM HESSE     STATUS=OK            31 CALLS      249 TOTAL
                     EDM=   .76E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    41.234        .10178E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.3839        2.7019        .16496       -.46279    
   3  Normalizat    1.0027        .20141        .23591E-03   -.92941    
   4  Prefactor     1.1446        .25229        .27758E-03   -.88053    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.58169e-11
Minuit parameter uncertainties:
  1  0.000137145
  2  618.874
  3  0.201568
  4  0.252552
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/291768': 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) = 5823.46841956
delta logL = 3.76821290047e-05

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  1.000e-04  1.371e-04  1.000e-04  1.000e+04 ( 1.000e-13)
332        alpha:  1.384e+00  6.189e+02  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.145e+00  2.526e-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.003e+00  2.016e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 197.632 32.355

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/291768/cmap_HighResolution_496195201_496454401_4FGL_J1310.5+3221_daily_bin991.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.35e-05', job_status='DONE', photon_flux_upper_limit='3.77e-08', time_completed='2021-09-07 01:50:53.491506', job_id='291768', GAL2='1.14', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1631004653.49', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='3.77e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.42' WHERE bin_id='991' AND source_name='4FGL J1310.5+3221' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:50:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0253>
Subject: Job 291768: <4FGL_J1310.5+3221_daily_bin991> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1310.5+3221_daily_bin991 197.632 32.3547 496195201 496454401 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 :                                   790.52 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             293.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   816 sec.
    Turnaround time :                            899 sec.

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

