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


Performing analysis on: 4FGL_J2311.0+0205_daily_bin334
RA = 347.766, Dec = 2.0995
tmin = 325900801, tmax = 326160001
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='674477', job_status='RUN', time_executed='2021-09-29 07:24:21.620526', time_epoch_executed='1632925461.62' WHERE source_name='4FGL J2311.0+0205' and cadence='daily' and bin_id='334'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/674477

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/674477/ft1_4FGL_J2311.0+0205_daily_bin334.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/674477/ft2_4FGL_J2311.0+0205_daily_bin334.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/674477/ft1_4FGL_J2311.0+0205_daily_bin334.fits outfile=/scratch/kocevski/674477/ft1_filteredMKT_4FGL_J2311.0+0205_daily_bin334.fits ra=347.766 dec=2.0995 rad=12.0 tmin=325900801.0 tmax=326160001.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.51
user 3.23
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/674477/ft1_filtered_4FGL_J2311.0+0205_daily_bin334.fits evtable="EVENTS" scfile=/scratch/kocevski/674477/ft2_4FGL_J2311.0+0205_daily_bin334.fits sctable="SC_DATA" expcube=/scratch/kocevski/674477/ltcube_325900801_326160001_4FGL_J2311.0+0205_daily_bin334.fits outfile=/scratch/kocevski/674477/expmap_325900801_326160001_4FGL_J2311.0+0205_daily_bin334.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/674477/ltcube_325900801_326160001_4FGL_J2311.0+0205_daily_bin334.fits
.....................!
real 193.17
user 185.75
sys 5.17

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/674477/ft1_filtered_4FGL_J2311.0+0205_daily_bin334.fits scfile=/scratch/kocevski/674477/ft2_4FGL_J2311.0+0205_daily_bin334.fits outfile=/scratch/kocevski/674477/cmap_325900801_326160001_4FGL_J2311.0+0205_daily_bin334.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/674477/ft1_filtered_4FGL_J2311.0+0205_daily_bin334.fits scfile=/scratch/kocevski/674477/ft2_4FGL_J2311.0+0205_daily_bin334.fits outfile=/scratch/kocevski/674477/cmap_HighResolution_325900801_326160001_4FGL_J2311.0+0205_daily_bin334.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    15.659       1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.764       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.2314       1.0000         .10000E-03   10000.    
     6 'Prefactor '    55.354       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .77819E-02   1.0000         .10000E-03   10000.    
     8 'norm      '    2.3761       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.2014       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10109E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.8234       1.0000         .10000E-03   10000.    
    14 'Prefactor '    153.28       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    52.649       1.0000         .10000E-03   10000.    
    17 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.988       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .86313       1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.3673       1.0000         .10000E-03   10000.    
    21 'Prefactor '    15.278       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .68930       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .99293       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=   5946.363     FROM MIGRAD    STATUS=CONVERGED    541 CALLS     2593 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.8486       -.38818E-08** at limit **
   2  norm          15.654        11.569       -.99057E-06    .45730E-03
   3  Prefactor     14.756        28.098       -.19793E-05    .93968E-04
   4  Prefactor     .10000E-03    6.2698       -.70019E-07** at limit **
   5  Prefactor     9.2272        18.919        .55015E-06   -.46518E-05
   6  Prefactor     55.625        60.077       -.21421E-05   -.39303E-04
   7  Prefactor     .10002E-03    6.1787        .21878E-06** at limit **
   8  norm          2.3765        1.1277        .22280E-07    .30592E-04
   9  norm          .10000E-03    1.8631       -.12195E-07** at limit **
  10  Prefactor     2.2052        9.2075        .85348E-05   -.32016E-03
  11  Prefactor     .10000E-03    11.181        .14874E-07** at limit **
  12  norm          .10000E-03    6.7356        .74376E-06** at limit **
  13  Prefactor     1.8299        7.4836       -.36930E-05   -.75382E-03
  14  Prefactor     153.25        171.18        .19832E-05   -.24934E-04
  15  Prefactor     .10000E-03    8.1786       -.14594E-06** at limit **
  16  Prefactor     52.638        27.774       -.24034E-05   -.20038E-03
  17  norm          .10000E-03    15.120       -.19297E-06** at limit **
  18  Prefactor     13.013        51.403        .27514E-05   -.53997E-04
  19  Prefactor     .86284        4.1477        .10290E-06   -.11994E-03
  20  Prefactor     8.3635        27.624       -.66441E-06    .41079E-04
  21  Prefactor     15.270        22.631        .88004E-07    .25200E-04
  22  Normalizat    .68934        .21232       -.10737E-05   -.30226E-03
  23  Prefactor     .99299        .12681        .32571E-06   -.43483E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 15.6536
  Prefactor  = 14.7555
  Prefactor  = 0.0001
  Prefactor  = 9.22718
  Prefactor  = 55.6251
  Prefactor  = 0.000100018
  norm       = 2.37648
  norm       = 0.0001
  Prefactor  = 2.20521
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 1.82993
  Prefactor  = 153.255
  Prefactor  = 0.0001
  Prefactor  = 52.6377
  norm       = 0.0001
  Prefactor  = 13.013
  Prefactor  = 0.862844
  Prefactor  = 8.36355
  Prefactor  = 15.27
  Normalizat = 0.689341
  Prefactor  = 0.99299
 **********
 **   18 **HESSE 
 **********

 FCN=   5946.363     FROM HESSE     STATUS=OK           372 CALLS     2965 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.8505        .12711E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          15.654        11.437        .10122E-03   -1.4916    
   3  Prefactor     14.756        27.953        .10424E-03   -1.4940    
   4  Prefactor     .10000E-03    6.4783        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.2272        18.931        .13191E-03   -1.5100    
   6  Prefactor     55.625        55.448        .53915E-04   -1.4215    
   7  Prefactor     .10002E-03    53.074        .33616E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.3765        1.1219        .53182E-04   -1.5400    
   9  norm          .10000E-03    1.8652        .10275E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.2052        9.2028        .13865E-02   -1.5411    
  11  Prefactor     .10000E-03    11.182        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    17.286        .34238E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.8299        7.1075        .30919E-03   -1.5437    
  14  Prefactor     153.25        169.82        .16279E-03   -1.3226    
  15  Prefactor     .10000E-03    8.2190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     52.638        27.647        .55275E-04   -1.4256    
  17  norm          .10000E-03    15.138        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     13.013        51.227        .11115E-03   -1.4986    
  19  Prefactor     .86284        4.0017        .28753E-03   -1.5522    
  20  Prefactor     8.3635        27.571        .13859E-03   -1.5129    
  21  Prefactor     15.270        22.619        .10247E-03   -1.4926    
  22  Normalizat    .68934        .24163        .32999E-03   -1.0432    
  23  Prefactor     .99299        .14697        .18351E-03   -.92964    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.33793e-09
Minuit parameter uncertainties:
  1  2.26303e-06
  2  11.439
  3  27.9781
  4  4.68496e-06
  5  18.9436
  6  55.4991
  7  0.00194372
  8  1.1219
  9  3.04364e-07
  10  9.01195
  11  1.7914e-06
  12  0.000193702
  13  7.11075
  14  170.365
  15  1.31922e-05
  16  27.6539
  17  1.48903e-06
  18  51.4007
  19  3.71656
  20  27.6134
  21  22.6312
  22  0.241999
  23  0.147029
Done.

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

Extracting fit parameters...

4FGL J2311.0+0205
   Spectrum: PowerLaw
368    Prefactor:  9.227e+00  1.894e+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.930e-01  1.470e-01  0.000e+00  1.000e+01 ( 1.000e+00)
532        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
533        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
530   Normalization:  6.893e-01  2.420e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/674477/likelihoodResults_325900801_326160001_4FGL_J2311.0+0205_daily_bin334.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) = 5945.12868334
delta logL = 1.23437854436

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5945.08416727
delta logL = 1.27889462033

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4049       1.0000         .10000E-03   10000.    
     2 'Index     '    3.9566       1.0000          .0000       10.000    
     3 'Normalizat'    .59831       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0288       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=   5945.084     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      271 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3967        15.980        .91456E-02    .56345E-03
   2  Index         3.9597        2.4819        .10776        .16015E-03
   3  Normalizat    .59791        .56654E-01    .79590E-01    .33326E-04
   4  Prefactor     1.0289        .37222E-01    .41357E-01   -.11385E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.39672
  Index      = 3.95966
  Normalizat = 0.597914
  Prefactor  = 1.02887
 **********
 **   18 **HESSE 
 **********

 FCN=   5945.084     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      304 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3967        32.852        .60675E-04   -1.5472    
   2  Index         3.9597        3.8836        .40363E-02   -.20960    
   3  Normalizat    .59791        .20627        .35244E-03   -1.0807    
   4  Prefactor     1.0289        .13629        .18053E-03   -.91773    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.45137e-10
Minuit parameter uncertainties:
  1  13.5556
  2  4.48714
  3  0.206535
  4  0.13634
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/674477': 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) = 5945.08416249
delta logL = 1.27889939409

Extracting fit parameters...

4FGL J2311.0+0205
   Spectrum: PowerLaw
368    Prefactor:  1.397e+00  1.356e+01  1.000e-04  1.000e+04 ( 1.000e-13)
369        Index:  3.960e+00  4.487e+00  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.029e+00  1.363e-01  0.000e+00  1.000e+01 ( 1.000e+00)
532        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
533        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
530   Normalization:  5.979e-01  2.065e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.20
Ra Dec: 347.766 2.099
Photon Index (Free Index): 3.96 +/- 4.49
Photon Flux (Free Index): 8.46e-08 +/- 5.90e-08
Energy Flux (Free Index): 1.28e-05 +/- 1.42e-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/674477/cmap_HighResolution_325900801_326160001_4FGL_J2311.0+0205_daily_bin334.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.60e-03', comment='SUCCESS', energy_flux2='1.28e-05', dlogl='1.28e+00', photon_flux2='8.46e-08', job_status='DONE', time_completed='2021-09-29 07:34:59.379999', photon_index_error2='4.49', photon_index2='3.96', ts='0.29', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='9.98e-08', energy_flux_error2='1.42e-05', EG='0.69', time_epoch_completed='1632926099.38', return_code='0', job_id='674477', GAL2='1.03', EG2='0.60', return_code2='102', photon_flux_error2='5.90e-08', ts2='3.20', photon_index='2.19' WHERE bin_id='334' AND source_name='4FGL J2311.0+0205' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 07:34:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 674477: <4FGL_J2311.0+0205_daily_bin334> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2311.0+0205_daily_bin334 347.766 2.0995 325900801 326160001 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 :                                   632.40 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             254.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   870 sec.
    Turnaround time :                            873 sec.

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

