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


Performing analysis on: 4FGL_J2311.7+2604_daily_bin443
RA = 347.931, Dec = 26.0831
tmin = 354153601, tmax = 354412801
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='690163', job_status='RUN', time_executed='2021-09-29 08:10:49.740568', time_epoch_executed='1632928249.74' WHERE source_name='4FGL J2311.7+2604' and cadence='daily' and bin_id='443'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/690163

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/690163/ft1_4FGL_J2311.7+2604_daily_bin443.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/690163/ft2_4FGL_J2311.7+2604_daily_bin443.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/690163/ft1_4FGL_J2311.7+2604_daily_bin443.fits outfile=/scratch/kocevski/690163/ft1_filteredMKT_4FGL_J2311.7+2604_daily_bin443.fits ra=347.931 dec=26.0831 rad=12.0 tmin=354153601.0 tmax=354412801.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.94
user 3.72
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/690163/ft2_4FGL_J2311.7+2604_daily_bin443.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/690163/ft1_filteredMKT_4FGL_J2311.7+2604_daily_bin443.fits evtable="EVENTS" outfile="/scratch/kocevski/690163/ft1_filtered_4FGL_J2311.7+2604_daily_bin443.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/690163/ft1_filtered_4FGL_J2311.7+2604_daily_bin443.fits" evtable="EVENTS" scfile=/scratch/kocevski/690163/ft2_4FGL_J2311.7+2604_daily_bin443.fits sctable="SC_DATA" outfile=/scratch/kocevski/690163/ltcube_354153601_354412801_4FGL_J2311.7+2604_daily_bin443.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/690163/ft2_4FGL_J2311.7+2604_daily_bin443.fits
.....................!
real 11.85
user 11.51
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/690163/ft1_filtered_4FGL_J2311.7+2604_daily_bin443.fits evtable="EVENTS" scfile=/scratch/kocevski/690163/ft2_4FGL_J2311.7+2604_daily_bin443.fits sctable="SC_DATA" expcube=/scratch/kocevski/690163/ltcube_354153601_354412801_4FGL_J2311.7+2604_daily_bin443.fits outfile=/scratch/kocevski/690163/expmap_354153601_354412801_4FGL_J2311.7+2604_daily_bin443.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/690163/ltcube_354153601_354412801_4FGL_J2311.7+2604_daily_bin443.fits
.....................!
real 189.75
user 185.39
sys 3.92

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/690163/ft1_filtered_4FGL_J2311.7+2604_daily_bin443.fits scfile=/scratch/kocevski/690163/ft2_4FGL_J2311.7+2604_daily_bin443.fits outfile=/scratch/kocevski/690163/cmap_354153601_354412801_4FGL_J2311.7+2604_daily_bin443.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/690163/ft1_filtered_4FGL_J2311.7+2604_daily_bin443.fits scfile=/scratch/kocevski/690163/ft2_4FGL_J2311.7+2604_daily_bin443.fits outfile=/scratch/kocevski/690163/cmap_HighResolution_354153601_354412801_4FGL_J2311.7+2604_daily_bin443.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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/690163/ft1_filtered_4FGL_J2311.7+2604_daily_bin443.fits evtable="EVENTS" scfile=/scratch/kocevski/690163/ft2_4FGL_J2311.7+2604_daily_bin443.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/690163/Model_4FGL_J2311.7+2604_daily_bin443.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/690163/ft1_filtered_4FGL_J2311.7+2604_daily_bin443.fits.....................!
real 90.78
user 88.74
sys 1.32

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/690163/ft1_filtered_4FGL_J2311.7+2604_daily_bin443.fits', '/scratch/kocevski/690163/ft2_4FGL_J2311.7+2604_daily_bin443.fits', expMap='/scratch/kocevski/690163/expmap_354153601_354412801_4FGL_J2311.7+2604_daily_bin443.fits', expCube='/scratch/kocevski/690163/ltcube_354153601_354412801_4FGL_J2311.7+2604_daily_bin443.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/690163/Model_4FGL_J2311.7+2604_daily_bin443.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/690163/ft1_filtered_4FGL_J2311.7+2604_daily_bin443.fits
Spacecraft file(s): /scratch/kocevski/690163/ft2_4FGL_J2311.7+2604_daily_bin443.fits
Exposure map: /scratch/kocevski/690163/expmap_354153601_354412801_4FGL_J2311.7+2604_daily_bin443.fits
Exposure cube: /scratch/kocevski/690163/ltcube_354153601_354412801_4FGL_J2311.7+2604_daily_bin443.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/690163/Model_4FGL_J2311.7+2604_daily_bin443.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) = 7721.93618612

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .25414E-02   1.0000         .10000E-03   10000.    
     3 'norm      '    .97644       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.7652       1.0000         .10000E-03   10000.    
     5 'norm      '    1.3411       1.0000         .10000E-03   10000.    
     6 'Prefactor '    46.923       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    18.408       1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.357       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    25.818       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.542       1.0000         .10000E-03   10000.    
    16 'norm      '    .10155E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    16.019       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.4083       1.0000         .10000E-03   10000.    
    20 'Prefactor '    48.638       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1630       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .84958       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=   7721.896     FROM MIGRAD    STATUS=CONVERGED    472 CALLS     2393 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    90.370        .26856E-04** at limit **
   2  Prefactor     .10000E-03    7.1322       -.10720E-05** at limit **
   3  norm          .97569        1.0832       -.39387E-06   -.18171E-02
   4  Prefactor     9.7653        11.675       -.75929E-07    .16698E-04
   5  norm          1.3411        1.3320       -.16526E-06   -.32292E-03
   6  Prefactor     46.924        39.347       -.74513E-07    .14544E-04
   7  Prefactor     .10000E-03    2.9457       -.85904E-07** at limit **
   8  Prefactor     .10000E-03    .28038E-01   -.76606E-08** at limit **
   9  Prefactor     .10000E-03    6.2377       -.44113E-05** at limit **
  10  Prefactor     18.404        23.089       -.33826E-05    .12166E-04
  11  Prefactor     16.357        8.8176       -.13345E-06    .18529E-05
  12  norm          .10000E-03    .39633       -.10195E-08** at limit **
  13  Prefactor     25.807        21.917       -.38296E-05    .33809E-04
  14  Prefactor     .10000E-03    6.1009        .15768E-05** at limit **
  15  Prefactor     11.539        7.6087       -.14912E-05   -.10905E-03
  16  norm          .10000E-03    2.9120       -.80922E-08** at limit **
  17  Prefactor     16.019        14.853        .17127E-06    .72567E-04
  18  Prefactor     .10000E-03    6.4387        .28576E-05** at limit **
  19  Prefactor     3.3336        50.939       -.88145E-04   -.14792E-04
  20  Prefactor     48.648        38.857        .12245E-04    .10644E-03
  21  Normalizat    1.1629        .20286       -.25565E-06    .49455E-03
  22  Prefactor     .84969        .10464        .34132E-05    .15668E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.975688
  Prefactor  = 9.76529
  norm       = 1.34108
  Prefactor  = 46.9238
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.4043
  Prefactor  = 16.3568
  norm       = 0.0001
  Prefactor  = 25.8071
  Prefactor  = 0.0001
  Prefactor  = 11.5393
  norm       = 0.0001
  Prefactor  = 16.019
  Prefactor  = 0.0001
  Prefactor  = 3.33356
  Prefactor  = 48.6483
  Normalizat = 1.16294
  Prefactor  = 0.849691
 **********
 **   18 **HESSE 
 **********

 FCN=   7721.896     FROM HESSE     STATUS=OK           344 CALLS     2737 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    90.421        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    36.452        .45306E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .97569        1.0036        .90275E-03   -1.5510    
   4  Prefactor     9.7653        11.637        .12823E-03   -1.5083    
   5  norm          1.3411        1.3096        .98347E-04   -1.5476    
   6  Prefactor     46.924        39.205        .58535E-04   -1.4337    
   7  Prefactor     .10000E-03    2.9518        .14728E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    .31048E-01    .28571E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.3017        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     18.404        23.094        .93351E-04   -1.4850    
  11  Prefactor     16.357        8.8083        .99029E-04   -1.4899    
  12  norm          .10000E-03    .40534        .53958E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     25.807        21.932        .78840E-04   -1.4692    
  14  Prefactor     .10000E-03    6.1053        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     11.539        7.6444        .11792E-03   -1.5028    
  16  norm          .10000E-03    2.9507        .14612E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     16.019        14.882        .10007E-03   -1.4907    
  18  Prefactor     .10000E-03    6.4420        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.3336        51.551        .21913E-03   -1.5343    
  20  Prefactor     48.648        38.940        .57498E-04   -1.4312    
  21  Normalizat    1.1629        .24006        .30021E-03   -.87756    
  22  Prefactor     .84969        .12430        .18505E-03   -.97922    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.4513e-09
Minuit parameter uncertainties:
  1  0.000157504
  2  0.000599738
  3  1.00365
  4  11.6401
  5  1.30958
  6  39.2261
  7  4.14181e-06
  8  2.16826e-07
  9  9.70243e-06
  10  23.1055
  11  8.80898
  12  1.28775e-06
  13  21.9384
  14  1.10112e-06
  15  7.64501
  16  6.4445e-06
  17  14.8858
  18  3.34807e-06
  19  26.2448
  20  38.9603
  21  0.240283
  22  0.124343
Done.

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

Extracting fit parameters...

4FGL J2311.7+2604
   Spectrum: PowerLaw
368    Prefactor:  2.581e+01  2.194e+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:  8.497e-01  1.243e-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:  1.163e+00  2.403e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.82
Ra Dec: 347.931 26.083
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 5.01e-08 +/- 4.25e-08
Energy Flux (Fixed Index): 1.58e-05 +/- 1.34e-05

TS (Fixed Index): 1.82
Ra Dec: 347.931 26.083
Photon Flux Upper Limit: 1.37e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.06e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/690163/likelihoodResults_354153601_354412801_4FGL_J2311.7+2604_daily_bin443.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) = 7721.75623858
delta logL = 0.139652245106

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7721.75530061
delta logL = 0.140590214759

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    36.463       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1347       1.0000          .0000       10.000    
     3 'Normalizat'    1.1750       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84373       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7721.755     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      316 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     36.471        33.269        .66369E-04    .46078E-04
   2  Index         2.1346        .51952        .80224E-02    .29197E-03
   3  Normalizat    1.1751        .22681        .29883E-03    .35761E-04
   4  Prefactor     .84369        .12217        .18560E-03   -.88879E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 36.4706
  Index      = 2.13461
  Normalizat = 1.17512
  Prefactor  = 0.843685
 **********
 **   18 **HESSE 
 **********

 FCN=   7721.755     FROM HESSE     STATUS=OK            25 CALLS      341 TOTAL
                     EDM=   .53E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     36.471        32.542        .26548E-05   -1.4499    
   2  Index         2.1346        .50814        .16045E-02   -.61026    
   3  Normalizat    1.1751        .22694        .11953E-04   -.87375    
   4  Prefactor     .84369        .12223        .74240E-05   -.98138    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.25586e-11
Minuit parameter uncertainties:
  1  32.5575
  2  0.509447
  3  0.227125
  4  0.122271
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/690163': 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) = 7721.75530044
delta logL = 0.140590382243

Extracting fit parameters...

4FGL J2311.7+2604
   Spectrum: PowerLaw
368    Prefactor:  3.647e+01  3.256e+01  1.000e-04  1.000e+04 ( 1.000e-13)
369        Index:  2.135e+00  5.094e-01  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:  8.437e-01  1.223e-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:  1.175e+00  2.271e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.10
Ra Dec: 347.931 26.083
Photon Index (Free Index): 2.13 +/- 0.51
Photon Flux (Free Index): 4.50e-08 +/- 3.91e-08
Energy Flux (Free Index): 2.30e-05 +/- 2.45e-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/690163/cmap_HighResolution_354153601_354412801_4FGL_J2311.7+2604_daily_bin443.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.06e-02', comment='SUCCESS', photon_flux='5.01e-08', energy_flux2='2.30e-05', photon_flux_error='4.25e-08', dlogl='1.41e-01', energy_flux='1.58e-05', photon_flux2='4.50e-08', job_status='DONE', time_completed='2021-09-29 08:23:21.705053', photon_index_error2='0.51', photon_index2='2.13', ts='1.82', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', photon_flux_upper_limit='1.37e-07', energy_flux_error2='2.45e-05', EG='1.16', time_epoch_completed='1632929001.71', return_code='0', job_id='690163', GAL2='0.84', EG2='1.18', return_code2='0', energy_flux_error='1.34e-05', photon_flux_error2='3.91e-08', ts2='2.10', photon_index='2.43' WHERE bin_id='443' AND source_name='4FGL J2311.7+2604' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 08:23:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0266>
Subject: Job 690163: <4FGL_J2311.7+2604_daily_bin443> in cluster <slac> Done

Job <4FGL_J2311.7+2604_daily_bin443> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep 29 08:10:36 2021
Job was executed on host(s) <bullet0266>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 08:10:38 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:10:38 2021
Terminated at Wed Sep 29 08:23:22 2021
Results reported at Wed Sep 29 08:23:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2311.7+2604_daily_bin443 347.931 26.0831 354153601 354412801 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 :                                   740.29 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             382.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   763 sec.
    Turnaround time :                            766 sec.

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

