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


Performing analysis on: 4FGL_J2311.7+2604_daily_bin1296
RA = 347.931, Dec = 26.0831
tmin = 575251201, tmax = 575510401
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='695518', job_status='RUN', time_executed='2021-09-29 08:27:46.955253', time_epoch_executed='1632929266.96' WHERE source_name='4FGL J2311.7+2604' and cadence='daily' and bin_id='1296'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/695518

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/695518/ft1_4FGL_J2311.7+2604_daily_bin1296.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/695518/ft2_4FGL_J2311.7+2604_daily_bin1296.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/695518/ft1_4FGL_J2311.7+2604_daily_bin1296.fits outfile=/scratch/kocevski/695518/ft1_filteredMKT_4FGL_J2311.7+2604_daily_bin1296.fits ra=347.931 dec=26.0831 rad=12.0 tmin=575251201.0 tmax=575510401.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.36
user 5.01
sys 0.26

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/695518/ft2_4FGL_J2311.7+2604_daily_bin1296.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/695518/ft2_4FGL_J2311.7+2604_daily_bin1296.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/695518/ft1_filteredMKT_4FGL_J2311.7+2604_daily_bin1296.fits evtable="EVENTS" outfile="/scratch/kocevski/695518/ft1_filtered_4FGL_J2311.7+2604_daily_bin1296.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.54
user 0.33
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/695518/ft1_filtered_4FGL_J2311.7+2604_daily_bin1296.fits" evtable="EVENTS" scfile=/scratch/kocevski/695518/ft2_4FGL_J2311.7+2604_daily_bin1296.fits sctable="SC_DATA" outfile=/scratch/kocevski/695518/ltcube_575251201_575510401_4FGL_J2311.7+2604_daily_bin1296.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/695518/ft2_4FGL_J2311.7+2604_daily_bin1296.fits
.....................!
real 11.63
user 11.26
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/695518/ft1_filtered_4FGL_J2311.7+2604_daily_bin1296.fits evtable="EVENTS" scfile=/scratch/kocevski/695518/ft2_4FGL_J2311.7+2604_daily_bin1296.fits sctable="SC_DATA" expcube=/scratch/kocevski/695518/ltcube_575251201_575510401_4FGL_J2311.7+2604_daily_bin1296.fits outfile=/scratch/kocevski/695518/expmap_575251201_575510401_4FGL_J2311.7+2604_daily_bin1296.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/695518/ltcube_575251201_575510401_4FGL_J2311.7+2604_daily_bin1296.fits
.....................!
real 193.65
user 187.54
sys 5.64

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 163 point sources and 0 extended sources

Setting source of interest to:
4FGL J2311.7+2604 @ 347.931 26.0831

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/695518/ft1_filtered_4FGL_J2311.7+2604_daily_bin1296.fits scfile=/scratch/kocevski/695518/ft2_4FGL_J2311.7+2604_daily_bin1296.fits outfile=/scratch/kocevski/695518/cmap_575251201_575510401_4FGL_J2311.7+2604_daily_bin1296.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=347.931 yref=26.0831 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.54
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/695518/ft1_filtered_4FGL_J2311.7+2604_daily_bin1296.fits scfile=/scratch/kocevski/695518/ft2_4FGL_J2311.7+2604_daily_bin1296.fits outfile=/scratch/kocevski/695518/cmap_HighResolution_575251201_575510401_4FGL_J2311.7+2604_daily_bin1296.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=347.931 yref=26.0831 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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/695518/ft1_filtered_4FGL_J2311.7+2604_daily_bin1296.fits evtable="EVENTS" scfile=/scratch/kocevski/695518/ft2_4FGL_J2311.7+2604_daily_bin1296.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/695518/Model_4FGL_J2311.7+2604_daily_bin1296.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/695518/ft1_filtered_4FGL_J2311.7+2604_daily_bin1296.fits.....................!
real 94.39
user 92.89
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/695518/ft1_filtered_4FGL_J2311.7+2604_daily_bin1296.fits', '/scratch/kocevski/695518/ft2_4FGL_J2311.7+2604_daily_bin1296.fits', expMap='/scratch/kocevski/695518/expmap_575251201_575510401_4FGL_J2311.7+2604_daily_bin1296.fits', expCube='/scratch/kocevski/695518/ltcube_575251201_575510401_4FGL_J2311.7+2604_daily_bin1296.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/695518/Model_4FGL_J2311.7+2604_daily_bin1296.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2311.7+2604'

4FGL J2311.7+2604
   Spectrum: PowerLaw
368    Prefactor:  4.423e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
369        Index:  2.429e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
370        Scale:  1.013e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/695518/ft1_filtered_4FGL_J2311.7+2604_daily_bin1296.fits
Spacecraft file(s): /scratch/kocevski/695518/ft2_4FGL_J2311.7+2604_daily_bin1296.fits
Exposure map: /scratch/kocevski/695518/expmap_575251201_575510401_4FGL_J2311.7+2604_daily_bin1296.fits
Exposure cube: /scratch/kocevski/695518/ltcube_575251201_575510401_4FGL_J2311.7+2604_daily_bin1296.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/695518/Model_4FGL_J2311.7+2604_daily_bin1296.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) = 8277.59482717

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10267E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10299E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    22.443       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.7964       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.9199       1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.904       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .39176E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    15.675       1.0000         .10000E-03   10000.    
    16 'norm      '    2.6999       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10305E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10321E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.6465       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .86721       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1474       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5300E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8277.548     FROM MIGRAD    STATUS=CONVERGED    490 CALLS     2029 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    45.666        .14305E-05** at limit **
   2  Prefactor     .10000E-03    6.3644       -.12933E-06** at limit **
   3  norm          .10000E-03    .55091       -.20084E-06** at limit **
   4  Prefactor     .10000E-03    7.8391       -.18302E-06** at limit **
   5  norm          .10000E-03    .88054       -.43170E-07** at limit **
   6  Prefactor     .10000E-03    16.269       -.84619E-06** at limit **
   7  Prefactor     22.443        13.037        .75101E-07    .10736E-03
   8  Prefactor     3.7965        .38070        .69450E-08    .62286E-03
   9  Prefactor     6.9201        7.3635        .63457E-07    .34443E-04
  10  Prefactor     12.897        13.670        .56824E-07    .63284E-05
  11  Prefactor     .10000E-03    4.1869       -.13555E-06** at limit **
  12  norm          .10000E-03    .42417       -.49121E-07** at limit **
  13  Prefactor     .10000E-03    34.429       -.26774E-05** at limit **
  14  Prefactor     .10000E-03    110.62       -.12450E-04** at limit **
  15  Prefactor     15.675        10.351        .20019E-06    .26022E-05
  16  norm          2.6985        4.3481       -.12166E-05   -.53175E-04
  17  Prefactor     .10000E-03    11.894        .46915E-06** at limit **
  18  Prefactor     .10000E-03    24.835        .20928E-05** at limit **
  19  Prefactor     .10000E-03    36.462       -.13827E-05** at limit **
  20  Prefactor     7.6257        76.169        .86594E-05    .15899E-04
  21  Normalizat    .86711        .24426       -.70429E-06    .20758E-03
  22  Prefactor     1.1473        .12513        .71506E-06    .24693E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.4427
  Prefactor  = 3.79645
  Prefactor  = 6.92007
  Prefactor  = 12.8974
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 15.6747
  norm       = 2.69853
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.62569
  Normalizat = 0.867113
  Prefactor  = 1.14732
 **********
 **   18 **HESSE 
 **********

 FCN=   8277.548     FROM HESSE     STATUS=OK           340 CALLS     2369 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    45.721        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.3771        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    .85155        .12858E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.8439        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.9072        .16362E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    16.282        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     22.443        12.937        .84551E-04   -1.4760    
   8  Prefactor     3.7965        .38078        .17096E-04   -1.5318    
   9  Prefactor     6.9201        7.3641        .15251E-03   -1.5182    
  10  Prefactor     12.897        13.672        .11151E-03   -1.4990    
  11  Prefactor     .10000E-03    4.2016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .42874        .57852E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    34.730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    109.14        .73349E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     15.675        10.320        .10116E-03   -1.4916    
  16  norm          2.6985        4.3808        .23509E-03   -1.5379    
  17  Prefactor     .10000E-03    11.950        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    24.946        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    36.937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.6257        76.877        .14502E-03   -1.5156    
  21  Normalizat    .86711        .27145        .42876E-03   -.97626    
  22  Prefactor     1.1473        .14011        .19770E-03   -.87968    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.96735e-10
Minuit parameter uncertainties:
  1  4.3683e-05
  2  1.01927e-06
  3  2.01289e-05
  4  1.30735e-07
  5  3.76849e-05
  6  1.697e-05
  7  12.9385
  8  0.380783
  9  7.36507
  10  13.6756
  11  4.06636e-06
  12  1.36846e-08
  13  8.40632e-05
  14  0.000616583
  15  10.3216
  16  4.38134
  17  2.75936e-05
  18  4.67502e-07
  19  0.000121255
  20  48.5054
  21  0.271877
  22  0.140151
Done.

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

Extracting fit parameters...

4FGL J2311.7+2604
   Spectrum: PowerLaw
368    Prefactor:  1.000e-04  8.406e-05  1.000e-04  1.000e+04 ( 1.000e-13)
369        Index:  2.429e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
370        Scale:  1.013e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
527    Prefactor:  1.147e+00  1.402e-01  0.000e+00  1.000e+01 ( 1.000e+00)
528        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
529        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
526   Normalization:  8.671e-01  2.719e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 347.931 26.083
Photon Flux Upper Limit: 1.23e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.51e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/695518/likelihoodResults_575251201_575510401_4FGL_J2311.7+2604_daily_bin1296.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) = 8277.54861652
delta logL = -0.000137138231366

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8277.54847972
delta logL = -3.42166458722e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10278E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5201       1.0000          .0000       10.000    
     3 'Normalizat'    .86710       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1473       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5300E+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=   8277.548     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      300 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .30341E-03    6.1030        .18142    ** at limit **
   2  Index         1.5590        7.6405        .50000       -.28089E-05
   3  Normalizat    .86711        .33435E-02    .21438E-02   -.33611E-04
   4  Prefactor     1.1473        .17616E-02    .19770E-03   -.13111E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00030341
  Index      = 1.55896
  Normalizat = 0.86711
  Prefactor  = 1.14732
 **********
 **   18 **HESSE 
 **********

 FCN=   8277.548     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      339 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .30341E-03    12.244        .13535       -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.5590        6.7316        .50000       -.75902    
   3  Normalizat    .86711        .39461E-02    .85752E-04   -.97626    
   4  Prefactor     1.1473        .20792E-02    .79080E-05   -.87968    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.05525e-08
Minuit parameter uncertainties:
  1  0.0998324
  2  65.6085
  3  0.00394615
  4  0.00207916
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/695518': 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) = 8277.54847748
delta logL = 1.9051185518e-06

Extracting fit parameters...

4FGL J2311.7+2604
   Spectrum: PowerLaw
368    Prefactor:  3.034e-04  9.983e-02  1.000e-04  1.000e+04 ( 1.000e-13)
369        Index:  1.559e+00  6.561e+01  0.000e+00  1.000e+01 (-1.000e+00)
370        Scale:  1.013e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
527    Prefactor:  1.147e+00  2.079e-03  0.000e+00  1.000e+01 ( 1.000e+00)
528        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
529        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
526   Normalization:  8.671e-01  3.946e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 347.931 26.083

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/695518/cmap_HighResolution_575251201_575510401_4FGL_J2311.7+2604_daily_bin1296.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.51e-03', job_status='DONE', photon_flux_upper_limit='1.23e-07', time_completed='2021-09-29 08:40:19.292726', job_id='695518', GAL2='1.15', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1632930019.29', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='1.91e-06', ts2='0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1296' AND source_name='4FGL J2311.7+2604' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 08:40:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 695518: <4FGL_J2311.7+2604_daily_bin1296> in cluster <slac> Done

Job <4FGL_J2311.7+2604_daily_bin1296> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 08:25:59 2021
Job was executed on host(s) <bullet0030>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 08:26:01 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 08:26:01 2021
Terminated at Wed Sep 29 08:40:20 2021
Results reported at Wed Sep 29 08:40:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2311.7+2604_daily_bin1296 347.931 26.0831 575251201 575510401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2311.7+2604 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   722.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             269.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   858 sec.
    Turnaround time :                            861 sec.

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

