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


Performing analysis on: 4FGL_J2311.7+2604_daily_bin1274
RA = 347.931, Dec = 26.0831
tmin = 569548801, tmax = 569808001
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='695483', job_status='RUN', time_executed='2021-09-29 08:29:03.927487', time_epoch_executed='1632929343.93' WHERE source_name='4FGL J2311.7+2604' and cadence='daily' and bin_id='1274'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/695483

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/695483/ft1_4FGL_J2311.7+2604_daily_bin1274.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/695483/ft2_4FGL_J2311.7+2604_daily_bin1274.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/695483/ft1_4FGL_J2311.7+2604_daily_bin1274.fits outfile=/scratch/kocevski/695483/ft1_filteredMKT_4FGL_J2311.7+2604_daily_bin1274.fits ra=347.931 dec=26.0831 rad=12.0 tmin=569548801.0 tmax=569808001.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.66
user 3.47
sys 0.17

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/695483/ft1_filtered_4FGL_J2311.7+2604_daily_bin1274.fits" evtable="EVENTS" scfile=/scratch/kocevski/695483/ft2_4FGL_J2311.7+2604_daily_bin1274.fits sctable="SC_DATA" outfile=/scratch/kocevski/695483/ltcube_569548801_569808001_4FGL_J2311.7+2604_daily_bin1274.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/695483/ft2_4FGL_J2311.7+2604_daily_bin1274.fits
.....................!
real 12.00
user 11.68
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/695483/ft1_filtered_4FGL_J2311.7+2604_daily_bin1274.fits evtable="EVENTS" scfile=/scratch/kocevski/695483/ft2_4FGL_J2311.7+2604_daily_bin1274.fits sctable="SC_DATA" expcube=/scratch/kocevski/695483/ltcube_569548801_569808001_4FGL_J2311.7+2604_daily_bin1274.fits outfile=/scratch/kocevski/695483/expmap_569548801_569808001_4FGL_J2311.7+2604_daily_bin1274.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/695483/ltcube_569548801_569808001_4FGL_J2311.7+2604_daily_bin1274.fits
.....................!
real 190.58
user 185.91
sys 4.31

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/695483/ft1_filtered_4FGL_J2311.7+2604_daily_bin1274.fits scfile=/scratch/kocevski/695483/ft2_4FGL_J2311.7+2604_daily_bin1274.fits outfile=/scratch/kocevski/695483/cmap_569548801_569808001_4FGL_J2311.7+2604_daily_bin1274.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.40
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/695483/ft1_filtered_4FGL_J2311.7+2604_daily_bin1274.fits scfile=/scratch/kocevski/695483/ft2_4FGL_J2311.7+2604_daily_bin1274.fits outfile=/scratch/kocevski/695483/cmap_HighResolution_569548801_569808001_4FGL_J2311.7+2604_daily_bin1274.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/695483/ft1_filtered_4FGL_J2311.7+2604_daily_bin1274.fits evtable="EVENTS" scfile=/scratch/kocevski/695483/ft2_4FGL_J2311.7+2604_daily_bin1274.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/695483/Model_4FGL_J2311.7+2604_daily_bin1274.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/695483/ft1_filtered_4FGL_J2311.7+2604_daily_bin1274.fits.....................!
real 89.51
user 88.15
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    38.402       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .88153       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.2866       1.0000         .10000E-03   10000.    
     5 'norm      '    2.6544       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.4255       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .34415       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.6490       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.5809       1.0000         .10000E-03   10000.    
    12 'norm      '    .71841       1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.8175       1.0000         .10000E-03   10000.    
    14 'Prefactor '    20.501       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .13331E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .15869E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.666       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.0550       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .95798       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0490       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=   8269.843     FROM MIGRAD    STATUS=CONVERGED    473 CALLS     2415 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     38.377        98.955       -.39757E-04    .11016E-03
   2  Prefactor     .10000E-03    8.5325        .19617E-06** at limit **
   3  norm          .88275        1.1272        .10553E-05    .21461E-02
   4  Prefactor     8.2758        22.151       -.15650E-04    .11926E-03
   5  norm          2.6543        1.5450       -.21850E-07    .67568E-04
   6  Prefactor     .10000E-03    15.767       -.90784E-07** at limit **
   7  Prefactor     9.4254        8.5004       -.22742E-06   -.44360E-04
   8  Prefactor     .34416        .15952       -.22265E-07   -.29176E-03
   9  Prefactor     8.6488        7.7576       -.21906E-06    .32313E-05
  10  Prefactor     .10000E-03    14.472       -.16447E-05** at limit **
  11  Prefactor     1.5801        6.3930       -.25327E-05   -.65255E-03
  12  norm          .71819        1.2841       -.59366E-06   -.17546E-02
  13  Prefactor     9.8228        20.643        .39151E-05   -.10721E-03
  14  Prefactor     20.500        17.901       -.13728E-05    .53227E-04
  15  Prefactor     .10002E-03    4.5752       -.34264E-06** at limit **
  16  norm          .10000E-03    3.2077       -.10321E-06** at limit **
  17  Prefactor     12.662        15.114       -.49746E-06    .40388E-04
  18  Prefactor     .10000E-03    32.140       -.12663E-05** at limit **
  19  Prefactor     7.0544        19.641       -.20362E-05   -.62864E-05
  20  Prefactor     .10000E-03    13.160        .14911E-05** at limit **
  21  Normalizat    .95767        .20647        .13698E-05    .76800E-04
  22  Prefactor     1.0491        .10856        .11677E-05    .44036E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 38.3768
  Prefactor  = 0.0001
  norm       = 0.882749
  Prefactor  = 8.27583
  norm       = 2.65434
  Prefactor  = 0.0001
  Prefactor  = 9.42538
  Prefactor  = 0.344163
  Prefactor  = 8.64881
  Prefactor  = 0.0001
  Prefactor  = 1.58009
  norm       = 0.718195
  Prefactor  = 9.82283
  Prefactor  = 20.4999
  Prefactor  = 0.000100018
  norm       = 0.0001
  Prefactor  = 12.6617
  Prefactor  = 0.0001
  Prefactor  = 7.0544
  Prefactor  = 0.0001
  Normalizat = 0.957669
  Prefactor  = 1.04911
 **********
 **   18 **HESSE 
 **********

 FCN=   8269.843     FROM HESSE     STATUS=OK           352 CALLS     2767 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     38.377        98.050        .64678E-04   -1.4468    
   2  Prefactor     .10000E-03    8.6121        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .88275        1.0159        .97453E-03   -1.5520    
   4  Prefactor     8.2758        21.893        .13927E-03   -1.5133    
   5  norm          2.6543        1.5449        .83379E-04   -1.5382    
   6  Prefactor     .10000E-03    15.771        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.4254        8.4959        .13054E-03   -1.5094    
   8  Prefactor     .34416        .15690        .23479E-04   -1.5591    
   9  Prefactor     8.6488        7.7579        .13630E-03   -1.5120    
  10  Prefactor     .10000E-03    14.537        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.5801        6.6078        .33778E-03   -1.5457    
  12  norm          .71819        1.2752        .12971E-03   -1.5538    
  13  Prefactor     9.8228        20.580        .12789E-03   -1.5081    
  14  Prefactor     20.500        17.888        .88460E-04   -1.4802    
  15  Prefactor     .10002E-03    31.594        .36582E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    9.0902        .29575E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     12.662        14.267        .11255E-03   -1.4996    
  18  Prefactor     .10000E-03    32.579        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.0544        19.651        .15103E-03   -1.5177    
  20  Prefactor     .10000E-03    13.172        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .95767        .23442        .33991E-03   -.94462    
  22  Prefactor     1.0491        .12654        .17863E-03   -.91110    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.23183e-09
Minuit parameter uncertainties:
  1  98.4662
  2  9.47221e-07
  3  1.01595
  4  21.9145
  5  1.54496
  6  2.50559e-07
  7  8.497
  8  0.156896
  9  7.75883
  10  4.6311e-05
  11  6.46349
  12  1.27522
  13  20.5949
  14  17.893
  15  0.00151613
  16  7.44482e-05
  17  14.2713
  18  4.614e-05
  19  19.6688
  20  6.02181e-05
  21  0.23467
  22  0.126573
Done.

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

Extracting fit parameters...

4FGL J2311.7+2604
   Spectrum: PowerLaw
368    Prefactor:  9.823e+00  2.059e+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.049e+00  1.266e-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.577e-01  2.347e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.27
Ra Dec: 347.931 26.083
Photon Flux Upper Limit: 1.08e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.37e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/695483/likelihoodResults_569548801_569808001_4FGL_J2311.7+2604_daily_bin1274.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) = 8268.92674204
delta logL = 0.916757038287

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8268.700782
delta logL = 1.14271707759

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .71870E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    6.7494       1.0000          .0000       10.000    
     3 'Normalizat'    .86373       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0863       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=   8268.701     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      347 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .71010E-02    .73571E-01    .93284E-03    .10525E-01
   2  Index         6.7553        2.2381        .13921        .17650E-03
   3  Normalizat    .86405        .48472E-01    .80384E-01    .25995E-04
   4  Prefactor     1.0861        .26617E-01    .38131E-01   -.98976E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00710102
  Index      = 6.75532
  Normalizat = 0.864053
  Prefactor  = 1.08614
 **********
 **   18 **HESSE 
 **********

 FCN=   8268.701     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      380 TOTAL
                     EDM=   .58E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .71010E-02    .19419        .54999E-05   -1.5691    
   2  Index         6.7553        7.4010        .50526E-02    .35871    
   3  Normalizat    .86405        .19440        .35585E-03   -.97735    
   4  Prefactor     1.0861        .10523        .17588E-03   -.89911    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.82396e-07
Minuit parameter uncertainties:
  1  0.0737437
  2  4.74701
  3  0.194556
  4  0.105252
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/695483': 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) = 8268.70077915
delta logL = 1.14271992791

Extracting fit parameters...

4FGL J2311.7+2604
   Spectrum: PowerLaw
368    Prefactor:  7.101e-03  7.374e-02  1.000e-04  1.000e+04 ( 1.000e-13)
369        Index:  6.755e+00  4.747e+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.086e+00  1.053e-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:  8.641e-01  1.946e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.74
Ra Dec: 347.931 26.083
Photon Index (Free Index): 6.76 +/- 4.75
Photon Flux (Free Index): 7.76e-08 +/- 5.68e-08
Energy Flux (Free Index): 9.35e-06 +/- 7.46e-06

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/695483/cmap_HighResolution_569548801_569808001_4FGL_J2311.7+2604_daily_bin1274.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.37e-03', comment='SUCCESS', energy_flux2='9.35e-06', dlogl='1.14e+00', photon_flux2='7.76e-08', job_status='DONE', time_completed='2021-09-29 08:41:49.035224', photon_index_error2='4.75', photon_index2='6.76', ts='0.27', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='1.08e-07', energy_flux_error2='7.46e-06', EG='0.96', time_epoch_completed='1632930109.04', return_code='0', job_id='695483', GAL2='1.09', EG2='0.86', return_code2='102', photon_flux_error2='5.68e-08', ts2='2.74', photon_index='2.43' WHERE bin_id='1274' AND source_name='4FGL J2311.7+2604' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 08:41:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0227>
Subject: Job 695483: <4FGL_J2311.7+2604_daily_bin1274> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2311.7+2604_daily_bin1274 347.931 26.0831 569548801 569808001 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 :                                   753.23 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             307.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   951 sec.
    Turnaround time :                            953 sec.

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

