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


Performing analysis on: 4FGL_J2311.0+0205_daily_bin331
RA = 347.766, Dec = 2.0995
tmin = 325123201, tmax = 325382401
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='674473', job_status='RUN', time_executed='2021-09-29 07:22:23.434269', time_epoch_executed='1632925343.43' WHERE source_name='4FGL J2311.0+0205' and cadence='daily' and bin_id='331'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/674473

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/674473/ft1_4FGL_J2311.0+0205_daily_bin331.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/674473/ft2_4FGL_J2311.0+0205_daily_bin331.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/674473/ft1_4FGL_J2311.0+0205_daily_bin331.fits outfile=/scratch/kocevski/674473/ft1_filteredMKT_4FGL_J2311.0+0205_daily_bin331.fits ra=347.766 dec=2.0995 rad=12.0 tmin=325123201.0 tmax=325382401.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 3.60
user 3.37
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/674473/ft1_filtered_4FGL_J2311.0+0205_daily_bin331.fits evtable="EVENTS" scfile=/scratch/kocevski/674473/ft2_4FGL_J2311.0+0205_daily_bin331.fits sctable="SC_DATA" expcube=/scratch/kocevski/674473/ltcube_325123201_325382401_4FGL_J2311.0+0205_daily_bin331.fits outfile=/scratch/kocevski/674473/expmap_325123201_325382401_4FGL_J2311.0+0205_daily_bin331.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/674473/ltcube_325123201_325382401_4FGL_J2311.0+0205_daily_bin331.fits
.....................!
real 191.94
user 186.40
sys 5.22

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/674473/ft1_filtered_4FGL_J2311.0+0205_daily_bin331.fits scfile=/scratch/kocevski/674473/ft2_4FGL_J2311.0+0205_daily_bin331.fits outfile=/scratch/kocevski/674473/cmap_325123201_325382401_4FGL_J2311.0+0205_daily_bin331.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.56
user 0.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/674473/ft1_filtered_4FGL_J2311.0+0205_daily_bin331.fits scfile=/scratch/kocevski/674473/ft2_4FGL_J2311.0+0205_daily_bin331.fits outfile=/scratch/kocevski/674473/cmap_HighResolution_325123201_325382401_4FGL_J2311.0+0205_daily_bin331.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.56
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.8583       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    39.484       1.0000         .10000E-03   10000.    
     6 'Prefactor '    17.328       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11273E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.1450       1.0000         .10000E-03   10000.    
     9 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    52.009       1.0000         .10000E-03   10000.    
    12 'norm      '    18.162       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .56621E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    123.36       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.0389       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.2244       1.0000         .10000E-03   10000.    
    17 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    88.664       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.7309       1.0000         .10000E-03   10000.    
    20 'Prefactor '    47.526       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .94825       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .85663       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=   5990.256     FROM MIGRAD    STATUS=CONVERGED    490 CALLS     2530 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.8582        5.6697        .41863E-07    .16857E-04
   2  norm          .10000E-03    7.0857       -.61625E-07** at limit **
   3  Prefactor     .10000E-03    29.299       -.29382E-06** at limit **
   4  Prefactor     .10000E-03    4.1135       -.84838E-07** at limit **
   5  Prefactor     39.488        23.605        .33932E-06    .21563E-04
   6  Prefactor     17.387        57.857       -.16497E-05   -.22571E-04
   7  Prefactor     .10000E-03    10.434        .69879E-05** at limit **
   8  norm          1.1449        .91824        .12196E-06   -.16503E-03
   9  norm          .10000E-03    2.2750        .99010E-06** at limit **
  10  Prefactor     .10000E-03    3.6272       -.19114E-06** at limit **
  11  Prefactor     52.017        56.090        .17981E-06    .17354E-04
  12  norm          18.187        11.051        .79853E-06    .57099E-03
  13  Prefactor     .10001E-03    4.3912       -.10260E-05** at limit **
  14  Prefactor     123.41        167.16       -.46850E-06    .19513E-04
  15  Prefactor     5.0432        14.232       -.47477E-06   -.50485E-04
  16  Prefactor     5.2225        43.900        .55139E-06    .29464E-04
  17  norm          .10000E-03    8.8779        .10211E-06** at limit **
  18  Prefactor     88.667        78.043        .61866E-07   -.25161E-04
  19  Prefactor     2.7294        6.3615        .14648E-05    .28893E-04
  20  Prefactor     47.523        48.871        .53723E-06   -.23775E-04
  21  Prefactor     .10000E-03    13.877       -.25249E-06** at limit **
  22  Normalizat    .94834        .24016       -.58833E-05    .11911E-03
  23  Prefactor     .85661        .13906        .32571E-05   -.18880E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.8582
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 39.4877
  Prefactor  = 17.3866
  Prefactor  = 0.000100001
  norm       = 1.14493
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 52.0172
  norm       = 18.1868
  Prefactor  = 0.000100008
  Prefactor  = 123.408
  Prefactor  = 5.04318
  Prefactor  = 5.22247
  norm       = 0.0001
  Prefactor  = 88.6667
  Prefactor  = 2.72939
  Prefactor  = 47.5228
  Prefactor  = 0.0001
  Normalizat = 0.948343
  Prefactor  = 0.85661
 **********
 **   18 **HESSE 
 **********

 FCN=   5990.256     FROM HESSE     STATUS=OK           368 CALLS     2898 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.8582        5.6628        .20544E-03   -1.5315    
   2  norm          .10000E-03    7.1350        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    29.412        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.1280        .15330E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     39.488        23.627        .63789E-04   -1.4450    
   6  Prefactor     17.387        58.209        .96217E-04   -1.4874    
   7  Prefactor     .10000E-03    10.924        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.1449        .91811        .62408E-04   -1.5494    
   9  norm          .10000E-03    2.2867        .11414E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.6329        .14392E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     52.017        56.032        .55613E-04   -1.4264    
  12  norm          18.187        10.241        .93980E-04   -1.4855    
  13  Prefactor     .10001E-03    16.690        .28234E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     123.41        166.82        .18119E-03   -1.3482    
  15  Prefactor     5.0432        13.823        .17913E-03   -1.5259    
  16  Prefactor     5.2225        43.265        .17586E-03   -1.5251    
  17  norm          .10000E-03    8.8760        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     88.667        78.037        .42670E-04   -1.3822    
  19  Prefactor     2.7294        6.1654        .23076E-03   -1.5378    
  20  Prefactor     47.523        48.945        .58164E-04   -1.4328    
  21  Prefactor     .10000E-03    13.905        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .94834        .26210        .30021E-03   -.94782    
  23  Prefactor     .85661        .15279        .19949E-03   -.97674    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15741e-09
Minuit parameter uncertainties:
  1  5.66354
  2  3.28724e-06
  3  2.66325e-06
  4  3.15766e-07
  5  23.6325
  6  58.4006
  7  0.000194189
  8  0.918117
  9  1.50225e-05
  10  5.41117e-06
  11  56.0885
  12  10.2424
  13  0.000740059
  14  167.461
  15  13.8316
  16  30.0927
  17  2.34186e-05
  18  78.1275
  19  6.16682
  20  48.9865
  21  2.57218e-05
  22  0.262459
  23  0.152862
Done.

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

Extracting fit parameters...

4FGL J2311.0+0205
   Spectrum: PowerLaw
368    Prefactor:  3.949e+01  2.363e+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.566e-01  1.529e-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.483e-01  2.625e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.78
Ra Dec: 347.766 2.099
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 7.41e-08 +/- 4.43e-08
Energy Flux (Fixed Index): 3.42e-05 +/- 2.05e-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) = 5989.76849531
delta logL = 0.487231565384

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5989.7614806
delta logL = 0.494246273625

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.901       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8354       1.0000          .0000       10.000    
     3 'Normalizat'    .88577       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88506       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5989.761     FROM MIGRAD    STATUS=FAILED        99 CALLS      313 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.866        42.662        .46063E-03   -.49238E-04
   2  Index         2.8368        1.2999        .41718E-02    .56773E-03
   3  Normalizat    .88533        .25398        .30945E-03    .28913E-04
   4  Prefactor     .88532        .15803        .19660E-03    .19545E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5989.761     FROM SIMPLEX   STATUS=UNCHANGED     79 CALLS      392 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.866        42.662        .22283E-03   -1.4839    
   2  Index         2.8368        1.2999        .61022E-03   -.44742    
   3  Normalizat    .88533        .25398        .32585E-03   -.96977    
   4  Prefactor     .88532        .15803        .19252E-03   -.96656    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5989.761     FROM MIGRAD    STATUS=CONVERGED     37 CALLS      429 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.867        27.209        .18425E-04    .13574E-05
   2  Index         2.8368        .83451        .83437E-03    .21825E-04
   3  Normalizat    .88533        .24467        .12378E-04    .73477E-07
   4  Prefactor     .88532        .15269        .78640E-05    .57827E-07
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.8665
  Index      = 2.83681
  Normalizat = 0.885333
  Prefactor  = 0.885316
 **********
 **   18 **HESSE 
 **********

 FCN=   5989.761     FROM HESSE     STATUS=OK            25 CALLS      454 TOTAL
                     EDM=   .11E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.867        26.008        .36850E-05   -1.4839    
   2  Index         2.8368        .79786        .16687E-03   -.44742    
   3  Normalizat    .88533        .24407        .12378E-04   -.96977    
   4  Prefactor     .88532        .15235        .78640E-05   -.96656    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05624e-13
Minuit parameter uncertainties:
  1  26.0235
  2  0.802082
  3  0.244379
  4  0.152421
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/674473': 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) = 5989.7614779
delta logL = 0.494248974429

Extracting fit parameters...

4FGL J2311.0+0205
   Spectrum: PowerLaw
368    Prefactor:  1.887e+01  2.602e+01  1.000e-04  1.000e+04 ( 1.000e-13)
369        Index:  2.837e+00  8.021e-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:  8.853e-01  1.524e-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:  8.853e-01  2.444e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.88
Ra Dec: 347.766 2.099
Photon Index (Free Index): 2.84 +/- 0.80
Photon Flux (Free Index): 1.14e-07 +/- 6.79e-08
Energy Flux (Free Index): 2.50e-05 +/- 1.44e-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/674473/cmap_HighResolution_325123201_325382401_4FGL_J2311.0+0205_daily_bin331.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.41e-08', energy_flux2='2.50e-05', photon_flux_error='4.43e-08', dlogl='4.94e-01', energy_flux='3.42e-05', photon_flux2='1.14e-07', job_status='DONE', time_completed='2021-09-29 07:32:09.679897', photon_index_error2='0.80', photon_index2='2.84', ts='4.78', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', energy_flux_error2='1.44e-05', EG='0.95', time_epoch_completed='1632925929.68', return_code='0', job_id='674473', GAL2='0.89', EG2='0.89', return_code2='0', energy_flux_error='2.05e-05', photon_flux_error2='6.79e-08', ts2='5.88', photon_index='2.19' WHERE bin_id='331' AND source_name='4FGL J2311.0+0205' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 07:32:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0116>
Subject: Job 674473: <4FGL_J2311.0+0205_daily_bin331> in cluster <slac> Done

Job <4FGL_J2311.0+0205_daily_bin331> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 07:20:26 2021
Job was executed on host(s) <bullet0116>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 07:20:27 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:20:27 2021
Terminated at Wed Sep 29 07:32:10 2021
Results reported at Wed Sep 29 07:32:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2311.0+0205_daily_bin331 347.766 2.0995 325123201 325382401 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 :                                   585.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             334.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   703 sec.
    Turnaround time :                            704 sec.

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

