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


Performing analysis on: 4FGL_J2311.7+2604_daily_bin1095
RA = 347.931, Dec = 26.0831
tmin = 523152001, tmax = 523411201
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='695187', job_status='RUN', time_executed='2021-09-29 08:25:50.581038', time_epoch_executed='1632929150.58' WHERE source_name='4FGL J2311.7+2604' and cadence='daily' and bin_id='1095'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/695187

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/695187/ft1_4FGL_J2311.7+2604_daily_bin1095.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/695187/ft2_4FGL_J2311.7+2604_daily_bin1095.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/695187/ft1_4FGL_J2311.7+2604_daily_bin1095.fits outfile=/scratch/kocevski/695187/ft1_filteredMKT_4FGL_J2311.7+2604_daily_bin1095.fits ra=347.931 dec=26.0831 rad=12.0 tmin=523152001.0 tmax=523411201.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.23
user 4.02
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/695187/ft2_4FGL_J2311.7+2604_daily_bin1095.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/695187/ft1_filteredMKT_4FGL_J2311.7+2604_daily_bin1095.fits evtable="EVENTS" outfile="/scratch/kocevski/695187/ft1_filtered_4FGL_J2311.7+2604_daily_bin1095.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/695187/ft1_filtered_4FGL_J2311.7+2604_daily_bin1095.fits" evtable="EVENTS" scfile=/scratch/kocevski/695187/ft2_4FGL_J2311.7+2604_daily_bin1095.fits sctable="SC_DATA" outfile=/scratch/kocevski/695187/ltcube_523152001_523411201_4FGL_J2311.7+2604_daily_bin1095.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/695187/ft2_4FGL_J2311.7+2604_daily_bin1095.fits
.....................!
real 12.20
user 11.82
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/695187/ft1_filtered_4FGL_J2311.7+2604_daily_bin1095.fits evtable="EVENTS" scfile=/scratch/kocevski/695187/ft2_4FGL_J2311.7+2604_daily_bin1095.fits sctable="SC_DATA" expcube=/scratch/kocevski/695187/ltcube_523152001_523411201_4FGL_J2311.7+2604_daily_bin1095.fits outfile=/scratch/kocevski/695187/expmap_523152001_523411201_4FGL_J2311.7+2604_daily_bin1095.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/695187/ltcube_523152001_523411201_4FGL_J2311.7+2604_daily_bin1095.fits
.....................!
real 189.52
user 185.27
sys 3.92

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/695187/ft1_filtered_4FGL_J2311.7+2604_daily_bin1095.fits scfile=/scratch/kocevski/695187/ft2_4FGL_J2311.7+2604_daily_bin1095.fits outfile=/scratch/kocevski/695187/cmap_523152001_523411201_4FGL_J2311.7+2604_daily_bin1095.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.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/695187/ft1_filtered_4FGL_J2311.7+2604_daily_bin1095.fits scfile=/scratch/kocevski/695187/ft2_4FGL_J2311.7+2604_daily_bin1095.fits outfile=/scratch/kocevski/695187/cmap_HighResolution_523152001_523411201_4FGL_J2311.7+2604_daily_bin1095.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.40
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/695187/ft1_filtered_4FGL_J2311.7+2604_daily_bin1095.fits evtable="EVENTS" scfile=/scratch/kocevski/695187/ft2_4FGL_J2311.7+2604_daily_bin1095.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/695187/Model_4FGL_J2311.7+2604_daily_bin1095.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/695187/ft1_filtered_4FGL_J2311.7+2604_daily_bin1095.fits.....................!
real 80.12
user 78.85
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    39.503       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.7440       1.0000         .10000E-03   10000.    
     3 'norm      '    1.0699       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .88449E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.392       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .67288       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10900E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.827       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .23516       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.6147       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.375       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.9584       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.7401       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2592       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .85538       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=   7434.453     FROM MIGRAD    STATUS=CONVERGED    473 CALLS     2408 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     39.512        84.644        .43734E-06    .13314E-04
   2  Prefactor     6.7468        12.721        .24322E-06    .65996E-06
   3  norm          1.0699        .82492        .63680E-07   -.12521E-04
   4  Prefactor     .10000E-03    22.449        .64544E-06** at limit **
   5  norm          .88803E-01    .97093       -.48726E-07    .16386E-03
   6  Prefactor     .10000E-03    19.962       -.25151E-06** at limit **
   7  Prefactor     12.393        10.850       -.39378E-07    .18191E-04
   8  Prefactor     .67291        .17648       -.87072E-09   -.44974E-04
   9  Prefactor     .10002E-03    4.7726       -.35694E-06** at limit **
  10  Prefactor     12.805        25.811       -.78210E-06   -.12037E-03
  11  Prefactor     .10000E-03    4.7876        .23425E-07** at limit **
  12  norm          .23509        .89081        .83023E-06   -.36155E-04
  13  Prefactor     .10000E-03    8.3953        .11340E-07** at limit **
  14  Prefactor     5.6144        10.782        .11259E-06   -.30654E-05
  15  Prefactor     .10000E-03    3.4938       -.38978E-07** at limit **
  16  norm          .10000E-03    1.6210       -.14620E-07** at limit **
  17  Prefactor     13.377        12.943       -.22991E-08   -.39254E-04
  18  Prefactor     7.9610        13.602        .23579E-05    .73892E-05
  19  Prefactor     7.7408        12.850        .91199E-07   -.35820E-05
  20  Prefactor     .10000E-03    9.5542        .41845E-07** at limit **
  21  Normalizat    1.2587        .20123       -.11607E-05   -.11106E-05
  22  Prefactor     .85562        .10762        .32402E-06   -.12193E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 39.5121
  Prefactor  = 6.74682
  norm       = 1.06985
  Prefactor  = 0.0001
  norm       = 0.0888028
  Prefactor  = 0.0001
  Prefactor  = 12.3933
  Prefactor  = 0.672912
  Prefactor  = 0.000100022
  Prefactor  = 12.805
  Prefactor  = 0.0001
  norm       = 0.235085
  Prefactor  = 0.0001
  Prefactor  = 5.61439
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 13.377
  Prefactor  = 7.96102
  Prefactor  = 7.74079
  Prefactor  = 0.0001
  Normalizat = 1.25872
  Prefactor  = 0.85562
 **********
 **   18 **HESSE 
 **********

 FCN=   7434.453     FROM HESSE     STATUS=OK           350 CALLS     2758 TOTAL
                     EDM=   .94E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     39.512        84.640        .63774E-04   -1.4450    
   2  Prefactor     6.7468        12.723        .15451E-03   -1.5188    
   3  norm          1.0699        .83442        .66432E-04   -1.5501    
   4  Prefactor     .10000E-03    22.803        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .88803E-01    5.5172        .16063E-02   -1.5648    
   6  Prefactor     .10000E-03    19.980        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     12.393        10.778        .11379E-03   -1.5004    
   8  Prefactor     .67291        .17622        .17907E-04   -1.5544    
   9  Prefactor     .10002E-03    35.940        .35873E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     12.805        25.961        .11184E-03   -1.4992    
  11  Prefactor     .10000E-03    4.8402        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .23509        .90182        .15147E-03   -1.5611    
  13  Prefactor     .10000E-03    8.4306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.6144        10.772        .16954E-03   -1.5234    
  15  Prefactor     .10000E-03    3.5360        .15730E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.6255        .10709E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     13.377        12.932        .10952E-03   -1.4976    
  18  Prefactor     7.9610        13.643        .71065E-03   -1.5144    
  19  Prefactor     7.7408        12.846        .14413E-03   -1.5151    
  20  Prefactor     .10000E-03    9.5602        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.2587        .23261        .29579E-03   -.84807    
  22  Prefactor     .85562        .12543        .19002E-03   -.97710    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.40282e-10
Minuit parameter uncertainties:
  1  84.8987
  2  12.7283
  3  0.83443
  4  0.000152491
  5  1.39927
  6  0.000111682
  7  10.7801
  8  0.176221
  9  0.0017962
  10  25.9837
  11  1.58046e-06
  12  0.901869
  13  1.67146e-06
  14  10.7757
  15  4.18924e-06
  16  8.59849e-07
  17  12.9351
  18  13.6482
  19  12.8507
  20  9.63245e-06
  21  0.232806
  22  0.12547
Done.

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

Extracting fit parameters...

4FGL J2311.7+2604
   Spectrum: PowerLaw
368    Prefactor:  1.000e-04  1.671e-06  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.556e-01  1.255e-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.259e+00  2.328e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 347.931 26.083
Photon Flux Upper Limit: 6.05e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.69e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/695187/likelihoodResults_523152001_523411201_4FGL_J2311.7+2604_daily_bin1095.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): 102
logL (Free Index) = 7434.45382155
delta logL = -0.000565150374314

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7434.45325933
delta logL = -2.92767526844e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10348E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4179       1.0000          .0000       10.000    
     3 'Normalizat'    1.2585       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85556       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=   7434.453     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      242 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10176E-03    6.3175        .18142E-01** at limit **
   2  Index         2.2653        5.5917        .50000        .59442E-05
   3  Normalizat    1.2587        .43884E-02    .29579E-03   -.43393E-04
   4  Prefactor     .85562        .23885E-02    .19002E-03   -.24222E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101763
  Index      = 2.26535
  Normalizat = 1.25872
  Prefactor  = 0.85562
 **********
 **   18 **HESSE 
 **********

 FCN=   7434.453     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      271 TOTAL
                     EDM=   .19E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10176E-03    274.15        .24999E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2653        5.4567        .50000       -.57869    
   3  Normalizat    1.2587        .29826E-01    .11832E-04   -.84807    
   4  Prefactor     .85562        .16233E-01    .38005E-04   -.97710    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.88602e-07
Minuit parameter uncertainties:
  1  0.0441692
  2  1445.68
  3  0.0298263
  4  0.0162336
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/695187': 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) = 7434.45325618
delta logL = 2.26867086894e-07

Extracting fit parameters...

4FGL J2311.7+2604
   Spectrum: PowerLaw
368    Prefactor:  1.018e-04  4.417e-02  1.000e-04  1.000e+04 ( 1.000e-13)
369        Index:  2.265e+00  1.446e+03  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.556e-01  1.623e-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:  1.259e+00  2.983e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/695187/cmap_HighResolution_523152001_523411201_4FGL_J2311.7+2604_daily_bin1095.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.69e-03', job_status='DONE', photon_flux_upper_limit='6.05e-08', time_completed='2021-09-29 08:37:36.314222', job_id='695187', GAL2='0.86', fit_tolerance='1e-08', EG2='1.26', EG='1.26', time_epoch_completed='1632929856.31', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='2.27e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1095' AND source_name='4FGL J2311.7+2604' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 08:37:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 695187: <4FGL_J2311.7+2604_daily_bin1095> in cluster <slac> Done

Job <4FGL_J2311.7+2604_daily_bin1095> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 08:25:30 2021
Job was executed on host(s) <bullet0091>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 08:25:33 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:25:33 2021
Terminated at Wed Sep 29 08:37:36 2021
Results reported at Wed Sep 29 08:37:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2311.7+2604_daily_bin1095 347.931 26.0831 523152001 523411201 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 :                                   700.36 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             305.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   723 sec.
    Turnaround time :                            726 sec.

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

