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


Performing analysis on: 4FGL_J2311.7+2604_daily_bin1568
RA = 347.931, Dec = 26.0831
tmin = 645753601, tmax = 646012801
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='696449', job_status='RUN', time_executed='2021-09-29 08:33:00.755098', time_epoch_executed='1632929580.76' WHERE source_name='4FGL J2311.7+2604' and cadence='daily' and bin_id='1568'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/696449

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/696449/ft1_4FGL_J2311.7+2604_daily_bin1568.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/696449/ft2_4FGL_J2311.7+2604_daily_bin1568.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/696449/ft1_4FGL_J2311.7+2604_daily_bin1568.fits outfile=/scratch/kocevski/696449/ft1_filteredMKT_4FGL_J2311.7+2604_daily_bin1568.fits ra=347.931 dec=26.0831 rad=12.0 tmin=645753601.0 tmax=646012801.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 2.31
user 2.10
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/696449/ft1_filtered_4FGL_J2311.7+2604_daily_bin1568.fits" evtable="EVENTS" scfile=/scratch/kocevski/696449/ft2_4FGL_J2311.7+2604_daily_bin1568.fits sctable="SC_DATA" outfile=/scratch/kocevski/696449/ltcube_645753601_646012801_4FGL_J2311.7+2604_daily_bin1568.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/696449/ft2_4FGL_J2311.7+2604_daily_bin1568.fits
.....................!
real 12.51
user 12.17
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/696449/ft1_filtered_4FGL_J2311.7+2604_daily_bin1568.fits evtable="EVENTS" scfile=/scratch/kocevski/696449/ft2_4FGL_J2311.7+2604_daily_bin1568.fits sctable="SC_DATA" expcube=/scratch/kocevski/696449/ltcube_645753601_646012801_4FGL_J2311.7+2604_daily_bin1568.fits outfile=/scratch/kocevski/696449/expmap_645753601_646012801_4FGL_J2311.7+2604_daily_bin1568.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/696449/ltcube_645753601_646012801_4FGL_J2311.7+2604_daily_bin1568.fits
.....................!
real 190.94
user 186.08
sys 4.12

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/696449/ft1_filtered_4FGL_J2311.7+2604_daily_bin1568.fits scfile=/scratch/kocevski/696449/ft2_4FGL_J2311.7+2604_daily_bin1568.fits outfile=/scratch/kocevski/696449/cmap_645753601_646012801_4FGL_J2311.7+2604_daily_bin1568.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/696449/ft1_filtered_4FGL_J2311.7+2604_daily_bin1568.fits scfile=/scratch/kocevski/696449/ft2_4FGL_J2311.7+2604_daily_bin1568.fits outfile=/scratch/kocevski/696449/cmap_HighResolution_645753601_646012801_4FGL_J2311.7+2604_daily_bin1568.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.53
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/696449/ft1_filtered_4FGL_J2311.7+2604_daily_bin1568.fits evtable="EVENTS" scfile=/scratch/kocevski/696449/ft2_4FGL_J2311.7+2604_daily_bin1568.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/696449/Model_4FGL_J2311.7+2604_daily_bin1568.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/696449/ft1_filtered_4FGL_J2311.7+2604_daily_bin1568.fits.....................!
real 129.91
user 128.58
sys 1.10

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12172E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.912       1.0000         .10000E-03   10000.    
     5 'norm      '    1.6550       1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.987       1.0000         .10000E-03   10000.    
     7 'Prefactor '    19.110       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .30769       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.8387       1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.302       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .14138       1.0000         .10000E-03   10000.    
    13 'Prefactor '    15.927       1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.337       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .21520       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    14.469       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .71731       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1390       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=   12809.12     FROM MIGRAD    STATUS=CONVERGED    476 CALLS     2066 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    111.48       -.90119E-06** at limit **
   2  Prefactor     .10000E-03    7.2607       -.66333E-06** at limit **
   3  norm          .10000E-03    .18828        .46345E-07** at limit **
   4  Prefactor     14.912        10.678       -.21914E-05    .17770E-03
   5  norm          1.6550        1.0913        .46075E-07    .13517E-04
   6  Prefactor     11.983        20.060        .24159E-05   -.58064E-04
   7  Prefactor     19.110        9.1072       -.91161E-06    .10175E-03
   8  Prefactor     .30770        .10361       -.16557E-07   -.81496E-03
   9  Prefactor     7.8392        7.0900       -.25175E-07   -.96931E-04
  10  Prefactor     16.302        16.473       -.12076E-05    .75980E-04
  11  Prefactor     .10000E-03    1.3278       -.59298E-08** at limit **
  12  norm          .14045        .45608       -.26388E-06   -.37469E-03
  13  Prefactor     15.928        12.291       -.23597E-05    .17077E-03
  14  Prefactor     12.337        12.427        .42660E-06    .48663E-05
  15  Prefactor     .10000E-03    4.1140        .26243E-07** at limit **
  16  norm          .22398        1.5106       -.86349E-06   -.85982E-03
  17  Prefactor     .10000E-03    7.0517        .72720E-06** at limit **
  18  Prefactor     .10000E-03    5.6543       -.54104E-07** at limit **
  19  Prefactor     .10000E-03    2.5840       -.53427E-08** at limit **
  20  Prefactor     14.469        23.764       -.22617E-06   -.39556E-05
  21  Normalizat    .71726        .15477        .82223E-06    .13168E-03
  22  Prefactor     1.1390        .86001E-01    .25766E-06    .35678E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 14.9125
  norm       = 1.65498
  Prefactor  = 11.9832
  Prefactor  = 19.1104
  Prefactor  = 0.307698
  Prefactor  = 7.8392
  Prefactor  = 16.3025
  Prefactor  = 0.0001
  norm       = 0.140452
  Prefactor  = 15.9282
  Prefactor  = 12.3372
  Prefactor  = 0.0001
  norm       = 0.223978
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.4691
  Normalizat = 0.717264
  Prefactor  = 1.13897
 **********
 **   18 **HESSE 
 **********

 FCN=   12809.12     FROM HESSE     STATUS=OK           348 CALLS     2414 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    112.77        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.3612        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    .25229        .94953E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     14.912        10.546        .10372E-03   -1.4935    
   5  norm          1.6550        1.0910        .32808E-04   -1.5451    
   6  Prefactor     11.983        19.949        .11570E-03   -1.5015    
   7  Prefactor     19.110        9.0941        .91622E-04   -1.4833    
   8  Prefactor     .30770        .10270        .20301E-04   -1.5597    
   9  Prefactor     7.8392        7.0895        .14322E-03   -1.5148    
  10  Prefactor     16.302        16.423        .99198E-04   -1.4900    
  11  Prefactor     .10000E-03    1.3310        .12735E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .14045        1.3296        .12967E-02   -1.5633    
  13  Prefactor     15.928        12.160        .10036E-03   -1.4910    
  14  Prefactor     12.337        12.424        .11405E-03   -1.5005    
  15  Prefactor     .10000E-03    4.2500        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .22398        5.1621        .28042E-02   -1.5613    
  17  Prefactor     .10000E-03    7.1619        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.6713        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.5843        .17768E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     14.469        23.783        .10530E-03   -1.4947    
  21  Normalizat    .71726        .17383        .36613E-03   -1.0322    
  22  Prefactor     1.1390        .98535E-01    .16755E-03   -.88231    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.31782e-08
Minuit parameter uncertainties:
  1  5.7428e-06
  2  8.13151e-06
  3  2.33714e-06
  4  10.547
  5  1.09104
  6  19.9603
  7  9.09472
  8  0.102704
  9  7.09024
  10  16.428
  11  6.89577e-07
  12  0.864012
  13  12.1618
  14  12.4269
  15  9.37286e-06
  16  2.15027
  17  4.58144e-06
  18  4.16617e-06
  19  1.54749e-07
  20  23.7983
  21  0.173964
  22  0.0985505
Done.

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

Extracting fit parameters...

4FGL J2311.7+2604
   Spectrum: PowerLaw
368    Prefactor:  1.593e+01  1.216e+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.139e+00  9.855e-02  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.173e-01  1.740e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.57
Ra Dec: 347.931 26.083
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 3.09e-08 +/- 2.36e-08
Energy Flux (Fixed Index): 9.75e-06 +/- 7.45e-06

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) = 12808.2086704
delta logL = 0.909185954717

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12808.1943451
delta logL = 0.923511268706

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.812       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5360       1.0000          .0000       10.000    
     3 'Normalizat'    .73554       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1370       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=   12808.19     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      215 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.812        12.257        .27977E-02    .23640E-03
   2  Index         1.5359        .40088        .29411       -.93001E-04
   3  Normalizat    .73554        .15021        .81731E-01    .57811E-04
   4  Prefactor     1.1370        .85132E-01    .36324E-01   -.78855E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.8121
  Index      = 1.5359
  Normalizat = 0.735538
  Prefactor  = 1.13703
 **********
 **   18 **HESSE 
 **********

 FCN=   12808.19     FROM HESSE     STATUS=OK            33 CALLS      248 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.812        18.264        .11191E-03   -1.4992    
   2  Index         1.5359        .74385        .12142E-01   -.76539    
   3  Normalizat    .73554        .17044        .36190E-03   -1.0251    
   4  Prefactor     1.1370        .97046E-01    .16770E-03   -.88292    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.67213e-09
Minuit parameter uncertainties:
  1  18.2715
  2  0.74923
  3  0.170563
  4  0.0970614
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/696449': 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) = 12808.194345
delta logL = 0.923511278386

Extracting fit parameters...

4FGL J2311.7+2604
   Spectrum: PowerLaw
368    Prefactor:  1.281e+01  1.827e+01  1.000e-04  1.000e+04 ( 1.000e-13)
369        Index:  1.536e+00  7.492e-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.137e+00  9.706e-02  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.355e-01  1.706e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.40
Ra Dec: 347.931 26.083
Photon Index (Free Index): 1.54 +/- 0.75
Photon Flux (Free Index): 8.17e-09 +/- 1.47e-08
Energy Flux (Free Index): 2.29e-05 +/- 3.12e-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/696449/cmap_HighResolution_645753601_646012801_4FGL_J2311.7+2604_daily_bin1568.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.09e-08', energy_flux2='2.29e-05', photon_flux_error='2.36e-08', dlogl='9.24e-01', energy_flux='9.75e-06', photon_flux2='8.17e-09', job_status='DONE', time_completed='2021-09-29 08:46:44.387553', photon_index_error2='0.75', photon_index2='1.54', ts='5.57', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', energy_flux_error2='3.12e-05', EG='0.72', time_epoch_completed='1632930404.39', return_code='0', job_id='696449', GAL2='1.14', EG2='0.74', return_code2='0', energy_flux_error='7.45e-06', photon_flux_error2='1.47e-08', ts2='7.40', photon_index='2.43' WHERE bin_id='1568' AND source_name='4FGL J2311.7+2604' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 08:46:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 696449: <4FGL_J2311.7+2604_daily_bin1568> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2311.7+2604_daily_bin1568 347.931 26.0831 645753601 646012801 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 :                                   820.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             311.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   965 sec.
    Turnaround time :                            970 sec.

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

