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


Performing analysis on: 4FGL_J2311.7+2604_daily_bin508
RA = 347.931, Dec = 26.0831
tmin = 371001601, tmax = 371260801
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='691516', job_status='RUN', time_executed='2021-09-29 08:18:27.129149', time_epoch_executed='1632928707.13' WHERE source_name='4FGL J2311.7+2604' and cadence='daily' and bin_id='508'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/691516

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/691516/ft1_4FGL_J2311.7+2604_daily_bin508.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/691516/ft2_4FGL_J2311.7+2604_daily_bin508.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/691516/ft1_4FGL_J2311.7+2604_daily_bin508.fits outfile=/scratch/kocevski/691516/ft1_filteredMKT_4FGL_J2311.7+2604_daily_bin508.fits ra=347.931 dec=26.0831 rad=12.0 tmin=371001601.0 tmax=371260801.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 6.41
user 6.13
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/691516/ft2_4FGL_J2311.7+2604_daily_bin508.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/691516/ft1_filteredMKT_4FGL_J2311.7+2604_daily_bin508.fits evtable="EVENTS" outfile="/scratch/kocevski/691516/ft1_filtered_4FGL_J2311.7+2604_daily_bin508.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/691516/ft1_filtered_4FGL_J2311.7+2604_daily_bin508.fits" evtable="EVENTS" scfile=/scratch/kocevski/691516/ft2_4FGL_J2311.7+2604_daily_bin508.fits sctable="SC_DATA" outfile=/scratch/kocevski/691516/ltcube_371001601_371260801_4FGL_J2311.7+2604_daily_bin508.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/691516/ft2_4FGL_J2311.7+2604_daily_bin508.fits
.....................!
real 11.87
user 11.46
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/691516/ft1_filtered_4FGL_J2311.7+2604_daily_bin508.fits evtable="EVENTS" scfile=/scratch/kocevski/691516/ft2_4FGL_J2311.7+2604_daily_bin508.fits sctable="SC_DATA" expcube=/scratch/kocevski/691516/ltcube_371001601_371260801_4FGL_J2311.7+2604_daily_bin508.fits outfile=/scratch/kocevski/691516/expmap_371001601_371260801_4FGL_J2311.7+2604_daily_bin508.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/691516/ltcube_371001601_371260801_4FGL_J2311.7+2604_daily_bin508.fits
.....................!
real 191.45
user 186.43
sys 4.55

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/691516/ft1_filtered_4FGL_J2311.7+2604_daily_bin508.fits scfile=/scratch/kocevski/691516/ft2_4FGL_J2311.7+2604_daily_bin508.fits outfile=/scratch/kocevski/691516/cmap_371001601_371260801_4FGL_J2311.7+2604_daily_bin508.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.55
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/691516/ft1_filtered_4FGL_J2311.7+2604_daily_bin508.fits scfile=/scratch/kocevski/691516/ft2_4FGL_J2311.7+2604_daily_bin508.fits outfile=/scratch/kocevski/691516/cmap_HighResolution_371001601_371260801_4FGL_J2311.7+2604_daily_bin508.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/691516/ft1_filtered_4FGL_J2311.7+2604_daily_bin508.fits evtable="EVENTS" scfile=/scratch/kocevski/691516/ft2_4FGL_J2311.7+2604_daily_bin508.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/691516/Model_4FGL_J2311.7+2604_daily_bin508.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/691516/ft1_filtered_4FGL_J2311.7+2604_daily_bin508.fits.....................!
real 90.95
user 89.52
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    30.047       1.0000         .10000E-03   10000.    
     2 'Prefactor '    18.065       1.0000         .10000E-03   10000.    
     3 'norm      '    .74662       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.0710       1.0000         .10000E-03   10000.    
     5 'norm      '    .55257       1.0000         .10000E-03   10000.    
     6 'Prefactor '    23.479       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12804       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .28934       1.0000         .10000E-03   10000.    
     9 'Prefactor '    21.769       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.4033       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.6778       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    4.0204       1.0000         .10000E-03   10000.    
    17 'Prefactor '    37.111       1.0000         .10000E-03   10000.    
    18 'Prefactor '    21.310       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.9393       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2963       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .80462       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=   8237.767     FROM MIGRAD    STATUS=CONVERGED    481 CALLS     2081 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.955        54.207       -.10367E-03    .68076E-05
   2  Prefactor     18.068        14.429       -.70769E-05    .29522E-04
   3  norm          .74706        .71570        .29046E-06    .11508E-02
   4  Prefactor     3.0705        10.120        .15375E-05   -.15235E-03
   5  norm          .55142        1.3983       -.22775E-06   -.12455E-02
   6  Prefactor     23.474        39.208       -.56424E-05   -.11982E-05
   7  Prefactor     .16320        8.2706       -.25923E-06    .54810E-03
   8  Prefactor     .28936        .13894       -.98571E-10   -.10029E-02
   9  Prefactor     21.769        12.435       -.72915E-05    .61544E-04
  10  Prefactor     6.4015        21.673        .68036E-05   -.20642E-04
  11  Prefactor     .10000E-03    9.6830        .64473E-05** at limit **
  12  norm          1.6779        1.1259       -.32262E-06   -.40441E-03
  13  Prefactor     .10000E-03    8.9806       -.29621E-05** at limit **
  14  Prefactor     .10000E-03    11.186       -.41433E-05** at limit **
  15  Prefactor     .10000E-03    3.3027        .17960E-06** at limit **
  16  norm          4.0211        5.2587       -.54508E-06   -.43760E-03
  17  Prefactor     37.115        20.832        .12548E-05    .84641E-04
  18  Prefactor     21.313        15.745       -.48221E-05   -.74014E-05
  19  Prefactor     .10000E-03    6.1770       -.18131E-06** at limit **
  20  Prefactor     9.9442        32.365        .96411E-05   -.23502E-05
  21  Normalizat    1.2961        .19818        .33189E-05   -.47878E-04
  22  Prefactor     .80473        .10067        .14470E-05    .61867E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.9548
  Prefactor  = 18.0678
  norm       = 0.747059
  Prefactor  = 3.07046
  norm       = 0.551422
  Prefactor  = 23.4737
  Prefactor  = 0.1632
  Prefactor  = 0.289356
  Prefactor  = 21.7691
  Prefactor  = 6.4015
  Prefactor  = 0.0001
  norm       = 1.67792
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.02113
  Prefactor  = 37.1153
  Prefactor  = 21.3128
  Prefactor  = 0.0001
  Prefactor  = 9.94416
  Normalizat = 1.29607
  Prefactor  = 0.804733
 **********
 **   18 **HESSE 
 **********

 FCN=   8237.767     FROM HESSE     STATUS=OK           364 CALLS     2445 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.955        54.191        .73092E-04   -1.4613    
   2  Prefactor     18.068        14.452        .94232E-04   -1.4858    
   3  norm          .74706        .68498        .72163E-03   -1.5535    
   4  Prefactor     3.0705        10.083        .23147E-03   -1.5357    
   5  norm          .55142        1.2655        .15490E-02   -1.5559    
   6  Prefactor     23.474        39.265        .82666E-04   -1.4739    
   7  Prefactor     .16320        12.361        .71617E-01   -1.5627    
   8  Prefactor     .28936        .13721        .22178E-04   -1.5600    
   9  Prefactor     21.769        12.454        .85848E-04   -1.4774    
  10  Prefactor     6.4015        21.684        .15861E-03   -1.5202    
  11  Prefactor     .10000E-03    9.9704        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.6779        1.1229        .75470E-04   -1.5449    
  13  Prefactor     .10000E-03    8.9989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    11.206        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.3311        .16095E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.0211        5.2169        .20112E-03   -1.5307    
  17  Prefactor     37.115        20.798        .65789E-04   -1.4489    
  18  Prefactor     21.313        15.775        .86767E-04   -1.4784    
  19  Prefactor     .10000E-03    6.1837        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     9.9442        32.491        .12710E-03   -1.5077    
  21  Normalizat    1.2961        .23378        .29425E-03   -.83684    
  22  Prefactor     .80473        .11825        .19326E-03   -.99554    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.07668e-09
Minuit parameter uncertainties:
  1  54.2804
  2  14.4546
  3  0.684991
  4  10.0886
  5  1.26554
  6  39.3083
  7  2.8404
  8  0.137213
  9  12.4556
  10  21.7109
  11  0.000113908
  12  1.12292
  13  2.79347e-07
  14  3.46761e-05
  15  1.07237e-05
  16  5.21745
  17  20.8021
  18  15.7785
  19  1.67682e-05
  20  32.5485
  21  0.23397
  22  0.118289
Done.

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

Extracting fit parameters...

4FGL J2311.7+2604
   Spectrum: PowerLaw
368    Prefactor:  1.000e-04  2.793e-07  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.047e-01  1.183e-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.296e+00  2.340e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 347.931 26.083
Photon Flux Upper Limit: 6.91e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.35e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/691516/likelihoodResults_371001601_371260801_4FGL_J2311.7+2604_daily_bin508.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): 102
logL (Free Index) = 8237.76734108
delta logL = -0.000529644201379

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8237.76681145
delta logL = -2.01362126973e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4247       1.0000          .0000       10.000    
     3 'Normalizat'    1.2961       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80473       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=   8237.767     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      243 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10027E-03    278.77        .18142E-02** at limit **
   2  Index         2.3799        8.7851        .50000        .30651E-05
   3  Normalizat    1.2961        .28556E-01    .29425E-03   -.14218E-04
   4  Prefactor     .80473        .15258E-01    .19326E-03   -.19648E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100266
  Index      = 2.3799
  Normalizat = 1.29607
  Prefactor  = 0.804732
 **********
 **   18 **HESSE 
 **********

 FCN=   8237.767     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      272 TOTAL
                     EDM=   .99E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10027E-03    1099.1        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3799        5.8998        .50000       -.55156    
   3  Normalizat    1.2961        .67229E-01    .11770E-04   -.83684    
   4  Prefactor     .80473        .35880E-01    .77303E-05   -.99554    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.91425e-09
Minuit parameter uncertainties:
  1  0.0348778
  2  2677.98
  3  0.0672332
  4  0.0358806
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/691516': 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) = 8237.76681141
delta logL = 2.59333319264e-08

Extracting fit parameters...

4FGL J2311.7+2604
   Spectrum: PowerLaw
368    Prefactor:  1.003e-04  3.488e-02  1.000e-04  1.000e+04 ( 1.000e-13)
369        Index:  2.380e+00  2.678e+03  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.047e-01  3.588e-02  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.296e+00  6.723e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 347.931 26.083

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/691516/cmap_HighResolution_371001601_371260801_4FGL_J2311.7+2604_daily_bin508.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.35e-03', job_status='DONE', photon_flux_upper_limit='6.91e-08', time_completed='2021-09-29 08:30:53.085613', job_id='691516', GAL2='0.80', fit_tolerance='1e-08', EG2='1.30', EG='1.30', time_epoch_completed='1632929453.09', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='2.59e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='508' AND source_name='4FGL J2311.7+2604' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 08:30:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 691516: <4FGL_J2311.7+2604_daily_bin508> in cluster <slac> Done

Job <4FGL_J2311.7+2604_daily_bin508> 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) <bullet0216>, 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:30:53 2021
Results reported at Wed Sep 29 08:30:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2311.7+2604_daily_bin508 347.931 26.0831 371001601 371260801 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 :                                   742.19 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             285.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   929 sec.
    Turnaround time :                            930 sec.

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

