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


Performing analysis on: 4FGL_J2311.0+0205_daily_bin387
RA = 347.766, Dec = 2.0995
tmin = 339638401, tmax = 339897601
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='675625', job_status='RUN', time_executed='2021-09-29 07:27:32.211123', time_epoch_executed='1632925652.21' WHERE source_name='4FGL J2311.0+0205' and cadence='daily' and bin_id='387'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/675625

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/675625/ft1_4FGL_J2311.0+0205_daily_bin387.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/675625/ft2_4FGL_J2311.0+0205_daily_bin387.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/675625/ft1_4FGL_J2311.0+0205_daily_bin387.fits outfile=/scratch/kocevski/675625/ft1_filteredMKT_4FGL_J2311.0+0205_daily_bin387.fits ra=347.766 dec=2.0995 rad=12.0 tmin=339638401.0 tmax=339897601.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.38
user 3.17
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/675625/ft2_4FGL_J2311.0+0205_daily_bin387.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/675625/ft1_filteredMKT_4FGL_J2311.0+0205_daily_bin387.fits evtable="EVENTS" outfile="/scratch/kocevski/675625/ft1_filtered_4FGL_J2311.0+0205_daily_bin387.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/675625/ft1_filtered_4FGL_J2311.0+0205_daily_bin387.fits evtable="EVENTS" scfile=/scratch/kocevski/675625/ft2_4FGL_J2311.0+0205_daily_bin387.fits sctable="SC_DATA" expcube=/scratch/kocevski/675625/ltcube_339638401_339897601_4FGL_J2311.0+0205_daily_bin387.fits outfile=/scratch/kocevski/675625/expmap_339638401_339897601_4FGL_J2311.0+0205_daily_bin387.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/675625/ltcube_339638401_339897601_4FGL_J2311.0+0205_daily_bin387.fits
.....................!
real 191.09
user 186.01
sys 4.73

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/675625/ft1_filtered_4FGL_J2311.0+0205_daily_bin387.fits scfile=/scratch/kocevski/675625/ft2_4FGL_J2311.0+0205_daily_bin387.fits outfile=/scratch/kocevski/675625/cmap_339638401_339897601_4FGL_J2311.0+0205_daily_bin387.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.60
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/675625/ft1_filtered_4FGL_J2311.0+0205_daily_bin387.fits scfile=/scratch/kocevski/675625/ft2_4FGL_J2311.0+0205_daily_bin387.fits outfile=/scratch/kocevski/675625/cmap_HighResolution_339638401_339897601_4FGL_J2311.0+0205_daily_bin387.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.55
user 0.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    41.159       1.0000         .10000E-03   10000.    
     3 'Prefactor '    43.587       1.0000         .10000E-03   10000.    
     4 'Prefactor '    20.161       1.0000         .10000E-03   10000.    
     5 'Prefactor '    32.210       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.5757       1.0000         .10000E-03   10000.    
     9 'norm      '    4.2597       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.3338       1.0000         .10000E-03   10000.    
    14 'Prefactor '    200.07       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    21.573       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .91591       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .87019       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=   5375.525     FROM MIGRAD    STATUS=CONVERGED    500 CALLS     2505 TOTAL
                     EDM=   .87E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.3155       -.10360E-07** at limit **
   2  norm          41.161        19.107       -.85478E-06    .17805E-04
   3  Prefactor     43.586        39.706       -.18109E-05    .13243E-04
   4  Prefactor     20.161        12.751       -.52903E-06   -.35129E-03
   5  Prefactor     32.212        24.614       -.22250E-06    .12413E-04
   6  Prefactor     .10000E-03    22.382        .16713E-06** at limit **
   7  Prefactor     .10000E-03    4.3763       -.25505E-07** at limit **
   8  norm          1.5758        1.1722       -.65888E-07   -.26343E-03
   9  norm          4.2596        4.2780       -.29940E-06    .12324E-03
  10  Prefactor     .10000E-03    3.3744        .13473E-07** at limit **
  11  Prefactor     .10000E-03    38.384        .74125E-05** at limit **
  12  norm          .10000E-03    2.1830        .20424E-07** at limit **
  13  Prefactor     1.3329        4.8300       -.17287E-05   -.90071E-03
  14  Prefactor     200.07        175.95       -.11760E-05    .17421E-05
  15  Prefactor     .10000E-03    5.0084        .65998E-07** at limit **
  16  Prefactor     .10000E-03    36.937       -.70630E-05** at limit **
  17  norm          .10000E-03    8.8027        .48506E-07** at limit **
  18  Prefactor     .10000E-03    106.95        .10718E-05** at limit **
  19  Prefactor     .10000E-03    3.7864        .17365E-07** at limit **
  20  Prefactor     21.553        40.262       -.20218E-04    .99350E-05
  21  Prefactor     .10000E-03    9.7757        .48350E-07** at limit **
  22  Normalizat    .91577        .21562        .36519E-05   -.16731E-04
  23  Prefactor     .87027        .13127        .13283E-06    .15983E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 41.1608
  Prefactor  = 43.5858
  Prefactor  = 20.1614
  Prefactor  = 32.2118
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.57575
  norm       = 4.25959
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.33288
  Prefactor  = 200.07
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.553
  Prefactor  = 0.0001
  Normalizat = 0.915775
  Prefactor  = 0.87027
 **********
 **   18 **HESSE 
 **********

 FCN=   5375.525     FROM HESSE     STATUS=OK           364 CALLS     2869 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.3158        .10896E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          41.161        19.152        .62482E-04   -1.4424    
   3  Prefactor     43.586        39.751        .60724E-04   -1.4387    
   4  Prefactor     20.161        12.794        .44601E-03   -1.4810    
   5  Prefactor     32.212        24.642        .70602E-04   -1.4572    
   6  Prefactor     .10000E-03    22.388        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.3863        .14978E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.5758        1.1651        .64232E-04   -1.5457    
   9  norm          4.2596        4.2794        .14732E-03   -1.5295    
  10  Prefactor     .10000E-03    3.3846        .13152E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    38.393        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.1886        .10574E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.3329        4.9957        .30324E-03   -1.5477    
  14  Prefactor     200.07        175.97        .28567E-04   -1.2870    
  15  Prefactor     .10000E-03    5.0193        .16021E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    37.148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    8.8104        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    107.57        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.8916        .27827E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     21.553        39.722        .86237E-04   -1.4779    
  21  Prefactor     .10000E-03    9.7944        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .91577        .24891        .29932E-03   -.95908    
  23  Prefactor     .87027        .15230        .19741E-03   -.97188    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.7529e-09
Minuit parameter uncertainties:
  1  6.16741e-07
  2  19.1552
  3  39.7754
  4  12.7959
  5  24.6496
  6  1.30675e-05
  7  5.81832e-06
  8  1.16513
  9  4.27972
  10  2.63298e-06
  11  7.99303e-05
  12  4.5274e-06
  13  4.99722
  14  176.439
  15  1.44275e-05
  16  0.000142148
  17  1.07574e-05
  18  0.000150342
  19  5.12974e-06
  20  39.771
  21  2.91657e-05
  22  0.24922
  23  0.15237
Done.

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

Extracting fit parameters...

4FGL J2311.0+0205
   Spectrum: PowerLaw
368    Prefactor:  3.221e+01  2.465e+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.703e-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:  9.158e-01  2.492e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.26
Ra Dec: 347.766 2.099
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 6.05e-08 +/- 4.63e-08
Energy Flux (Fixed Index): 2.79e-05 +/- 2.13e-05

TS (Fixed Index): 3.26
Ra Dec: 347.766 2.099
Photon Flux Upper Limit: 1.62e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.23e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/675625/likelihoodResults_339638401_339897601_4FGL_J2311.0+0205_daily_bin387.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): 0
logL (Free Index) = 5374.70374917
delta logL = 0.821655764416

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5374.69378126
delta logL = 0.831623674312

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.041       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0749       1.0000          .0000       10.000    
     3 'Normalizat'    .82578       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90403       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=   5374.694     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      316 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.038        25.423        .10689E-03   -.21091E-03
   2  Index         3.0758        1.0075        .38684E-02   -.12061E-03
   3  Normalizat    .82479        .25158        .31324E-03    .20978E-04
   4  Prefactor     .90448        .15703        .19389E-03   -.18003E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.0382
  Index      = 3.0758
  Normalizat = 0.824791
  Prefactor  = 0.904479
 **********
 **   18 **HESSE 
 **********

 FCN=   5374.694     FROM HESSE     STATUS=OK            25 CALLS      341 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.038        18.658        .42756E-05   -1.4958    
   2  Index         3.0758        .74056        .15473E-03   -.39503    
   3  Normalizat    .82479        .24830        .12530E-04   -.99156    
   4  Prefactor     .90448        .15543        .38778E-04   -.95985    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.06636e-10
Minuit parameter uncertainties:
  1  18.6655
  2  0.743774
  3  0.24864
  4  0.155502
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/675625': 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) = 5374.69377209
delta logL = 0.831632840187

Extracting fit parameters...

4FGL J2311.0+0205
   Spectrum: PowerLaw
368    Prefactor:  1.404e+01  1.867e+01  1.000e-04  1.000e+04 ( 1.000e-13)
369        Index:  3.076e+00  7.438e-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.045e-01  1.555e-01  0.000e+00  1.000e+01 ( 1.000e+00)
532        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
533        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
530   Normalization:  8.248e-01  2.486e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.39
Ra Dec: 347.766 2.099
Photon Index (Free Index): 3.08 +/- 0.74
Photon Flux (Free Index): 1.36e-07 +/- 8.61e-08
Energy Flux (Free Index): 2.62e-05 +/- 1.50e-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/675625/cmap_HighResolution_339638401_339897601_4FGL_J2311.0+0205_daily_bin387.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.23e-02', comment='SUCCESS', photon_flux='6.05e-08', energy_flux2='2.62e-05', photon_flux_error='4.63e-08', dlogl='8.32e-01', energy_flux='2.79e-05', photon_flux2='1.36e-07', job_status='DONE', time_completed='2021-09-29 07:37:34.604341', photon_index_error2='0.74', photon_index2='3.08', ts='3.26', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='1.62e-07', energy_flux_error2='1.50e-05', EG='0.92', time_epoch_completed='1632926254.6', return_code='0', job_id='675625', GAL2='0.90', EG2='0.82', return_code2='0', energy_flux_error='2.13e-05', photon_flux_error2='8.61e-08', ts2='5.39', photon_index='2.19' WHERE bin_id='387' AND source_name='4FGL J2311.0+0205' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 07:37:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 675625: <4FGL_J2311.0+0205_daily_bin387> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2311.0+0205_daily_bin387 347.766 2.0995 339638401 339897601 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 :                                   600.30 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             251.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   740 sec.
    Turnaround time :                            742 sec.

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

