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


Performing analysis on: 4FGL_J2311.7+2604_daily_bin574
RA = 347.931, Dec = 26.0831
tmin = 388108801, tmax = 388368001
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='691625', job_status='RUN', time_executed='2021-09-29 08:15:52.501958', time_epoch_executed='1632928552.5' WHERE source_name='4FGL J2311.7+2604' and cadence='daily' and bin_id='574'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/691625

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/691625/ft1_4FGL_J2311.7+2604_daily_bin574.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/691625/ft2_4FGL_J2311.7+2604_daily_bin574.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/691625/ft1_4FGL_J2311.7+2604_daily_bin574.fits outfile=/scratch/kocevski/691625/ft1_filteredMKT_4FGL_J2311.7+2604_daily_bin574.fits ra=347.931 dec=26.0831 rad=12.0 tmin=388108801.0 tmax=388368001.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.95
user 3.11
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/691625/ft1_filtered_4FGL_J2311.7+2604_daily_bin574.fits" evtable="EVENTS" scfile=/scratch/kocevski/691625/ft2_4FGL_J2311.7+2604_daily_bin574.fits sctable="SC_DATA" outfile=/scratch/kocevski/691625/ltcube_388108801_388368001_4FGL_J2311.7+2604_daily_bin574.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/691625/ft2_4FGL_J2311.7+2604_daily_bin574.fits
.....................!
real 11.63
user 11.27
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/691625/ft1_filtered_4FGL_J2311.7+2604_daily_bin574.fits evtable="EVENTS" scfile=/scratch/kocevski/691625/ft2_4FGL_J2311.7+2604_daily_bin574.fits sctable="SC_DATA" expcube=/scratch/kocevski/691625/ltcube_388108801_388368001_4FGL_J2311.7+2604_daily_bin574.fits outfile=/scratch/kocevski/691625/expmap_388108801_388368001_4FGL_J2311.7+2604_daily_bin574.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/691625/ltcube_388108801_388368001_4FGL_J2311.7+2604_daily_bin574.fits
.....................!
real 191.93
user 185.97
sys 5.53

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/691625/ft1_filtered_4FGL_J2311.7+2604_daily_bin574.fits scfile=/scratch/kocevski/691625/ft2_4FGL_J2311.7+2604_daily_bin574.fits outfile=/scratch/kocevski/691625/cmap_388108801_388368001_4FGL_J2311.7+2604_daily_bin574.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/691625/ft1_filtered_4FGL_J2311.7+2604_daily_bin574.fits scfile=/scratch/kocevski/691625/ft2_4FGL_J2311.7+2604_daily_bin574.fits outfile=/scratch/kocevski/691625/cmap_HighResolution_388108801_388368001_4FGL_J2311.7+2604_daily_bin574.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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/691625/ft1_filtered_4FGL_J2311.7+2604_daily_bin574.fits evtable="EVENTS" scfile=/scratch/kocevski/691625/ft2_4FGL_J2311.7+2604_daily_bin574.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/691625/Model_4FGL_J2311.7+2604_daily_bin574.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/691625/ft1_filtered_4FGL_J2311.7+2604_daily_bin574.fits.....................!
real 106.70
user 105.09
sys 1.31

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.4399       1.0000         .10000E-03   10000.    
     3 'norm      '    3.2214       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.6772       1.0000         .10000E-03   10000.    
     5 'norm      '    1.0816       1.0000         .10000E-03   10000.    
     6 'Prefactor '    38.606       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .45617       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.1380       1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.003       1.0000         .10000E-03   10000.    
    12 'norm      '    2.1942       1.0000         .10000E-03   10000.    
    13 'Prefactor '    27.955       1.0000         .10000E-03   10000.    
    14 'Prefactor '    51.009       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.3443       1.0000         .10000E-03   10000.    
    16 'norm      '    42.905       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    16.834       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.3347       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0340       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .84793       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=   9416.445     FROM MIGRAD    STATUS=CONVERGED    453 CALLS     2357 TOTAL
                     EDM=   .27E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    54.720        .19268E-06** at limit **
   2  Prefactor     7.4393        7.6232        .56890E-07   -.60116E-05
   3  norm          3.2212        1.2841        .36383E-07   -.70057E-04
   4  Prefactor     3.6754        19.120        .95806E-06   -.61714E-05
   5  norm          1.0815        .97669        .27985E-07   -.14206E-04
   6  Prefactor     38.606        34.024        .12097E-06   -.24701E-06
   7  Prefactor     .10000E-03    3.4596        .11484E-06** at limit **
   8  Prefactor     .45619        .14397        .31878E-08   -.57143E-03
   9  Prefactor     .10000E-03    3.2397        .89583E-07** at limit **
  10  Prefactor     8.1364        25.707        .64514E-06   -.75888E-05
  11  Prefactor     14.003        8.3570        .53070E-07   -.53993E-04
  12  norm          2.1941        1.4013        .74078E-07    .26991E-05
  13  Prefactor     27.952        23.505        .13576E-06   -.20485E-04
  14  Prefactor     51.018        30.640        .21649E-06    .42931E-04
  15  Prefactor     1.3415        5.3547        .33999E-05   -.31451E-04
  16  norm          42.907        8.5714       -.10115E-07   -.51198E-04
  17  Prefactor     .10000E-03    11.858       -.17384E-06** at limit **
  18  Prefactor     16.841        19.570       -.79998E-06   -.67584E-04
  19  Prefactor     .10000E-03    6.6766       -.13734E-06** at limit **
  20  Prefactor     1.2929        257.85       -.62343E-05   -.12639E-04
  21  Normalizat    1.0341        .19885       -.28439E-06   -.66213E-04
  22  Prefactor     .84795        .99623E-01   -.87131E-06    .34467E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 7.43934
  norm       = 3.22125
  Prefactor  = 3.67545
  norm       = 1.08154
  Prefactor  = 38.6064
  Prefactor  = 0.0001
  Prefactor  = 0.456187
  Prefactor  = 0.0001
  Prefactor  = 8.13639
  Prefactor  = 14.0027
  norm       = 2.19408
  Prefactor  = 27.9524
  Prefactor  = 51.018
  Prefactor  = 1.34152
  norm       = 42.9068
  Prefactor  = 0.0001
  Prefactor  = 16.8412
  Prefactor  = 0.0001
  Prefactor  = 1.29287
  Normalizat = 1.03409
  Prefactor  = 0.847947
 **********
 **   18 **HESSE 
 **********

 FCN=   9416.445     FROM HESSE     STATUS=OK           350 CALLS     2707 TOTAL
                     EDM=   .54E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    54.759        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     7.4393        7.6259        .14704E-03   -1.5162    
   3  norm          3.2212        1.2811        .64402E-04   -1.5349    
   4  Prefactor     3.6754        19.017        .21063E-03   -1.5325    
   5  norm          1.0815        .96794        .88787E-04   -1.5500    
   6  Prefactor     38.606        34.085        .64508E-04   -1.4464    
   7  Prefactor     .10000E-03    3.4699        .17628E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .45619        .14368        .19581E-04   -1.5573    
   9  Prefactor     .10000E-03    3.2453        .17059E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.1364        25.728        .14054E-03   -1.5137    
  11  Prefactor     14.003        8.3496        .10704E-03   -1.4959    
  12  norm          2.1941        1.3977        .86829E-04   -1.5412    
  13  Prefactor     27.952        23.552        .75772E-04   -1.4650    
  14  Prefactor     51.018        30.673        .56152E-04   -1.4278    
  15  Prefactor     1.3415        5.4234        .37778E-03   -1.5476    
  16  norm          42.907        8.5636        .61203E-04   -1.4397    
  17  Prefactor     .10000E-03    11.894        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     16.841        19.544        .97618E-04   -1.4887    
  19  Prefactor     .10000E-03    6.6810        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.2929        275.13        .37982E-02   -1.5481    
  21  Normalizat    1.0341        .23249        .34058E-03   -.91897    
  22  Prefactor     .84795        .11548        .19461E-03   -.97984    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.37628e-11
Minuit parameter uncertainties:
  1  4.22796e-05
  2  7.62691
  3  1.28115
  4  16.729
  5  0.967956
  6  34.1019
  7  1.06181e-06
  8  0.143676
  9  1.06395e-06
  10  25.763
  11  8.35029
  12  1.39767
  13  23.5597
  14  30.682
  15  5.39529
  16  8.56382
  17  2.36654e-05
  18  19.5513
  19  8.30703e-06
  20  37.8964
  21  0.232723
  22  0.115513
Done.

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

Extracting fit parameters...

4FGL J2311.7+2604
   Spectrum: PowerLaw
368    Prefactor:  2.795e+01  2.356e+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:  8.479e-01  1.155e-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.034e+00  2.327e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.07
Ra Dec: 347.931 26.083
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 5.42e-08 +/- 4.57e-08
Energy Flux (Fixed Index): 1.71e-05 +/- 1.44e-05

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

Saving results to:
/scratch/kocevski/691625/likelihoodResults_388108801_388368001_4FGL_J2311.7+2604_daily_bin574.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) = 9415.71533381
delta logL = 0.729301297642

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9415.70968808
delta logL = 0.734947026238

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.709       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2310       1.0000          .0000       10.000    
     3 'Normalizat'    .98088       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86445       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=   9415.710     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      287 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.702        149.27        .28090E-02    .19104E-03
   2  Index         3.2316        2.9650        .11471        .24880E-03
   3  Normalizat    .98067        .78163E-01    .78742E-01    .13650E-03
   4  Prefactor     .86452        .37291E-01    .44550E-01    .13036E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.7019
  Index      = 3.23163
  Normalizat = 0.980671
  Prefactor  = 0.864524
 **********
 **   18 **HESSE 
 **********

 FCN=   9415.710     FROM HESSE     STATUS=OK            33 CALLS      320 TOTAL
                     EDM=   .78E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.702        23.467        .11236E-03   -1.4995    
   2  Index         3.2316        1.0195        .56361E-02   -.36150    
   3  Normalizat    .98067        .22478        .34851E-03   -.93681    
   4  Prefactor     .86452        .11549        .19285E-03   -.97392    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.78335e-11
Minuit parameter uncertainties:
  1  23.484
  2  1.02777
  3  0.224993
  4  0.115519
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/691625': 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) = 9415.70968725
delta logL = 0.734947849003

Extracting fit parameters...

4FGL J2311.7+2604
   Spectrum: PowerLaw
368    Prefactor:  1.270e+01  2.348e+01  1.000e-04  1.000e+04 ( 1.000e-13)
369        Index:  3.232e+00  1.028e+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:  8.645e-01  1.155e-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.807e-01  2.250e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.63
Ra Dec: 347.931 26.083
Photon Index (Free Index): 3.23 +/- 1.03
Photon Flux (Free Index): 1.01e-07 +/- 6.62e-08
Energy Flux (Free Index): 1.83e-05 +/- 1.20e-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/691625/cmap_HighResolution_388108801_388368001_4FGL_J2311.7+2604_daily_bin574.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.13e-02', comment='SUCCESS', photon_flux='5.42e-08', energy_flux2='1.83e-05', photon_flux_error='4.57e-08', dlogl='7.35e-01', energy_flux='1.71e-05', photon_flux2='1.01e-07', job_status='DONE', time_completed='2021-09-29 08:29:25.692295', photon_index_error2='1.03', photon_index2='3.23', ts='2.07', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', photon_flux_upper_limit='1.46e-07', energy_flux_error2='1.20e-05', EG='1.03', time_epoch_completed='1632929365.69', return_code='0', job_id='691625', GAL2='0.86', EG2='0.98', return_code2='0', energy_flux_error='1.44e-05', photon_flux_error2='6.62e-08', ts2='3.63', photon_index='2.43' WHERE bin_id='574' AND source_name='4FGL J2311.7+2604' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 08:29:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 691625: <4FGL_J2311.7+2604_daily_bin574> in cluster <slac> Done

Job <4FGL_J2311.7+2604_daily_bin574> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 08:15:35 2021
Job was executed on host(s) <bullet0094>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 08:15:37 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:37 2021
Terminated at Wed Sep 29 08:29:26 2021
Results reported at Wed Sep 29 08:29:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2311.7+2604_daily_bin574 347.931 26.0831 388108801 388368001 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 :                                   806.41 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             346.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   828 sec.
    Turnaround time :                            831 sec.

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

