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


Performing analysis on: 4FGL_J2311.0+0205_daily_bin601
RA = 347.766, Dec = 2.0995
tmin = 395107201, tmax = 395366401
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='675936', job_status='RUN', time_executed='2021-09-29 07:29:44.122322', time_epoch_executed='1632925784.12' WHERE source_name='4FGL J2311.0+0205' and cadence='daily' and bin_id='601'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/675936

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

Retrieving the FT1 file...

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

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

Retrieving 55 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/675936/ft1_4FGL_J2311.0+0205_daily_bin601.fits


Retrieving the FT1 file...

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

Retrieving 55 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/675936/ft2_4FGL_J2311.0+0205_daily_bin601.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/675936/ft1_4FGL_J2311.0+0205_daily_bin601.fits outfile=/scratch/kocevski/675936/ft1_filteredMKT_4FGL_J2311.0+0205_daily_bin601.fits ra=347.766 dec=2.0995 rad=12.0 tmin=395107201.0 tmax=395366401.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 8.09
user 7.71
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/675936/ft1_filtered_4FGL_J2311.0+0205_daily_bin601.fits" evtable="EVENTS" scfile=/scratch/kocevski/675936/ft2_4FGL_J2311.0+0205_daily_bin601.fits sctable="SC_DATA" outfile=/scratch/kocevski/675936/ltcube_395107201_395366401_4FGL_J2311.0+0205_daily_bin601.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/675936/ft2_4FGL_J2311.0+0205_daily_bin601.fits
.....................!
real 11.32
user 10.97
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/675936/ft1_filtered_4FGL_J2311.0+0205_daily_bin601.fits evtable="EVENTS" scfile=/scratch/kocevski/675936/ft2_4FGL_J2311.0+0205_daily_bin601.fits sctable="SC_DATA" expcube=/scratch/kocevski/675936/ltcube_395107201_395366401_4FGL_J2311.0+0205_daily_bin601.fits outfile=/scratch/kocevski/675936/expmap_395107201_395366401_4FGL_J2311.0+0205_daily_bin601.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/675936/ltcube_395107201_395366401_4FGL_J2311.0+0205_daily_bin601.fits
.....................!
real 191.26
user 185.45
sys 5.26

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/675936/ft1_filtered_4FGL_J2311.0+0205_daily_bin601.fits scfile=/scratch/kocevski/675936/ft2_4FGL_J2311.0+0205_daily_bin601.fits outfile=/scratch/kocevski/675936/cmap_395107201_395366401_4FGL_J2311.0+0205_daily_bin601.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.61
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/675936/ft1_filtered_4FGL_J2311.0+0205_daily_bin601.fits scfile=/scratch/kocevski/675936/ft2_4FGL_J2311.0+0205_daily_bin601.fits outfile=/scratch/kocevski/675936/cmap_HighResolution_395107201_395366401_4FGL_J2311.0+0205_daily_bin601.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/675936/ft1_filtered_4FGL_J2311.0+0205_daily_bin601.fits evtable="EVENTS" scfile=/scratch/kocevski/675936/ft2_4FGL_J2311.0+0205_daily_bin601.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/675936/Model_4FGL_J2311.0+0205_daily_bin601.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/675936/ft1_filtered_4FGL_J2311.0+0205_daily_bin601.fits.....................!
real 52.31
user 50.88
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.149       1.0000         .10000E-03   10000.    
     2 'norm      '    9.3233       1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.179       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.3070       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.9004       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    27.342       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.8892       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    38.458       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12497E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .24536E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.228       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .34071       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0267       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=   4731.354     FROM MIGRAD    STATUS=CONVERGED    520 CALLS     2566 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.150        9.6241        .40449E-07   -.61486E-05
   2  norm          9.3226        11.089       -.18860E-06   -.10036E-04
   3  Prefactor     14.127        46.386        .39527E-05    .57132E-04
   4  Prefactor     6.3070        12.913       -.26489E-06   -.42092E-04
   5  Prefactor     .10000E-03    6.2874        .50568E-08** at limit **
   6  Prefactor     .10000E-03    23.514        .24117E-05** at limit **
   7  Prefactor     .10000E-03    3.7493       -.25321E-07** at limit **
   8  norm          2.9002        1.4375        .33038E-06    .74828E-03
   9  norm          .10000E-03    2.1536       -.50140E-07** at limit **
  10  Prefactor     27.339        13.022       -.50723E-06   -.14546E-03
  11  Prefactor     .10000E-03    21.093       -.12077E-05** at limit **
  12  norm          .10000E-03    8.3433       -.24586E-06** at limit **
  13  Prefactor     9.8887        8.9152       -.12133E-06   -.63423E-04
  14  Prefactor     .10000E-03    87.312        .25047E-05** at limit **
  15  Prefactor     38.450        17.560        .11251E-05    .75742E-03
  16  Prefactor     .10000E-03    8.7641       -.58298E-07** at limit **
  17  norm          .10000E-03    24.420       -.26196E-05** at limit **
  18  Prefactor     .10001E-03    557.77       -.13676E-04** at limit **
  19  Prefactor     .10330E-03    3.9291       -.19864E-05** at limit **
  20  Prefactor     .10000E-03    18.378        .18618E-07** at limit **
  21  Prefactor     12.228        20.259        .38422E-06    .21623E-04
  22  Normalizat    .34060        .25793        .23554E-05    .17501E-03
  23  Prefactor     1.0268        .15431       -.68101E-06    .35511E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.1496
  norm       = 9.32265
  Prefactor  = 14.1269
  Prefactor  = 6.30703
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 2.90016
  norm       = 0.0001
  Prefactor  = 27.3392
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.88873
  Prefactor  = 0.000100001
  Prefactor  = 38.4503
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100013
  Prefactor  = 0.000103295
  Prefactor  = 0.0001
  Prefactor  = 12.2282
  Normalizat = 0.340596
  Prefactor  = 1.02683
 **********
 **   18 **HESSE 
 **********

 FCN=   4731.354     FROM HESSE     STATUS=OK           374 CALLS     2940 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.150        9.6296        .12577E-03   -1.5071    
   2  norm          9.3226        11.058        .13125E-03   -1.5097    
   3  Prefactor     14.127        45.851        .10637E-03   -1.4956    
   4  Prefactor     6.3070        12.899        .15983E-03   -1.5206    
   5  Prefactor     .10000E-03    6.2917        .16845E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    23.603        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.7572        .13007E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.9002        1.4125        .26443E-03   -1.5367    
   9  norm          .10000E-03    2.1582        .98584E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     27.339        13.028        .76615E-04   -1.4662    
  11  Prefactor     .10000E-03    21.135        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    8.4177        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.8887        8.8500        .12742E-03   -1.5079    
  14  Prefactor     .10000E-03    87.444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     38.450        20.656        .64631E-04   -1.4467    
  16  Prefactor     .10000E-03    8.7774        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    24.590        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10001E-03    574.51        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10330E-03    11.142        .36892E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    18.425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     12.228        20.223        .11455E-03   -1.5008    
  22  Normalizat    .34060        .25554        .43617E-03   -1.2049    
  23  Prefactor     1.0268        .15886        .17052E-03   -.91841    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.45137e-09
Minuit parameter uncertainties:
  1  9.63104
  2  11.0607
  3  45.9659
  4  12.9042
  5  6.99283e-06
  6  0.000218858
  7  4.56264e-06
  8  1.41251
  9  4.39138e-06
  10  13.0297
  11  0.000105309
  12  1.26832e-05
  13  8.85118
  14  0.000479921
  15  20.6598
  16  1.37055e-06
  17  0.000129208
  18  0.00557977
  19  0.0121208
  20  6.09271e-06
  21  20.2345
  22  0.256418
  23  0.158933
Done.

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

Extracting fit parameters...

4FGL J2311.0+0205
   Spectrum: PowerLaw
368    Prefactor:  1.000e-04  6.993e-06  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:  1.027e+00  1.589e-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:  3.406e-01  2.564e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 347.766 2.099
Photon Flux Upper Limit: 6.04e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.60e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/675936/likelihoodResults_395107201_395366401_4FGL_J2311.0+0205_daily_bin601.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) = 4731.35506301
delta logL = -0.000755471852244

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4731.35430751
delta logL = 2.90174284601e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1743       1.0000          .0000       10.000    
     3 'Normalizat'    .34059       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0268       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=   4731.354     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      240 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10080E-03    90.170        .16937E-02** at limit **
   2  Index         2.1270        7.7558        .50000        .12906E-04
   3  Normalizat    .34059        .19631E-01    .43617E-03   -.15579E-03
   4  Prefactor     1.0268        .13069E-01    .17052E-03   -.18466E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100798
  Index      = 2.127
  Normalizat = 0.340591
  Prefactor  = 1.02683
 **********
 **   18 **HESSE 
 **********

 FCN=   4731.354     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      269 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10080E-03    375.84        .33874E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1270        7.5217        .50000       -.61212    
   3  Normalizat    .34059        .42542E-01    .17447E-04   -1.2049    
   4  Prefactor     1.0268        .28322E-01    .34104E-04   -.91841    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.8895e-08
Minuit parameter uncertainties:
  1  0.0348513
  2  869.861
  3  0.0425464
  4  0.028322
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/675936': 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) = 4731.35430739
delta logL = 1.43490979099e-07

Extracting fit parameters...

4FGL J2311.0+0205
   Spectrum: PowerLaw
368    Prefactor:  1.008e-04  3.485e-02  1.000e-04  1.000e+04 ( 1.000e-13)
369        Index:  2.127e+00  8.699e+02  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.027e+00  2.832e-02  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:  3.406e-01  4.255e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 347.766 2.099

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/675936/cmap_HighResolution_395107201_395366401_4FGL_J2311.0+0205_daily_bin601.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.60e-03', job_status='DONE', photon_flux_upper_limit='6.04e-08', time_completed='2021-09-29 07:39:27.677448', job_id='675936', GAL2='1.03', fit_tolerance='1e-08', EG2='0.34', EG='0.34', time_epoch_completed='1632926367.68', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='1.43e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='601' AND source_name='4FGL J2311.0+0205' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 07:39:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 675936: <4FGL_J2311.0+0205_daily_bin601> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2311.0+0205_daily_bin601 347.766 2.0995 395107201 395366401 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 :                                   580.04 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             280.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   826 sec.
    Turnaround time :                            829 sec.

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

