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


Performing analysis on: 4FGL_J2311.0+0205_daily_bin723
RA = 347.766, Dec = 2.0995
tmin = 426729601, tmax = 426988801
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='676802', job_status='RUN', time_executed='2021-09-29 07:33:32.059321', time_epoch_executed='1632926012.06' WHERE source_name='4FGL J2311.0+0205' and cadence='daily' and bin_id='723'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/676802

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/676802/ft1_4FGL_J2311.0+0205_daily_bin723.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/676802/ft2_4FGL_J2311.0+0205_daily_bin723.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/676802/ft1_4FGL_J2311.0+0205_daily_bin723.fits outfile=/scratch/kocevski/676802/ft1_filteredMKT_4FGL_J2311.0+0205_daily_bin723.fits ra=347.766 dec=2.0995 rad=12.0 tmin=426729601.0 tmax=426988801.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 5.54
user 5.25
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/676802/ft1_filtered_4FGL_J2311.0+0205_daily_bin723.fits" evtable="EVENTS" scfile=/scratch/kocevski/676802/ft2_4FGL_J2311.0+0205_daily_bin723.fits sctable="SC_DATA" outfile=/scratch/kocevski/676802/ltcube_426729601_426988801_4FGL_J2311.0+0205_daily_bin723.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/676802/ft2_4FGL_J2311.0+0205_daily_bin723.fits
.....................!
real 15.12
user 14.66
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/676802/ft1_filtered_4FGL_J2311.0+0205_daily_bin723.fits evtable="EVENTS" scfile=/scratch/kocevski/676802/ft2_4FGL_J2311.0+0205_daily_bin723.fits sctable="SC_DATA" expcube=/scratch/kocevski/676802/ltcube_426729601_426988801_4FGL_J2311.0+0205_daily_bin723.fits outfile=/scratch/kocevski/676802/expmap_426729601_426988801_4FGL_J2311.0+0205_daily_bin723.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/676802/ltcube_426729601_426988801_4FGL_J2311.0+0205_daily_bin723.fits
.....................!
real 190.56
user 185.67
sys 4.45

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/676802/ft1_filtered_4FGL_J2311.0+0205_daily_bin723.fits scfile=/scratch/kocevski/676802/ft2_4FGL_J2311.0+0205_daily_bin723.fits outfile=/scratch/kocevski/676802/cmap_426729601_426988801_4FGL_J2311.0+0205_daily_bin723.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/676802/ft1_filtered_4FGL_J2311.0+0205_daily_bin723.fits scfile=/scratch/kocevski/676802/ft2_4FGL_J2311.0+0205_daily_bin723.fits outfile=/scratch/kocevski/676802/cmap_HighResolution_426729601_426988801_4FGL_J2311.0+0205_daily_bin723.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 2536.06092659

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10049E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    57.818       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.3049       1.0000         .10000E-03   10000.    
     5 'Prefactor '    63.944       1.0000         .10000E-03   10000.    
     6 'Prefactor '    82.896       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11792E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.3450       1.0000         .10000E-03   10000.    
     9 'norm      '    .10700E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    54.587       1.0000         .10000E-03   10000.    
    12 'norm      '    11.366       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.0264       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .29884       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.0269       1.0000         .10000E-03   10000.    
    16 'Prefactor '    21.585       1.0000         .10000E-03   10000.    
    17 'norm      '    .23450E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .34158       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    137.99       1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.0678       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .60173E-01   1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0321       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=   2536.054     FROM MIGRAD    STATUS=CONVERGED    996 CALLS     2779 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.7155        .12733E-02** at limit **
   2  norm          .10000E-03    7.5294        .13486E-02** at limit **
   3  Prefactor     57.588        48.606        .52760E-04   -.29090E-05
   4  Prefactor     7.1918        20.369        .14840E-03   -.26430E-05
   5  Prefactor     60.034        45.172        .50184E-04   -.89483E-05
   6  Prefactor     82.115        88.053        .22059E-03   -.10900E-04
   7  Prefactor     .10000E-03    21.045        .18142E-02** at limit **
   8  norm          1.3360        1.8755        .74033E-04   -.15617E-03
   9  norm          .10000E-03    27.984        .36285E-03** at limit **
  10  Prefactor     .10000E-03    5.3624        .11389E-02** at limit **
  11  Prefactor     64.726        127.88        .27145E-03    .11308E-05
  12  norm          11.518        16.062        .59414E-03    .14724E-04
  13  Prefactor     4.8604        20.026        .17936E-03    .53877E-06
  14  Prefactor     .10000E-03    283.77        .20840E-02** at limit **
  15  Prefactor     4.9550        18.710        .89676E-03    .31719E-04
  16  Prefactor     21.214        32.653        .86212E-04   -.42858E-05
  17  norm          .10000E-03    26.717        .20081E-02** at limit **
  18  Prefactor     .10000E-03    833.41        .21212E-02** at limit **
  19  Prefactor     .10000E-03    11.470        .23661E-02** at limit **
  20  Prefactor     135.40        90.488        .17145E-03    .12267E-04
  21  Prefactor     8.7549        56.136        .14116E-03   -.20135E-05
  22  Normalizat    .65080E-01    .83488        .85942E-02    .21511E-03
  23  Prefactor     1.0304        .24071        .15952E-03   -.76259E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 57.5885
  Prefactor  = 7.19176
  Prefactor  = 60.0336
  Prefactor  = 82.115
  Prefactor  = 0.0001
  norm       = 1.33602
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 64.7264
  norm       = 11.518
  Prefactor  = 4.8604
  Prefactor  = 0.0001
  Prefactor  = 4.95497
  Prefactor  = 21.2136
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 135.399
  Prefactor  = 8.75487
  Normalizat = 0.0650796
  Prefactor  = 1.03042
 **********
 **   18 **HESSE 
 **********

 FCN=   2536.054     FROM HESSE     STATUS=OK           352 CALLS     3131 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.7158        .25466E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    7.5296        .26972E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     57.588        48.587        .10552E-04   -1.4189    
   4  Prefactor     7.1918        20.313        .59361E-05   -1.5172    
   5  Prefactor     60.034        44.952        .20074E-05   -1.4157    
   6  Prefactor     82.115        87.820        .88235E-05   -1.3893    
   7  Prefactor     .10000E-03    21.046        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.3360        1.8581        .29613E-05   -1.5477    
   9  norm          .10000E-03    27.985        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.3624        .22777E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     64.726        127.86        .10858E-04   -1.4097    
  12  norm          11.518        16.045        .23765E-04   -1.5029    
  13  Prefactor     4.8604        19.395        .71744E-05   -1.5267    
  14  Prefactor     .10000E-03    283.77        .41680E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.9550        18.585        .35870E-04   -1.5263    
  16  Prefactor     21.214        32.652        .34485E-05   -1.4786    
  17  norm          .10000E-03    26.717        .40161E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    834.15        .42424E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    11.474        .47322E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     135.40        90.173        .68579E-05   -1.3375    
  21  Prefactor     8.7549        55.065        .56462E-05   -1.5116    
  22  Normalizat    .65080E-01    .66185        .17188E-02   -1.4222    
  23  Prefactor     1.0304        .21681        .63806E-05   -.91722    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34969e-10
Minuit parameter uncertainties:
  1  9.40489e-07
  2  9.49516e-07
  3  48.6202
  4  20.3321
  5  44.9775
  6  87.9588
  7  6.81685e-05
  8  1.8582
  9  3.09214e-05
  10  1.79051e-06
  11  128.408
  12  16.0514
  13  19.4198
  14  0.000102823
  15  18.6067
  16  32.6797
  17  2.43216e-05
  18  0.0022633
  19  0.00024496
  20  90.2651
  21  43.9723
  22  0.387332
  23  0.21699
Done.

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

Extracting fit parameters...

4FGL J2311.0+0205
   Spectrum: PowerLaw
368    Prefactor:  6.003e+01  4.498e+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:  1.030e+00  2.170e-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.508e-02  3.873e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.97
Ra Dec: 347.766 2.099
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 1.13e-07 +/- 8.44e-08
Energy Flux (Fixed Index): 5.20e-05 +/- 3.89e-05

TS (Fixed Index): 2.97
Ra Dec: 347.766 2.099
Photon Flux Upper Limit: 2.88e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.19e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/676802/likelihoodResults_426729601_426988801_4FGL_J2311.0+0205_daily_bin723.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): 0
logL (Free Index) = 2535.38673241
delta logL = 0.667268801159

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2535.37685488
delta logL = 0.677146334408

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.738       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1864       1.0000          .0000       10.000    
     3 'Normalizat'    .10003E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0598       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=   2535.377     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      322 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.734        321.30        .10806E-03    .19547E-03
   2  Index         3.1867        6.5560        .30885E-02    .40242E-04
   3  Normalizat    .10000E-01    1.7614        .13480E-01** at limit **
   4  Prefactor     1.0597        .11561        .15737E-03   -.36086E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.7338
  Index      = 3.18672
  Normalizat = 0.01
  Prefactor  = 1.05975
 **********
 **   18 **HESSE 
 **********

 FCN=   2535.377     FROM HESSE     STATUS=OK            25 CALLS      347 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.734        36.964        .43226E-05   -1.4967    
   2  Index         3.1867        1.3071        .12354E-03   -.37112    
   3  Normalizat    .10000E-01    1.7754        .53921E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.0597        .10120        .62946E-05   -.90764    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41854e-10
Minuit parameter uncertainties:
  1  37.0256
  2  1.32488
  3  5.02807e-06
  4  0.101219
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/676802': 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): 0
logL (Free Index) = 2535.3768537
delta logL = 0.677147509136

Extracting fit parameters...

4FGL J2311.0+0205
   Spectrum: PowerLaw
368    Prefactor:  1.373e+01  3.703e+01  1.000e-04  1.000e+04 ( 1.000e-13)
369        Index:  3.187e+00  1.325e+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:  1.060e+00  1.012e-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.000e-02  5.028e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.46
Ra Dec: 347.766 2.099
Photon Index (Free Index): 3.19 +/- 1.32
Photon Flux (Free Index): 1.66e-07 +/- 1.06e-07
Energy Flux (Free Index): 3.06e-05 +/- 2.39e-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/676802/cmap_HighResolution_426729601_426988801_4FGL_J2311.0+0205_daily_bin723.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.19e-02', comment='SUCCESS', photon_flux='1.13e-07', energy_flux2='3.06e-05', photon_flux_error='8.44e-08', dlogl='6.77e-01', energy_flux='5.20e-05', photon_flux2='1.66e-07', job_status='DONE', time_completed='2021-09-29 07:41:52.099802', photon_index_error2='1.32', photon_index2='3.19', ts='2.97', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='2.88e-07', energy_flux_error2='2.39e-05', EG='0.07', time_epoch_completed='1632926512.1', return_code='0', job_id='676802', GAL2='1.06', EG2='0.01', return_code2='0', energy_flux_error='3.89e-05', photon_flux_error2='1.06e-07', ts2='4.46', photon_index='2.19' WHERE bin_id='723' AND source_name='4FGL J2311.0+0205' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 07:41:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 676802: <4FGL_J2311.0+0205_daily_bin723> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2311.0+0205_daily_bin723 347.766 2.0995 426729601 426988801 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 :                                   464.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             238.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   681 sec.
    Turnaround time :                            683 sec.

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

