/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


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


Performing analysis on: 4FGL_J2311.0+0205_daily_bin824
RA = 347.766, Dec = 2.0995
tmin = 452908801, tmax = 453168001
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='676954', job_status='RUN', time_executed='2021-09-29 07:31:52.206334', time_epoch_executed='1632925912.21' WHERE source_name='4FGL J2311.0+0205' and cadence='daily' and bin_id='824'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/676954

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/676954/ft1_4FGL_J2311.0+0205_daily_bin824.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/676954/ft2_4FGL_J2311.0+0205_daily_bin824.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/676954/ft1_4FGL_J2311.0+0205_daily_bin824.fits outfile=/scratch/kocevski/676954/ft1_filteredMKT_4FGL_J2311.0+0205_daily_bin824.fits ra=347.766 dec=2.0995 rad=12.0 tmin=452908801.0 tmax=453168001.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.13
user 3.90
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/676954/ft1_filtered_4FGL_J2311.0+0205_daily_bin824.fits" evtable="EVENTS" scfile=/scratch/kocevski/676954/ft2_4FGL_J2311.0+0205_daily_bin824.fits sctable="SC_DATA" outfile=/scratch/kocevski/676954/ltcube_452908801_453168001_4FGL_J2311.0+0205_daily_bin824.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/676954/ft2_4FGL_J2311.0+0205_daily_bin824.fits
.....................!
real 12.10
user 11.72
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/676954/ft1_filtered_4FGL_J2311.0+0205_daily_bin824.fits evtable="EVENTS" scfile=/scratch/kocevski/676954/ft2_4FGL_J2311.0+0205_daily_bin824.fits sctable="SC_DATA" expcube=/scratch/kocevski/676954/ltcube_452908801_453168001_4FGL_J2311.0+0205_daily_bin824.fits outfile=/scratch/kocevski/676954/expmap_452908801_453168001_4FGL_J2311.0+0205_daily_bin824.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/676954/ltcube_452908801_453168001_4FGL_J2311.0+0205_daily_bin824.fits
.....................!
real 193.31
user 188.86
sys 4.11

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/676954/ft1_filtered_4FGL_J2311.0+0205_daily_bin824.fits scfile=/scratch/kocevski/676954/ft2_4FGL_J2311.0+0205_daily_bin824.fits outfile=/scratch/kocevski/676954/cmap_452908801_453168001_4FGL_J2311.0+0205_daily_bin824.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/676954/ft1_filtered_4FGL_J2311.0+0205_daily_bin824.fits scfile=/scratch/kocevski/676954/ft2_4FGL_J2311.0+0205_daily_bin824.fits outfile=/scratch/kocevski/676954/cmap_HighResolution_452908801_453168001_4FGL_J2311.0+0205_daily_bin824.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.53
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8591       1.0000         .10000E-03   10000.    
     2 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.177       1.0000         .10000E-03   10000.    
     5 'Prefactor '    30.193       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.1898       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .42586       1.0000         .10000E-03   10000.    
     9 'norm      '    1.3980       1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.536       1.0000         .10000E-03   10000.    
    11 'Prefactor '    31.602       1.0000         .10000E-03   10000.    
    12 'norm      '    23.092       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    18.285       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10254E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10090E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    26.106       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .58607       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0306       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .97888       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=   8103.164     FROM MIGRAD    STATUS=CONVERGED    510 CALLS     2533 TOTAL
                     EDM=   .46E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8590        1.4778        .41561E-07   -.66573E-03
   2  norm          .10000E-03    16.628       -.12064E-06** at limit **
   3  Prefactor     .10000E-03    23.197        .20179E-05** at limit **
   4  Prefactor     11.178        9.9974       -.57223E-07   -.28026E-05
   5  Prefactor     30.193        15.122        .42995E-09   -.20522E-05
   6  Prefactor     9.1966        51.248        .14383E-04    .92376E-05
   7  Prefactor     .10000E-03    5.1709       -.31765E-06** at limit **
   8  norm          .42680        .73285       -.63984E-08   -.79818E-04
   9  norm          1.3987        2.8962       -.16869E-06   -.91308E-04
  10  Prefactor     10.532        12.807        .97664E-07   -.37299E-05
  11  Prefactor     31.601        48.393       -.18025E-05    .67713E-06
  12  norm          23.091        11.083       -.12987E-06   -.64027E-05
  13  Prefactor     .10000E-03    3.5331       -.11181E-07** at limit **
  14  Prefactor     .10000E-03    72.941        .14731E-06** at limit **
  15  Prefactor     18.287        14.401        .10206E-06   -.20093E-05
  16  Prefactor     .10000E-03    32.450        .30477E-06** at limit **
  17  norm          .10000E-03    9.9276       -.66351E-07** at limit **
  18  Prefactor     26.099        64.310       -.11249E-04   -.35345E-05
  19  Prefactor     .58895        4.6144        .12631E-06   -.63111E-04
  20  Prefactor     .10000E-03    24.270       -.21886E-05** at limit **
  21  Prefactor     .10000E-03    5.3227       -.25718E-07** at limit **
  22  Normalizat    1.0303        .19909       -.27334E-06    .12961E-04
  23  Prefactor     .97898        .12138        .16590E-06   -.26454E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.85898
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.1784
  Prefactor  = 30.1933
  Prefactor  = 9.1966
  Prefactor  = 0.0001
  norm       = 0.426804
  norm       = 1.39871
  Prefactor  = 10.5322
  Prefactor  = 31.601
  norm       = 23.0907
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.2869
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 26.099
  Prefactor  = 0.588955
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.03034
  Prefactor  = 0.978983
 **********
 **   18 **HESSE 
 **********

 FCN=   8103.164     FROM HESSE     STATUS=OK           376 CALLS     2909 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8590        5.8375        .15282E-02   -1.5435    
   2  norm          .10000E-03    17.241        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    23.255        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     11.178        9.9971        .11983E-03   -1.5039    
   5  Prefactor     30.193        15.127        .72917E-04   -1.4608    
   6  Prefactor     9.1966        51.536        .13221E-03   -1.5101    
   7  Prefactor     .10000E-03    5.2199        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .42680        .58905        .93460E-03   -1.5577    
   9  norm          1.3987        2.8315        .21143E-03   -1.5471    
  10  Prefactor     10.532        12.780        .12343E-03   -1.5059    
  11  Prefactor     31.601        48.373        .71276E-04   -1.4583    
  12  norm          23.091        11.058        .83355E-04   -1.4747    
  13  Prefactor     .10000E-03    3.5454        .16495E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    72.943        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     18.287        13.652        .93664E-04   -1.4852    
  16  Prefactor     .10000E-03    32.895        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    9.9306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     26.099        64.240        .78404E-04   -1.4686    
  19  Prefactor     .58895        4.2907        .33106E-03   -1.5554    
  20  Prefactor     .10000E-03    24.296        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.3270        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0303        .23431        .31944E-03   -.92021    
  23  Prefactor     .97898        .14340        .20830E-03   -.93433    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.3954e-09
Minuit parameter uncertainties:
  1  5.83931
  2  2.65524e-06
  3  8.99431e-07
  4  9.99856
  5  15.1287
  6  43.5984
  7  6.9108e-05
  8  0.589059
  9  2.83177
  10  12.7832
  11  48.4335
  12  11.0588
  13  2.72018e-06
  14  6.84026e-06
  15  13.6546
  16  9.81117e-06
  17  8.32071e-07
  18  64.4108
  19  3.17936
  20  8.47327e-06
  21  4.74512e-07
  22  0.234545
  23  0.143456
Done.

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

Extracting fit parameters...

4FGL J2311.0+0205
   Spectrum: PowerLaw
368    Prefactor:  3.019e+01  1.513e+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.790e-01  1.435e-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.030e+00  2.345e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.01
Ra Dec: 347.766 2.099
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 5.67e-08 +/- 2.84e-08
Energy Flux (Fixed Index): 2.61e-05 +/- 1.31e-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) = 8102.46670169
delta logL = 0.697258202501

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8102.44597501
delta logL = 0.717984881361

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    38.015       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7451       1.0000          .0000       10.000    
     3 'Normalizat'    1.0519       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97101       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=   8102.446     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      235 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     38.015        34.103        .16251E-02   -.29168E-03
   2  Index         1.7449        .54089        .17925        .31653E-05
   3  Normalizat    1.0519        .19043        .71525E-01    .19467E-04
   4  Prefactor     .97103        .12100        .45904E-01    .60600E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 38.0154
  Index      = 1.74494
  Normalizat = 1.05192
  Prefactor  = 0.971032
 **********
 **   18 **HESSE 
 **********

 FCN=   8102.446     FROM HESSE     STATUS=OK            31 CALLS      266 TOTAL
                     EDM=   .82E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     38.015        19.209        .65005E-04   -1.4474    
   2  Index         1.7449        .34420        .69937E-02   -.70892    
   3  Normalizat    1.0519        .22044        .31649E-03   -.91311    
   4  Prefactor     .97103        .14117        .20899E-03   -.93701    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.2365e-11
Minuit parameter uncertainties:
  1  19.2125
  2  0.344672
  3  0.220632
  4  0.14122
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/676954': 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) = 8102.44597483
delta logL = 0.717985065191

Extracting fit parameters...

4FGL J2311.0+0205
   Spectrum: PowerLaw
368    Prefactor:  3.802e+01  1.921e+01  1.000e-04  1.000e+04 ( 1.000e-13)
369        Index:  1.745e+00  3.447e-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.710e-01  1.412e-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.052e+00  2.206e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.45
Ra Dec: 347.766 2.099
Photon Index (Free Index): 1.74 +/- 0.34
Photon Flux (Free Index): 3.80e-08 +/- 2.41e-08
Energy Flux (Free Index): 5.38e-05 +/- 4.60e-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/676954/cmap_HighResolution_452908801_453168001_4FGL_J2311.0+0205_daily_bin824.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.67e-08', energy_flux2='5.38e-05', photon_flux_error='2.84e-08', dlogl='7.18e-01', energy_flux='2.61e-05', photon_flux2='3.80e-08', job_status='DONE', time_completed='2021-09-29 07:43:23.435636', photon_index_error2='0.34', photon_index2='1.74', ts='11.01', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='4.60e-05', EG='1.03', time_epoch_completed='1632926603.44', return_code='0', job_id='676954', GAL2='0.97', EG2='1.05', return_code2='0', energy_flux_error='1.31e-05', photon_flux_error2='2.41e-08', ts2='12.45', photon_index='2.19' WHERE bin_id='824' AND source_name='4FGL J2311.0+0205' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 07:43:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0268>
Subject: Job 676954: <4FGL_J2311.0+0205_daily_bin824> in cluster <slac> Done

Job <4FGL_J2311.0+0205_daily_bin824> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 07:30:43 2021
Job was executed on host(s) <bullet0268>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 07:30:45 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:30:45 2021
Terminated at Wed Sep 29 07:43:24 2021
Results reported at Wed Sep 29 07:43:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2311.0+0205_daily_bin824 347.766 2.0995 452908801 453168001 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 :                                   666.45 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             364.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   758 sec.
    Turnaround time :                            761 sec.

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

