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


Performing analysis on: 4FGL_J2311.7+2604_daily_bin580
RA = 347.931, Dec = 26.0831
tmin = 389664001, tmax = 389923201
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='691635', job_status='RUN', time_executed='2021-09-29 08:17:56.934759', time_epoch_executed='1632928676.93' WHERE source_name='4FGL J2311.7+2604' and cadence='daily' and bin_id='580'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/691635

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/691635/ft1_4FGL_J2311.7+2604_daily_bin580.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/691635/ft2_4FGL_J2311.7+2604_daily_bin580.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/691635/ft1_4FGL_J2311.7+2604_daily_bin580.fits outfile=/scratch/kocevski/691635/ft1_filteredMKT_4FGL_J2311.7+2604_daily_bin580.fits ra=347.931 dec=26.0831 rad=12.0 tmin=389664001.0 tmax=389923201.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.84
user 4.60
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/691635/ft1_filtered_4FGL_J2311.7+2604_daily_bin580.fits" evtable="EVENTS" scfile=/scratch/kocevski/691635/ft2_4FGL_J2311.7+2604_daily_bin580.fits sctable="SC_DATA" outfile=/scratch/kocevski/691635/ltcube_389664001_389923201_4FGL_J2311.7+2604_daily_bin580.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/691635/ft2_4FGL_J2311.7+2604_daily_bin580.fits
.....................!
real 12.04
user 11.66
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/691635/ft1_filtered_4FGL_J2311.7+2604_daily_bin580.fits evtable="EVENTS" scfile=/scratch/kocevski/691635/ft2_4FGL_J2311.7+2604_daily_bin580.fits sctable="SC_DATA" expcube=/scratch/kocevski/691635/ltcube_389664001_389923201_4FGL_J2311.7+2604_daily_bin580.fits outfile=/scratch/kocevski/691635/expmap_389664001_389923201_4FGL_J2311.7+2604_daily_bin580.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/691635/ltcube_389664001_389923201_4FGL_J2311.7+2604_daily_bin580.fits
.....................!
real 191.75
user 186.03
sys 5.13

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/691635/ft1_filtered_4FGL_J2311.7+2604_daily_bin580.fits scfile=/scratch/kocevski/691635/ft2_4FGL_J2311.7+2604_daily_bin580.fits outfile=/scratch/kocevski/691635/cmap_389664001_389923201_4FGL_J2311.7+2604_daily_bin580.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.55
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/691635/ft1_filtered_4FGL_J2311.7+2604_daily_bin580.fits scfile=/scratch/kocevski/691635/ft2_4FGL_J2311.7+2604_daily_bin580.fits outfile=/scratch/kocevski/691635/cmap_HighResolution_389664001_389923201_4FGL_J2311.7+2604_daily_bin580.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/691635/ft1_filtered_4FGL_J2311.7+2604_daily_bin580.fits evtable="EVENTS" scfile=/scratch/kocevski/691635/ft2_4FGL_J2311.7+2604_daily_bin580.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/691635/Model_4FGL_J2311.7+2604_daily_bin580.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/691635/ft1_filtered_4FGL_J2311.7+2604_daily_bin580.fits.....................!
real 81.34
user 79.86
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    139.88       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.5887       1.0000         .10000E-03   10000.    
     3 'norm      '    2.5272       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    48.800       1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.332       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .52566       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10189E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.6315       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10798E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10258E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    13.977       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11703E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .30779E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .51663       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1312       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=   7736.557     FROM MIGRAD    STATUS=CONVERGED    501 CALLS     2447 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     139.89        97.253        .85049E-06    .63927E-04
   2  Prefactor     5.5885        7.2847        .19342E-05   -.32666E-03
   3  norm          2.5272        1.2070        .22426E-08   -.72551E-04
   4  Prefactor     .10000E-03    4.8500       -.58018E-08** at limit **
   5  norm          .10000E-03    .97787       -.37685E-07** at limit **
   6  Prefactor     48.819        42.815        .20770E-05    .22062E-03
   7  Prefactor     13.328        10.623       -.64668E-07   -.27201E-04
   8  Prefactor     .52565        .15944       -.19259E-07    .21409E-03
   9  Prefactor     .10000E-03    3.0206       -.79081E-08** at limit **
  10  Prefactor     .10000E-03    15.688       -.16676E-08** at limit **
  11  Prefactor     .10000E-03    2.0662       -.23119E-08** at limit **
  12  norm          2.6316        1.5428        .21022E-07   -.69140E-04
  13  Prefactor     .10000E-03    7.0996        .60143E-08** at limit **
  14  Prefactor     .10001E-03    12.715       -.26486E-06** at limit **
  15  Prefactor     .10000E-03    6.1865       -.48513E-07** at limit **
  16  norm          13.977        5.9189        .19520E-06   -.12055E-03
  17  Prefactor     .10000E-03    7.8874       -.75436E-07** at limit **
  18  Prefactor     .10000E-03    39.078       -.12210E-06** at limit **
  19  Prefactor     .10000E-03    5.1214        .18780E-08** at limit **
  20  Prefactor     .10001E-03    132.06        .43857E-05** at limit **
  21  Normalizat    .51668        .20145        .28491E-06   -.30475E-04
  22  Prefactor     1.1312        .11356       -.20909E-06    .10473E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 139.886
  Prefactor  = 5.58845
  norm       = 2.52719
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 48.819
  Prefactor  = 13.3282
  Prefactor  = 0.525649
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.63161
  Prefactor  = 0.0001
  Prefactor  = 0.000100011
  Prefactor  = 0.0001
  norm       = 13.9772
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Normalizat = 0.516682
  Prefactor  = 1.13118
 **********
 **   18 **HESSE 
 **********

 FCN=   7736.557     FROM HESSE     STATUS=OK           342 CALLS     2789 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     139.89        97.944        .34060E-04   -1.3337    
   2  Prefactor     5.5885        7.4845        .84968E-03   -1.5235    
   3  norm          2.5272        1.2015        .63158E-04   -1.5390    
   4  Prefactor     .10000E-03    4.8525        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.5005        .16568E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     48.819        45.177        .57403E-04   -1.4309    
   7  Prefactor     13.328        10.398        .10970E-03   -1.4978    
   8  Prefactor     .52565        .15940        .18291E-04   -1.5563    
   9  Prefactor     .10000E-03    3.0303        .14929E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    15.731        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.0720        .12347E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.6316        1.5376        .79223E-04   -1.5384    
  13  Prefactor     .10000E-03    7.1194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10001E-03    125.08        .60497E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.3642        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          13.977        5.9084        .53568E-03   -1.4960    
  17  Prefactor     .10000E-03    7.9185        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    39.997        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.1229        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10001E-03    139.28        .42758E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .51668        .21731        .41459E-03   -1.1165    
  22  Prefactor     1.1312        .12449        .16449E-03   -.88476    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.83815e-10
Minuit parameter uncertainties:
  1  98.0578
  2  7.48571
  3  1.20149
  4  3.32955e-07
  5  2.64814e-07
  6  45.2084
  7  10.3994
  8  0.1594
  9  2.09236e-07
  10  2.14979e-06
  11  2.58904e-07
  12  1.53758
  13  2.75608e-06
  14  0.00240038
  15  1.61149e-06
  16  5.90868
  17  8.33611e-06
  18  1.74185e-06
  19  1.8768e-08
  20  0.00190885
  21  0.217666
  22  0.124525
Done.

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

Extracting fit parameters...

4FGL J2311.7+2604
   Spectrum: PowerLaw
368    Prefactor:  1.000e-04  2.756e-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:  1.131e+00  1.245e-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:  5.167e-01  2.177e-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: 5.57e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.31e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/691635/likelihoodResults_389664001_389923201_4FGL_J2311.7+2604_daily_bin580.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) = 7736.55752104
delta logL = -0.000669045034556

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7736.55685311
delta logL = -1.12189536594e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11423E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4032       1.0000          .0000       10.000    
     3 'Normalizat'    .51651       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1313       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=   7736.557     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      242 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10471E-03    5.6723        .18142E-01** at limit **
   2  Index         2.2854        5.9467        .50000        .24804E-04
   3  Normalizat    .51668        .39466E-02    .41459E-03    .43957E-04
   4  Prefactor     1.1312        .22697E-02    .16449E-03    .94131E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000104711
  Index      = 2.28541
  Normalizat = 0.516683
  Prefactor  = 1.13118
 **********
 **   18 **HESSE 
 **********

 FCN=   7736.557     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      271 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10471E-03    78.736        .24447E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2854        6.0656        .50000       -.57391    
   3  Normalizat    .51668        .14782E-01    .16584E-04   -1.1165    
   4  Prefactor     1.1312        .85008E-02    .65798E-05   -.88476    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.15245e-08
Minuit parameter uncertainties:
  1  0.0385692
  2  400.971
  3  0.0147817
  4  0.00850079
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/691635': 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) = 7736.55685137
delta logL = 6.23979758529e-07

Extracting fit parameters...

4FGL J2311.7+2604
   Spectrum: PowerLaw
368    Prefactor:  1.047e-04  3.857e-02  1.000e-04  1.000e+04 ( 1.000e-13)
369        Index:  2.285e+00  4.010e+02  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.131e+00  8.501e-03  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:  5.167e-01  1.478e-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/691635/cmap_HighResolution_389664001_389923201_4FGL_J2311.7+2604_daily_bin580.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.31e-03', job_status='DONE', photon_flux_upper_limit='5.57e-08', time_completed='2021-09-29 08:30:05.251912', job_id='691635', GAL2='1.13', fit_tolerance='1e-08', EG2='0.52', EG='0.52', time_epoch_completed='1632929405.25', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='6.24e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='580' AND source_name='4FGL J2311.7+2604' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 08:30:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0286>
Subject: Job 691635: <4FGL_J2311.7+2604_daily_bin580> in cluster <slac> Done

Job <4FGL_J2311.7+2604_daily_bin580> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 08:15:36 2021
Job was executed on host(s) <bullet0286>, 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:30:05 2021
Results reported at Wed Sep 29 08:30:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2311.7+2604_daily_bin580 347.931 26.0831 389664001 389923201 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 :                                   724.52 sec.
    Max Memory :                                 1209 MB
    Average Memory :                             295.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   868 sec.
    Turnaround time :                            869 sec.

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

