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


Performing analysis on: 4FGL_J2311.7+2604_daily_bin509
RA = 347.931, Dec = 26.0831
tmin = 371260801, tmax = 371520001
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='691518', job_status='RUN', time_executed='2021-09-29 08:15:38.385687', time_epoch_executed='1632928538.39' WHERE source_name='4FGL J2311.7+2604' and cadence='daily' and bin_id='509'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/691518

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/691518/ft1_4FGL_J2311.7+2604_daily_bin509.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/691518/ft2_4FGL_J2311.7+2604_daily_bin509.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/691518/ft1_4FGL_J2311.7+2604_daily_bin509.fits outfile=/scratch/kocevski/691518/ft1_filteredMKT_4FGL_J2311.7+2604_daily_bin509.fits ra=347.931 dec=26.0831 rad=12.0 tmin=371260801.0 tmax=371520001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 8.98
user 5.06
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/691518/ft2_4FGL_J2311.7+2604_daily_bin509.fits

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/691518/ft1_filtered_4FGL_J2311.7+2604_daily_bin509.fits" evtable="EVENTS" scfile=/scratch/kocevski/691518/ft2_4FGL_J2311.7+2604_daily_bin509.fits sctable="SC_DATA" outfile=/scratch/kocevski/691518/ltcube_371260801_371520001_4FGL_J2311.7+2604_daily_bin509.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/691518/ft2_4FGL_J2311.7+2604_daily_bin509.fits
.....................!
real 11.92
user 11.50
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/691518/ft1_filtered_4FGL_J2311.7+2604_daily_bin509.fits evtable="EVENTS" scfile=/scratch/kocevski/691518/ft2_4FGL_J2311.7+2604_daily_bin509.fits sctable="SC_DATA" expcube=/scratch/kocevski/691518/ltcube_371260801_371520001_4FGL_J2311.7+2604_daily_bin509.fits outfile=/scratch/kocevski/691518/expmap_371260801_371520001_4FGL_J2311.7+2604_daily_bin509.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/691518/ltcube_371260801_371520001_4FGL_J2311.7+2604_daily_bin509.fits
.....................!
real 190.90
user 185.72
sys 4.71

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.7+2604 @ 347.931 26.0831

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/691518/ft1_filtered_4FGL_J2311.7+2604_daily_bin509.fits scfile=/scratch/kocevski/691518/ft2_4FGL_J2311.7+2604_daily_bin509.fits outfile=/scratch/kocevski/691518/cmap_371260801_371520001_4FGL_J2311.7+2604_daily_bin509.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.931 yref=26.0831 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.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/691518/ft1_filtered_4FGL_J2311.7+2604_daily_bin509.fits scfile=/scratch/kocevski/691518/ft2_4FGL_J2311.7+2604_daily_bin509.fits outfile=/scratch/kocevski/691518/cmap_HighResolution_371260801_371520001_4FGL_J2311.7+2604_daily_bin509.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.931 yref=26.0831 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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/691518/ft1_filtered_4FGL_J2311.7+2604_daily_bin509.fits evtable="EVENTS" scfile=/scratch/kocevski/691518/ft2_4FGL_J2311.7+2604_daily_bin509.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/691518/Model_4FGL_J2311.7+2604_daily_bin509.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/691518/ft1_filtered_4FGL_J2311.7+2604_daily_bin509.fits.....................!
real 90.51
user 88.99
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/691518/ft1_filtered_4FGL_J2311.7+2604_daily_bin509.fits', '/scratch/kocevski/691518/ft2_4FGL_J2311.7+2604_daily_bin509.fits', expMap='/scratch/kocevski/691518/expmap_371260801_371520001_4FGL_J2311.7+2604_daily_bin509.fits', expCube='/scratch/kocevski/691518/ltcube_371260801_371520001_4FGL_J2311.7+2604_daily_bin509.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/691518/Model_4FGL_J2311.7+2604_daily_bin509.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2311.7+2604'

4FGL J2311.7+2604
   Spectrum: PowerLaw
368    Prefactor:  4.423e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
369        Index:  2.429e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
370        Scale:  1.013e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/691518/ft1_filtered_4FGL_J2311.7+2604_daily_bin509.fits
Spacecraft file(s): /scratch/kocevski/691518/ft2_4FGL_J2311.7+2604_daily_bin509.fits
Exposure map: /scratch/kocevski/691518/expmap_371260801_371520001_4FGL_J2311.7+2604_daily_bin509.fits
Exposure cube: /scratch/kocevski/691518/ltcube_371260801_371520001_4FGL_J2311.7+2604_daily_bin509.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/691518/Model_4FGL_J2311.7+2604_daily_bin509.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) = 8317.59074225

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    76.893       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .51152       1.0000         .10000E-03   10000.    
     3 'norm      '    .40638       1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.463       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .75722       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    20.519       1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.451       1.0000         .10000E-03   10000.    
    12 'norm      '    .26487       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.509       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    10.406       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10484E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.2297       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0001       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0682       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5300E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8317.570     FROM MIGRAD    STATUS=CONVERGED    481 CALLS     2384 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     76.886        79.134       -.67533E-05    .36669E-03
   2  Prefactor     .53833        5.0242       -.15578E-05    .10514E-03
   3  norm          .40759        .66857        .32191E-07    .12723E-04
   4  Prefactor     12.451        18.773       -.10078E-05    .11088E-03
   5  norm          .10000E-03    .55620       -.44916E-08** at limit **
   6  Prefactor     .10000E-03    16.620       -.53750E-07** at limit **
   7  Prefactor     .10000E-03    5.8639       -.10413E-07** at limit **
   8  Prefactor     .75723        .19469       -.95181E-08    .30646E-04
   9  Prefactor     .10000E-03    3.9747       -.48281E-08** at limit **
  10  Prefactor     20.521        18.221        .11054E-06    .12183E-04
  11  Prefactor     10.451        8.6251       -.14333E-06   -.48766E-04
  12  norm          .26437        .80146       -.82189E-06   -.21776E-02
  13  Prefactor     10.509        20.018       -.21131E-05   -.40120E-03
  14  Prefactor     .10000E-03    7.3710        .69624E-07** at limit **
  15  Prefactor     .10000E-03    6.8588       -.94684E-07** at limit **
  16  norm          10.408        5.2888       -.13761E-06    .23334E-03
  17  Prefactor     .10000E-03    30.916        .70386E-07** at limit **
  18  Prefactor     .10000E-03    10.146       -.21753E-06** at limit **
  19  Prefactor     4.2296        8.1811       -.15887E-06   -.69507E-04
  20  Prefactor     .10000E-03    57.977        .60643E-07** at limit **
  21  Normalizat    .99990        .19702        .71972E-06    .10020E-03
  22  Prefactor     1.0683        .10891        .35097E-06    .17151E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 76.8856
  Prefactor  = 0.538332
  norm       = 0.407589
  Prefactor  = 12.4511
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.757234
  Prefactor  = 0.0001
  Prefactor  = 20.521
  Prefactor  = 10.4507
  norm       = 0.264369
  Prefactor  = 10.5089
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.4079
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.22959
  Prefactor  = 0.0001
  Normalizat = 0.999902
  Prefactor  = 1.06829
 **********
 **   18 **HESSE 
 **********

 FCN=   8317.570     FROM HESSE     STATUS=OK           346 CALLS     2730 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     76.886        73.503        .45793E-04   -1.3952    
   2  Prefactor     .53833        16.587        .39811E-02   -1.5561    
   3  norm          .40759        .52145        .89617E-03   -1.5580    
   4  Prefactor     12.451        18.383        .11347E-03   -1.5002    
   5  norm          .10000E-03    .56628        .66414E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    16.624        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.9630        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .75723        .19418        .19485E-04   -1.5534    
   9  Prefactor     .10000E-03    3.9976        .17756E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     20.521        18.221        .88422E-04   -1.4802    
  11  Prefactor     10.451        8.6325        .12394E-03   -1.5061    
  12  norm          .26437        .96569        .16273E-03   -1.5605    
  13  Prefactor     10.509        21.748        .61798E-03   -1.5060    
  14  Prefactor     .10000E-03    7.3759        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.1221        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          10.408        5.2563        .12421E-03   -1.5063    
  17  Prefactor     .10000E-03    31.381        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    10.173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.2296        8.1774        .19593E-03   -1.5297    
  20  Prefactor     .10000E-03    59.214        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .99990        .22768        .33734E-03   -.93034    
  22  Prefactor     1.0683        .12648        .18245E-03   -.90487    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.73861e-09
Minuit parameter uncertainties:
  1  73.5905
  2  5.97765
  3  0.52146
  4  18.3912
  5  3.32598e-07
  6  7.18774e-06
  7  3.55835e-06
  8  0.194183
  9  5.34644e-07
  10  18.2256
  11  8.63353
  12  0.965743
  13  21.7642
  14  4.51278e-06
  15  9.71788e-06
  16  5.25655
  17  3.65275e-05
  18  1.59795e-05
  19  8.17951
  20  0.000108363
  21  0.227904
  22  0.126517
Done.

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

Extracting fit parameters...

4FGL J2311.7+2604
   Spectrum: PowerLaw
368    Prefactor:  1.051e+01  2.176e+01  1.000e-04  1.000e+04 ( 1.000e-13)
369        Index:  2.429e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
370        Scale:  1.013e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
527    Prefactor:  1.068e+00  1.265e-01  0.000e+00  1.000e+01 ( 1.000e+00)
528        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
529        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
526   Normalization:  9.999e-01  2.279e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.27
Ra Dec: 347.931 26.083
Photon Flux Upper Limit: 1.12e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.70e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/691518/likelihoodResults_371260801_371520001_4FGL_J2311.7+2604_daily_bin509.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) = 8316.92501937
delta logL = 0.645305687876

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8316.86540862
delta logL = 0.704916428438

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .91079       1.0000         .10000E-03   10000.    
     2 'Index     '    4.4059       1.0000          .0000       10.000    
     3 'Normalizat'    .92165       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0955       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5300E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8316.865     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      327 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .90231        29.249        .34842E-03   -.13207E-02
   2  Index         4.4111        7.0567        .57056E-02   -.11453E-03
   3  Normalizat    .92180        .17870        .34991E-03   -.21899E-04
   4  Prefactor     1.0955        .99003E-01    .18043E-03   -.36848E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.90231
  Index      = 4.41112
  Normalizat = 0.921805
  Prefactor  = 1.09549
 **********
 **   18 **HESSE 
 **********

 FCN=   8316.865     FROM HESSE     STATUS=OK            25 CALLS      352 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .90231        14.940        .13937E-04   -1.5518    
   2  Index         4.4111        3.5275        .22823E-03   -.11805    
   3  Normalizat    .92180        .23525        .13996E-04   -.95698    
   4  Prefactor     1.0955        .12878        .36086E-04   -.89611    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.0168e-10
Minuit parameter uncertainties:
  1  7.34501
  2  3.9232
  3  0.235513
  4  0.128819
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/691518': 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) = 8316.86540446
delta logL = 0.704920594597

Extracting fit parameters...

4FGL J2311.7+2604
   Spectrum: PowerLaw
368    Prefactor:  9.023e-01  7.345e+00  1.000e-04  1.000e+04 ( 1.000e-13)
369        Index:  4.411e+00  3.923e+00  0.000e+00  1.000e+01 (-1.000e+00)
370        Scale:  1.013e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
527    Prefactor:  1.095e+00  1.288e-01  0.000e+00  1.000e+01 ( 1.000e+00)
528        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
529        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
526   Normalization:  9.218e-01  2.355e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.81
Ra Dec: 347.931 26.083
Photon Index (Free Index): 4.41 +/- 3.92
Photon Flux (Free Index): 7.25e-08 +/- 6.32e-08
Energy Flux (Free Index): 1.02e-05 +/- 1.09e-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/691518/cmap_HighResolution_371260801_371520001_4FGL_J2311.7+2604_daily_bin509.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.70e-03', comment='SUCCESS', energy_flux2='1.02e-05', dlogl='7.05e-01', photon_flux2='7.25e-08', job_status='DONE', time_completed='2021-09-29 08:28:33.477069', photon_index_error2='3.92', photon_index2='4.41', ts='0.27', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='1.12e-07', energy_flux_error2='1.09e-05', EG='1.00', time_epoch_completed='1632929313.48', return_code='0', job_id='691518', GAL2='1.10', EG2='0.92', return_code2='0', photon_flux_error2='6.32e-08', ts2='1.81', photon_index='2.43' WHERE bin_id='509' AND source_name='4FGL J2311.7+2604' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 08:28:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0064>
Subject: Job 691518: <4FGL_J2311.7+2604_daily_bin509> in cluster <slac> Done

Job <4FGL_J2311.7+2604_daily_bin509> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 08:15:23 2021
Job was executed on host(s) <bullet0064>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 08:15:24 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 08:15:24 2021
Terminated at Wed Sep 29 08:28:34 2021
Results reported at Wed Sep 29 08:28:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2311.7+2604_daily_bin509 347.931 26.0831 371260801 371520001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2311.7+2604 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   768.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             298.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   789 sec.
    Turnaround time :                            791 sec.

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

