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


Performing analysis on: 4FGL_J2311.7+2604_daily_bin565
RA = 347.931, Dec = 26.0831
tmin = 385776001, tmax = 386035201
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='691611', job_status='RUN', time_executed='2021-09-29 08:15:47.023273', time_epoch_executed='1632928547.02' WHERE source_name='4FGL J2311.7+2604' and cadence='daily' and bin_id='565'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/691611

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/691611/ft1_4FGL_J2311.7+2604_daily_bin565.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/691611/ft2_4FGL_J2311.7+2604_daily_bin565.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/691611/ft1_4FGL_J2311.7+2604_daily_bin565.fits outfile=/scratch/kocevski/691611/ft1_filteredMKT_4FGL_J2311.7+2604_daily_bin565.fits ra=347.931 dec=26.0831 rad=12.0 tmin=385776001.0 tmax=386035201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 6.22
user 3.64
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/691611/ft2_4FGL_J2311.7+2604_daily_bin565.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/691611/ft1_filteredMKT_4FGL_J2311.7+2604_daily_bin565.fits evtable="EVENTS" outfile="/scratch/kocevski/691611/ft1_filtered_4FGL_J2311.7+2604_daily_bin565.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/691611/ft1_filtered_4FGL_J2311.7+2604_daily_bin565.fits" evtable="EVENTS" scfile=/scratch/kocevski/691611/ft2_4FGL_J2311.7+2604_daily_bin565.fits sctable="SC_DATA" outfile=/scratch/kocevski/691611/ltcube_385776001_386035201_4FGL_J2311.7+2604_daily_bin565.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/691611/ft2_4FGL_J2311.7+2604_daily_bin565.fits
.....................!
real 12.03
user 11.72
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/691611/ft1_filtered_4FGL_J2311.7+2604_daily_bin565.fits evtable="EVENTS" scfile=/scratch/kocevski/691611/ft2_4FGL_J2311.7+2604_daily_bin565.fits sctable="SC_DATA" expcube=/scratch/kocevski/691611/ltcube_385776001_386035201_4FGL_J2311.7+2604_daily_bin565.fits outfile=/scratch/kocevski/691611/expmap_385776001_386035201_4FGL_J2311.7+2604_daily_bin565.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/691611/ltcube_385776001_386035201_4FGL_J2311.7+2604_daily_bin565.fits
.....................!
real 189.35
user 184.89
sys 4.09

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/691611/ft1_filtered_4FGL_J2311.7+2604_daily_bin565.fits scfile=/scratch/kocevski/691611/ft2_4FGL_J2311.7+2604_daily_bin565.fits outfile=/scratch/kocevski/691611/cmap_385776001_386035201_4FGL_J2311.7+2604_daily_bin565.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.54
user 0.37
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/691611/ft1_filtered_4FGL_J2311.7+2604_daily_bin565.fits evtable="EVENTS" scfile=/scratch/kocevski/691611/ft2_4FGL_J2311.7+2604_daily_bin565.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/691611/Model_4FGL_J2311.7+2604_daily_bin565.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/691611/ft1_filtered_4FGL_J2311.7+2604_daily_bin565.fits.....................!
real 93.98
user 92.62
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .21764E-01   1.0000         .10000E-03   10000.    
     3 'norm      '    6.6528       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.1648       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.4326       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.5212       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.2999       1.0000         .10000E-03   10000.    
    12 'norm      '    1.6419       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.988       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10195E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    25.744       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .19175E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .75815       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1456       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=   8460.748     FROM MIGRAD    STATUS=CONVERGED    489 CALLS     2061 TOTAL
                     EDM=   .85E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    46.374        .12227E-04** at limit **
   2  Prefactor     .10004E-03    8.1512       -.37126E-06** at limit **
   3  norm          6.6521        1.6333        .61529E-08   -.65641E-04
   4  Prefactor     .10000E-03    13.289       -.22845E-06** at limit **
   5  norm          2.1649        1.7359        .98525E-07    .85065E-04
   6  Prefactor     .10000E-03    31.865       -.51046E-05** at limit **
   7  Prefactor     1.4328        5.6166       -.19064E-05   -.35202E-04
   8  Prefactor     1.5213        .23106        .11465E-08    .37753E-03
   9  Prefactor     .10000E-03    2.3038        .69955E-07** at limit **
  10  Prefactor     .10000E-03    37.931       -.60163E-05** at limit **
  11  Prefactor     1.2979        .88669        .14391E-06   -.47996E-03
  12  norm          1.6408        1.6189       -.23926E-06   -.15622E-03
  13  Prefactor     10.964        22.348       -.38694E-05   -.90613E-05
  14  Prefactor     .10000E-03    22.295        .11301E-05** at limit **
  15  Prefactor     .10000E-03    6.2788        .50469E-07** at limit **
  16  norm          25.744        7.6827        .19822E-05   -.13126E-03
  17  Prefactor     .10000E-03    28.190        .32235E-05** at limit **
  18  Prefactor     .10000E-03    5.8032        .19586E-07** at limit **
  19  Prefactor     .10000E-03    5.2274       -.42985E-07** at limit **
  20  Prefactor     .10000E-03    30.187       -.19470E-05** at limit **
  21  Normalizat    .75839        .21335        .22661E-06    .11201E-04
  22  Prefactor     1.1456        .11798       -.17122E-06    .69111E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100043
  norm       = 6.65215
  Prefactor  = 0.0001
  norm       = 2.16487
  Prefactor  = 0.0001
  Prefactor  = 1.43278
  Prefactor  = 1.52128
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.29792
  norm       = 1.64082
  Prefactor  = 10.9642
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 25.7444
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.758391
  Prefactor  = 1.14562
 **********
 **   18 **HESSE 
 **********

 FCN=   8460.748     FROM HESSE     STATUS=OK           342 CALLS     2403 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    46.504        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10004E-03    80.228        .50655E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.6521        1.6338        .27892E-03   -1.5192    
   4  Prefactor     .10000E-03    13.330        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.1649        1.7233        .10402E-03   -1.5414    
   6  Prefactor     .10000E-03    31.911        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.4328        5.5738        .36083E-03   -1.5469    
   8  Prefactor     1.5213        .23274        .16630E-04   -1.5461    
   9  Prefactor     .10000E-03    2.3055        .13635E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    38.247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.2979        11.741        .19380E-02   -1.5480    
  12  norm          1.6408        1.6024        .10933E-03   -1.5452    
  13  Prefactor     10.964        22.379        .12087E-03   -1.5046    
  14  Prefactor     .10000E-03    22.396        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.5705        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          25.744        7.6455        .78952E-04   -1.4693    
  17  Prefactor     .10000E-03    28.146        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.8113        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.2295        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    30.424        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .75839        .23699        .39623E-03   -1.0163    
  22  Prefactor     1.1456        .13368        .18478E-03   -.88022    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.59541e-09
Minuit parameter uncertainties:
  1  4.90938e-07
  2  0.00372649
  3  1.63386
  4  1.00451e-06
  5  1.72338
  6  4.7161e-06
  7  5.57581
  8  0.232742
  9  1.59524e-06
  10  4.49684e-05
  11  7.80926
  12  1.60241
  13  22.3963
  14  8.50385e-06
  15  5.01215e-06
  16  7.64577
  17  0.000547967
  18  5.71117e-07
  19  1.44684e-06
  20  7.46138e-06
  21  0.237312
  22  0.133717
Done.

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

Extracting fit parameters...

4FGL J2311.7+2604
   Spectrum: PowerLaw
368    Prefactor:  1.096e+01  2.240e+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.146e+00  1.337e-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.584e-01  2.373e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/691611/likelihoodResults_385776001_386035201_4FGL_J2311.7+2604_daily_bin565.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) = 8460.70840316
delta logL = 0.0399064438352

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8460.68490923
delta logL = 0.0634003772866

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.5723       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0283       1.0000          .0000       10.000    
     3 'Normalizat'    .74216       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1519       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8460.685     FROM MIGRAD    STATUS=FAILED       102 CALLS      265 TOTAL
                     EDM=   .71E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.5503        716.81        .85096E-03    .15200E-03
   2  Index         3.0315        5.7661        .87913E-02    .34922E-03
   3  Normalizat    .74203        .21969        .40027E-03   -.46580E-05
   4  Prefactor     1.1519        .13214        .18434E-03   -.70306E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8460.685     FROM SIMPLEX   STATUS=UNCHANGED     90 CALLS      355 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.5503        716.81        .57282E-03    .15200E-03
   2  Index         3.0315        5.7661        .31949E-02    .34922E-03
   3  Normalizat    .74203        .21969        .25682E-03   -.46580E-05
   4  Prefactor     1.1519        .13214        .13966E-03   -.70306E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8460.685     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      388 TOTAL
                     EDM=   .21E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.5503        43.478        .17019E-03   -.85503E-05
   2  Index         3.0315        2.7694        .17583E-02   -.21337E-05
   3  Normalizat    .74203        .24179        .16011E-04   -.48284E-05
   4  Prefactor     1.1519        .13530        .73737E-05   -.74006E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55027
  Index      = 3.03149
  Normalizat = 0.74203
  Prefactor  = 1.15195
 **********
 **   18 **HESSE 
 **********

 FCN=   8460.685     FROM HESSE     STATUS=OK            23 CALLS      411 TOTAL
                     EDM=   .35E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.5503        27.491        .68076E-05   -1.5237    
   2  Index         3.0315        2.2590        .70330E-04   -.40465    
   3  Normalizat    .74203        .24054        .32022E-05   -1.0226    
   4  Prefactor     1.1519        .13423        .14747E-05   -.87823    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.54793e-13
Minuit parameter uncertainties:
  1  24.7227
  2  2.36159
  3  0.240882
  4  0.134269
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/691611': 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) = 8460.68490785
delta logL = 0.0634017530538

Extracting fit parameters...

4FGL J2311.7+2604
   Spectrum: PowerLaw
368    Prefactor:  5.550e+00  2.472e+01  1.000e-04  1.000e+04 ( 1.000e-13)
369        Index:  3.031e+00  2.362e+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.152e+00  1.343e-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.420e-01  2.409e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.28
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/691611/cmap_HighResolution_385776001_386035201_4FGL_J2311.7+2604_daily_bin565.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.94e-03', job_status='DONE', photon_flux_upper_limit='1.16e-07', time_completed='2021-09-29 08:28:13.527515', job_id='691611', GAL2='1.15', fit_tolerance='1e-08', EG2='0.74', EG='0.76', time_epoch_completed='1632929293.53', return_code2='0', ts='0.28', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='6.34e-02', ts2='0.41', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='565' AND source_name='4FGL J2311.7+2604' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 08:28:13 PDT 2021


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

Job <4FGL_J2311.7+2604_daily_bin565> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 08:15:33 2021
Job was executed on host(s) <bullet0228>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 08:15:35 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 08:15:35 2021
Terminated at Wed Sep 29 08:28:14 2021
Results reported at Wed Sep 29 08:28:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2311.7+2604_daily_bin565 347.931 26.0831 385776001 386035201 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 :                                   740.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             366.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   758 sec.
    Turnaround time :                            761 sec.

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

