/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 219 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_bin1004
RA = 347.931, Dec = 26.0831
tmin = 499564801, tmax = 499824001
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='695043', job_status='RUN', time_executed='2021-09-29 08:29:08.086503', time_epoch_executed='1632929348.09' WHERE source_name='4FGL J2311.7+2604' and cadence='daily' and bin_id='1004'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/695043

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/695043/ft1_4FGL_J2311.7+2604_daily_bin1004.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/695043/ft2_4FGL_J2311.7+2604_daily_bin1004.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/695043/ft1_4FGL_J2311.7+2604_daily_bin1004.fits outfile=/scratch/kocevski/695043/ft1_filteredMKT_4FGL_J2311.7+2604_daily_bin1004.fits ra=347.931 dec=26.0831 rad=12.0 tmin=499564801.0 tmax=499824001.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 5.07
user 4.82
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/695043/ft2_4FGL_J2311.7+2604_daily_bin1004.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/695043/ft1_filteredMKT_4FGL_J2311.7+2604_daily_bin1004.fits evtable="EVENTS" outfile="/scratch/kocevski/695043/ft1_filtered_4FGL_J2311.7+2604_daily_bin1004.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.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/695043/ft1_filtered_4FGL_J2311.7+2604_daily_bin1004.fits" evtable="EVENTS" scfile=/scratch/kocevski/695043/ft2_4FGL_J2311.7+2604_daily_bin1004.fits sctable="SC_DATA" outfile=/scratch/kocevski/695043/ltcube_499564801_499824001_4FGL_J2311.7+2604_daily_bin1004.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/695043/ft2_4FGL_J2311.7+2604_daily_bin1004.fits
.....................!
real 14.65
user 14.25
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/695043/ft1_filtered_4FGL_J2311.7+2604_daily_bin1004.fits evtable="EVENTS" scfile=/scratch/kocevski/695043/ft2_4FGL_J2311.7+2604_daily_bin1004.fits sctable="SC_DATA" expcube=/scratch/kocevski/695043/ltcube_499564801_499824001_4FGL_J2311.7+2604_daily_bin1004.fits outfile=/scratch/kocevski/695043/expmap_499564801_499824001_4FGL_J2311.7+2604_daily_bin1004.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/695043/ltcube_499564801_499824001_4FGL_J2311.7+2604_daily_bin1004.fits
.....................!
real 191.55
user 185.59
sys 5.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/695043/ft1_filtered_4FGL_J2311.7+2604_daily_bin1004.fits scfile=/scratch/kocevski/695043/ft2_4FGL_J2311.7+2604_daily_bin1004.fits outfile=/scratch/kocevski/695043/cmap_499564801_499824001_4FGL_J2311.7+2604_daily_bin1004.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.58
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/695043/ft1_filtered_4FGL_J2311.7+2604_daily_bin1004.fits scfile=/scratch/kocevski/695043/ft2_4FGL_J2311.7+2604_daily_bin1004.fits outfile=/scratch/kocevski/695043/cmap_HighResolution_499564801_499824001_4FGL_J2311.7+2604_daily_bin1004.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.61
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    .15482E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .24821       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.4255       1.0000         .10000E-03   10000.    
     5 'norm      '    4.0768       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.1967       1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.683       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .49873E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .97573       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.8962       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.4959       1.0000         .10000E-03   10000.    
    16 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.9102       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .38601E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2268       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0053       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=   7249.216     FROM MIGRAD    STATUS=CONVERGED    905 CALLS     2511 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    43.148        .18142E-02** at limit **
   2  Prefactor     .10000E-03    58.478        .36285E-03** at limit **
   3  norm          .24713        1.5307        .14550E-02    .10036E-02
   4  Prefactor     8.4442        25.570        .13811E-03    .97382E-04
   5  norm          4.0770        2.3217        .94791E-04   -.26385E-05
   6  Prefactor     .10000E-03    25.499        .18142E-02** at limit **
   7  Prefactor     .10000E-03    9.2246        .18142E-02** at limit **
   8  Prefactor     6.1968        .50492        .16485E-04    .31861E-03
   9  Prefactor     12.682        18.983        .11248E-03    .71258E-04
  10  Prefactor     .12327E-03    48.136        .16837    ** at limit **
  11  Prefactor     .10000E-03    3.4826        .15512E-02** at limit **
  12  norm          .97579        1.7247        .15815E-02    .10589E-02
  13  Prefactor     7.8888        40.897        .14269E-03   -.13226E-04
  14  Prefactor     .10000E-03    21.559        .18142E-02** at limit **
  15  Prefactor     2.4915        9.7067        .25870E-03   -.16567E-04
  16  norm          .10000E-03    3.3240        .15138E-02** at limit **
  17  Prefactor     7.9040        20.752        .14257E-03    .38915E-04
  18  Prefactor     .10000E-03    13.099        .18142E-02** at limit **
  19  Prefactor     .10000E-03    13.817        .18142E-02** at limit **
  20  Prefactor     .10011E-03    40.918        .17535    ** at limit **
  21  Normalizat    1.2270        .33612        .41456E-03    .20386E-03
  22  Prefactor     1.0054        .16830        .22749E-03    .52518E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.247129
  Prefactor  = 8.4442
  norm       = 4.07698
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.19678
  Prefactor  = 12.682
  Prefactor  = 0.000123268
  Prefactor  = 0.0001
  norm       = 0.975794
  Prefactor  = 7.88878
  Prefactor  = 0.0001
  Prefactor  = 2.49154
  norm       = 0.0001
  Prefactor  = 7.90403
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100111
  Normalizat = 1.22695
  Prefactor  = 1.00544
 **********
 **   18 **HESSE 
 **********

 FCN=   7249.216     FROM HESSE     STATUS=OK           344 CALLS     2855 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    43.149        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    58.480        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .24713        1.4961        .58201E-04   -1.5609    
   4  Prefactor     8.4442        25.371        .55243E-05   -1.5127    
   5  norm          4.0770        2.3216        .37917E-05   -1.5304    
   6  Prefactor     .10000E-03    25.500        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.2258        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.1968        .50488        .65941E-06   -1.5210    
   9  Prefactor     12.682        18.980        .44991E-05   -1.4996    
  10  Prefactor     .12327E-03    50.171        .16359       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.4827        .31023E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .97579        1.7215        .63261E-04   -1.5510    
  13  Prefactor     7.8888        40.874        .57077E-05   -1.5146    
  14  Prefactor     .10000E-03    21.561        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.4915        9.7043        .10348E-04   -1.5392    
  16  norm          .10000E-03    3.3242        .30276E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.9040        20.748        .57026E-05   -1.5146    
  18  Prefactor     .10000E-03    13.100        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    13.818        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10011E-03    40.886        .17546       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.2270        .33629        .16583E-04   -.85774    
  22  Prefactor     1.0054        .16848        .45498E-04   -.92548    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.57745e-10
Minuit parameter uncertainties:
  1  3.99923e-05
  2  0.000262186
  3  1.21591
  4  25.4031
  5  2.32164
  6  2.90083e-06
  7  8.18518e-06
  8  0.504884
  9  18.989
  10  0.0683916
  11  1.80684e-06
  12  1.72162
  13  35.9519
  14  6.89227e-07
  15  9.71047
  16  1.51049e-05
  17  20.7665
  18  1.90013e-05
  19  3.4326e-06
  20  0.00425553
  21  0.336891
  22  0.168565
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
527    Prefactor:  1.005e+00  1.686e-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.227e+00  3.369e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/695043/likelihoodResults_499564801_499824001_4FGL_J2311.7+2604_daily_bin1004.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) = 7249.21221066
delta logL = 0.00408013545803

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7249.21095673
delta logL = 0.00533406144041

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.0641       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7892       1.0000          .0000       10.000    
     3 'Normalizat'    1.2195       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0079       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7249.211     FROM MIGRAD    STATUS=FAILED        85 CALLS      333 TOTAL
                     EDM=   .74E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.0816        84.955        .16304E-03    .52363E-03
   2  Index         2.7879        6.3934        .53952E-02    .86958E-03
   3  Normalizat    1.2194        .33999        .41568E-03    .39196E-02
   4  Prefactor     1.0079        .16829        .22724E-03    .62159E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7249.211     FROM SIMPLEX   STATUS=UNCHANGED     82 CALLS      415 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.0816        84.955        .48931E-03   -1.5215    
   2  Index         2.7879        6.3934        .26099E-02   -.45829    
   3  Normalizat    1.2194        .33999        .38323E-03   -.86004    
   4  Prefactor     1.0079        .16829        .19929E-03   -.92466    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7249.211     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      446 TOTAL
                     EDM=   .32E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.1036        63.492        .32609E-04    .34864E-05
   2  Index         2.7849        3.6212        .21581E-03    .84287E-06
   3  Normalizat    1.2195        .33768        .83136E-04   -.29948E-04
   4  Prefactor     1.0079        .16718        .45449E-04   -.49278E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.10365
  Index      = 2.78492
  Normalizat = 1.21946
  Prefactor  = 1.00788
 **********
 **   18 **HESSE 
 **********

 FCN=   7249.211     FROM HESSE     STATUS=OK            23 CALLS      469 TOTAL
                     EDM=   .32E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.1036        63.275        .65217E-05   -1.5214    
   2  Index         2.7849        3.6190        .86323E-05   -.45896    
   3  Normalizat    1.2195        .33767        .16627E-04   -.86004    
   4  Prefactor     1.0079        .16717        .90897E-05   -.92467    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.19207e-12
Minuit parameter uncertainties:
  1  39.3577
  2  4.2121
  3  0.338275
  4  0.16726
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/695043': 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) = 7249.21095609
delta logL = 0.00533470260507

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
527    Prefactor:  1.008e+00  1.673e-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.219e+00  3.383e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.05
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/695043/cmap_HighResolution_499564801_499824001_4FGL_J2311.7+2604_daily_bin1004.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.45e-02', job_status='DONE', photon_flux_upper_limit='1.87e-07', time_completed='2021-09-29 08:41:33.058779', job_id='695043', GAL2='1.01', fit_tolerance='1e-08', EG2='1.22', EG='1.23', time_epoch_completed='1632930093.06', return_code2='0', ts='0.05', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='5.33e-03', ts2='0.06', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1004' AND source_name='4FGL J2311.7+2604' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 08:41:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 695043: <4FGL_J2311.7+2604_daily_bin1004> in cluster <slac> Done

Job <4FGL_J2311.7+2604_daily_bin1004> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 08:25:18 2021
Job was executed on host(s) <bullet0073>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 08:25:20 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:25:20 2021
Terminated at Wed Sep 29 08:41:34 2021
Results reported at Wed Sep 29 08:41:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2311.7+2604_daily_bin1004 347.931 26.0831 499564801 499824001 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 :                                   741.26 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             236.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   973 sec.
    Turnaround time :                            976 sec.

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

