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


Performing analysis on: 4FGL_J2311.0+0205_daily_bin580
RA = 347.766, Dec = 2.0995
tmin = 389664001, tmax = 389923201
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='675906', job_status='RUN', time_executed='2021-09-29 07:28:37.682603', time_epoch_executed='1632925717.68' WHERE source_name='4FGL J2311.0+0205' and cadence='daily' and bin_id='580'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/675906

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/675906/ft1_4FGL_J2311.0+0205_daily_bin580.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/675906/ft2_4FGL_J2311.0+0205_daily_bin580.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/675906/ft1_4FGL_J2311.0+0205_daily_bin580.fits outfile=/scratch/kocevski/675906/ft1_filteredMKT_4FGL_J2311.0+0205_daily_bin580.fits ra=347.766 dec=2.0995 rad=12.0 tmin=389664001.0 tmax=389923201.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 4.87
user 4.60
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/675906/ft2_4FGL_J2311.0+0205_daily_bin580.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/675906/ft1_filteredMKT_4FGL_J2311.0+0205_daily_bin580.fits evtable="EVENTS" outfile="/scratch/kocevski/675906/ft1_filtered_4FGL_J2311.0+0205_daily_bin580.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.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/675906/ft1_filtered_4FGL_J2311.0+0205_daily_bin580.fits" evtable="EVENTS" scfile=/scratch/kocevski/675906/ft2_4FGL_J2311.0+0205_daily_bin580.fits sctable="SC_DATA" outfile=/scratch/kocevski/675906/ltcube_389664001_389923201_4FGL_J2311.0+0205_daily_bin580.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/675906/ft2_4FGL_J2311.0+0205_daily_bin580.fits
.....................!
real 13.18
user 12.79
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/675906/ft1_filtered_4FGL_J2311.0+0205_daily_bin580.fits evtable="EVENTS" scfile=/scratch/kocevski/675906/ft2_4FGL_J2311.0+0205_daily_bin580.fits sctable="SC_DATA" expcube=/scratch/kocevski/675906/ltcube_389664001_389923201_4FGL_J2311.0+0205_daily_bin580.fits outfile=/scratch/kocevski/675906/expmap_389664001_389923201_4FGL_J2311.0+0205_daily_bin580.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/675906/ltcube_389664001_389923201_4FGL_J2311.0+0205_daily_bin580.fits
.....................!
real 190.05
user 185.36
sys 4.34

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/675906/ft1_filtered_4FGL_J2311.0+0205_daily_bin580.fits scfile=/scratch/kocevski/675906/ft2_4FGL_J2311.0+0205_daily_bin580.fits outfile=/scratch/kocevski/675906/cmap_389664001_389923201_4FGL_J2311.0+0205_daily_bin580.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.73
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/675906/ft1_filtered_4FGL_J2311.0+0205_daily_bin580.fits scfile=/scratch/kocevski/675906/ft2_4FGL_J2311.0+0205_daily_bin580.fits outfile=/scratch/kocevski/675906/cmap_HighResolution_389664001_389923201_4FGL_J2311.0+0205_daily_bin580.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.66
user 0.39
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/675906/ft1_filtered_4FGL_J2311.0+0205_daily_bin580.fits', '/scratch/kocevski/675906/ft2_4FGL_J2311.0+0205_daily_bin580.fits', expMap='/scratch/kocevski/675906/expmap_389664001_389923201_4FGL_J2311.0+0205_daily_bin580.fits', expCube='/scratch/kocevski/675906/ltcube_389664001_389923201_4FGL_J2311.0+0205_daily_bin580.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/675906/Model_4FGL_J2311.0+0205_daily_bin580.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/675906/ft1_filtered_4FGL_J2311.0+0205_daily_bin580.fits
Spacecraft file(s): /scratch/kocevski/675906/ft2_4FGL_J2311.0+0205_daily_bin580.fits
Exposure map: /scratch/kocevski/675906/expmap_389664001_389923201_4FGL_J2311.0+0205_daily_bin580.fits
Exposure cube: /scratch/kocevski/675906/ltcube_389664001_389923201_4FGL_J2311.0+0205_daily_bin580.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/675906/Model_4FGL_J2311.0+0205_daily_bin580.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) = 5954.02962541

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.842       1.0000         .10000E-03   10000.    
     2 'norm      '    20.798       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.7890       1.0000         .10000E-03   10000.    
     5 'Prefactor '    39.304       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    7.9916       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    20.467       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10211E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    12.720       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    211.55       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .99330       1.0000         .10000E-03   10000.    
    17 'norm      '    .37223E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.4068       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10548E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    66.888       1.0000         .10000E-03   10000.    
    21 'Prefactor '    33.286       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .65841       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .86745       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=   5953.987     FROM MIGRAD    STATUS=CONVERGED    500 CALLS     3871 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.842        8.8667       -.11305E-06   -.70186E-05
   2  norm          20.793        15.245       -.59639E-06    .54443E-04
   3  Prefactor     .10000E-03    8.9972        .65194E-06** at limit **
   4  Prefactor     6.7878        8.5216       -.47989E-06    .13182E-03
   5  Prefactor     39.301        24.269       -.26762E-06    .32065E-04
   6  Prefactor     .10000E-03    20.535       -.89679E-07** at limit **
   7  Prefactor     .10000E-03    3.2280       -.61427E-07** at limit **
   8  norm          7.9922        1.7917        .26385E-07   -.21321E-04
   9  norm          .10000E-03    4.9682       -.27101E-06** at limit **
  10  Prefactor     20.474        12.687        .19197E-05   -.78885E-04
  11  Prefactor     .10000E-03    35.495       -.12620E-05** at limit **
  12  norm          12.723        8.7222        .15429E-05    .16892E-03
  13  Prefactor     .10000E-03    6.8907       -.14380E-05** at limit **
  14  Prefactor     211.61        252.98        .22674E-05   -.32848E-04
  15  Prefactor     .10000E-03    9.7574       -.18984E-05** at limit **
  16  Prefactor     .96650        192.12       -.56337E-04    .14751E-04
  17  norm          .10000E-03    81.313        .14280E-05** at limit **
  18  Prefactor     8.3879        141.11        .38703E-05    .57909E-05
  19  Prefactor     .10000E-03    2.7052       -.29764E-05** at limit **
  20  Prefactor     66.885        41.704        .16778E-05    .13758E-04
  21  Prefactor     33.308        27.720       -.23892E-06   -.48276E-04
  22  Normalizat    .65851        .21757        .34169E-05    .56630E-05
  23  Prefactor     .86746        .12829        .78316E-06    .14504E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.8417
  norm       = 20.7933
  Prefactor  = 0.0001
  Prefactor  = 6.7878
  Prefactor  = 39.3007
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.9922
  norm       = 0.000100001
  Prefactor  = 20.4738
  Prefactor  = 0.0001
  norm       = 12.7225
  Prefactor  = 0.000100001
  Prefactor  = 211.607
  Prefactor  = 0.0001
  Prefactor  = 0.966502
  norm       = 0.000100001
  Prefactor  = 8.38786
  Prefactor  = 0.000100001
  Prefactor  = 66.8847
  Prefactor  = 33.3077
  Normalizat = 0.658513
  Prefactor  = 0.867464
 **********
 **   18 **HESSE 
 **********

 FCN=   5953.987     FROM HESSE     STATUS=OK           374 CALLS     4245 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.842        8.8676        .11641E-03   -1.5020    
   2  norm          20.793        15.281        .87826E-04   -1.4796    
   3  Prefactor     .10000E-03    8.9956        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.7878        8.5184        .15399E-03   -1.5187    
   5  Prefactor     39.301        24.291        .63934E-04   -1.4453    
   6  Prefactor     .10000E-03    20.548        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.2329        .13538E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          7.9922        1.7965        .44579E-04   -1.5142    
   9  norm          .10000E-03    5.0996        .33580E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     20.474        12.697        .88533E-04   -1.4803    
  11  Prefactor     .10000E-03    35.576        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          12.723        8.7289        .11231E-03   -1.4994    
  13  Prefactor     .10000E-03    7.1239        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     211.61        248.80        .13898E-03   -1.2788    
  15  Prefactor     .10000E-03    9.8349        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .96650        207.21        .63784E-02   -1.5511    
  17  norm          .10000E-03    83.811        .42592E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.3879        141.66        .13826E-03   -1.5129    
  19  Prefactor     .10000E-03    14.531        .22177E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     66.885        41.866        .49074E-04   -1.4070    
  21  Prefactor     33.308        27.737        .69455E-04   -1.4553    
  22  Normalizat    .65851        .24738        .34406E-03   -1.0555    
  23  Prefactor     .86746        .14720        .19381E-03   -.97287    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.1768e-10
Minuit parameter uncertainties:
  1  8.86857
  2  15.2837
  3  3.01455e-05
  4  8.51996
  5  24.2975
  6  0.000116381
  7  4.01864e-05
  8  1.79655
  9  0.000130705
  10  12.6982
  11  0.000173005
  12  8.72981
  13  0.000129438
  14  250.052
  15  3.03254e-05
  16  28.4021
  17  0.000594694
  18  69.133
  19  0.000264821
  20  41.8841
  21  27.7479
  22  0.247801
  23  0.147272
Done.

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

Extracting fit parameters...

4FGL J2311.0+0205
   Spectrum: PowerLaw
368    Prefactor:  3.930e+01  2.430e+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:  8.675e-01  1.473e-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:  6.585e-01  2.478e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.56
Ra Dec: 347.766 2.099
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 7.38e-08 +/- 4.56e-08
Energy Flux (Fixed Index): 3.40e-05 +/- 2.10e-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) = 5952.58124276
delta logL = 1.40553458237

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5952.55484533
delta logL = 1.43193201144

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.051       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1409       1.0000          .0000       10.000    
     3 'Normalizat'    .56662       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90531       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.

 FCN=   5952.555     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      255 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.042        100.26        .27719E-02    .59527E-03
   2  Index         3.1412        2.5189        .87449E-01    .32843E-03
   3  Normalizat    .56666        .96024E-01    .83227E-01    .26404E-03
   4  Prefactor     .90529        .54501E-01    .45073E-01    .81626E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.0423
  Index      = 3.14124
  Normalizat = 0.566656
  Prefactor  = 0.905294
 **********
 **   18 **HESSE 
 **********

 FCN=   5952.555     FROM HESSE     STATUS=OK            31 CALLS      286 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.042        22.830        .11088E-03   -1.4986    
   2  Index         3.1412        .92937        .35135E-02   -.38090    
   3  Normalizat    .56666        .23888        .36862E-03   -1.0942    
   4  Prefactor     .90529        .15010        .18995E-03   -.95956    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.01157e-10
Minuit parameter uncertainties:
  1  22.8449
  2  0.935694
  3  0.239317
  4  0.150164
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/675906': 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) = 5952.55484516
delta logL = 1.43193218252

Extracting fit parameters...

4FGL J2311.0+0205
   Spectrum: PowerLaw
368    Prefactor:  1.304e+01  2.284e+01  1.000e-04  1.000e+04 ( 1.000e-13)
369        Index:  3.141e+00  9.357e-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:  9.053e-01  1.502e-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:  5.667e-01  2.393e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.74
Ra Dec: 347.766 2.099
Photon Index (Free Index): 3.14 +/- 0.94
Photon Flux (Free Index): 1.44e-07 +/- 7.44e-08
Energy Flux (Free Index): 2.70e-05 +/- 1.39e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/675906/cmap_HighResolution_389664001_389923201_4FGL_J2311.0+0205_daily_bin580.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.38e-08', energy_flux2='2.70e-05', photon_flux_error='4.56e-08', dlogl='1.43e+00', energy_flux='3.40e-05', photon_flux2='1.44e-07', job_status='DONE', time_completed='2021-09-29 07:39:51.295741', photon_index_error2='0.94', photon_index2='3.14', ts='4.56', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', energy_flux_error2='1.39e-05', EG='0.66', time_epoch_completed='1632926391.3', return_code='0', job_id='675906', GAL2='0.91', EG2='0.57', return_code2='0', energy_flux_error='2.10e-05', photon_flux_error2='7.44e-08', ts2='7.74', photon_index='2.19' WHERE bin_id='580' AND source_name='4FGL J2311.0+0205' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 07:39:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 675906: <4FGL_J2311.0+0205_daily_bin580> in cluster <slac> Done

Job <4FGL_J2311.0+0205_daily_bin580> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 07:25:37 2021
Job was executed on host(s) <bullet0065>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 07:25:38 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:38 2021
Terminated at Wed Sep 29 07:39:52 2021
Results reported at Wed Sep 29 07:39:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2311.0+0205_daily_bin580 347.766 2.0995 389664001 389923201 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 :                                   668.18 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             275.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   853 sec.
    Turnaround time :                            855 sec.

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

