aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 37 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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 = 17505
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2311.0+0205_weekly_bin758
RA = 347.766, Dec = 2.0995
tmin = 697420801, tmax = 698025601
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='116229', job_status='RUN', time_executed='2023-02-14 03:06:39.950162', time_epoch_executed='1676372799.95' WHERE source_name='4FGL J2311.0+0205' and cadence='weekly' and bin_id='758'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/116229

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/116229/ft1_4FGL_J2311.0+0205_weekly_bin758.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/116229/ft2_4FGL_J2311.0+0205_weekly_bin758.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/116229/ft1_4FGL_J2311.0+0205_weekly_bin758.fits outfile=/scratch/kocevski/116229/ft1_filteredMKT_4FGL_J2311.0+0205_weekly_bin758.fits ra=347.766 dec=2.0995 rad=12.0 tmin=697420801.0 tmax=698025601.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 7.92
user 7.64
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/116229/ft2_4FGL_J2311.0+0205_weekly_bin758.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/116229/ft1_filteredMKT_4FGL_J2311.0+0205_weekly_bin758.fits evtable="EVENTS" outfile="/scratch/kocevski/116229/ft1_filtered_4FGL_J2311.0+0205_weekly_bin758.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.54
user 0.39
sys 0.14

Number of photons that the gtmktime cut: 1307

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/116229/ft1_filtered_4FGL_J2311.0+0205_weekly_bin758.fits" evtable="EVENTS" scfile=/scratch/kocevski/116229/ft2_4FGL_J2311.0+0205_weekly_bin758.fits sctable="SC_DATA" outfile=/scratch/kocevski/116229/ltcube_697420801_698025601_4FGL_J2311.0+0205_weekly_bin758.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/116229/ft2_4FGL_J2311.0+0205_weekly_bin758.fits
.....................!
real 27.02
user 26.54
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/116229/ft1_filtered_4FGL_J2311.0+0205_weekly_bin758.fits evtable="EVENTS" scfile=/scratch/kocevski/116229/ft2_4FGL_J2311.0+0205_weekly_bin758.fits sctable="SC_DATA" expcube=/scratch/kocevski/116229/ltcube_697420801_698025601_4FGL_J2311.0+0205_weekly_bin758.fits outfile=/scratch/kocevski/116229/expmap_697420801_698025601_4FGL_J2311.0+0205_weekly_bin758.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/116229/ltcube_697420801_698025601_4FGL_J2311.0+0205_weekly_bin758.fits
.....................!
real 189.54
user 185.38
sys 3.79

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/116229/ft1_filtered_4FGL_J2311.0+0205_weekly_bin758.fits scfile=/scratch/kocevski/116229/ft2_4FGL_J2311.0+0205_weekly_bin758.fits outfile=/scratch/kocevski/116229/cmap_697420801_698025601_4FGL_J2311.0+0205_weekly_bin758.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.57
user 0.42
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/116229/ft1_filtered_4FGL_J2311.0+0205_weekly_bin758.fits scfile=/scratch/kocevski/116229/ft2_4FGL_J2311.0+0205_weekly_bin758.fits outfile=/scratch/kocevski/116229/cmap_HighResolution_697420801_698025601_4FGL_J2311.0+0205_weekly_bin758.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.60
user 0.44
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/116229/ft1_filtered_4FGL_J2311.0+0205_weekly_bin758.fits', '/scratch/kocevski/116229/ft2_4FGL_J2311.0+0205_weekly_bin758.fits', expMap='/scratch/kocevski/116229/expmap_697420801_698025601_4FGL_J2311.0+0205_weekly_bin758.fits', expCube='/scratch/kocevski/116229/ltcube_697420801_698025601_4FGL_J2311.0+0205_weekly_bin758.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/116229/Model_4FGL_J2311.0+0205_weekly_bin758.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  0.000e+00  1.000e+06 ( 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/116229/ft1_filtered_4FGL_J2311.0+0205_weekly_bin758.fits
Spacecraft file(s): /scratch/kocevski/116229/ft2_4FGL_J2311.0+0205_weekly_bin758.fits
Exposure map: /scratch/kocevski/116229/expmap_697420801_698025601_4FGL_J2311.0+0205_weekly_bin758.fits
Exposure cube: /scratch/kocevski/116229/ltcube_697420801_698025601_4FGL_J2311.0+0205_weekly_bin758.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/116229/Model_4FGL_J2311.0+0205_weekly_bin758.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) = 14875.5488661

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.5977       1.0000         .10000E-03   10000.    
     2 'norm      '    .98311E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    5.2918       1.0000          .0000       .10000E+07
     4 'Prefactor '    7.4689       1.0000          .0000       .10000E+07
     5 'Prefactor '    27.924       1.0000          .0000       .10000E+07
     6 'Prefactor '    .63442E-03   1.0000          .0000       .10000E+07
     7 'norm      '    .76822       1.0000          .0000       .10000E+07
     8 'norm      '    .55511E-10   1.0000          .0000       .10000E+07
     9 'Prefactor '    .55551E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    38.828       1.0000          .0000       .10000E+07
    11 'norm      '    .85036E-05   1.0000          .0000       .10000E+07
    12 'Prefactor '    .51325       1.0000          .0000       .10000E+07
    13 'Prefactor '    .43645E-03   1.0000          .0000       .10000E+07
    14 'norm      '    6.3306       1.0000          .0000       .10000E+07
    15 'Prefactor '    .13711E-06   1.0000          .0000       .10000E+07
    16 'Prefactor '    8.4147       1.0000          .0000       .10000E+07
    17 'Prefactor '    7.7023       1.0000          .0000       .10000E+07
    18 'Normalizat'    .89064       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .98182       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=   14875.54     FROM MIGRAD    STATUS=CONVERGED    114 CALLS     1399 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.6075        4.9523       -.93602E-07   -.51984E-04
   2  norm          .23408E-05    17.650       -.12309E-06** at limit **
   3  Prefactor     5.2485        12.066       -.55465E-07    .13367E-01
   4  Prefactor     7.4414        11.022       -.12296E-07    .44385E-02
   5  Prefactor     28.123        15.134        .39765E-07   -.10131    
   6  Prefactor     .55511E-10    3.4833        .70038E-07** at limit **
   7  norm          .76876        .48561       -.10899E-07   -.10371E-01
   8  norm          .22204E-09    1.2480       -.92105E-07** at limit **
   9  Prefactor     .33307E-09    3.0417        .74436E-07** at limit **
  10  Prefactor     38.869        1.1422       -.12365E-08    .97058E-02
  11  norm           .0000        2.0731       -.40458E-07** at limit **
  12  Prefactor     .51190        3.6433       -.85448E-07   -.18571E-02
  13  Prefactor     .23448E-05    15.821       -.16926E-06** at limit **
  14  norm          6.1467        8.2171       -.36657E-07    .33604E-01
  15  Prefactor     .16653E-09    .85051        .76542E-07** at limit **
  16  Prefactor     8.3704        1.4664       -.13687E-09   -.27324E-02
  17  Prefactor     7.7138        7.8474        .27800E-07    .67643E-01
  18  Normalizat    .89070        .15378        .19372E-05    .13229E-03
  19  Prefactor     .98181        .98784E-01   -.10462E-05   -.15394E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.60751
  norm       = 2.34079e-06
  Prefactor  = 5.24847
  Prefactor  = 7.44144
  Prefactor  = 28.1229
  Prefactor  = 5.55112e-11
  norm       = 0.768758
  norm       = 2.22045e-10
  Prefactor  = 3.33067e-10
  Prefactor  = 38.8686
  norm       = 0
  Prefactor  = 0.5119
  Prefactor  = 2.34485e-06
  norm       = 6.14671
  Prefactor  = 1.66533e-10
  Prefactor  = 8.37037
  Prefactor  = 7.7138
  Normalizat = 0.890697
  Prefactor  = 0.981807
 **********
 **   18 **HESSE 
 **********

 FCN=   14875.54     FROM HESSE     STATUS=OK           306 CALLS     1705 TOTAL
                     EDM=   .41E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.6075        4.9539        .46930E-02   -1.5279    
   2  norm          .23408E-05    22.834        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.2485        34.170        .43668E-03   -1.5662    
   4  Prefactor     7.4414        12.958        .36673E-03   -1.5653    
   5  Prefactor     28.123        28.727        .18927E-03   -1.5602    
   6  Prefactor     .55511E-10    3.4632        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .76876        .48644        .55334E-04   -1.5690    
   8  norm          .22204E-09    1.2480        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .33307E-09    3.0353        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     38.869        36.935        .16050E-03   -1.5583    
  11  norm           .0000        2.0579        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .51190        3.6158        .77388E-03   -1.5694    
  13  Prefactor     .23448E-05    20.730        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          6.1467        11.715        .39870E-03   -1.5658    
  15  Prefactor     .16653E-09    .85199        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     8.3704        17.498        .34535E-03   -1.5650    
  17  Prefactor     7.7138        9.3057        .36109E-03   -1.5652    
  18  Normalizat    .89070        .13484        .71229E-01   -.96788    
  19  Prefactor     .98181        .83647E-01    .46039E-01   -.93338    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.10994e-06
Minuit parameter uncertainties:
  1  4.95433
  2  0.0146221
  3  26.7839
  4  12.9585
  5  28.727
  6  2.21875e-05
  7  0.486436
  8  3.40217e-05
  9  6.58311e-05
  10  36.9352
  11  8.11884e-06
  12  2.72098
  13  0.0139439
  14  11.7151
  15  2.38492e-05
  16  17.4981
  17  9.30575
  18  0.134893
  19  0.0836579
Done.

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

Extracting fit parameters...

4FGL J2311.0+0205
   Spectrum: PowerLaw
368    Prefactor:  7.441e+00  1.296e+01  0.000e+00  1.000e+06 ( 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.818e-01  8.366e-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:  8.907e-01  1.349e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/116229/likelihoodResults_697420801_698025601_4FGL_J2311.0+0205_weekly_bin758.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) = 14874.8658481
delta logL = 0.676211947295

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14874.8621686
delta logL = 0.679891447973

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.4388       1.0000          .0000       .10000E+07
     2 'Index     '    3.1453       1.0000          .0000       10.000    
     3 'Normalizat'    .85056       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99514       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   14874.86     FROM MIGRAD    STATUS=FAILED       103 CALLS      327 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.4450        25.533        .95545E-04   -.16332E-02
   2  Index         3.1432        2.3474        .64631E-02    .23871E-03
   3  Normalizat    .85054        .16217        .32188E-03   -.66401E-04
   4  Prefactor     .99510        .10304        .19247E-03    .19272E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   14874.86     FROM SIMPLEX   STATUS=UNCHANGED     80 CALLS      407 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.4450        25.533        .12134E-04   -1.5666    
   2  Index         3.1432        2.3474        .68545E-03   -.38047    
   3  Normalizat    .85054        .16217        .24371E-03   -.98221    
   4  Prefactor     .99510        .10304        .12810E-03   -.92893    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   14874.86     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      438 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.4453        7.2990        .38218E-05    .40991E-02
   2  Index         3.1432        .83700        .25852E-03    .71592E-04
   3  Normalizat    .85054        .15855        .12875E-04   -.40264E-04
   4  Prefactor     .99510        .99767E-01    .38494E-04    .19067E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.44526
  Index      = 3.1432
  Normalizat = 0.85054
  Prefactor  = 0.995099
 **********
 **   18 **HESSE 
 **********

 FCN=   14874.86     FROM HESSE     STATUS=OK            23 CALLS      461 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.4453        7.1938        .15287E-06   -1.5666    
   2  Index         3.1432        .82507        .10341E-04   -.38047    
   3  Normalizat    .85054        .15867        .25750E-05   -.98221    
   4  Prefactor     .99510        .99818E-01    .76989E-05   -.92893    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42412e-10
Minuit parameter uncertainties:
  1  7.19382
  2  0.82948
  3  0.158755
  4  0.0998364
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/116229': 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) = 14874.8621604
delta logL = 0.679899605986

Extracting fit parameters...

4FGL J2311.0+0205
   Spectrum: PowerLaw
368    Prefactor:  4.445e+00  7.194e+00  0.000e+00  1.000e+06 ( 1.000e-13)
369        Index:  3.143e+00  8.295e-01  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.951e-01  9.984e-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:  8.505e-01  1.588e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.80
Ra Dec: 347.766 2.099
Photon Index (Free Index): 3.14 +/- 0.83
Photon Flux (Free Index): 4.93e-08 +/- 4.31e-08
Energy Flux (Free Index): 9.23e-06 +/- 7.68e-06

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/116229/cmap_HighResolution_697420801_698025601_4FGL_J2311.0+0205_weekly_bin758.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.98e-03', comment='SUCCESS', energy_flux2='9.23e-06', dlogl='6.80e-01', photon_flux2='4.93e-08', job_status='DONE', time_completed='2023-02-14 03:21:56.938477', photon_index_error2='0.83', photon_index2='3.14', ts='0.37', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='6.55e-08', energy_flux_error2='7.68e-06', EG='0.89', time_epoch_completed='1676373716.94', return_code='0', job_id='116229', GAL2='1.00', EG2='0.85', return_code2='0', photon_flux_error2='4.31e-08', ts2='1.80', photon_index='2.19' WHERE bin_id='758' AND source_name='4FGL J2311.0+0205' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Feb 14 03:21:56 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 116229: <4FGL_J2311.0+0205_weekly_bin758> in cluster <slac> Done

Job <4FGL_J2311.0+0205_weekly_bin758> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Feb 14 03:05:21 2023
Job was executed on host(s) <bullet0034>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Feb 14 03:05:22 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Feb 14 03:05:22 2023
Terminated at Tue Feb 14 03:21:57 2023
Results reported at Tue Feb 14 03:21:57 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2311.0+0205_weekly_bin758 347.766 2.0995 697420801 698025601 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 :                                   916.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             344.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   995 sec.
    Turnaround time :                            996 sec.

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

