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


Performing analysis on: 4FGL_J2311.7+2604_daily_bin1354
RA = 347.931, Dec = 26.0831
tmin = 590284801, tmax = 590544001
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='695582', job_status='RUN', time_executed='2021-09-29 08:28:55.255629', time_epoch_executed='1632929335.26' WHERE source_name='4FGL J2311.7+2604' and cadence='daily' and bin_id='1354'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/695582

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/695582/ft1_4FGL_J2311.7+2604_daily_bin1354.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/695582/ft2_4FGL_J2311.7+2604_daily_bin1354.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/695582/ft1_4FGL_J2311.7+2604_daily_bin1354.fits outfile=/scratch/kocevski/695582/ft1_filteredMKT_4FGL_J2311.7+2604_daily_bin1354.fits ra=347.931 dec=26.0831 rad=12.0 tmin=590284801.0 tmax=590544001.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.68
user 3.45
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/695582/ft1_filtered_4FGL_J2311.7+2604_daily_bin1354.fits" evtable="EVENTS" scfile=/scratch/kocevski/695582/ft2_4FGL_J2311.7+2604_daily_bin1354.fits sctable="SC_DATA" outfile=/scratch/kocevski/695582/ltcube_590284801_590544001_4FGL_J2311.7+2604_daily_bin1354.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/695582/ft2_4FGL_J2311.7+2604_daily_bin1354.fits
.....................!
real 11.80
user 11.45
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/695582/ft1_filtered_4FGL_J2311.7+2604_daily_bin1354.fits evtable="EVENTS" scfile=/scratch/kocevski/695582/ft2_4FGL_J2311.7+2604_daily_bin1354.fits sctable="SC_DATA" expcube=/scratch/kocevski/695582/ltcube_590284801_590544001_4FGL_J2311.7+2604_daily_bin1354.fits outfile=/scratch/kocevski/695582/expmap_590284801_590544001_4FGL_J2311.7+2604_daily_bin1354.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/695582/ltcube_590284801_590544001_4FGL_J2311.7+2604_daily_bin1354.fits
.....................!
real 192.68
user 187.04
sys 5.29

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

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/695582/ft1_filtered_4FGL_J2311.7+2604_daily_bin1354.fits evtable="EVENTS" scfile=/scratch/kocevski/695582/ft2_4FGL_J2311.7+2604_daily_bin1354.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/695582/Model_4FGL_J2311.7+2604_daily_bin1354.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/695582/ft1_filtered_4FGL_J2311.7+2604_daily_bin1354.fits.....................!
real 97.48
user 96.05
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    86.758       1.0000         .10000E-03   10000.    
     2 'Prefactor '    21.350       1.0000         .10000E-03   10000.    
     3 'norm      '    6.8144       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.4529       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    67.680       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .31450       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10692E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.0433       1.0000         .10000E-03   10000.    
    12 'norm      '    .37541       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.1030       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11217E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.997       1.0000         .10000E-03   10000.    
    16 'norm      '    4.3951       1.0000         .10000E-03   10000.    
    17 'Prefactor '    24.946       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .70161       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.2319       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=   9087.674     FROM MIGRAD    STATUS=CONVERGED    464 CALLS     2372 TOTAL
                     EDM=   .94E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     86.758        77.404        .65557E-08   -.38920E-05
   2  Prefactor     21.349        18.264       -.19306E-06   -.38454E-04
   3  norm          6.8145        1.7126       -.38261E-07   -.37485E-03
   4  Prefactor     .10000E-03    47.822        .41967E-05** at limit **
   5  norm          1.4527        1.5609       -.56190E-07   -.40171E-03
   6  Prefactor     .10000E-03    63.601        .24958E-04** at limit **
   7  Prefactor     67.678        19.263       -.13766E-06   -.17066E-03
   8  Prefactor     .31454        .16799        .68924E-08   -.20047E-02
   9  Prefactor     .10000E-03    18.988        .15273E-04** at limit **
  10  Prefactor     .10000E-03    10.369       -.13323E-04** at limit **
  11  Prefactor     2.0443        11.746       -.31014E-05   -.29418E-03
  12  norm          .37529        .86943       -.40760E-06   -.22095E-02
  13  Prefactor     3.0973        36.742       -.20584E-05   -.21015E-04
  14  Prefactor     .10000E-03    76.818       -.35021E-04** at limit **
  15  Prefactor     13.996        7.9094       -.28046E-06    .31195E-03
  16  norm          4.3948        4.2165       -.70249E-07   -.17435E-04
  17  Prefactor     24.945        17.159        .21000E-06    .18029E-03
  18  Prefactor     .10000E-03    19.730       -.17153E-04** at limit **
  19  Prefactor     .10000E-03    10.061        .70261E-05** at limit **
  20  Prefactor     .10000E-03    10.777        .62064E-05** at limit **
  21  Normalizat    .70168        .23588        .89294E-06    .10000E-03
  22  Prefactor     1.2318        .12044        .18376E-06    .25904E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 86.7578
  Prefactor  = 21.3491
  norm       = 6.8145
  Prefactor  = 0.0001
  norm       = 1.45267
  Prefactor  = 0.0001
  Prefactor  = 67.6785
  Prefactor  = 0.314542
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 2.04431
  norm       = 0.375289
  Prefactor  = 3.09725
  Prefactor  = 0.000100002
  Prefactor  = 13.996
  norm       = 4.39481
  Prefactor  = 24.9454
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.701684
  Prefactor  = 1.23184
 **********
 **   18 **HESSE 
 **********

 FCN=   9087.674     FROM HESSE     STATUS=OK           342 CALLS     2714 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     86.758        77.398        .43133E-04   -1.3842    
   2  Prefactor     21.349        18.254        .86686E-04   -1.4784    
   3  norm          6.8145        1.7098        .59420E-04   -1.5186    
   4  Prefactor     .10000E-03    48.290        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.4527        1.5400        .11820E-03   -1.5467    
   6  Prefactor     .10000E-03    63.691        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     67.678        19.192        .48789E-04   -1.4061    
   8  Prefactor     .31454        .16497        .26832E-04   -1.5596    
   9  Prefactor     .10000E-03    19.343        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    10.365        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.0443        11.762        .28927E-03   -1.5422    
  12  norm          .37529        .83881        .12893E-03   -1.5585    
  13  Prefactor     3.0973        36.539        .23021E-03   -1.5356    
  14  Prefactor     .10000E-03    78.047        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     13.996        7.9084        .10706E-03   -1.4960    
  16  norm          4.3948        4.2032        .17747E-03   -1.5289    
  17  Prefactor     24.945        17.130        .80202E-04   -1.4709    
  18  Prefactor     .10000E-03    19.879        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    10.107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    10.787        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .70168        .25470        .43355E-03   -1.0383    
  22  Prefactor     1.2318        .13239        .18447E-03   -.85357    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.71076e-09
Minuit parameter uncertainties:
  1  77.4878
  2  18.2583
  3  1.70979
  4  5.94341e-05
  5  1.54009
  6  6.61148e-05
  7  19.1942
  8  0.164972
  9  0.000210803
  10  6.51287e-06
  11  9.80987
  12  0.83884
  13  21.2922
  14  0.000820951
  15  7.90897
  16  4.20349
  17  17.1337
  18  0.000128716
  19  1.72146e-05
  20  7.43651e-06
  21  0.255128
  22  0.132422
Done.

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

Extracting fit parameters...

4FGL J2311.7+2604
   Spectrum: PowerLaw
368    Prefactor:  3.097e+00  2.129e+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.232e+00  1.324e-01  0.000e+00  1.000e+01 ( 1.000e+00)
528        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
529        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
526   Normalization:  7.017e-01  2.551e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/695582/likelihoodResults_590284801_590544001_4FGL_J2311.7+2604_daily_bin1354.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) = 9087.48302651
delta logL = 0.191197454851

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9087.47856262
delta logL = 0.195661340371

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.1402       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6845       1.0000          .0000       10.000    
     3 'Normalizat'    .66002       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2432       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=   9087.479     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      219 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.1358        64.345        .70436E-02    .11748E-02
   2  Index         3.6880        2.8016        .20917        .10246E-03
   3  Normalizat    .66013        .40725E-01    .10068        .47160E-04
   4  Prefactor     1.2433        .22116E-01    .33681E-01   -.13553E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.13578
  Index      = 3.68795
  Normalizat = 0.660125
  Prefactor  = 1.24328
 **********
 **   18 **HESSE 
 **********

 FCN=   9087.479     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      252 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.1358        244.08        .20941E-03   -1.5416    
   2  Index         3.6880        5.6393        .80733E-02   -.26552    
   3  Normalizat    .66013        .23334        .44622E-03   -1.0549    
   4  Prefactor     1.2433        .12554        .18374E-03   -.85010    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.35295e-09
Minuit parameter uncertainties:
  1  45.8556
  2  11.2486
  3  0.233685
  4  0.125566
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/695582': 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): 102
logL (Free Index) = 9087.478555
delta logL = 0.195668966149

Extracting fit parameters...

4FGL J2311.7+2604
   Spectrum: PowerLaw
368    Prefactor:  2.136e+00  4.586e+01  1.000e-04  1.000e+04 ( 1.000e-13)
369        Index:  3.688e+00  1.125e+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.243e+00  1.256e-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:  6.601e-01  2.337e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.02
Ra Dec: 347.931 26.083

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/695582/cmap_HighResolution_590284801_590544001_4FGL_J2311.7+2604_daily_bin1354.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.32e-03', job_status='DONE', photon_flux_upper_limit='1.07e-07', time_completed='2021-09-29 08:42:08.654658', job_id='695582', GAL2='1.24', fit_tolerance='1e-08', EG2='0.66', EG='0.70', time_epoch_completed='1632930128.65', return_code2='102', ts='0.02', comment='SUCCESS', return_code='0', GAL='1.23', dlogl='1.96e-01', ts2='0.46', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1354' AND source_name='4FGL J2311.7+2604' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 08:42:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0205>
Subject: Job 695582: <4FGL_J2311.7+2604_daily_bin1354> in cluster <slac> Done

Job <4FGL_J2311.7+2604_daily_bin1354> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 08:26:08 2021
Job was executed on host(s) <bullet0205>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 08:26:10 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:26:10 2021
Terminated at Wed Sep 29 08:42:09 2021
Results reported at Wed Sep 29 08:42:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2311.7+2604_daily_bin1354 347.931 26.0831 590284801 590544001 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 :                                   774.29 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             283.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   958 sec.
    Turnaround time :                            961 sec.

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

