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


Performing analysis on: 4FGL_J2311.0+0205_daily_bin520
RA = 347.766, Dec = 2.0995
tmin = 374112001, tmax = 374371201
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='675817', job_status='RUN', time_executed='2021-09-29 07:28:59.121678', time_epoch_executed='1632925739.12' WHERE source_name='4FGL J2311.0+0205' and cadence='daily' and bin_id='520'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/675817

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/675817/ft1_4FGL_J2311.0+0205_daily_bin520.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/675817/ft2_4FGL_J2311.0+0205_daily_bin520.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/675817/ft1_4FGL_J2311.0+0205_daily_bin520.fits outfile=/scratch/kocevski/675817/ft1_filteredMKT_4FGL_J2311.0+0205_daily_bin520.fits ra=347.766 dec=2.0995 rad=12.0 tmin=374112001.0 tmax=374371201.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.43
user 3.22
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/675817/ft1_filtered_4FGL_J2311.0+0205_daily_bin520.fits" evtable="EVENTS" scfile=/scratch/kocevski/675817/ft2_4FGL_J2311.0+0205_daily_bin520.fits sctable="SC_DATA" outfile=/scratch/kocevski/675817/ltcube_374112001_374371201_4FGL_J2311.0+0205_daily_bin520.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/675817/ft2_4FGL_J2311.0+0205_daily_bin520.fits
.....................!
real 12.20
user 11.83
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/675817/ft1_filtered_4FGL_J2311.0+0205_daily_bin520.fits evtable="EVENTS" scfile=/scratch/kocevski/675817/ft2_4FGL_J2311.0+0205_daily_bin520.fits sctable="SC_DATA" expcube=/scratch/kocevski/675817/ltcube_374112001_374371201_4FGL_J2311.0+0205_daily_bin520.fits outfile=/scratch/kocevski/675817/expmap_374112001_374371201_4FGL_J2311.0+0205_daily_bin520.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/675817/ltcube_374112001_374371201_4FGL_J2311.0+0205_daily_bin520.fits
.....................!
real 190.43
user 184.74
sys 5.32

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/675817/ft1_filtered_4FGL_J2311.0+0205_daily_bin520.fits scfile=/scratch/kocevski/675817/ft2_4FGL_J2311.0+0205_daily_bin520.fits outfile=/scratch/kocevski/675817/cmap_374112001_374371201_4FGL_J2311.0+0205_daily_bin520.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.60
user 0.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/675817/ft1_filtered_4FGL_J2311.0+0205_daily_bin520.fits scfile=/scratch/kocevski/675817/ft2_4FGL_J2311.0+0205_daily_bin520.fits outfile=/scratch/kocevski/675817/cmap_HighResolution_374112001_374371201_4FGL_J2311.0+0205_daily_bin520.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/675817/ft1_filtered_4FGL_J2311.0+0205_daily_bin520.fits evtable="EVENTS" scfile=/scratch/kocevski/675817/ft2_4FGL_J2311.0+0205_daily_bin520.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/675817/Model_4FGL_J2311.0+0205_daily_bin520.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/675817/ft1_filtered_4FGL_J2311.0+0205_daily_bin520.fits.....................!
real 72.32
user 70.30
sys 1.70

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/675817/ft1_filtered_4FGL_J2311.0+0205_daily_bin520.fits', '/scratch/kocevski/675817/ft2_4FGL_J2311.0+0205_daily_bin520.fits', expMap='/scratch/kocevski/675817/expmap_374112001_374371201_4FGL_J2311.0+0205_daily_bin520.fits', expCube='/scratch/kocevski/675817/ltcube_374112001_374371201_4FGL_J2311.0+0205_daily_bin520.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/675817/Model_4FGL_J2311.0+0205_daily_bin520.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/675817/ft1_filtered_4FGL_J2311.0+0205_daily_bin520.fits
Spacecraft file(s): /scratch/kocevski/675817/ft2_4FGL_J2311.0+0205_daily_bin520.fits
Exposure map: /scratch/kocevski/675817/expmap_374112001_374371201_4FGL_J2311.0+0205_daily_bin520.fits
Exposure cube: /scratch/kocevski/675817/ltcube_374112001_374371201_4FGL_J2311.0+0205_daily_bin520.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/675817/Model_4FGL_J2311.0+0205_daily_bin520.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) = 7396.93551923

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10606E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10347E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    19.240       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.9373       1.0000         .10000E-03   10000.    
     8 'norm      '    4.4636       1.0000         .10000E-03   10000.    
     9 'norm      '    .15267E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.4725       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.2278       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .13168E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.6281       1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.7140       1.0000         .10000E-03   10000.    
    17 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.7538       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.1749       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .16707E-02   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .60220       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0842       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=   7396.828     FROM MIGRAD    STATUS=CONVERGED    525 CALLS     2206 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.5358        .86472E-07** at limit **
   2  norm          .10000E-03    20.201        .29012E-06** at limit **
   3  Prefactor     .10000E-03    30.919       -.44147E-07** at limit **
   4  Prefactor     .10000E-03    7.3841        .40050E-06** at limit **
   5  Prefactor     .10000E-03    6.6792        .71521E-07** at limit **
   6  Prefactor     19.260        61.427        .33557E-05   -.83930E-04
   7  Prefactor     3.9501        11.436       -.16402E-05   -.31824E-03
   8  norm          4.4637        1.1791        .17617E-07   -.96692E-03
   9  norm          .10000E-03    3.5106        .69827E-06** at limit **
  10  Prefactor     1.4711        6.0033        .17287E-05   -.14585E-03
  11  Prefactor     .10000E-03    26.914        .12859E-05** at limit **
  12  norm          .10000E-03    4.7832        .92616E-07** at limit **
  13  Prefactor     8.2276        7.1614        .14750E-06   -.22166E-04
  14  Prefactor     .10000E-03    282.60        .18168E-05** at limit **
  15  Prefactor     4.6287        8.7318       -.11309E-06    .36775E-05
  16  Prefactor     8.7127        18.925       -.28373E-06    .32363E-05
  17  norm          .10000E-03    10.183        .13259E-06** at limit **
  18  Prefactor     .10000E-03    14.418        .18334E-06** at limit **
  19  Prefactor     2.7537        2.6105       -.32664E-08    .98547E-05
  20  Prefactor     1.1591        135.43       -.25013E-05    .71527E-05
  21  Prefactor     .10000E-03    14.925        .22060E-05** at limit **
  22  Normalizat    .60225        .18350       -.59892E-06   -.58546E-04
  23  Prefactor     1.0843        .12109       -.85529E-06    .96920E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.2602
  Prefactor  = 3.95006
  norm       = 4.46366
  norm       = 0.000100001
  Prefactor  = 1.47109
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.22763
  Prefactor  = 0.0001
  Prefactor  = 4.62867
  Prefactor  = 8.71274
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.75367
  Prefactor  = 1.15911
  Prefactor  = 0.000100003
  Normalizat = 0.602247
  Prefactor  = 1.08425
 **********
 **   18 **HESSE 
 **********

 FCN=   7396.828     FROM HESSE     STATUS=OK           370 CALLS     2576 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.5523        .17891E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    20.913        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    31.110        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.4453        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.7006        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     19.260        60.284        .91311E-04   -1.4830    
   7  Prefactor     3.9501        11.135        .20330E-03   -1.5310    
   8  norm          4.4637        1.1683        .44669E-04   -1.5285    
   9  norm          .10000E-03    6.5371        .28703E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.4711        7.3381        .17702E-02   -1.5465    
  11  Prefactor     .10000E-03    27.100        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    4.8132        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     8.2276        7.1451        .13977E-03   -1.5134    
  14  Prefactor     .10000E-03    283.09        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.6287        8.6422        .18709E-03   -1.5278    
  16  Prefactor     8.7127        18.978        .13579E-03   -1.5118    
  17  norm          .10000E-03    10.225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    14.428        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.7537        2.5993        .12404E-03   -1.5376    
  20  Prefactor     1.1591        135.58        .42266E-03   -1.5493    
  21  Prefactor     .10000E-03    39.353        .49122E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .60225        .20581        .35290E-03   -1.0789    
  23  Prefactor     1.0843        .13511        .18160E-03   -.89972    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.25833e-10
Minuit parameter uncertainties:
  1  2.34206e-06
  2  6.48178e-05
  3  1.28622e-05
  4  4.78496e-06
  5  4.13666e-06
  6  60.4751
  7  11.1406
  8  1.16833
  9  0.000149149
  10  6.57222
  11  7.63051e-05
  12  5.89384e-06
  13  7.14583
  14  0.000240545
  15  8.64457
  16  18.9909
  17  1.0953e-05
  18  6.15371e-06
  19  2.59939
  20  25.1297
  21  0.000681617
  22  0.206073
  23  0.135152
Done.

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

Extracting fit parameters...

4FGL J2311.0+0205
   Spectrum: PowerLaw
368    Prefactor:  1.000e-04  4.137e-06  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:  1.084e+00  1.352e-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:  6.022e-01  2.061e-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.21e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.96e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/675817/likelihoodResults_374112001_374371201_4FGL_J2311.0+0205_daily_bin520.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) = 7396.82832269
delta logL = -0.000710812196303

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7396.82761188
delta logL = -2.18642526306e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1812       1.0000          .0000       10.000    
     3 'Normalizat'    .60225       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0843       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=   7396.828     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      241 TOTAL
                     EDM=   .89E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10016E-03    109.05        .18142E-02** at limit **
   2  Index         2.1564        6.3306        .50000        .49102E-05
   3  Normalizat    .60225        .18106E-01    .35290E-03   -.12918E-04
   4  Prefactor     1.0842        .12310E-01    .18160E-03   -.20722E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010016
  Index      = 2.15641
  Normalizat = 0.602247
  Prefactor  = 1.08425
 **********
 **   18 **HESSE 
 **********

 FCN=   7396.828     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      270 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10016E-03    474.15        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1564        7.9695        .50000       -.60495    
   3  Normalizat    .60225        .40773E-01    .14116E-04   -1.0789    
   4  Prefactor     1.0842        .27716E-01    .72640E-05   -.89972    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.36834e-09
Minuit parameter uncertainties:
  1  0.017539
  2  1105.91
  3  0.0407749
  4  0.0277166
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/675817': 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) = 7396.82761185
delta logL = 2.80988388113e-08

Extracting fit parameters...

4FGL J2311.0+0205
   Spectrum: PowerLaw
368    Prefactor:  1.002e-04  1.754e-02  1.000e-04  1.000e+04 ( 1.000e-13)
369        Index:  2.156e+00  1.106e+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:  1.084e+00  2.772e-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:  6.022e-01  4.077e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/675817/cmap_HighResolution_374112001_374371201_4FGL_J2311.0+0205_daily_bin520.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.96e-03', job_status='DONE', photon_flux_upper_limit='5.21e-08', time_completed='2021-09-29 07:40:10.797191', job_id='675817', GAL2='1.08', fit_tolerance='1e-08', EG2='0.60', EG='0.60', time_epoch_completed='1632926410.8', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='2.81e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='520' AND source_name='4FGL J2311.0+0205' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 07:40:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0051>
Subject: Job 675817: <4FGL_J2311.0+0205_daily_bin520> in cluster <slac> Done

Job <4FGL_J2311.0+0205_daily_bin520> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 07:25:28 2021
Job was executed on host(s) <bullet0051>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 07:25:31 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:25:31 2021
Terminated at Wed Sep 29 07:40:11 2021
Results reported at Wed Sep 29 07:40:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2311.0+0205_daily_bin520 347.766 2.0995 374112001 374371201 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 :                                   669.16 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             268.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   880 sec.
    Turnaround time :                            883 sec.

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

