/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 176 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 = 7432
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2311.0+0205_daily_bin243
RA = 347.766, Dec = 2.0995
tmin = 302313601, tmax = 302572801
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='674345', job_status='RUN', time_executed='2021-09-29 07:23:23.314568', time_epoch_executed='1632925403.31' WHERE source_name='4FGL J2311.0+0205' and cadence='daily' and bin_id='243'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/674345

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/674345/ft1_4FGL_J2311.0+0205_daily_bin243.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/674345/ft2_4FGL_J2311.0+0205_daily_bin243.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/674345/ft1_4FGL_J2311.0+0205_daily_bin243.fits outfile=/scratch/kocevski/674345/ft1_filteredMKT_4FGL_J2311.0+0205_daily_bin243.fits ra=347.766 dec=2.0995 rad=12.0 tmin=302313601.0 tmax=302572801.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.50
user 3.30
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/674345/ft2_4FGL_J2311.0+0205_daily_bin243.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/674345/ft1_filteredMKT_4FGL_J2311.0+0205_daily_bin243.fits evtable="EVENTS" outfile="/scratch/kocevski/674345/ft1_filtered_4FGL_J2311.0+0205_daily_bin243.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/674345/ft1_filtered_4FGL_J2311.0+0205_daily_bin243.fits evtable="EVENTS" scfile=/scratch/kocevski/674345/ft2_4FGL_J2311.0+0205_daily_bin243.fits sctable="SC_DATA" expcube=/scratch/kocevski/674345/ltcube_302313601_302572801_4FGL_J2311.0+0205_daily_bin243.fits outfile=/scratch/kocevski/674345/expmap_302313601_302572801_4FGL_J2311.0+0205_daily_bin243.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/674345/ltcube_302313601_302572801_4FGL_J2311.0+0205_daily_bin243.fits
.....................!
real 191.50
user 185.82
sys 5.35

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/674345/ft1_filtered_4FGL_J2311.0+0205_daily_bin243.fits scfile=/scratch/kocevski/674345/ft2_4FGL_J2311.0+0205_daily_bin243.fits outfile=/scratch/kocevski/674345/cmap_302313601_302572801_4FGL_J2311.0+0205_daily_bin243.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/674345/ft1_filtered_4FGL_J2311.0+0205_daily_bin243.fits scfile=/scratch/kocevski/674345/ft2_4FGL_J2311.0+0205_daily_bin243.fits outfile=/scratch/kocevski/674345/cmap_HighResolution_302313601_302572801_4FGL_J2311.0+0205_daily_bin243.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.53
user 0.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.163       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.7406       1.0000         .10000E-03   10000.    
     8 'norm      '    2.5318       1.0000         .10000E-03   10000.    
     9 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.9456       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11637E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    15.969       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .13672E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.8809       1.0000         .10000E-03   10000.    
    16 'Prefactor '    21.068       1.0000         .10000E-03   10000.    
    17 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    35.712       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .69005       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .97079       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=   5291.537     FROM MIGRAD    STATUS=CONVERGED    504 CALLS     2503 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.1773       -.33732E-07** at limit **
   2  norm          .10000E-03    4.0404        .59920E-08** at limit **
   3  Prefactor     .10000E-03    22.291       -.17729E-05** at limit **
   4  Prefactor     .10000E-03    9.0317       -.17357E-06** at limit **
   5  Prefactor     15.144        23.805       -.22225E-05   -.30958E-04
   6  Prefactor     .10000E-03    26.650       -.15555E-04** at limit **
   7  Prefactor     1.7376        2.3845        .40613E-06   -.11112E-02
   8  norm          2.5315        1.1730        .13700E-07    .61299E-04
   9  norm          .10000E-03    3.9293       -.10674E-06** at limit **
  10  Prefactor     6.9460        8.4763        .19351E-06   -.19105E-03
  11  Prefactor     .10000E-03    102.06       -.16051E-04** at limit **
  12  norm          15.972        10.245       -.31182E-06   -.11653E-02
  13  Prefactor     .10012E-03    7.0803        .30391E-05** at limit **
  14  Prefactor     .10000E-03    97.555        .12418E-04** at limit **
  15  Prefactor     5.8789        8.2808       -.11895E-06   -.22685E-04
  16  Prefactor     21.066        20.530       -.18610E-06   -.15677E-03
  17  norm          .10000E-03    10.704        .46063E-06** at limit **
  18  Prefactor     .10000E-03    33.695        .11731E-04** at limit **
  19  Prefactor     .10000E-03    1.6217        .20004E-07** at limit **
  20  Prefactor     .10000E-03    15.307       -.26609E-05** at limit **
  21  Prefactor     35.714        26.381       -.31434E-07   -.36197E-04
  22  Normalizat    .68987        .21065        .53920E-06   -.17669E-03
  23  Prefactor     .97087        .13281       -.90826E-07   -.25053E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.1442
  Prefactor  = 0.000100002
  Prefactor  = 1.73755
  norm       = 2.53154
  norm       = 0.0001
  Prefactor  = 6.94602
  Prefactor  = 0.000100002
  norm       = 15.9718
  Prefactor  = 0.000100123
  Prefactor  = 0.000100002
  Prefactor  = 5.87894
  Prefactor  = 21.0665
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 35.7144
  Normalizat = 0.689865
  Prefactor  = 0.970866
 **********
 **   18 **HESSE 
 **********

 FCN=   5291.537     FROM HESSE     STATUS=OK           364 CALLS     2867 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.1953        .14520E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    4.0475        .14280E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    22.374        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.1417        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     15.144        23.843        .10286E-03   -1.4929    
   6  Prefactor     .10000E-03    26.859        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.7376        8.3016        .15900E-02   -1.5444    
   8  norm          2.5315        1.1705        .51157E-04   -1.5390    
   9  norm          .10000E-03    3.9883        .14079E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.9460        8.4567        .15223E-03   -1.5181    
  11  Prefactor     .10000E-03    102.61        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          15.972        9.5295        .10023E-03   -1.4908    
  13  Prefactor     .10012E-03    20.066        .32933E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    97.687        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.8789        8.2637        .16560E-03   -1.5223    
  16  Prefactor     21.066        20.523        .43631E-03   -1.4790    
  17  norm          .10000E-03    10.708        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    33.811        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.6292        .90335E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    15.325        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     35.714        26.399        .67062E-04   -1.4512    
  22  Normalizat    .68987        .24379        .32891E-03   -1.0429    
  23  Prefactor     .97087        .15411        .18406E-03   -.93707    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05775e-08
Minuit parameter uncertainties:
  1  6.37289e-07
  2  6.63451e-07
  3  4.55778e-05
  4  9.77721e-06
  5  23.8579
  6  0.000506557
  7  7.59738
  8  1.17056
  9  1.53127e-06
  10  8.45811
  11  0.000869272
  12  9.53037
  13  0.0031421
  14  0.000775268
  15  8.26532
  16  20.53
  17  1.13071e-05
  18  0.000426525
  19  8.57012e-08
  20  6.47582e-05
  21  26.4073
  22  0.244174
  23  0.154179
Done.

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

Extracting fit parameters...

4FGL J2311.0+0205
   Spectrum: PowerLaw
368    Prefactor:  1.514e+01  2.386e+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:  9.709e-01  1.542e-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.899e-01  2.442e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.51
Ra Dec: 347.766 2.099
Photon Flux Upper Limit: 1.25e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.52e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/674345/likelihoodResults_302313601_302572801_4FGL_J2311.0+0205_daily_bin243.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) = 5290.85819485
delta logL = 0.678949193028

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5290.84902963
delta logL = 0.688114414768

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.8076       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1953       1.0000          .0000       10.000    
     3 'Normalizat'    .63419       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99106       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=   5290.849     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      274 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.8106        21.035        .13925E-03    .32373E-02
   2  Index         3.1961        1.7058        .47015E-02    .95152E-03
   3  Normalizat    .63418        .24071        .34195E-03    .11867E-02
   4  Prefactor     .99111        .15601        .18229E-03    .20601E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.81064
  Index      = 3.19609
  Normalizat = 0.634184
  Prefactor  = 0.991111
 **********
 **   18 **HESSE 
 **********

 FCN=   5290.849     FROM HESSE     STATUS=OK            23 CALLS      297 TOTAL
                     EDM=   .85E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.8106        12.250        .55701E-05   -1.5226    
   2  Index         3.1961        1.0069        .18806E-03   -.36911    
   3  Normalizat    .63418        .24036        .68390E-04   -1.0655    
   4  Prefactor     .99111        .15515        .36458E-04   -.93026    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.48721e-09
Minuit parameter uncertainties:
  1  12.2556
  2  1.01492
  3  0.240756
  4  0.15522
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/674345': 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) = 5290.84902614
delta logL = 0.688117901941

Extracting fit parameters...

4FGL J2311.0+0205
   Spectrum: PowerLaw
368    Prefactor:  5.811e+00  1.226e+01  1.000e-04  1.000e+04 ( 1.000e-13)
369        Index:  3.196e+00  1.015e+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:  9.911e-01  1.552e-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.342e-01  2.408e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.98
Ra Dec: 347.766 2.099
Photon Index (Free Index): 3.20 +/- 1.01
Photon Flux (Free Index): 7.17e-08 +/- 6.20e-08
Energy Flux (Free Index): 1.31e-05 +/- 1.18e-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/674345/cmap_HighResolution_302313601_302572801_4FGL_J2311.0+0205_daily_bin243.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.52e-03', comment='SUCCESS', energy_flux2='1.31e-05', dlogl='6.88e-01', photon_flux2='7.17e-08', job_status='DONE', time_completed='2021-09-29 07:33:14.653081', photon_index_error2='1.01', photon_index2='3.20', ts='0.51', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='1.25e-07', energy_flux_error2='1.18e-05', EG='0.69', time_epoch_completed='1632925994.65', return_code='0', job_id='674345', GAL2='0.99', EG2='0.63', return_code2='0', photon_flux_error2='6.20e-08', ts2='1.98', photon_index='2.19' WHERE bin_id='243' AND source_name='4FGL J2311.0+0205' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 07:33:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 674345: <4FGL_J2311.0+0205_daily_bin243> in cluster <slac> Done

Job <4FGL_J2311.0+0205_daily_bin243> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 07:20:15 2021
Job was executed on host(s) <bullet0040>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 07:20:18 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:20:18 2021
Terminated at Wed Sep 29 07:33:17 2021
Results reported at Wed Sep 29 07:33:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2311.0+0205_daily_bin243 347.766 2.0995 302313601 302572801 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 :                                   590.48 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             282.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   776 sec.
    Turnaround time :                            782 sec.

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

