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


Performing analysis on: 4FGL_J2311.7+2604_daily_bin1507
RA = 347.931, Dec = 26.0831
tmin = 629942401, tmax = 630201601
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='696360', job_status='RUN', time_executed='2021-09-29 08:34:26.573044', time_epoch_executed='1632929666.57' WHERE source_name='4FGL J2311.7+2604' and cadence='daily' and bin_id='1507'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/696360

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/696360/ft1_4FGL_J2311.7+2604_daily_bin1507.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/696360/ft2_4FGL_J2311.7+2604_daily_bin1507.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/696360/ft1_4FGL_J2311.7+2604_daily_bin1507.fits outfile=/scratch/kocevski/696360/ft1_filteredMKT_4FGL_J2311.7+2604_daily_bin1507.fits ra=347.931 dec=26.0831 rad=12.0 tmin=629942401.0 tmax=630201601.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 4.68
user 4.46
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/696360/ft1_filtered_4FGL_J2311.7+2604_daily_bin1507.fits" evtable="EVENTS" scfile=/scratch/kocevski/696360/ft2_4FGL_J2311.7+2604_daily_bin1507.fits sctable="SC_DATA" outfile=/scratch/kocevski/696360/ltcube_629942401_630201601_4FGL_J2311.7+2604_daily_bin1507.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/696360/ft2_4FGL_J2311.7+2604_daily_bin1507.fits
.....................!
real 11.81
user 11.49
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/696360/ft1_filtered_4FGL_J2311.7+2604_daily_bin1507.fits evtable="EVENTS" scfile=/scratch/kocevski/696360/ft2_4FGL_J2311.7+2604_daily_bin1507.fits sctable="SC_DATA" expcube=/scratch/kocevski/696360/ltcube_629942401_630201601_4FGL_J2311.7+2604_daily_bin1507.fits outfile=/scratch/kocevski/696360/expmap_629942401_630201601_4FGL_J2311.7+2604_daily_bin1507.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/696360/ltcube_629942401_630201601_4FGL_J2311.7+2604_daily_bin1507.fits
.....................!
real 191.28
user 186.34
sys 4.52

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/696360/ft1_filtered_4FGL_J2311.7+2604_daily_bin1507.fits scfile=/scratch/kocevski/696360/ft2_4FGL_J2311.7+2604_daily_bin1507.fits outfile=/scratch/kocevski/696360/cmap_629942401_630201601_4FGL_J2311.7+2604_daily_bin1507.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/696360/ft1_filtered_4FGL_J2311.7+2604_daily_bin1507.fits scfile=/scratch/kocevski/696360/ft2_4FGL_J2311.7+2604_daily_bin1507.fits outfile=/scratch/kocevski/696360/cmap_HighResolution_629942401_630201601_4FGL_J2311.7+2604_daily_bin1507.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/696360/ft1_filtered_4FGL_J2311.7+2604_daily_bin1507.fits evtable="EVENTS" scfile=/scratch/kocevski/696360/ft2_4FGL_J2311.7+2604_daily_bin1507.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/696360/Model_4FGL_J2311.7+2604_daily_bin1507.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/696360/ft1_filtered_4FGL_J2311.7+2604_daily_bin1507.fits.....................!
real 84.66
user 83.28
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    25.377       1.0000         .10000E-03   10000.    
     3 'norm      '    3.7171       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.1853       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.271       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .45520       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .79131       1.0000         .10000E-03   10000.    
    13 'Prefactor '    38.033       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.7050       1.0000         .10000E-03   10000.    
    16 'norm      '    .20702E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    27.926       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    18.373       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0756       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .94815       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=   7319.657     FROM MIGRAD    STATUS=CONVERGED    464 CALLS     2357 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    37.247       -.22320E-05** at limit **
   2  Prefactor     25.374        19.854       -.81295E-07   -.25255E-04
   3  norm          3.7174        1.5562        .52487E-08    .26318E-04
   4  Prefactor     .10000E-03    12.713       -.45979E-06** at limit **
   5  norm          3.1852        2.0521        .11051E-08   -.15837E-04
   6  Prefactor     .10000E-03    14.767       -.25935E-06** at limit **
   7  Prefactor     10.271        9.9857        .23165E-06   -.55844E-04
   8  Prefactor     .45532        .18582        .59970E-08   -.16309E-03
   9  Prefactor     .10000E-03    6.4069        .41204E-07** at limit **
  10  Prefactor     .10000E-03    7.9340       -.25781E-06** at limit **
  11  Prefactor     .10000E-03    5.0921       -.26580E-07** at limit **
  12  norm          .79127        1.1481        .55686E-06   -.75021E-03
  13  Prefactor     38.038        33.179        .31532E-06    .22250E-04
  14  Prefactor     .10000E-03    8.2437        .66338E-07** at limit **
  15  Prefactor     5.7101        9.4031        .27660E-06   -.45506E-04
  16  norm          .10001E-03    4.1180       -.88541E-06** at limit **
  17  Prefactor     27.918        24.066        .22825E-05   -.42106E-04
  18  Prefactor     .10000E-03    11.068        .11706E-06** at limit **
  19  Prefactor     .10000E-03    30.747        .24942E-05** at limit **
  20  Prefactor     18.386        49.058        .19529E-05    .25312E-04
  21  Normalizat    1.0750        .24669       -.83012E-06    .17798E-04
  22  Prefactor     .94840        .11674        .25106E-06   -.46771E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 25.3736
  norm       = 3.71736
  Prefactor  = 0.0001
  norm       = 3.18524
  Prefactor  = 0.0001
  Prefactor  = 10.2711
  Prefactor  = 0.455323
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.791269
  Prefactor  = 38.0375
  Prefactor  = 0.0001
  Prefactor  = 5.71009
  norm       = 0.000100006
  Prefactor  = 27.9184
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.3864
  Normalizat = 1.07505
  Prefactor  = 0.948404
 **********
 **   18 **HESSE 
 **********

 FCN=   7319.657     FROM HESSE     STATUS=OK           346 CALLS     2703 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    37.719        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     25.374        19.942        .79520E-04   -1.4700    
   3  norm          3.7174        1.5555        .65862E-04   -1.5322    
   4  Prefactor     .10000E-03    12.745        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.1852        2.0508        .94621E-04   -1.5351    
   6  Prefactor     .10000E-03    14.775        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10.271        9.9745        .62512E-03   -1.5067    
   8  Prefactor     .45532        .18376        .22516E-04   -1.5573    
   9  Prefactor     .10000E-03    6.4255        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.9426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.1306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .79127        1.1280        .24815E-03   -1.5530    
  13  Prefactor     38.038        33.280        .64990E-04   -1.4474    
  14  Prefactor     .10000E-03    8.2462        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.7101        9.4210        .16817E-03   -1.5230    
  16  norm          .10001E-03    10.589        .32114E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     27.918        23.939        .75811E-04   -1.4651    
  18  Prefactor     .10000E-03    11.087        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    31.158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     18.386        49.140        .93441E-04   -1.4850    
  21  Normalizat    1.0750        .29163        .35324E-03   -.90557    
  22  Prefactor     .94840        .13820        .19178E-03   -.94470    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.16814e-10
Minuit parameter uncertainties:
  1  0.000339043
  2  19.9475
  3  1.55554
  4  3.79442e-05
  5  2.05087
  6  2.42496e-05
  7  9.97612
  8  0.183765
  9  5.66606e-07
  10  1.83516e-05
  11  4.90216e-07
  12  1.12803
  13  33.2961
  14  9.15517e-07
  15  9.42341
  16  0.000504268
  17  23.9477
  18  1.18686e-05
  19  0.000237118
  20  49.2487
  21  0.292071
  22  0.138255
Done.

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

Extracting fit parameters...

4FGL J2311.7+2604
   Spectrum: PowerLaw
368    Prefactor:  3.804e+01  3.330e+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:  9.484e-01  1.383e-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.075e+00  2.921e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.67
Ra Dec: 347.931 26.083
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 7.38e-08 +/- 6.45e-08
Energy Flux (Fixed Index): 2.33e-05 +/- 2.04e-05

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

Saving results to:
/scratch/kocevski/696360/likelihoodResults_629942401_630201601_4FGL_J2311.7+2604_daily_bin1507.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) = 7318.94517739
delta logL = 0.712278575896

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7318.91636916
delta logL = 0.741086807803

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.933       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2950       1.0000          .0000       10.000    
     3 'Normalizat'    .99334       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97525       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=   7318.916     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      313 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.935        35.566        .10034E-03    .25165E-03
   2  Index         3.2951        1.2171        .46508E-02    .15797E-03
   3  Normalizat    .99284        .28113        .36578E-03    .79194E-04
   4  Prefactor     .97550        .14149        .18933E-03    .14922E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.9347
  Index      = 3.29511
  Normalizat = 0.992844
  Prefactor  = 0.975502
 **********
 **   18 **HESSE 
 **********

 FCN=   7318.916     FROM HESSE     STATUS=OK            25 CALLS      338 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.935        23.865        .40135E-05   -1.4909    
   2  Index         3.2951        .81972        .18603E-03   -.34796    
   3  Normalizat    .99284        .27890        .14631E-04   -.93271    
   4  Prefactor     .97550        .13985        .37866E-04   -.93551    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.29726e-10
Minuit parameter uncertainties:
  1  23.8789
  2  0.823931
  3  0.279305
  4  0.139905
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/696360': 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) = 7318.9163674
delta logL = 0.741088567323

Extracting fit parameters...

4FGL J2311.7+2604
   Spectrum: PowerLaw
368    Prefactor:  1.593e+01  2.388e+01  1.000e-04  1.000e+04 ( 1.000e-13)
369        Index:  3.295e+00  8.239e-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:  9.755e-01  1.399e-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.928e-01  2.793e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.29
Ra Dec: 347.931 26.083
Photon Index (Free Index): 3.30 +/- 0.82
Photon Flux (Free Index): 1.43e-07 +/- 9.58e-08
Energy Flux (Free Index): 2.53e-05 +/- 1.64e-05

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/696360/cmap_HighResolution_629942401_630201601_4FGL_J2311.7+2604_daily_bin1507.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.54e-02', comment='SUCCESS', photon_flux='7.38e-08', energy_flux2='2.53e-05', photon_flux_error='6.45e-08', dlogl='7.41e-01', energy_flux='2.33e-05', photon_flux2='1.43e-07', job_status='DONE', time_completed='2021-09-29 08:46:01.868551', photon_index_error2='0.82', photon_index2='3.30', ts='1.67', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='1.99e-07', energy_flux_error2='1.64e-05', EG='1.08', time_epoch_completed='1632930361.87', return_code='0', job_id='696360', GAL2='0.98', EG2='0.99', return_code2='0', energy_flux_error='2.04e-05', photon_flux_error2='9.58e-08', ts2='3.29', photon_index='2.43' WHERE bin_id='1507' AND source_name='4FGL J2311.7+2604' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 08:46:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0089>
Subject: Job 696360: <4FGL_J2311.7+2604_daily_bin1507> in cluster <slac> Done

Job <4FGL_J2311.7+2604_daily_bin1507> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep 29 08:30:28 2021
Job was executed on host(s) <bullet0089>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 08:30:30 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:30:30 2021
Terminated at Wed Sep 29 08:46:02 2021
Results reported at Wed Sep 29 08:46:02 2021

Your job looked like:

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

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

