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


Performing analysis on: 4FGL_J2311.7+2604_daily_bin314
RA = 347.931, Dec = 26.0831
tmin = 320716801, tmax = 320976001
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='689972', job_status='RUN', time_executed='2021-09-29 08:10:33.960820', time_epoch_executed='1632928233.96' WHERE source_name='4FGL J2311.7+2604' and cadence='daily' and bin_id='314'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/689972

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

Retrieving the FT1 file...

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

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

Retrieving 44 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/689972/ft1_4FGL_J2311.7+2604_daily_bin314.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/689972/ft2_4FGL_J2311.7+2604_daily_bin314.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/689972/ft1_4FGL_J2311.7+2604_daily_bin314.fits outfile=/scratch/kocevski/689972/ft1_filteredMKT_4FGL_J2311.7+2604_daily_bin314.fits ra=347.931 dec=26.0831 rad=12.0 tmin=320716801.0 tmax=320976001.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.45
user 3.16
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/689972/ft2_4FGL_J2311.7+2604_daily_bin314.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/689972/ft1_filteredMKT_4FGL_J2311.7+2604_daily_bin314.fits evtable="EVENTS" outfile="/scratch/kocevski/689972/ft1_filtered_4FGL_J2311.7+2604_daily_bin314.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.48
user 0.35
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/689972/ft1_filtered_4FGL_J2311.7+2604_daily_bin314.fits" evtable="EVENTS" scfile=/scratch/kocevski/689972/ft2_4FGL_J2311.7+2604_daily_bin314.fits sctable="SC_DATA" outfile=/scratch/kocevski/689972/ltcube_320716801_320976001_4FGL_J2311.7+2604_daily_bin314.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/689972/ft2_4FGL_J2311.7+2604_daily_bin314.fits
.....................!
real 11.48
user 11.10
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/689972/ft1_filtered_4FGL_J2311.7+2604_daily_bin314.fits evtable="EVENTS" scfile=/scratch/kocevski/689972/ft2_4FGL_J2311.7+2604_daily_bin314.fits sctable="SC_DATA" expcube=/scratch/kocevski/689972/ltcube_320716801_320976001_4FGL_J2311.7+2604_daily_bin314.fits outfile=/scratch/kocevski/689972/expmap_320716801_320976001_4FGL_J2311.7+2604_daily_bin314.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/689972/ltcube_320716801_320976001_4FGL_J2311.7+2604_daily_bin314.fits
.....................!
real 189.99
user 185.23
sys 4.43

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/689972/ft1_filtered_4FGL_J2311.7+2604_daily_bin314.fits scfile=/scratch/kocevski/689972/ft2_4FGL_J2311.7+2604_daily_bin314.fits outfile=/scratch/kocevski/689972/cmap_320716801_320976001_4FGL_J2311.7+2604_daily_bin314.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/689972/ft1_filtered_4FGL_J2311.7+2604_daily_bin314.fits scfile=/scratch/kocevski/689972/ft2_4FGL_J2311.7+2604_daily_bin314.fits outfile=/scratch/kocevski/689972/cmap_HighResolution_320716801_320976001_4FGL_J2311.7+2604_daily_bin314.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.53
user 0.35
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/689972/ft1_filtered_4FGL_J2311.7+2604_daily_bin314.fits evtable="EVENTS" scfile=/scratch/kocevski/689972/ft2_4FGL_J2311.7+2604_daily_bin314.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/689972/Model_4FGL_J2311.7+2604_daily_bin314.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/689972/ft1_filtered_4FGL_J2311.7+2604_daily_bin314.fits.....................!
real 109.15
user 107.78
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    71.897       1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.8773       1.0000         .10000E-03   10000.    
     3 'norm      '    .56677       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.359       1.0000         .10000E-03   10000.    
     5 'norm      '    .82646       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.4713       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.6601       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.8857       1.0000         .10000E-03   10000.    
    12 'norm      '    4.3895       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.0508       1.0000         .10000E-03   10000.    
    16 'norm      '    1.1067       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .53649       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    23.516       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .79620       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1326       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=   9327.819     FROM MIGRAD    STATUS=CONVERGED    483 CALLS     2375 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     71.894        76.103       -.74516E-06   -.28746E-04
   2  Prefactor     8.8700        14.720       -.81790E-07   -.37708E-04
   3  norm          .56489        .96269        .81287E-06    .40700E-03
   4  Prefactor     10.361        14.940       -.52293E-06   -.71398E-04
   5  norm          .82577        1.2397        .37226E-06    .12384E-02
   6  Prefactor     .10000E-03    22.277       -.73737E-08** at limit **
   7  Prefactor     .10000E-03    7.7657        .30539E-06** at limit **
   8  Prefactor     7.4713        .47458       -.83271E-08   -.10306E-02
   9  Prefactor     3.6545        10.913        .90480E-06   -.34583E-04
  10  Prefactor     .10000E-03    17.754        .17676E-06** at limit **
  11  Prefactor     8.8855        7.0887        .39250E-07   -.32443E-04
  12  norm          4.3887        1.7158        .17349E-08   -.25823E-03
  13  Prefactor     .10000E-03    15.587        .69972E-06** at limit **
  14  Prefactor     .10000E-03    13.052        .20083E-06** at limit **
  15  Prefactor     3.0678        7.1630        .31723E-06   -.17365E-03
  16  norm          1.1044        3.7054        .22604E-05    .10644E-04
  17  Prefactor     .10000E-03    5.0881       -.11939E-06** at limit **
  18  Prefactor     .28716        13.986        .16039E-05   -.31721E-03
  19  Prefactor     .10000E-03    8.6940       -.31906E-06** at limit **
  20  Prefactor     23.416        42.942       -.93771E-06   -.90642E-04
  21  Normalizat    .79620        .24006        .21740E-05   -.28837E-03
  22  Prefactor     1.1328        .12778       -.20209E-05   -.17769E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 71.8943
  Prefactor  = 8.86997
  norm       = 0.564887
  Prefactor  = 10.3614
  norm       = 0.82577
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.47131
  Prefactor  = 3.6545
  Prefactor  = 0.0001
  Prefactor  = 8.88546
  norm       = 4.38871
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.06776
  norm       = 1.10445
  Prefactor  = 0.0001
  Prefactor  = 0.287155
  Prefactor  = 0.0001
  Prefactor  = 23.4158
  Normalizat = 0.796198
  Prefactor  = 1.13279
 **********
 **   18 **HESSE 
 **********

 FCN=   9327.819     FROM HESSE     STATUS=OK           356 CALLS     2731 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     71.894        76.028        .47346E-04   -1.4010    
   2  Prefactor     8.8700        14.733        .13453E-03   -1.5112    
   3  norm          .56489        .93578        .11851E-02   -1.5558    
   4  Prefactor     10.361        14.895        .12449E-03   -1.5064    
   5  norm          .82577        .99800        .13475E-02   -1.5526    
   6  Prefactor     .10000E-03    22.282        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.8342        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.4713        .47474        .16115E-04   -1.5161    
   9  Prefactor     3.6545        10.885        .21114E-03   -1.5326    
  10  Prefactor     .10000E-03    17.844        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.8855        7.0887        .13446E-03   -1.5112    
  12  norm          4.3887        1.7128        .75245E-04   -1.5289    
  13  Prefactor     .10000E-03    15.663        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    13.113        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.0678        7.1234        .23228E-03   -1.5358    
  16  norm          1.1044        3.6433        .32462E-03   -1.5498    
  17  Prefactor     .10000E-03    5.0976        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .28716        14.617        .10632       -1.5601    
  19  Prefactor     .10000E-03    8.7052        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     23.416        43.126        .82601E-04   -1.4740    
  21  Normalizat    .79620        .26105        .43482E-03   -1.0021    
  22  Prefactor     1.1328        .13759        .20348E-03   -.88425    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.49296e-10
Minuit parameter uncertainties:
  1  76.1307
  2  14.7394
  3  0.935802
  4  14.9007
  5  0.998023
  6  1.50179e-05
  7  2.5717e-06
  8  0.474741
  9  10.8906
  10  1.48921e-05
  11  7.08939
  12  1.71283
  13  2.36946e-05
  14  2.94835e-06
  15  7.12537
  16  3.64406
  17  7.44587e-06
  18  4.09782
  19  6.55788e-06
  20  43.1832
  21  0.261463
  22  0.137633
Done.

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

Extracting fit parameters...

4FGL J2311.7+2604
   Spectrum: PowerLaw
368    Prefactor:  1.000e-04  2.369e-05  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.133e+00  1.376e-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:  7.962e-01  2.615e-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: 8.19e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.34e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/689972/likelihoodResults_320716801_320976001_4FGL_J2311.7+2604_daily_bin314.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) = 9327.81886602
delta logL = -0.000304228618916

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9327.81856247
delta logL = -6.7440305429e-07

Fit tolerance = 1e-08

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

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

 FCN=   9327.819     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      208 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.269        .90712E-02** at limit **
   2  Index         2.4407        8.3944        .50000       -.31298E-05
   3  Normalizat    .79620        .66271E-02    .98105E-01    .43237E-04
   4  Prefactor     1.1328        .36541E-02    .36451E-01    .18147E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.44071
  Normalizat = 0.796203
  Prefactor  = 1.13279
 **********
 **   18 **HESSE 
 **********

 FCN=   9327.819     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      241 TOTAL
                     EDM=   .76E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    136.71        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4407        7.9272        .50000       -.53735    
   3  Normalizat    .79620        .16470E-01    .43479E-03   -1.0021    
   4  Prefactor     1.1328        .91110E-02    .20348E-03   -.88425    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.5749e-08
Minuit parameter uncertainties:
  1  0.000121095
  2  372.44
  3  0.0164696
  4  0.00911101
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/689972': 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) = 9327.81856178
delta logL = 9.2859409051e-09

Extracting fit parameters...

4FGL J2311.7+2604
   Spectrum: PowerLaw
368    Prefactor:  1.000e-04  1.211e-04  1.000e-04  1.000e+04 ( 1.000e-13)
369        Index:  2.441e+00  3.724e+02  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.133e+00  9.111e-03  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:  7.962e-01  1.647e-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/689972/cmap_HighResolution_320716801_320976001_4FGL_J2311.7+2604_daily_bin314.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.34e-03', job_status='DONE', photon_flux_upper_limit='8.19e-08', time_completed='2021-09-29 08:24:55.028466', job_id='689972', GAL2='1.13', fit_tolerance='1e-08', EG2='0.80', EG='0.80', time_epoch_completed='1632929095.03', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='9.29e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='314' AND source_name='4FGL J2311.7+2604' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 08:24:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 689972: <4FGL_J2311.7+2604_daily_bin314> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2311.7+2604_daily_bin314 347.931 26.0831 320716801 320976001 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 :                                   856.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             380.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   869 sec.
    Turnaround time :                            871 sec.

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

