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


Performing analysis on: 4FGL_J2311.7+2604_daily_bin723
RA = 347.931, Dec = 26.0831
tmin = 426729601, tmax = 426988801
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='691874', job_status='RUN', time_executed='2021-09-29 08:19:51.828763', time_epoch_executed='1632928791.83' WHERE source_name='4FGL J2311.7+2604' and cadence='daily' and bin_id='723'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/691874

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/691874/ft1_4FGL_J2311.7+2604_daily_bin723.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/691874/ft2_4FGL_J2311.7+2604_daily_bin723.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/691874/ft1_4FGL_J2311.7+2604_daily_bin723.fits outfile=/scratch/kocevski/691874/ft1_filteredMKT_4FGL_J2311.7+2604_daily_bin723.fits ra=347.931 dec=26.0831 rad=12.0 tmin=426729601.0 tmax=426988801.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.59
user 5.26
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/691874/ft2_4FGL_J2311.7+2604_daily_bin723.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/691874/ft1_filteredMKT_4FGL_J2311.7+2604_daily_bin723.fits evtable="EVENTS" outfile="/scratch/kocevski/691874/ft1_filtered_4FGL_J2311.7+2604_daily_bin723.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.51
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/691874/ft1_filtered_4FGL_J2311.7+2604_daily_bin723.fits" evtable="EVENTS" scfile=/scratch/kocevski/691874/ft2_4FGL_J2311.7+2604_daily_bin723.fits sctable="SC_DATA" outfile=/scratch/kocevski/691874/ltcube_426729601_426988801_4FGL_J2311.7+2604_daily_bin723.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/691874/ft2_4FGL_J2311.7+2604_daily_bin723.fits
.....................!
real 12.78
user 12.39
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/691874/ft1_filtered_4FGL_J2311.7+2604_daily_bin723.fits evtable="EVENTS" scfile=/scratch/kocevski/691874/ft2_4FGL_J2311.7+2604_daily_bin723.fits sctable="SC_DATA" expcube=/scratch/kocevski/691874/ltcube_426729601_426988801_4FGL_J2311.7+2604_daily_bin723.fits outfile=/scratch/kocevski/691874/expmap_426729601_426988801_4FGL_J2311.7+2604_daily_bin723.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/691874/ltcube_426729601_426988801_4FGL_J2311.7+2604_daily_bin723.fits
.....................!
real 190.72
user 184.97
sys 5.22

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/691874/ft1_filtered_4FGL_J2311.7+2604_daily_bin723.fits scfile=/scratch/kocevski/691874/ft2_4FGL_J2311.7+2604_daily_bin723.fits outfile=/scratch/kocevski/691874/cmap_426729601_426988801_4FGL_J2311.7+2604_daily_bin723.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/691874/ft1_filtered_4FGL_J2311.7+2604_daily_bin723.fits scfile=/scratch/kocevski/691874/ft2_4FGL_J2311.7+2604_daily_bin723.fits outfile=/scratch/kocevski/691874/cmap_HighResolution_426729601_426988801_4FGL_J2311.7+2604_daily_bin723.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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/691874/ft1_filtered_4FGL_J2311.7+2604_daily_bin723.fits evtable="EVENTS" scfile=/scratch/kocevski/691874/ft2_4FGL_J2311.7+2604_daily_bin723.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/691874/Model_4FGL_J2311.7+2604_daily_bin723.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/691874/ft1_filtered_4FGL_J2311.7+2604_daily_bin723.fits.....................!
real 60.83
user 59.38
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .42556E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10163E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    29.882       1.0000         .10000E-03   10000.    
     5 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    23.505       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.1324       1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.378       1.0000         .10000E-03   10000.    
    10 'Prefactor '    59.230       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .43279       1.0000         .10000E-03   10000.    
    12 'norm      '    5.4588       1.0000         .10000E-03   10000.    
    13 'Prefactor '    56.064       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11340E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    43.716       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    48.899       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .54338       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1432       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=   4587.432     FROM MIGRAD    STATUS=CONVERGED    475 CALLS     2326 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10013E-03    1063.5       -.25093E-03** at limit **
   2  Prefactor     .10000E-03    45.180       -.38461E-05** at limit **
   3  norm          .10000E-03    .97602        .25781E-06** at limit **
   4  Prefactor     29.874        26.930       -.59429E-06    .67141E-04
   5  norm          .10000E-03    1.0070        .35784E-07** at limit **
   6  Prefactor     .10000E-03    46.451       -.93345E-06** at limit **
   7  Prefactor     23.510        18.048        .12744E-06    .86533E-04
   8  Prefactor     7.1334        .67423       -.77157E-08    .16897E-02
   9  Prefactor     14.378        13.548        .93926E-06    .60753E-04
  10  Prefactor     59.233        55.518        .16920E-05    .20239E-04
  11  Prefactor     .30804        12.481       -.64180E-06   -.44479E-03
  12  norm          5.4583        2.9515        .46917E-06    .71879E-04
  13  Prefactor     56.068        48.580        .24158E-05    .36753E-04
  14  Prefactor     .10000E-03    29.960        .18633E-05** at limit **
  15  Prefactor     .10001E-03    5.8851       -.14757E-05** at limit **
  16  norm          .10000E-03    5.4735        .15079E-06** at limit **
  17  Prefactor     .10000E-03    21.486        .36474E-06** at limit **
  18  Prefactor     43.779        43.501        .50474E-04    .68661E-04
  19  Prefactor     .10000E-03    8.7440        .39891E-07** at limit **
  20  Prefactor     48.908        46.140        .68329E-05    .81267E-05
  21  Normalizat    .54304        .37798       -.25797E-04    .66256E-04
  22  Prefactor     1.1434        .19831        .28900E-05    .32033E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100133
  Prefactor  = 0.000100005
  norm       = 0.0001
  Prefactor  = 29.8742
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.5104
  Prefactor  = 7.13335
  Prefactor  = 14.3785
  Prefactor  = 59.2325
  Prefactor  = 0.308038
  norm       = 5.45831
  Prefactor  = 56.0684
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 43.7793
  Prefactor  = 0.0001
  Prefactor  = 48.9083
  Normalizat = 0.543045
  Prefactor  = 1.14344
 **********
 **   18 **HESSE 
 **********

 FCN=   4587.432     FROM HESSE     STATUS=OK           330 CALLS     2656 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10013E-03    1060.6        .21235E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    45.900        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    .99942        .13045E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     29.874        26.920        .73293E-04   -1.4614    
   5  norm          .10000E-03    1.0089        .66356E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    46.466        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     23.510        18.026        .82621E-04   -1.4738    
   8  Prefactor     7.1334        .67627        .16305E-04   -1.5174    
   9  Prefactor     14.378        13.544        .10563E-03   -1.4949    
  10  Prefactor     59.233        55.567        .52131E-04   -1.4167    
  11  Prefactor     .30804        190.87        .45776E-02   -1.5597    
  12  norm          5.4583        2.9461        .81428E-04   -1.5241    
  13  Prefactor     56.068        48.453        .53574E-04   -1.4209    
  14  Prefactor     .10000E-03    30.003        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10001E-03    5.9201        .16062E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    5.4967        .15472E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    21.560        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     43.779        43.563        .60635E-04   -1.4384    
  19  Prefactor     .10000E-03    8.7447        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     48.908        46.103        .57345E-04   -1.4308    
  21  Normalizat    .54304        .39235        .53511E-03   -1.1046    
  22  Prefactor     1.1434        .21057        .20742E-03   -.88090    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.58633e-08
Minuit parameter uncertainties:
  1  0.024176
  2  0.000958769
  3  2.63145e-05
  4  26.9314
  5  4.15313e-06
  6  2.7996e-05
  7  18.0303
  8  0.676271
  9  13.5474
  10  55.6159
  11  15.3827
  12  2.94614
  13  48.4875
  14  9.85968e-05
  15  0.000368128
  16  3.59361e-05
  17  0.000172682
  18  43.5947
  19  4.09538e-06
  20  46.137
  21  0.394374
  22  0.210722
Done.

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

Extracting fit parameters...

4FGL J2311.7+2604
   Spectrum: PowerLaw
368    Prefactor:  5.607e+01  4.849e+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.143e+00  2.107e-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:  5.430e-01  3.944e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.88
Ra Dec: 347.931 26.083
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 1.09e-07 +/- 9.40e-08
Energy Flux (Fixed Index): 3.43e-05 +/- 2.97e-05

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

Saving results to:
/scratch/kocevski/691874/likelihoodResults_426729601_426988801_4FGL_J2311.7+2604_daily_bin723.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) = 4587.33352148
delta logL = 0.0987951098805

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4587.32637906
delta logL = 0.105937534779

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    37.663       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7676       1.0000          .0000       10.000    
     3 'Normalizat'    .51449       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1540       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=   4587.326     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      284 TOTAL
                     EDM=   .93E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     37.612        61.999        .65307E-04   -.96510E-04
   2  Index         2.7686        .91820        .52035E-02   -.46704E-04
   3  Normalizat    .51455        .38691        .54892E-03    .11395E-03
   4  Prefactor     1.1545        .21120        .20654E-03   -.14960E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 37.612
  Index      = 2.76859
  Normalizat = 0.514552
  Prefactor  = 1.15451
 **********
 **   18 **HESSE 
 **********

 FCN=   4587.326     FROM HESSE     STATUS=OK            25 CALLS      309 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     37.612        53.943        .13061E-04   -1.4481    
   2  Index         2.7686        .79907        .20814E-03   -.46261    
   3  Normalizat    .51455        .38624        .21957E-04   -1.1175    
   4  Prefactor     1.1545        .21068        .41308E-04   -.87743    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.59806e-10
Minuit parameter uncertainties:
  1  54.0134
  2  0.803381
  3  0.388271
  4  0.210832
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/691874': 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) = 4587.32636335
delta logL = 0.105953245354

Extracting fit parameters...

4FGL J2311.7+2604
   Spectrum: PowerLaw
368    Prefactor:  3.761e+01  5.401e+01  1.000e-04  1.000e+04 ( 1.000e-13)
369        Index:  2.769e+00  8.034e-01  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.155e+00  2.108e-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:  5.146e-01  3.883e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.06
Ra Dec: 347.931 26.083
Photon Index (Free Index): 2.77 +/- 0.80
Photon Flux (Free Index): 1.29e-07 +/- 1.10e-07
Energy Flux (Free Index): 2.96e-05 +/- 2.62e-05

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/691874/cmap_HighResolution_426729601_426988801_4FGL_J2311.7+2604_daily_bin723.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.35e-02', comment='SUCCESS', photon_flux='1.09e-07', energy_flux2='2.96e-05', photon_flux_error='9.40e-08', dlogl='1.06e-01', energy_flux='3.43e-05', photon_flux2='1.29e-07', job_status='DONE', time_completed='2021-09-29 08:29:35.370414', photon_index_error2='0.80', photon_index2='2.77', ts='1.88', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', photon_flux_upper_limit='3.04e-07', energy_flux_error2='2.62e-05', EG='0.54', time_epoch_completed='1632929375.37', return_code='0', job_id='691874', GAL2='1.15', EG2='0.51', return_code2='0', energy_flux_error='2.97e-05', photon_flux_error2='1.10e-07', ts2='2.06', photon_index='2.43' WHERE bin_id='723' AND source_name='4FGL J2311.7+2604' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 08:29:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 691874: <4FGL_J2311.7+2604_daily_bin723> in cluster <slac> Done

Job <4FGL_J2311.7+2604_daily_bin723> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 08:16:01 2021
Job was executed on host(s) <bullet0231>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 08:16:03 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:16:03 2021
Terminated at Wed Sep 29 08:29:36 2021
Results reported at Wed Sep 29 08:29:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2311.7+2604_daily_bin723 347.931 26.0831 426729601 426988801 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.25 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             232.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   812 sec.
    Turnaround time :                            815 sec.

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

