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


Performing analysis on: 4FGL_J2311.7+2604_daily_bin1305
RA = 347.931, Dec = 26.0831
tmin = 577584001, tmax = 577843201
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='695530', job_status='RUN', time_executed='2021-09-29 08:29:24.009258', time_epoch_executed='1632929364.01' WHERE source_name='4FGL J2311.7+2604' and cadence='daily' and bin_id='1305'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/695530

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/695530/ft1_4FGL_J2311.7+2604_daily_bin1305.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/695530/ft2_4FGL_J2311.7+2604_daily_bin1305.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/695530/ft1_4FGL_J2311.7+2604_daily_bin1305.fits outfile=/scratch/kocevski/695530/ft1_filteredMKT_4FGL_J2311.7+2604_daily_bin1305.fits ra=347.931 dec=26.0831 rad=12.0 tmin=577584001.0 tmax=577843201.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 2.79
user 2.60
sys 0.18

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/695530/ft1_filtered_4FGL_J2311.7+2604_daily_bin1305.fits" evtable="EVENTS" scfile=/scratch/kocevski/695530/ft2_4FGL_J2311.7+2604_daily_bin1305.fits sctable="SC_DATA" outfile=/scratch/kocevski/695530/ltcube_577584001_577843201_4FGL_J2311.7+2604_daily_bin1305.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/695530/ft2_4FGL_J2311.7+2604_daily_bin1305.fits
.....................!
real 12.94
user 12.51
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/695530/ft1_filtered_4FGL_J2311.7+2604_daily_bin1305.fits evtable="EVENTS" scfile=/scratch/kocevski/695530/ft2_4FGL_J2311.7+2604_daily_bin1305.fits sctable="SC_DATA" expcube=/scratch/kocevski/695530/ltcube_577584001_577843201_4FGL_J2311.7+2604_daily_bin1305.fits outfile=/scratch/kocevski/695530/expmap_577584001_577843201_4FGL_J2311.7+2604_daily_bin1305.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/695530/ltcube_577584001_577843201_4FGL_J2311.7+2604_daily_bin1305.fits
.....................!
real 190.08
user 185.26
sys 4.46

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/695530/ft1_filtered_4FGL_J2311.7+2604_daily_bin1305.fits scfile=/scratch/kocevski/695530/ft2_4FGL_J2311.7+2604_daily_bin1305.fits outfile=/scratch/kocevski/695530/cmap_577584001_577843201_4FGL_J2311.7+2604_daily_bin1305.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/695530/ft1_filtered_4FGL_J2311.7+2604_daily_bin1305.fits scfile=/scratch/kocevski/695530/ft2_4FGL_J2311.7+2604_daily_bin1305.fits outfile=/scratch/kocevski/695530/cmap_HighResolution_577584001_577843201_4FGL_J2311.7+2604_daily_bin1305.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.58
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/695530/ft1_filtered_4FGL_J2311.7+2604_daily_bin1305.fits evtable="EVENTS" scfile=/scratch/kocevski/695530/ft2_4FGL_J2311.7+2604_daily_bin1305.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/695530/Model_4FGL_J2311.7+2604_daily_bin1305.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/695530/ft1_filtered_4FGL_J2311.7+2604_daily_bin1305.fits....................!
real 61.30
user 59.98
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11206E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10175E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    7.6667       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.810       1.0000         .10000E-03   10000.    
     5 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .15314E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    189.04       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.0242       1.0000         .10000E-03   10000.    
     9 'Prefactor '    22.715       1.0000         .10000E-03   10000.    
    10 'Prefactor '    18.893       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10207E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .23740E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10330E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .17163E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10113E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    39.579       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11797E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10944E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    57.061       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .92933       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .77507       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=   5000.464     FROM MIGRAD    STATUS=CONVERGED    512 CALLS     2385 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    65.354        .28253E-05** at limit **
   2  Prefactor     .10000E-03    4.9070        .10087E-06** at limit **
   3  norm          7.6669        2.1099       -.33320E-06   -.15060E-03
   4  Prefactor     10.804        29.421        .18320E-04   -.18115E-04
   5  norm          .10000E-03    .58767        .90248E-07** at limit **
   6  Prefactor     .10000E-03    37.812        .12602E-05** at limit **
   7  Prefactor     189.01        29.304       -.53773E-05   -.65735E-04
   8  Prefactor     2.0243        .32642        .99790E-07   -.18194E-02
   9  Prefactor     22.712        15.576        .23680E-05   -.38812E-04
  10  Prefactor     18.908        27.860        .32961E-04   -.65522E-05
  11  Prefactor     .10000E-03    15.268        .22487E-06** at limit **
  12  norm          .10000E-03    .71842       -.25982E-06** at limit **
  13  Prefactor     .10000E-03    46.269       -.23852E-05** at limit **
  14  Prefactor     .10000E-03    13.877       -.21633E-06** at limit **
  15  Prefactor     .10001E-03    6.1345        .15172E-05** at limit **
  16  norm          .10000E-03    3.1686       -.49658E-06** at limit **
  17  Prefactor     39.545        32.818        .22312E-04   -.17850E-04
  18  Prefactor     .10000E-03    16.622        .75814E-07** at limit **
  19  Prefactor     .10000E-03    23.847        .15803E-06** at limit **
  20  Prefactor     56.589        122.42       -.30288E-04   -.12098E-04
  21  Normalizat    .92900        .31061       -.50066E-05   -.15152E-03
  22  Prefactor     .77532        .14558       -.23137E-05   -.14018E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.66685
  Prefactor  = 10.8039
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 189.013
  Prefactor  = 2.02429
  Prefactor  = 22.7116
  Prefactor  = 18.9082
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  norm       = 0.000100001
  Prefactor  = 39.5452
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 56.5889
  Normalizat = 0.929001
  Prefactor  = 0.775321
 **********
 **   18 **HESSE 
 **********

 FCN=   5000.464     FROM HESSE     STATUS=OK           336 CALLS     2721 TOTAL
                     EDM=   .94E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    65.398        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.9217        .15299E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          7.6669        2.1118        .48128E-04   -1.5154    
   4  Prefactor     10.804        29.395        .12186E-03   -1.5050    
   5  norm          .10000E-03    .58879        .52936E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    37.827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     189.01        29.302        .14686E-03   -1.2950    
   8  Prefactor     2.0243        .32698        .15517E-04   -1.5423    
   9  Prefactor     22.712        15.574        .84044E-04   -1.4754    
  10  Prefactor     18.908        27.885        .92146E-04   -1.4838    
  11  Prefactor     .10000E-03    15.491        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .73358        .58509E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    46.546        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    13.881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10001E-03    26.361        .33125E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.1734        .12292E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     39.545        33.046        .63713E-04   -1.4449    
  18  Prefactor     .10000E-03    16.634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    23.853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     56.589        122.87        .53107E-04   -1.4202    
  21  Normalizat    .92900        .35919        .39043E-03   -.95448    
  22  Prefactor     .77532        .17094        .21340E-03   -1.0064    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.39871e-10
Minuit parameter uncertainties:
  1  0.000132865
  2  2.33918e-05
  3  2.1118
  4  29.4341
  5  6.78018e-06
  6  3.62501e-05
  7  29.3041
  8  0.326977
  9  15.5771
  10  27.9039
  11  8.46371e-05
  12  2.25759e-05
  13  2.24089e-05
  14  8.32544e-05
  15  0.000945656
  16  8.75379e-05
  17  33.0613
  18  3.79256e-05
  19  2.75037e-06
  20  123.421
  21  0.360119
  22  0.171055
Done.

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

Extracting fit parameters...

4FGL J2311.7+2604
   Spectrum: PowerLaw
368    Prefactor:  1.000e-04  2.241e-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:  7.753e-01  1.711e-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.290e-01  3.601e-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: 1.51e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.17e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/695530/likelihoodResults_577584001_577843201_4FGL_J2311.7+2604_daily_bin1305.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) = 5000.46383884
delta logL = -0.000102285053799

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5000.46373706
delta logL = -5.01077010995e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10562E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7752       1.0000          .0000       10.000    
     3 'Normalizat'    .92900       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77532       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=   5000.464     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      280 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10327E-03    9.4545        .18142E-01** at limit **
   2  Index         2.6851        8.0771        .50000        .71909E-05
   3  Normalizat    .92900        .37226E-02    .39043E-03   -.10340E-03
   4  Prefactor     .77532        .18887E-02    .21340E-03   -.13609E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103267
  Index      = 2.68508
  Normalizat = 0.929003
  Prefactor  = 0.77532
 **********
 **   18 **HESSE 
 **********

 FCN=   5000.464     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      309 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10327E-03    701.42        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6851        6.1832        .50000       -.48136    
   3  Normalizat    .92900        .32425E-01    .15617E-04   -.95448    
   4  Prefactor     .77532        .16451E-01    .42680E-04   -1.0064    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.13092e-08
Minuit parameter uncertainties:
  1  0.0968994
  2  847.217
  3  0.0324255
  4  0.0164509
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/695530': 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) = 5000.46373686
delta logL = -2.99583916785e-07

Extracting fit parameters...

4FGL J2311.7+2604
   Spectrum: PowerLaw
368    Prefactor:  1.033e-04  9.690e-02  1.000e-04  1.000e+04 ( 1.000e-13)
369        Index:  2.685e+00  8.472e+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:  7.753e-01  1.645e-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:  9.290e-01  3.243e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/695530/cmap_HighResolution_577584001_577843201_4FGL_J2311.7+2604_daily_bin1305.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.17e-02', job_status='DONE', photon_flux_upper_limit='1.51e-07', time_completed='2021-09-29 08:39:14.267561', job_id='695530', GAL2='0.78', fit_tolerance='1e-08', EG2='0.93', EG='0.93', time_epoch_completed='1632929954.27', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='-3.00e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1305' AND source_name='4FGL J2311.7+2604' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 08:39:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 695530: <4FGL_J2311.7+2604_daily_bin1305> in cluster <slac> Done

Job <4FGL_J2311.7+2604_daily_bin1305> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 08:26:00 2021
Job was executed on host(s) <bullet0224>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 08:26:02 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:26:02 2021
Terminated at Wed Sep 29 08:39:15 2021
Results reported at Wed Sep 29 08:39:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2311.7+2604_daily_bin1305 347.931 26.0831 577584001 577843201 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 :                                   579.21 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             270.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   792 sec.
    Turnaround time :                            795 sec.

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

