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


Performing analysis on: 4FGL_J2311.7+2604_daily_bin816
RA = 347.931, Dec = 26.0831
tmin = 450835201, tmax = 451094401
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='693423', job_status='RUN', time_executed='2021-09-29 08:24:28.395309', time_epoch_executed='1632929068.4' WHERE source_name='4FGL J2311.7+2604' and cadence='daily' and bin_id='816'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/693423

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/693423/ft1_4FGL_J2311.7+2604_daily_bin816.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/693423/ft2_4FGL_J2311.7+2604_daily_bin816.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/693423/ft1_4FGL_J2311.7+2604_daily_bin816.fits outfile=/scratch/kocevski/693423/ft1_filteredMKT_4FGL_J2311.7+2604_daily_bin816.fits ra=347.931 dec=26.0831 rad=12.0 tmin=450835201.0 tmax=451094401.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.44
user 3.21
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/693423/ft1_filtered_4FGL_J2311.7+2604_daily_bin816.fits" evtable="EVENTS" scfile=/scratch/kocevski/693423/ft2_4FGL_J2311.7+2604_daily_bin816.fits sctable="SC_DATA" outfile=/scratch/kocevski/693423/ltcube_450835201_451094401_4FGL_J2311.7+2604_daily_bin816.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/693423/ft2_4FGL_J2311.7+2604_daily_bin816.fits
.....................!
real 12.26
user 11.81
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/693423/ft1_filtered_4FGL_J2311.7+2604_daily_bin816.fits evtable="EVENTS" scfile=/scratch/kocevski/693423/ft2_4FGL_J2311.7+2604_daily_bin816.fits sctable="SC_DATA" expcube=/scratch/kocevski/693423/ltcube_450835201_451094401_4FGL_J2311.7+2604_daily_bin816.fits outfile=/scratch/kocevski/693423/expmap_450835201_451094401_4FGL_J2311.7+2604_daily_bin816.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/693423/ltcube_450835201_451094401_4FGL_J2311.7+2604_daily_bin816.fits
.....................!
real 192.07
user 186.55
sys 5.10

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/693423/ft1_filtered_4FGL_J2311.7+2604_daily_bin816.fits scfile=/scratch/kocevski/693423/ft2_4FGL_J2311.7+2604_daily_bin816.fits outfile=/scratch/kocevski/693423/cmap_450835201_451094401_4FGL_J2311.7+2604_daily_bin816.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=347.931 yref=26.0831 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/693423/ft1_filtered_4FGL_J2311.7+2604_daily_bin816.fits scfile=/scratch/kocevski/693423/ft2_4FGL_J2311.7+2604_daily_bin816.fits outfile=/scratch/kocevski/693423/cmap_HighResolution_450835201_451094401_4FGL_J2311.7+2604_daily_bin816.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/693423/ft1_filtered_4FGL_J2311.7+2604_daily_bin816.fits evtable="EVENTS" scfile=/scratch/kocevski/693423/ft2_4FGL_J2311.7+2604_daily_bin816.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/693423/Model_4FGL_J2311.7+2604_daily_bin816.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/693423/ft1_filtered_4FGL_J2311.7+2604_daily_bin816.fits.....................!
real 91.17
user 89.63
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.7929       1.0000         .10000E-03   10000.    
     3 'norm      '    1.4792       1.0000         .10000E-03   10000.    
     4 'Prefactor '    20.478       1.0000         .10000E-03   10000.    
     5 'norm      '    .53109       1.0000         .10000E-03   10000.    
     6 'Prefactor '    35.036       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.5114       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.6642       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .91558E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    24.214       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.1666       1.0000         .10000E-03   10000.    
    12 'norm      '    4.1249       1.0000         .10000E-03   10000.    
    13 'Prefactor '    23.834       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .17226E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0197       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0054       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=   8482.893     FROM MIGRAD    STATUS=CONVERGED    508 CALLS     2408 TOTAL
                     EDM=   .51E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    26.310        .25779E-07** at limit **
   2  Prefactor     8.7900        12.993       -.28484E-05   -.51718E-05
   3  norm          1.4790        .94957       -.93261E-07   -.80376E-04
   4  Prefactor     20.475        18.588        .23827E-05    .21987E-05
   5  norm          .53116        1.5279       -.18125E-06   -.15696E-03
   6  Prefactor     35.025        43.205        .10495E-05   -.14520E-05
   7  Prefactor     7.5149        10.702        .15946E-05    .60430E-05
   8  Prefactor     1.6639        .25887       -.12565E-07    .18252E-03
   9  Prefactor     .10019E-03    8.6376        .26916E-06** at limit **
  10  Prefactor     24.208        22.821        .60377E-05    .10994E-05
  11  Prefactor     1.1630        1.2837        .98561E-07   -.56283E-03
  12  norm          4.1240        1.6600       -.97784E-07   -.28640E-04
  13  Prefactor     23.835        18.741       -.63682E-05   -.10663E-04
  14  Prefactor     .10000E-03    10.733        .11150E-06** at limit **
  15  Prefactor     .10000E-03    8.6134       -.38635E-06** at limit **
  16  norm          .10000E-03    1.4213        .28519E-08** at limit **
  17  Prefactor     .10000E-03    11.895       -.20396E-07** at limit **
  18  Prefactor     .10000E-03    11.160        .87486E-07** at limit **
  19  Prefactor     .10000E-03    4.3185        .12443E-07** at limit **
  20  Prefactor     .10000E-03    8.8045        .36514E-06** at limit **
  21  Normalizat    1.0198        .21010        .13841E-05   -.67303E-04
  22  Prefactor     1.0055        .11076       -.46694E-06    .53378E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 8.78995
  norm       = 1.47896
  Prefactor  = 20.4746
  norm       = 0.53116
  Prefactor  = 35.025
  Prefactor  = 7.51488
  Prefactor  = 1.66386
  Prefactor  = 0.000100192
  Prefactor  = 24.2084
  Prefactor  = 1.16295
  norm       = 4.12398
  Prefactor  = 23.8349
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.01984
  Prefactor  = 1.00551
 **********
 **   18 **HESSE 
 **********

 FCN=   8482.893     FROM HESSE     STATUS=OK           356 CALLS     2764 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    26.314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.7900        12.987        .13517E-03   -1.5115    
   3  norm          1.4790        .94800        .68266E-04   -1.5465    
   4  Prefactor     20.475        18.561        .88510E-04   -1.4803    
   5  norm          .53116        1.4845        .18254E-03   -1.5562    
   6  Prefactor     35.025        43.337        .67704E-04   -1.4524    
   7  Prefactor     7.5149        10.603        .14633E-03   -1.5160    
   8  Prefactor     1.6639        .26108        .17486E-04   -1.5450    
   9  Prefactor     .10019E-03    11.897        .76541E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     24.208        22.824        .81404E-04   -1.4724    
  11  Prefactor     1.1630        12.270        .21278E-02   -1.5492    
  12  norm          4.1240        1.6584        .71723E-04   -1.5302    
  13  Prefactor     23.835        18.755        .82049E-04   -1.4731    
  14  Prefactor     .10000E-03    10.757        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.8343        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.4260        .10722E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    11.989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    72.518        .58968E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.3192        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.8077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0198        .24275        .35327E-03   -.92369    
  22  Prefactor     1.0055        .13033        .19181E-03   -.92546    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.50614e-09
Minuit parameter uncertainties:
  1  1.7724e-07
  2  12.9909
  3  0.948005
  4  18.5664
  5  1.48458
  6  43.3757
  7  10.6058
  8  0.261081
  9  0.00302586
  10  22.8324
  11  7.55663
  12  1.65838
  13  18.7598
  14  2.17789e-05
  15  2.80452e-06
  16  3.97944e-07
  17  7.79217e-06
  18  0.000777244
  19  3.29792e-07
  20  9.22304e-07
  21  0.243012
  22  0.130369
Done.

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

Extracting fit parameters...

4FGL J2311.7+2604
   Spectrum: PowerLaw
368    Prefactor:  2.383e+01  1.876e+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.006e+00  1.304e-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.020e+00  2.430e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.32
Ra Dec: 347.931 26.083
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 4.62e-08 +/- 3.64e-08
Energy Flux (Fixed Index): 1.46e-05 +/- 1.15e-05

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) = 8480.1525636
delta logL = 2.74032832975

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8479.83958421
delta logL = 3.05330771492

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.1646       1.0000         .10000E-03   10000.    
     2 'Index     '    .81075       1.0000          .0000       10.000    
     3 'Normalizat'    1.0394       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0075       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=   8479.840     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      222 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.1646        6.5187        .35078E-02   -.13371E-02
   2  Index         .81070        .27373        .18902       -.82653E-04
   3  Normalizat    1.0394        .20183        .79045E-01    .25246E-04
   4  Prefactor     1.0075        .10960        .43712E-01    .67925E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.16458
  Index      = 0.810704
  Normalizat = 1.03943
  Prefactor  = 1.00754
 **********
 **   18 **HESSE 
 **********

 FCN=   8479.840     FROM HESSE     STATUS=OK            31 CALLS      253 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.1646        12.687        .14031E-03   -1.5136    
   2  Index         .81070        .53253        .83209E-03   -.99335    
   3  Normalizat    1.0394        .23658        .34988E-03   -.91721    
   4  Prefactor     1.0075        .12872        .19161E-03   -.92479    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.96998e-09
Minuit parameter uncertainties:
  1  12.6911
  2  0.535969
  3  0.236824
  4  0.128764
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/693423': 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) = 8479.83958419
delta logL = 3.05330773428

Extracting fit parameters...

4FGL J2311.7+2604
   Spectrum: PowerLaw
368    Prefactor:  8.165e+00  1.269e+01  1.000e-04  1.000e+04 ( 1.000e-13)
369        Index:  8.107e-01  5.360e-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.008e+00  1.288e-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.039e+00  2.368e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.40
Ra Dec: 347.931 26.083
Photon Index (Free Index): 0.81 +/- 0.54
Photon Flux (Free Index): 7.60e-09 +/- 6.25e-09
Energy Flux (Free Index): 1.66e-04 +/- 1.62e-04

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/693423/cmap_HighResolution_450835201_451094401_4FGL_J2311.7+2604_daily_bin816.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.62e-08', energy_flux2='1.66e-04', photon_flux_error='3.64e-08', dlogl='3.05e+00', energy_flux='1.46e-05', photon_flux2='7.60e-09', job_status='DONE', time_completed='2021-09-29 08:35:52.055255', photon_index_error2='0.54', photon_index2='0.81', ts='7.32', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='1.62e-04', EG='1.02', time_epoch_completed='1632929752.06', return_code='0', job_id='693423', GAL2='1.01', EG2='1.04', return_code2='0', energy_flux_error='1.15e-05', photon_flux_error2='6.25e-09', ts2='13.40', photon_index='2.43' WHERE bin_id='816' AND source_name='4FGL J2311.7+2604' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 08:35:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0242>
Subject: Job 693423: <4FGL_J2311.7+2604_daily_bin816> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2311.7+2604_daily_bin816 347.931 26.0831 450835201 451094401 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 :                                   683.04 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             237.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   932 sec.
    Turnaround time :                            934 sec.

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

