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


Performing analysis on: 4FGL_J2311.0+0205_daily_bin572
RA = 347.766, Dec = 2.0995
tmin = 387590401, tmax = 387849601
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='675893', job_status='RUN', time_executed='2021-09-29 07:29:24.280135', time_epoch_executed='1632925764.28' WHERE source_name='4FGL J2311.0+0205' and cadence='daily' and bin_id='572'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/675893

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/675893/ft1_4FGL_J2311.0+0205_daily_bin572.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/675893/ft2_4FGL_J2311.0+0205_daily_bin572.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/675893/ft1_4FGL_J2311.0+0205_daily_bin572.fits outfile=/scratch/kocevski/675893/ft1_filteredMKT_4FGL_J2311.0+0205_daily_bin572.fits ra=347.766 dec=2.0995 rad=12.0 tmin=387590401.0 tmax=387849601.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.28
user 3.08
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/675893/ft1_filtered_4FGL_J2311.0+0205_daily_bin572.fits" evtable="EVENTS" scfile=/scratch/kocevski/675893/ft2_4FGL_J2311.0+0205_daily_bin572.fits sctable="SC_DATA" outfile=/scratch/kocevski/675893/ltcube_387590401_387849601_4FGL_J2311.0+0205_daily_bin572.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/675893/ft2_4FGL_J2311.0+0205_daily_bin572.fits
.....................!
real 11.93
user 11.57
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/675893/ft1_filtered_4FGL_J2311.0+0205_daily_bin572.fits evtable="EVENTS" scfile=/scratch/kocevski/675893/ft2_4FGL_J2311.0+0205_daily_bin572.fits sctable="SC_DATA" expcube=/scratch/kocevski/675893/ltcube_387590401_387849601_4FGL_J2311.0+0205_daily_bin572.fits outfile=/scratch/kocevski/675893/expmap_387590401_387849601_4FGL_J2311.0+0205_daily_bin572.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/675893/ltcube_387590401_387849601_4FGL_J2311.0+0205_daily_bin572.fits
.....................!
real 190.09
user 184.80
sys 4.94

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/675893/ft1_filtered_4FGL_J2311.0+0205_daily_bin572.fits scfile=/scratch/kocevski/675893/ft2_4FGL_J2311.0+0205_daily_bin572.fits outfile=/scratch/kocevski/675893/cmap_387590401_387849601_4FGL_J2311.0+0205_daily_bin572.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.53
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/675893/ft1_filtered_4FGL_J2311.0+0205_daily_bin572.fits scfile=/scratch/kocevski/675893/ft2_4FGL_J2311.0+0205_daily_bin572.fits outfile=/scratch/kocevski/675893/cmap_HighResolution_387590401_387849601_4FGL_J2311.0+0205_daily_bin572.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.55
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.3295       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    30.827       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    38.107       1.0000         .10000E-03   10000.    
     6 'Prefactor '    51.570       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    10.765       1.0000         .10000E-03   10000.    
     9 'norm      '    2.0637       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.8989       1.0000         .10000E-03   10000.    
    11 'Prefactor '    28.850       1.0000         .10000E-03   10000.    
    12 'norm      '    13.655       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.3321       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    47.599       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.7893       1.0000         .10000E-03   10000.    
    20 'Prefactor '    101.20       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .60182       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .80040       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5340E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5299.897     FROM MIGRAD    STATUS=CONVERGED    106 CALLS     2192 TOTAL
                     EDM=   .85E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3293        1.0283        .12948E-07   -.65919E-04
   2  norm          .10000E-03    5.3087       -.22089E-05** at limit **
   3  Prefactor     30.822        1.9922        .17410E-06   -.62823E-03
   4  Prefactor     .10000E-03    4.9519       -.10026E-05** at limit **
   5  Prefactor     38.104        1.5679        .93101E-06   -.15666E-02
   6  Prefactor     51.550        6.8000       -.10005E-05   -.10751E-02
   7  Prefactor     .10000E-03    3.8872        .53730E-05** at limit **
   8  norm          10.764        1.9585        .28483E-06   -.51113E-04
   9  norm          2.0625        4.5078        .10044E-05    .41460E-05
  10  Prefactor     2.8959        4.5617        .19523E-05   -.36893E-03
  11  Prefactor     28.768        29.104       -.11733E-04    .48008E-02
  12  norm          13.656        7.2846        .84714E-05    .79428E-03
  13  Prefactor     .10000E-03    4.4282        .14919E-05** at limit **
  14  Prefactor     .10000E-03    64.652        .20127E-04** at limit **
  15  Prefactor     3.3442        34.133       -.30863E-04   -.81969E-05
  16  Prefactor     .10000E-03    9.5347       -.29525E-05** at limit **
  17  norm          47.474        38.449       -.11021E-04   -.45667E-02
  18  Prefactor     .10000E-03    24.417       -.40293E-05** at limit **
  19  Prefactor     1.7836        4.7057        .96019E-05    .21020E-04
  20  Prefactor     101.16        14.045       -.25286E-05    .55920E-03
  21  Prefactor     .10000E-03    7.5021        .62927E-06** at limit **
  22  Normalizat    .60199        .23923        .13673E-05   -.95771E-05
  23  Prefactor     .80028        .14797       -.10003E-05   -.19028E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.32934
  norm       = 0.0001
  Prefactor  = 30.822
  Prefactor  = 0.0001
  Prefactor  = 38.1042
  Prefactor  = 51.5501
  Prefactor  = 0.0001
  norm       = 10.7637
  norm       = 2.06254
  Prefactor  = 2.89588
  Prefactor  = 28.7678
  norm       = 13.6557
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 3.34415
  Prefactor  = 0.0001
  norm       = 47.4744
  Prefactor  = 0.0001
  Prefactor  = 1.78362
  Prefactor  = 101.159
  Prefactor  = 0.0001
  Normalizat = 0.601986
  Prefactor  = 0.800278
 **********
 **   18 **HESSE 
 **********

 FCN=   5299.897     FROM HESSE     STATUS=OK           420 CALLS     2612 TOTAL
                     EDM=   .78E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.3293        5.8987        .67175E-02   -1.5403    
   2  norm          .10000E-03    5.2868        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     30.822        32.884        .18041E-02   -1.4597    
   4  Prefactor     .10000E-03    4.9390        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     38.104        23.908        .16232E-02   -1.4473    
   6  Prefactor     51.550        43.735        .13962E-02   -1.4271    
   7  Prefactor     .10000E-03    3.8854        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          10.764        1.9738        .30528E-02   -1.5052    
   9  norm          2.0625        4.5749        .71907E-02   -1.5421    
  10  Prefactor     2.8959        14.598        .59666E-02   -1.5368    
  11  Prefactor     28.768        67.716        .18647E-02   -1.4635    
  12  norm          13.656        9.6825        .27098E-02   -1.4969    
  13  Prefactor     .10000E-03    4.3878        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    64.686        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.3442        43.573        .55434E-02   -1.5342    
  16  Prefactor     .10000E-03    9.5246        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          47.474        46.851        .14530E-02   -1.4329    
  18  Prefactor     .10000E-03    24.405        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.7836        4.9474        .78179E-02   -1.5441    
  20  Prefactor     101.16        56.100        .99913E-03   -1.3693    
  21  Prefactor     .10000E-03    7.4965        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .60199        .22360        .78584E-01   -1.0790    
  23  Prefactor     .80028        .13108        .43722E-01   -.99718    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.76896e-07
Minuit parameter uncertainties:
  1  5.90012
  2  1.09261e-05
  3  32.9032
  4  4.99972e-06
  5  23.9139
  6  43.7619
  7  8.13358e-06
  8  1.97379
  9  4.57567
  10  13.0083
  11  67.8979
  12  9.68364
  13  2.72245e-06
  14  0.00111272
  15  24.1638
  16  3.97558e-06
  17  46.8869
  18  1.63e-05
  19  4.94849
  20  56.1295
  21  2.39813e-06
  22  0.223939
  23  0.131131
Done.

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

Extracting fit parameters...

4FGL J2311.0+0205
   Spectrum: PowerLaw
368    Prefactor:  3.810e+01  2.391e+01  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:  8.003e-01  1.311e-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.020e-01  2.239e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.39
Ra Dec: 347.766 2.099
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 7.15e-08 +/- 4.49e-08
Energy Flux (Fixed Index): 3.30e-05 +/- 2.07e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5298.79247973
delta logL = 1.10439980369

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5298.74087633
delta logL = 1.15600319752

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .84759       1.0000         .10000E-03   10000.    
     2 'Index     '    4.4505       1.0000          .0000       10.000    
     3 'Normalizat'    .46988       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87109       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.

 FCN=   5298.741     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      286 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .83816        6.4389        .71570E-02    .54212E-03
   2  Index         4.4566        2.2737        .72121E-01    .16972E-03
   3  Normalizat    .46958        .72863E-01    .88189E-01    .38876E-04
   4  Prefactor     .87129        .45750E-01    .44635E-01    .89529E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.838164
  Index      = 4.45655
  Normalizat = 0.469584
  Prefactor  = 0.871294
 **********
 **   18 **HESSE 
 **********

 FCN=   5298.741     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      319 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .83816        10.346        .32016E-04   -1.5525    
   2  Index         4.4566        3.0197        .29941E-02   -.10890    
   3  Normalizat    .46958        .21924        .39072E-03   -1.1385    
   4  Prefactor     .87129        .13934        .18540E-03   -.97151    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.12415e-10
Minuit parameter uncertainties:
  1  5.89043
  2  3.24546
  3  0.219645
  4  0.139393
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/675893': 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) = 5298.7408651
delta logL = 1.15601443137

Extracting fit parameters...

4FGL J2311.0+0205
   Spectrum: PowerLaw
368    Prefactor:  8.382e-01  5.890e+00  1.000e-04  1.000e+04 ( 1.000e-13)
369        Index:  4.457e+00  3.245e+00  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:  8.713e-01  1.394e-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:  4.696e-01  2.196e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.19
Ra Dec: 347.766 2.099
Photon Index (Free Index): 4.46 +/- 3.25
Photon Flux (Free Index): 1.49e-07 +/- 7.49e-08
Energy Flux (Free Index): 2.09e-05 +/- 1.22e-05

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/675893/cmap_HighResolution_387590401_387849601_4FGL_J2311.0+0205_daily_bin572.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.15e-08', energy_flux2='2.09e-05', photon_flux_error='4.49e-08', dlogl='1.16e+00', energy_flux='3.30e-05', photon_flux2='1.49e-07', job_status='DONE', time_completed='2021-09-29 07:38:09.705996', photon_index_error2='3.25', photon_index2='4.46', ts='4.39', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', energy_flux_error2='1.22e-05', EG='0.60', time_epoch_completed='1632926289.71', return_code='0', job_id='675893', GAL2='0.87', EG2='0.47', return_code2='102', energy_flux_error='2.07e-05', photon_flux_error2='7.49e-08', ts2='7.19', photon_index='2.19' WHERE bin_id='572' AND source_name='4FGL J2311.0+0205' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 07:38:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 675893: <4FGL_J2311.0+0205_daily_bin572> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2311.0+0205_daily_bin572 347.766 2.0995 387590401 387849601 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 :                                   523.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             261.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   752 sec.
    Turnaround time :                            755 sec.

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

