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


Performing analysis on: 4FGL_J2311.0+0205_daily_bin433
RA = 347.766, Dec = 2.0995
tmin = 351561601, tmax = 351820801
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='675692', job_status='RUN', time_executed='2021-09-29 07:25:28.795574', time_epoch_executed='1632925528.8' WHERE source_name='4FGL J2311.0+0205' and cadence='daily' and bin_id='433'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/675692

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

Retrieving the FT1 file...

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

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

Retrieving 52 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/675692/ft1_4FGL_J2311.0+0205_daily_bin433.fits


Retrieving the FT1 file...

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

Retrieving 52 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/675692/ft2_4FGL_J2311.0+0205_daily_bin433.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/675692/ft1_4FGL_J2311.0+0205_daily_bin433.fits outfile=/scratch/kocevski/675692/ft1_filteredMKT_4FGL_J2311.0+0205_daily_bin433.fits ra=347.766 dec=2.0995 rad=12.0 tmin=351561601.0 tmax=351820801.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 6.86
user 6.61
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/675692/ft2_4FGL_J2311.0+0205_daily_bin433.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/675692/ft2_4FGL_J2311.0+0205_daily_bin433.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/675692/ft1_filteredMKT_4FGL_J2311.0+0205_daily_bin433.fits evtable="EVENTS" outfile="/scratch/kocevski/675692/ft1_filtered_4FGL_J2311.0+0205_daily_bin433.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.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/675692/ft1_filtered_4FGL_J2311.0+0205_daily_bin433.fits" evtable="EVENTS" scfile=/scratch/kocevski/675692/ft2_4FGL_J2311.0+0205_daily_bin433.fits sctable="SC_DATA" outfile=/scratch/kocevski/675692/ltcube_351561601_351820801_4FGL_J2311.0+0205_daily_bin433.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/675692/ft2_4FGL_J2311.0+0205_daily_bin433.fits
.....................!
real 11.35
user 10.95
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/675692/ft1_filtered_4FGL_J2311.0+0205_daily_bin433.fits evtable="EVENTS" scfile=/scratch/kocevski/675692/ft2_4FGL_J2311.0+0205_daily_bin433.fits sctable="SC_DATA" expcube=/scratch/kocevski/675692/ltcube_351561601_351820801_4FGL_J2311.0+0205_daily_bin433.fits outfile=/scratch/kocevski/675692/expmap_351561601_351820801_4FGL_J2311.0+0205_daily_bin433.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/675692/ltcube_351561601_351820801_4FGL_J2311.0+0205_daily_bin433.fits
.....................!
real 191.28
user 185.66
sys 5.27

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.0+0205 @ 347.766 2.0995

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/675692/ft1_filtered_4FGL_J2311.0+0205_daily_bin433.fits scfile=/scratch/kocevski/675692/ft2_4FGL_J2311.0+0205_daily_bin433.fits outfile=/scratch/kocevski/675692/cmap_351561601_351820801_4FGL_J2311.0+0205_daily_bin433.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.766 yref=2.0995 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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/675692/ft1_filtered_4FGL_J2311.0+0205_daily_bin433.fits scfile=/scratch/kocevski/675692/ft2_4FGL_J2311.0+0205_daily_bin433.fits outfile=/scratch/kocevski/675692/cmap_HighResolution_351561601_351820801_4FGL_J2311.0+0205_daily_bin433.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.766 yref=2.0995 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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/675692/ft1_filtered_4FGL_J2311.0+0205_daily_bin433.fits evtable="EVENTS" scfile=/scratch/kocevski/675692/ft2_4FGL_J2311.0+0205_daily_bin433.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/675692/Model_4FGL_J2311.0+0205_daily_bin433.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/675692/ft1_filtered_4FGL_J2311.0+0205_daily_bin433.fits.....................!
real 73.27
user 71.83
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/675692/ft1_filtered_4FGL_J2311.0+0205_daily_bin433.fits', '/scratch/kocevski/675692/ft2_4FGL_J2311.0+0205_daily_bin433.fits', expMap='/scratch/kocevski/675692/expmap_351561601_351820801_4FGL_J2311.0+0205_daily_bin433.fits', expCube='/scratch/kocevski/675692/ltcube_351561601_351820801_4FGL_J2311.0+0205_daily_bin433.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/675692/Model_4FGL_J2311.0+0205_daily_bin433.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2311.0+0205'

4FGL J2311.0+0205
   Spectrum: PowerLaw
368    Prefactor:  6.504e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
369        Index:  2.186e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
370        Scale:  1.185e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/675692/ft1_filtered_4FGL_J2311.0+0205_daily_bin433.fits
Spacecraft file(s): /scratch/kocevski/675692/ft2_4FGL_J2311.0+0205_daily_bin433.fits
Exposure map: /scratch/kocevski/675692/expmap_351561601_351820801_4FGL_J2311.0+0205_daily_bin433.fits
Exposure cube: /scratch/kocevski/675692/ltcube_351561601_351820801_4FGL_J2311.0+0205_daily_bin433.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/675692/Model_4FGL_J2311.0+0205_daily_bin433.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) = 7371.83229536

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.7556       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    60.641       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.0097       1.0000         .10000E-03   10000.    
     9 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.2170       1.0000         .10000E-03   10000.    
    11 'Prefactor '    67.715       1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.0478       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10160E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10131E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    20.512       1.0000         .10000E-03   10000.    
    17 'norm      '    57.356       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .71976       1.0000         .10000E-03   10000.    
    20 'Prefactor '    94.149       1.0000         .10000E-03   10000.    
    21 'Prefactor '    40.796       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0826       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .97361       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5340E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7371.783     FROM MIGRAD    STATUS=CONVERGED    506 CALLS     2697 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.2660       -.13099E-08** at limit **
   2  norm          1.7564        25.188       -.21491E-05   -.11223E-03
   3  Prefactor     .10000E-03    10.185        .34999E-07** at limit **
   4  Prefactor     .10000E-03    7.0655       -.16405E-07** at limit **
   5  Prefactor     60.650        30.147       -.39892E-05    .69186E-03
   6  Prefactor     .10000E-03    15.198       -.65983E-06** at limit **
   7  Prefactor     .10000E-03    3.8136       -.51161E-08** at limit **
   8  norm          2.0095        1.0454       -.27717E-07    .21938E-02
   9  norm          .10000E-03    3.0364       -.23252E-08** at limit **
  10  Prefactor     8.2174        10.419       -.67758E-07    .45376E-04
  11  Prefactor     67.711        71.803       -.29226E-05    .20204E-03
  12  norm          .10000E-03    16.732       -.54808E-06** at limit **
  13  Prefactor     3.0474        8.6496       -.13767E-05   -.16365E-03
  14  Prefactor     .10004E-03    316.30       -.21234E-04** at limit **
  15  Prefactor     .10001E-03    21.935       -.23287E-05** at limit **
  16  Prefactor     20.519        36.203       -.68323E-06    .64291E-04
  17  norm          57.331        30.336        .11911E-04   -.10061E-03
  18  Prefactor     .10000E-03    16.479        .15166E-05** at limit **
  19  Prefactor     .72624        3.9260       -.66288E-05    .23486E-03
  20  Prefactor     94.149        53.264        .12153E-05    .12613E-03
  21  Prefactor     40.790        34.361        .69429E-06   -.92964E-05
  22  Normalizat    1.0829        .22611        .23183E-05    .60055E-03
  23  Prefactor     .97344        .13256       -.40309E-06    .77843E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.75635
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 60.65
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.00953
  norm       = 0.0001
  Prefactor  = 8.2174
  Prefactor  = 67.7106
  norm       = 0.0001
  Prefactor  = 3.04736
  Prefactor  = 0.000100043
  Prefactor  = 0.00010001
  Prefactor  = 20.5191
  norm       = 57.3307
  Prefactor  = 0.0001
  Prefactor  = 0.726238
  Prefactor  = 94.1492
  Prefactor  = 40.7904
  Normalizat = 1.08286
  Prefactor  = 0.973438
 **********
 **   18 **HESSE 
 **********

 FCN=   7371.783     FROM HESSE     STATUS=OK           360 CALLS     3057 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.2670        .12622E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.7564        25.622        .31633E-03   -1.5443    
   3  Prefactor     .10000E-03    10.190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.0896        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     60.650        30.019        .51525E-04   -1.4149    
   6  Prefactor     .10000E-03    15.206        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.8353        .16371E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.0095        1.0446        .29204E-04   -1.5424    
   9  norm          .10000E-03    3.1080        .14604E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.2174        10.387        .13986E-03   -1.5135    
  11  Prefactor     67.711        71.698        .48776E-04   -1.4060    
  12  norm          .10000E-03    17.022        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.0474        8.6046        .23240E-03   -1.5359    
  14  Prefactor     .10004E-03    315.13        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10001E-03    22.397        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     20.519        35.966        .88436E-04   -1.4802    
  17  norm          57.331        31.514        .52971E-04   -1.4192    
  18  Prefactor     .10000E-03    16.475        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .72624        7.3655        .28348E-02   -1.5538    
  20  Prefactor     94.149        53.390        .41420E-04   -1.3764    
  21  Prefactor     40.790        34.382        .62759E-04   -1.4430    
  22  Normalizat    1.0829        .26453        .32424E-03   -.90304    
  23  Prefactor     .97344        .15540        .21644E-03   -.93620    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.73234e-09
Minuit parameter uncertainties:
  1  2.33276e-07
  2  13.4232
  3  2.19905e-06
  4  3.02686e-06
  5  30.027
  6  4.85072e-05
  7  1.03309e-06
  8  1.04465
  9  7.00244e-07
  10  10.3891
  11  71.7894
  12  0.000159986
  13  8.60805
  14  0.00738773
  15  0.00093057
  16  36.0043
  17  31.5235
  18  0.00011733
  19  4.62604
  20  53.417
  21  34.3986
  22  0.264855
  23  0.155472
Done.

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

Extracting fit parameters...

4FGL J2311.0+0205
   Spectrum: PowerLaw
368    Prefactor:  6.065e+01  3.003e+01  1.000e-04  1.000e+04 ( 1.000e-13)
369        Index:  2.186e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
370        Scale:  1.185e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
531    Prefactor:  9.734e-01  1.555e-01  0.000e+00  1.000e+01 ( 1.000e+00)
532        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
533        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
530   Normalization:  1.083e+00  2.649e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.60
Ra Dec: 347.766 2.099
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 1.14e-07 +/- 5.63e-08
Energy Flux (Fixed Index): 5.25e-05 +/- 2.60e-05

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) = 7370.47201957
delta logL = 1.31104595741

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7370.4663454
delta logL = 1.31672012926

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.226       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8704       1.0000          .0000       10.000    
     3 'Normalizat'    .99101       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0113       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5340E+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=   7370.466     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      303 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.220        30.219        .74110E-04    .29914E-03
   2  Index         2.8704        .56716        .35276E-02    .11789E-03
   3  Normalizat    .99085        .25074        .33663E-03   -.15127E-03
   4  Prefactor     1.0115        .15707        .21268E-03   -.50388E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.2205
  Index      = 2.87039
  Normalizat = 0.990854
  Prefactor  = 1.01147
 **********
 **   18 **HESSE 
 **********

 FCN=   7370.466     FROM HESSE     STATUS=OK            25 CALLS      328 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.220        25.442        .29644E-05   -1.4626    
   2  Index         2.8704        .47725        .14110E-03   -.43998    
   3  Normalizat    .99085        .24985        .13465E-04   -.93337    
   4  Prefactor     1.0115        .15641        .42536E-04   -.92348    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.50801e-10
Minuit parameter uncertainties:
  1  25.4511
  2  0.478138
  3  0.250142
  4  0.156476
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/675692': 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) = 7370.4663442
delta logL = 1.31672132836

Extracting fit parameters...

4FGL J2311.0+0205
   Spectrum: PowerLaw
368    Prefactor:  2.922e+01  2.545e+01  1.000e-04  1.000e+04 ( 1.000e-13)
369        Index:  2.870e+00  4.781e-01  0.000e+00  1.000e+01 (-1.000e+00)
370        Scale:  1.185e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
531    Prefactor:  1.011e+00  1.565e-01  0.000e+00  1.000e+01 ( 1.000e+00)
532        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
533        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
530   Normalization:  9.909e-01  2.501e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.45
Ra Dec: 347.766 2.099
Photon Index (Free Index): 2.87 +/- 0.48
Photon Flux (Free Index): 1.89e-07 +/- 8.21e-08
Energy Flux (Free Index): 4.05e-05 +/- 1.72e-05

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/675692/cmap_HighResolution_351561601_351820801_4FGL_J2311.0+0205_daily_bin433.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.14e-07', energy_flux2='4.05e-05', photon_flux_error='5.63e-08', dlogl='1.32e+00', energy_flux='5.25e-05', photon_flux2='1.89e-07', job_status='DONE', time_completed='2021-09-29 07:36:36.315425', photon_index_error2='0.48', photon_index2='2.87', ts='6.60', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', energy_flux_error2='1.72e-05', EG='1.08', time_epoch_completed='1632926196.32', return_code='0', job_id='675692', GAL2='1.01', EG2='0.99', return_code2='0', energy_flux_error='2.60e-05', photon_flux_error2='8.21e-08', ts2='9.45', photon_index='2.19' WHERE bin_id='433' AND source_name='4FGL J2311.0+0205' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 07:36:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 675692: <4FGL_J2311.0+0205_daily_bin433> in cluster <slac> Done

Job <4FGL_J2311.0+0205_daily_bin433> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 07:25:17 2021
Job was executed on host(s) <bullet0225>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 07:25:19 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 07:25:19 2021
Terminated at Wed Sep 29 07:36:37 2021
Results reported at Wed Sep 29 07:36:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2311.0+0205_daily_bin433 347.766 2.0995 351561601 351820801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2311.0+0205 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   662.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             378.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   677 sec.
    Turnaround time :                            680 sec.

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

