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


Performing analysis on: 4FGL_J2311.0+0205_daily_bin937
RA = 347.766, Dec = 2.0995
tmin = 482198401, tmax = 482457601
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='677124', job_status='RUN', time_executed='2021-09-29 07:34:14.750360', time_epoch_executed='1632926054.75' WHERE source_name='4FGL J2311.0+0205' and cadence='daily' and bin_id='937'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/677124

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/677124/ft1_4FGL_J2311.0+0205_daily_bin937.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/677124/ft2_4FGL_J2311.0+0205_daily_bin937.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/677124/ft1_4FGL_J2311.0+0205_daily_bin937.fits outfile=/scratch/kocevski/677124/ft1_filteredMKT_4FGL_J2311.0+0205_daily_bin937.fits ra=347.766 dec=2.0995 rad=12.0 tmin=482198401.0 tmax=482457601.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.64
user 3.38
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/677124/ft2_4FGL_J2311.0+0205_daily_bin937.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/677124/ft2_4FGL_J2311.0+0205_daily_bin937.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/677124/ft1_filteredMKT_4FGL_J2311.0+0205_daily_bin937.fits evtable="EVENTS" outfile="/scratch/kocevski/677124/ft1_filtered_4FGL_J2311.0+0205_daily_bin937.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.53
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/677124/ft1_filtered_4FGL_J2311.0+0205_daily_bin937.fits" evtable="EVENTS" scfile=/scratch/kocevski/677124/ft2_4FGL_J2311.0+0205_daily_bin937.fits sctable="SC_DATA" outfile=/scratch/kocevski/677124/ltcube_482198401_482457601_4FGL_J2311.0+0205_daily_bin937.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/677124/ft2_4FGL_J2311.0+0205_daily_bin937.fits
.....................!
real 11.85
user 11.49
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/677124/ft1_filtered_4FGL_J2311.0+0205_daily_bin937.fits evtable="EVENTS" scfile=/scratch/kocevski/677124/ft2_4FGL_J2311.0+0205_daily_bin937.fits sctable="SC_DATA" expcube=/scratch/kocevski/677124/ltcube_482198401_482457601_4FGL_J2311.0+0205_daily_bin937.fits outfile=/scratch/kocevski/677124/expmap_482198401_482457601_4FGL_J2311.0+0205_daily_bin937.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/677124/ltcube_482198401_482457601_4FGL_J2311.0+0205_daily_bin937.fits
.....................!
real 191.67
user 185.53
sys 5.01

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.0+0205 @ 347.766 2.0995

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/677124/ft1_filtered_4FGL_J2311.0+0205_daily_bin937.fits scfile=/scratch/kocevski/677124/ft2_4FGL_J2311.0+0205_daily_bin937.fits outfile=/scratch/kocevski/677124/cmap_482198401_482457601_4FGL_J2311.0+0205_daily_bin937.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.766 yref=2.0995 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.59
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/677124/ft1_filtered_4FGL_J2311.0+0205_daily_bin937.fits scfile=/scratch/kocevski/677124/ft2_4FGL_J2311.0+0205_daily_bin937.fits outfile=/scratch/kocevski/677124/cmap_HighResolution_482198401_482457601_4FGL_J2311.0+0205_daily_bin937.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.766 yref=2.0995 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.57
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/677124/ft1_filtered_4FGL_J2311.0+0205_daily_bin937.fits evtable="EVENTS" scfile=/scratch/kocevski/677124/ft2_4FGL_J2311.0+0205_daily_bin937.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/677124/Model_4FGL_J2311.0+0205_daily_bin937.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/677124/ft1_filtered_4FGL_J2311.0+0205_daily_bin937.fits.....................!
real 63.38
user 61.93
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/677124/ft1_filtered_4FGL_J2311.0+0205_daily_bin937.fits', '/scratch/kocevski/677124/ft2_4FGL_J2311.0+0205_daily_bin937.fits', expMap='/scratch/kocevski/677124/expmap_482198401_482457601_4FGL_J2311.0+0205_daily_bin937.fits', expCube='/scratch/kocevski/677124/ltcube_482198401_482457601_4FGL_J2311.0+0205_daily_bin937.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/677124/Model_4FGL_J2311.0+0205_daily_bin937.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2311.0+0205'

4FGL J2311.0+0205
   Spectrum: PowerLaw
368    Prefactor:  6.504e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
369        Index:  2.186e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
370        Scale:  1.185e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/677124/ft1_filtered_4FGL_J2311.0+0205_daily_bin937.fits
Spacecraft file(s): /scratch/kocevski/677124/ft2_4FGL_J2311.0+0205_daily_bin937.fits
Exposure map: /scratch/kocevski/677124/expmap_482198401_482457601_4FGL_J2311.0+0205_daily_bin937.fits
Exposure cube: /scratch/kocevski/677124/ltcube_482198401_482457601_4FGL_J2311.0+0205_daily_bin937.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/677124/Model_4FGL_J2311.0+0205_daily_bin937.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) = 5849.03392641

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.458       1.0000         .10000E-03   10000.    
     2 'norm      '    .10091E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.8888       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .20284E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10255E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10324E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.7777       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.5773       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.6593       1.0000         .10000E-03   10000.    
    14 'Prefactor '    33.662       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.5711       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10179E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .20533E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.9231       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10665E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    33.139       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.3392       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .69609       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5340E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5849.018     FROM MIGRAD    STATUS=CONVERGED    517 CALLS     2544 TOTAL
                     EDM=   .40E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.468        9.3949        .71858E-07    .50591E-06
   2  norm          .10000E-03    6.2610       -.56050E-08** at limit **
   3  Prefactor     8.8806        18.899        .38969E-07   -.92024E-06
   4  Prefactor     .10000E-03    8.3842       -.19383E-06** at limit **
   5  Prefactor     .10000E-03    7.1882        .29209E-07** at limit **
   6  Prefactor     .10000E-03    16.362        .25552E-07** at limit **
   7  Prefactor     .10000E-03    2.3286       -.10776E-07** at limit **
   8  norm          .10000E-03    .51992        .11708E-06** at limit **
   9  norm          3.7779        3.8093        .27072E-07   -.35008E-04
  10  Prefactor     .10000E-03    8.0206        .31199E-06** at limit **
  11  Prefactor     .10000E-03    26.048       -.18214E-06** at limit **
  12  norm          3.5757        9.6132        .33291E-05   -.55487E-04
  13  Prefactor     7.6588        9.5557       -.30580E-07   -.14183E-04
  14  Prefactor     33.732        135.81       -.14934E-04   -.18711E-05
  15  Prefactor     4.5708        18.083        .51703E-05    .60546E-04
  16  Prefactor     .10000E-03    10.684        .76752E-07** at limit **
  17  norm          .10000E-03    65.258       -.29692E-05** at limit **
  18  Prefactor     .10000E-03    92.241        .19828E-05** at limit **
  19  Prefactor     5.9172        8.2928       -.44148E-06    .19588E-03
  20  Prefactor     .10000E-03    47.576        .14743E-05** at limit **
  21  Prefactor     33.143        24.037       -.58628E-09   -.14529E-04
  22  Normalizat    1.3393        .22456       -.15382E-05   -.29335E-06
  23  Prefactor     .69600        .13238        .47885E-06   -.83755E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.4675
  norm       = 0.0001
  Prefactor  = 8.88056
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.77793
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.57574
  Prefactor  = 7.65877
  Prefactor  = 33.7323
  Prefactor  = 4.57082
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.91718
  Prefactor  = 0.0001
  Prefactor  = 33.1433
  Normalizat = 1.33931
  Prefactor  = 0.696004
 **********
 **   18 **HESSE 
 **********

 FCN=   5849.018     FROM HESSE     STATUS=OK           372 CALLS     2916 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.468        9.3958        .12390E-03   -1.5061    
   2  norm          .10000E-03    6.2898        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.8806        18.894        .13444E-03   -1.5112    
   4  Prefactor     .10000E-03    86.048        .42633E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.2080        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    16.381        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.3314        .11397E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.0441        .10605E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.7779        3.8024        .14584E-03   -1.5319    
  10  Prefactor     .10000E-03    8.1161        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    26.082        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.5757        9.5206        .10683E-02   -1.5330    
  13  Prefactor     7.6588        9.4575        .72450E-03   -1.5154    
  14  Prefactor     33.732        135.82        .69067E-04   -1.4546    
  15  Prefactor     4.5708        17.807        .94139E-03   -1.5280    
  16  Prefactor     .10000E-03    10.705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    65.824        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    92.765        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.9172        8.1621        .16500E-03   -1.5221    
  20  Prefactor     .10000E-03    47.776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     33.143        24.078        .69608E-04   -1.4556    
  22  Normalizat    1.3393        .26401        .26974E-03   -.82401    
  23  Prefactor     .69600        .15600        .22347E-03   -1.0368    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19381e-10
Minuit parameter uncertainties:
  1  9.39711
  2  2.92513e-07
  3  18.9064
  4  0.000495712
  5  4.72092e-07
  6  5.1493e-07
  7  1.57624e-07
  8  3.13207e-05
  9  3.80261
  10  5.21783e-06
  11  4.57763e-06
  12  9.52465
  13  9.45939
  14  135.913
  15  17.8281
  16  6.78943e-07
  17  3.62536e-05
  18  3.64811e-05
  19  8.16363
  20  4.57484e-05
  21  24.0853
  22  0.264281
  23  0.156102
Done.

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

Extracting fit parameters...

4FGL J2311.0+0205
   Spectrum: PowerLaw
368    Prefactor:  1.000e-04  4.721e-07  1.000e-04  1.000e+04 ( 1.000e-13)
369        Index:  2.186e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
370        Scale:  1.185e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
531    Prefactor:  6.960e-01  1.561e-01  0.000e+00  1.000e+01 ( 1.000e+00)
532        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
533        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
530   Normalization:  1.339e+00  2.643e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 347.766 2.099
Photon Flux Upper Limit: 5.60e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.26e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/677124/likelihoodResults_482198401_482457601_4FGL_J2311.0+0205_daily_bin937.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) = 5849.01880691
delta logL = -0.000659720881231

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5849.01814717
delta logL = 1.86328179552e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1748       1.0000          .0000       10.000    
     3 'Normalizat'    1.3393       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69601       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5340E+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=   5849.018     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      240 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10091E-03    133.81        .18142E-02** at limit **
   2  Index         2.1119        8.1758        .50000        .95669E-05
   3  Normalizat    1.3393        .23712E-01    .26974E-03    .79657E-05
   4  Prefactor     .69601        .14736E-01    .22347E-03    .99202E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100912
  Index      = 2.11187
  Normalizat = 1.33931
  Prefactor  = 0.696005
 **********
 **   18 **HESSE 
 **********

 FCN=   5849.018     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      269 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10091E-03    553.99        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1119        8.1557        .50000       -.61582    
   3  Normalizat    1.3393        .52412E-01    .10790E-04   -.82401    
   4  Prefactor     .69601        .32568E-01    .89389E-05   -1.0368    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.19587e-08
Minuit parameter uncertainties:
  1  0.0453843
  2  1302.3
  3  0.0524145
  4  0.0325692
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/677124': 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) = 5849.01814705
delta logL = 1.43887518789e-07

Extracting fit parameters...

4FGL J2311.0+0205
   Spectrum: PowerLaw
368    Prefactor:  1.009e-04  4.538e-02  1.000e-04  1.000e+04 ( 1.000e-13)
369        Index:  2.112e+00  1.302e+03  0.000e+00  1.000e+01 (-1.000e+00)
370        Scale:  1.185e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
531    Prefactor:  6.960e-01  3.257e-02  0.000e+00  1.000e+01 ( 1.000e+00)
532        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
533        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
530   Normalization:  1.339e+00  5.241e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 347.766 2.099

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/677124/cmap_HighResolution_482198401_482457601_4FGL_J2311.0+0205_daily_bin937.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.26e-03', job_status='DONE', photon_flux_upper_limit='5.60e-08', time_completed='2021-09-29 07:44:45.751769', job_id='677124', GAL2='0.70', fit_tolerance='1e-08', EG2='1.34', EG='1.34', time_epoch_completed='1632926685.75', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.70', dlogl='1.44e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='937' AND source_name='4FGL J2311.0+0205' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 07:44:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0044>
Subject: Job 677124: <4FGL_J2311.0+0205_daily_bin937> in cluster <slac> Done

Job <4FGL_J2311.0+0205_daily_bin937> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 07:30:57 2021
Job was executed on host(s) <bullet0044>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 07:30:59 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 07:30:59 2021
Terminated at Wed Sep 29 07:44:46 2021
Results reported at Wed Sep 29 07:44:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2311.0+0205_daily_bin937 347.766 2.0995 482198401 482457601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2311.0+0205 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   626.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             240.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   827 sec.
    Turnaround time :                            829 sec.

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

