/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 13 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 = 7379
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1310.5+3221_daily_bin1141
RA = 197.632, Dec = 32.3547
tmin = 535075201, tmax = 535334401
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='293358', job_status='RUN', time_executed='2021-09-07 01:42:24.498644', time_epoch_executed='1631004144.5' WHERE source_name='4FGL J1310.5+3221' and cadence='daily' and bin_id='1141'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/293358

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/293358/ft1_4FGL_J1310.5+3221_daily_bin1141.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/293358/ft2_4FGL_J1310.5+3221_daily_bin1141.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/293358/ft1_4FGL_J1310.5+3221_daily_bin1141.fits outfile=/scratch/kocevski/293358/ft1_filteredMKT_4FGL_J1310.5+3221_daily_bin1141.fits ra=197.632 dec=32.3547 rad=12.0 tmin=535075201.0 tmax=535334401.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 5.02
user 4.74
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/293358/ft2_4FGL_J1310.5+3221_daily_bin1141.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/293358/ft1_filteredMKT_4FGL_J1310.5+3221_daily_bin1141.fits evtable="EVENTS" outfile="/scratch/kocevski/293358/ft1_filtered_4FGL_J1310.5+3221_daily_bin1141.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.50
user 0.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/293358/ft1_filtered_4FGL_J1310.5+3221_daily_bin1141.fits" evtable="EVENTS" scfile=/scratch/kocevski/293358/ft2_4FGL_J1310.5+3221_daily_bin1141.fits sctable="SC_DATA" outfile=/scratch/kocevski/293358/ltcube_535075201_535334401_4FGL_J1310.5+3221_daily_bin1141.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/293358/ft2_4FGL_J1310.5+3221_daily_bin1141.fits
.....................!
real 14.73
user 14.18
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/293358/ft1_filtered_4FGL_J1310.5+3221_daily_bin1141.fits evtable="EVENTS" scfile=/scratch/kocevski/293358/ft2_4FGL_J1310.5+3221_daily_bin1141.fits sctable="SC_DATA" expcube=/scratch/kocevski/293358/ltcube_535075201_535334401_4FGL_J1310.5+3221_daily_bin1141.fits outfile=/scratch/kocevski/293358/expmap_535075201_535334401_4FGL_J1310.5+3221_daily_bin1141.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/293358/ltcube_535075201_535334401_4FGL_J1310.5+3221_daily_bin1141.fits
.....................!
real 192.34
user 186.46
sys 5.21

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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/293358/ft1_filtered_4FGL_J1310.5+3221_daily_bin1141.fits scfile=/scratch/kocevski/293358/ft2_4FGL_J1310.5+3221_daily_bin1141.fits outfile=/scratch/kocevski/293358/cmap_HighResolution_535075201_535334401_4FGL_J1310.5+3221_daily_bin1141.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.67
user 0.40
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/293358/ft1_filtered_4FGL_J1310.5+3221_daily_bin1141.fits', '/scratch/kocevski/293358/ft2_4FGL_J1310.5+3221_daily_bin1141.fits', expMap='/scratch/kocevski/293358/expmap_535075201_535334401_4FGL_J1310.5+3221_daily_bin1141.fits', expCube='/scratch/kocevski/293358/ltcube_535075201_535334401_4FGL_J1310.5+3221_daily_bin1141.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/293358/Model_4FGL_J1310.5+3221_daily_bin1141.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/293358/ft1_filtered_4FGL_J1310.5+3221_daily_bin1141.fits
Spacecraft file(s): /scratch/kocevski/293358/ft2_4FGL_J1310.5+3221_daily_bin1141.fits
Exposure map: /scratch/kocevski/293358/expmap_535075201_535334401_4FGL_J1310.5+3221_daily_bin1141.fits
Exposure cube: /scratch/kocevski/293358/ltcube_535075201_535334401_4FGL_J1310.5+3221_daily_bin1141.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/293358/Model_4FGL_J1310.5+3221_daily_bin1141.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 6079.66871627

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    17.915       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.0106       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .30349       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .41722       1.0000         .10000E-03   10000.    
     5 'norm      '    4.0804       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10210E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.2043       1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.925       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.3346       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .53726E-02   1.0000         .10000E-03   10000.    
    11 'norm      '    .13745E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.1736       1.0000         .10000E-03   10000.    
    13 'norm      '    .92202E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .50233E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .11394E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10935E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    19.969       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .12998E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .73358       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10204E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    19.277       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.2991       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .89193       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=   6079.453     FROM MIGRAD    STATUS=CONVERGED    833 CALLS     3533 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          17.915        5.3875       -.31592E-06   -.32868E-03
   2  Prefactor     3.0107        5.4388       -.12500E-06   -.39345E-04
   3  Prefactor     .30378        2.6410        .99892E-06    .60060E-03
   4  Prefactor     .41837        2.7098        .13275E-05    .81310E-03
   5  norm          4.0806        3.5224        .10095E-06    .37199E-03
   6  Prefactor     .10000E-03    19.922        .17502E-06** at limit **
   7  Prefactor     1.1853        8.7760        .47106E-05   -.20026E-03
   8  Prefactor     16.812        36.373        .12934E-05    .49055E-04
   9  Prefactor     4.3342        6.2550        .28994E-06   -.19389E-03
  10  Prefactor     .10001E-03    10.873       -.86592E-05** at limit **
  11  norm          .10000E-03    5.2943        .64211E-05** at limit **
  12  Prefactor     9.1772        13.472        .53884E-06    .88223E-04
  13  norm          .93004E-01    1.6168       -.34488E-06   -.76338E-04
  14  Prefactor     .10000E-03    4.6927       -.32875E-07** at limit **
  15  norm          .10000E-03    1.1882       -.81007E-08** at limit **
  16  norm          .10000E-03    11.505       -.44673E-05** at limit **
  17  norm          .10000E-03    4.5358        .60755E-05** at limit **
  18  norm          .10015E-03    4.5058        .68649E-06** at limit **
  19  norm          19.966        19.338       -.42731E-07   -.60611E-04
  20  Prefactor     .10000E-03    1.4781       -.85122E-06** at limit **
  21  Prefactor     .10000E-03    16.521       -.27129E-07** at limit **
  22  norm          .72902        4.4771       -.11137E-05   -.90850E-04
  23  Prefactor     .10000E-03    33.974       -.10849E-06** at limit **
  24  norm          .10000E-03    7.9712        .10855E-06** at limit **
  25  Prefactor     .10000E-03    10.122        .75106E-06** at limit **
  26  Prefactor     19.272        26.802       -.17861E-05   -.43573E-03
  27  Prefactor     .10000E-03    16.910        .58909E-06** at limit **
  28  Prefactor     .10000E-03    2.1508       -.46586E-07** at limit **
  29  Normalizat    1.2989        .17603       -.29144E-06   -.11410E-03
  30  Prefactor     .89208        .21173        .45425E-06    .25047E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 17.9147
  Prefactor  = 3.01067
  Prefactor  = 0.303784
  Prefactor  = 0.418367
  norm       = 4.08059
  Prefactor  = 0.000100002
  Prefactor  = 1.18535
  Prefactor  = 16.8121
  Prefactor  = 4.33422
  Prefactor  = 0.00010001
  norm       = 0.000100003
  Prefactor  = 9.17722
  norm       = 0.0930043
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.00010015
  norm       = 19.9664
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  norm       = 0.729021
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.2716
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.29893
  Prefactor  = 0.892076
 **********
 **   18 **HESSE 
 **********

 FCN=   6079.453     FROM HESSE     STATUS=OK           608 CALLS     4141 TOTAL
                     EDM=   .47E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          17.915        5.2147        .84581E-04   -1.4861    
   2  Prefactor     3.0107        5.4240        .23392E-03   -1.5361    
   3  Prefactor     .30378        2.4804        .22214E-03   -1.5598    
   4  Prefactor     .41837        2.7763        .23993E-03   -1.5579    
   5  norm          4.0806        3.5220        .13213E-03   -1.5304    
   6  Prefactor     .10000E-03    20.310        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.1853        44.255        .20656E-02   -1.5490    
   8  Prefactor     16.812        36.352        .97353E-04   -1.4888    
   9  Prefactor     4.3342        6.3709        .96739E-03   -1.5292    
  10  Prefactor     .10001E-03    38.421        .31455E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    12.522        .19797E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     9.1772        13.293        .13232E-03   -1.5102    
  13  norm          .93004E-01    10.214        .19102E-02   -1.5647    
  14  Prefactor     .10000E-03    4.6973        .16493E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.1895        .82991E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    66.398        .47569E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    9.1398        .18800E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10015E-03    4.1103        .51059E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          19.966        19.546        .89629E-04   -1.4814    
  20  Prefactor     .10000E-03    6.6716        .17793E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    16.733        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .72902        20.967        .30242E-02   -1.5537    
  23  Prefactor     .10000E-03    34.061        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    8.0062        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    10.144        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     19.272        27.182        .91225E-04   -1.4830    
  27  Prefactor     .10000E-03    16.909        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    2.1762        .11163E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.2989        .21231        .21522E-03   -.83598    
  30  Prefactor     .89208        .25927        .30974E-03   -.96419    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.74592e-08
Minuit parameter uncertainties:
  1  5.2148
  2  5.42489
  3  1.73591
  4  2.15535
  5  3.52215
  6  0.000448324
  7  14.4965
  8  36.3998
  9  6.37187
  10  0.00122989
  11  0.00041532
  12  13.2971
  13  1.94855
  14  2.25158e-06
  15  7.93521e-07
  16  8.0126e-05
  17  0.000120361
  18  0.00156955
  19  19.5523
  20  0.000248414
  21  0.000254081
  22  7.82184
  23  7.2355e-05
  24  1.21592e-05
  25  2.52885e-05
  26  27.1996
  27  5.46115e-06
  28  5.8284e-06
  29  0.212449
  30  0.259626
Done.

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

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  1.000e-04  1.204e-04  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:  8.921e-01  2.596e-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.299e+00  2.124e-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: 6.42e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.30e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/293358/likelihoodResults_535075201_535334401_4FGL_J1310.5+3221_daily_bin1141.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) = 6079.45323406
delta logL = -0.000522851195456

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6079.45271158
delta logL = -3.7353765947e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11163E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4709       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2991       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89194       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=   6079.453     FROM MIGRAD    STATUS=CONVERGED    111 CALLS      285 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .11018E-03    .23009        .20131E-01** at limit **
   2  alpha         3.0933        3.1245        .50000        .13026E-05
   3  Normalizat    1.2989        .23282E-02    .21522E-03    .91111E-03
   4  Prefactor     .89207        .28484E-02    .30974E-03    .46826E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000110177
  alpha      = 3.09325
  Normalizat = 1.29893
  Prefactor  = 0.892074
 **********
 **   18 **HESSE 
 **********

 FCN=   6079.453     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      324 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .11018E-03    .31676        .17776E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         3.0933        3.4408        .50000        .23959    
   3  Normalizat    1.2989        .24615E-02    .43044E-04   -.83598    
   4  Prefactor     .89207        .30115E-02    .61948E-04   -.96419    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.87045e-09
Minuit parameter uncertainties:
  1  0.00359092
  2  26.941
  3  0.00246154
  4  0.00301146
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/293358': 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): 102
logL (Free Index) = 6079.45270317
delta logL = 8.03739203548e-06

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  1.102e-04  3.591e-03  1.000e-04  1.000e+04 ( 1.000e-13)
332        alpha:  3.093e+00  2.694e+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:  8.921e-01  3.011e-03  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.299e+00  2.462e-03  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/293358/cmap_HighResolution_535075201_535334401_4FGL_J1310.5+3221_daily_bin1141.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.30e-05', job_status='DONE', photon_flux_upper_limit='6.42e-08', time_completed='2021-09-07 01:56:52.254722', job_id='293358', GAL2='0.89', fit_tolerance='1e-08', EG2='1.30', EG='1.30', time_epoch_completed='1631005012.25', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='8.04e-06', ts2='0.00', photon_index_error='0.00', photon_index='2.42' WHERE bin_id='1141' AND source_name='4FGL J1310.5+3221' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:56:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0021>
Subject: Job 293358: <4FGL_J1310.5+3221_daily_bin1141> in cluster <slac> Done

Job <4FGL_J1310.5+3221_daily_bin1141> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Sep  7 01:40:34 2021
Job was executed on host(s) <bullet0021>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 01:41:58 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:41:58 2021
Terminated at Tue Sep  7 01:56:53 2021
Results reported at Tue Sep  7 01:56:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1310.5+3221_daily_bin1141 197.632 32.3547 535075201 535334401 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 :                                   850.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             328.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   895 sec.
    Turnaround time :                            979 sec.

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

