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


Performing analysis on: 4FGL_J2313.5+3945_daily_bin1777
RA = 348.4, Dec = 39.7644
tmin = 699926401, tmax = 700185601
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='926576', job_status='RUN', time_executed='2023-03-11 01:31:51.622130', time_epoch_executed='1678527111.62' WHERE source_name='4FGL J2313.5+3945' and cadence='daily' and bin_id='1777'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/926576

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/926576/ft1_4FGL_J2313.5+3945_daily_bin1777.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/926576/ft2_4FGL_J2313.5+3945_daily_bin1777.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/926576/ft1_4FGL_J2313.5+3945_daily_bin1777.fits outfile=/scratch/kocevski/926576/ft1_filteredMKT_4FGL_J2313.5+3945_daily_bin1777.fits ra=348.4 dec=39.7644 rad=12.0 tmin=699926401.0 tmax=700185601.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.67
user 3.43
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/926576/ft2_4FGL_J2313.5+3945_daily_bin1777.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/926576/ft2_4FGL_J2313.5+3945_daily_bin1777.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/926576/ft1_filteredMKT_4FGL_J2313.5+3945_daily_bin1777.fits evtable="EVENTS" outfile="/scratch/kocevski/926576/ft1_filtered_4FGL_J2313.5+3945_daily_bin1777.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

Number of photons that the gtmktime cut: 1145

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/926576/ft1_filtered_4FGL_J2313.5+3945_daily_bin1777.fits" evtable="EVENTS" scfile=/scratch/kocevski/926576/ft2_4FGL_J2313.5+3945_daily_bin1777.fits sctable="SC_DATA" outfile=/scratch/kocevski/926576/ltcube_699926401_700185601_4FGL_J2313.5+3945_daily_bin1777.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/926576/ft2_4FGL_J2313.5+3945_daily_bin1777.fits
.....................!
real 12.13
user 11.74
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/926576/ft1_filtered_4FGL_J2313.5+3945_daily_bin1777.fits evtable="EVENTS" scfile=/scratch/kocevski/926576/ft2_4FGL_J2313.5+3945_daily_bin1777.fits sctable="SC_DATA" expcube=/scratch/kocevski/926576/ltcube_699926401_700185601_4FGL_J2313.5+3945_daily_bin1777.fits outfile=/scratch/kocevski/926576/expmap_699926401_700185601_4FGL_J2313.5+3945_daily_bin1777.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/926576/ltcube_699926401_700185601_4FGL_J2313.5+3945_daily_bin1777.fits
.....................!
real 190.82
user 185.02
sys 5.33

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
Extended source FHES J2304.0+5406 in ROI with RadialGaussian spatial model.
Extended source CTB 109 in ROI with RadialDisk spatial model.
Added 161 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2313.5+3945 @ 348.4 39.7644

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/926576/ft1_filtered_4FGL_J2313.5+3945_daily_bin1777.fits scfile=/scratch/kocevski/926576/ft2_4FGL_J2313.5+3945_daily_bin1777.fits outfile=/scratch/kocevski/926576/cmap_699926401_700185601_4FGL_J2313.5+3945_daily_bin1777.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=348.4 yref=39.7644 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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/926576/ft1_filtered_4FGL_J2313.5+3945_daily_bin1777.fits scfile=/scratch/kocevski/926576/ft2_4FGL_J2313.5+3945_daily_bin1777.fits outfile=/scratch/kocevski/926576/cmap_HighResolution_699926401_700185601_4FGL_J2313.5+3945_daily_bin1777.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=348.4 yref=39.7644 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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/926576/ft1_filtered_4FGL_J2313.5+3945_daily_bin1777.fits evtable="EVENTS" scfile=/scratch/kocevski/926576/ft2_4FGL_J2313.5+3945_daily_bin1777.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/926576/Model_4FGL_J2313.5+3945_daily_bin1777.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 CTB 109
adding source EG_v02
adding source FHES J2304.0+5406
adding source GAL_V02
Working on...
/scratch/kocevski/926576/ft1_filtered_4FGL_J2313.5+3945_daily_bin1777.fits.....................!
real 134.68
user 133.13
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/926576/ft1_filtered_4FGL_J2313.5+3945_daily_bin1777.fits', '/scratch/kocevski/926576/ft2_4FGL_J2313.5+3945_daily_bin1777.fits', expMap='/scratch/kocevski/926576/expmap_699926401_700185601_4FGL_J2313.5+3945_daily_bin1777.fits', expCube='/scratch/kocevski/926576/ltcube_699926401_700185601_4FGL_J2313.5+3945_daily_bin1777.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/926576/Model_4FGL_J2313.5+3945_daily_bin1777.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2313.5+3945'

4FGL J2313.5+3945
   Spectrum: PowerLaw
406    Prefactor:  4.195e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
407        Index:  2.758e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
408        Scale:  4.854e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/926576/ft1_filtered_4FGL_J2313.5+3945_daily_bin1777.fits
Spacecraft file(s): /scratch/kocevski/926576/ft2_4FGL_J2313.5+3945_daily_bin1777.fits
Exposure map: /scratch/kocevski/926576/expmap_699926401_700185601_4FGL_J2313.5+3945_daily_bin1777.fits
Exposure cube: /scratch/kocevski/926576/ltcube_699926401_700185601_4FGL_J2313.5+3945_daily_bin1777.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/926576/Model_4FGL_J2313.5+3945_daily_bin1777.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) = 11890.3496641

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .57611E-01   1.0000          .0000       .10000E+07
     2 'norm      '    .27814E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    5.8030       1.0000          .0000       .10000E+07
     4 'norm      '    1.4585       1.0000          .0000       .10000E+07
     5 'Prefactor '    3.6689       1.0000          .0000       .10000E+07
     6 'Prefactor '    .90150E-05   1.0000          .0000       .10000E+07
     7 'Prefactor '    .13136E-04   1.0000          .0000       .10000E+07
     8 'norm      '    1.1069       1.0000          .0000       .10000E+07
     9 'Prefactor '    9.9196       1.0000          .0000       .10000E+07
    10 'Prefactor '    .69348E-01   1.0000          .0000       .10000E+07
    11 'norm      '    .58039E-03   1.0000          .0000       .10000E+07
    12 'norm      '    9.8849       1.0000          .0000       .10000E+07
    13 'Prefactor '    12.994       1.0000          .0000       .10000E+07
    14 'norm      '    .65639       1.0000          .0000       .10000E+07
    15 'Prefactor '    .52130E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    35.347       1.0000          .0000       .10000E+07
    17 'Prefactor '    24.071       1.0000          .0000       .10000E+07
    18 'Prefactor '    .49148E-03   1.0000          .0000       .10000E+07
    19 'Normalizat'    1.0730       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0038       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5410E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   11890.34     FROM MIGRAD    STATUS=CONVERGED    147 CALLS     1554 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    40.772        .23157E-06** at limit **
   2  norm          .55689E-06    21.149       -.66394E-06** at limit **
   3  Prefactor     5.8102        5.0207        .80688E-07   -.62535E-03
   4  norm          1.4584        2.4526       -.37101E-08   -.28841E-03
   5  Prefactor     3.7133        6.1884       -.40399E-06    .12890E-01
   6  Prefactor      .0000        1.9107       -.12759E-08** at limit **
   7  Prefactor     .16653E-09    7.1827       -.71274E-07** at limit **
   8  norm          1.1085        1.4492        .16683E-07   -.12987E-02
   9  Prefactor     9.9610        11.007        .58325E-07   -.14591E-01
  10  Prefactor     .20884E-03    289.32       -.10062E-05** at limit **
  11  norm           .0000        2.4227       -.35069E-07** at limit **
  12  norm          9.9629        10.134        .22317E-06    .46029E-02
  13  Prefactor     12.867        15.841       -.70175E-06   -.26581E-01
  14  norm          .65359        2.4362       -.11681E-06   -.12803E-03
  15  Prefactor     .34411E-06    19.443       -.74147E-07** at limit **
  16  Prefactor     35.770        37.673        .27510E-06   -.53562E-01
  17  Prefactor     23.793        1.4172        .42384E-08   -.41898E-02
  18  Prefactor      .0000        2.5548       -.51046E-08** at limit **
  19  Normalizat    1.0731        .23448        .13774E-05   -.57452E-04
  20  Prefactor     1.0038        .82143E-01   -.26336E-05   -.90332E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  norm       = 5.56888e-07
  Prefactor  = 5.81018
  norm       = 1.45835
  Prefactor  = 3.71326
  Prefactor  = 0
  Prefactor  = 1.66533e-10
  norm       = 1.10846
  Prefactor  = 9.961
  Prefactor  = 0.000208841
  norm       = 0
  norm       = 9.96293
  Prefactor  = 12.8672
  norm       = 0.653589
  Prefactor  = 3.44114e-07
  Prefactor  = 35.7699
  Prefactor  = 23.7934
  Prefactor  = 0
  Normalizat = 1.07308
  Prefactor  = 1.00381
 **********
 **   18 **HESSE 
 **********

 FCN=   11890.34     FROM HESSE     STATUS=OK           339 CALLS     1893 TOTAL
                     EDM=   .27E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    39.310        .15249E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .55689E-06    23.068        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.8102        5.0382        .41668E-03   -1.5660    
   4  norm          1.4584        2.4848        .89085E-03   -1.5684    
   5  Prefactor     3.7133        23.904        .52708E-03   -1.5669    
   6  Prefactor      .0000        1.9110        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .16653E-09    7.1822        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.1085        1.4715        .11246E-02   -1.5687    
   9  Prefactor     9.9610        11.132        .31791E-03   -1.5645    
  10  Prefactor     .20884E-03    12.591        .14840E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm           .0000        2.4216        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          9.9629        10.148        .31847E-03   -1.5645    
  13  Prefactor     12.867        16.434        .27763E-03   -1.5636    
  14  norm          .65359        2.4496        .64321E-03   -1.5692    
  15  Prefactor     .34411E-06    20.887        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     35.770        44.827        .16822E-03   -1.5588    
  17  Prefactor     23.793        36.865        .20387E-03   -1.5610    
  18  Prefactor      .0000        2.5521        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0731        .20764        .90441E-01   -.90621    
  20  Prefactor     1.0038        .71446E-01    .44456E-01   -.92603    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.67562e-06
Minuit parameter uncertainties:
  1  6.64441e-05
  2  0.00716852
  3  5.03819
  4  2.48481
  5  18.8426
  6  4.28272e-06
  7  6.81671e-05
  8  1.47147
  9  11.1323
  10  0.102558
  11  1.0943e-06
  12  10.148
  13  16.4337
  14  2.44957
  15  0.00536201
  16  44.8269
  17  36.8652
  18  3.36948e-08
  19  0.207794
  20  0.0714529
Done.

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

Extracting fit parameters...

4FGL J2313.5+3945
   Spectrum: PowerLaw
406    Prefactor:  9.961e+00  1.113e+01  0.000e+00  1.000e+06 ( 1.000e-12)
407        Index:  2.758e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
408        Scale:  4.854e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
538    Prefactor:  1.004e+00  7.145e-02  0.000e+00  1.000e+01 ( 1.000e+00)
539        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
540        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
533   Normalization:  1.073e+00  2.078e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.01
Ra Dec: 348.400 39.764
Photon Index (Fixed Index): 2.76 +/- 0.00
Photon Flux (Fixed Index): 4.43e-08 +/- 4.94e-08
Energy Flux (Fixed Index): 1.02e-05 +/- 1.14e-05

TS (Fixed Index): 1.01
Ra Dec: 348.400 39.764
Photon Flux Upper Limit: 1.41e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.11e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/926576/likelihoodResults_699926401_700185601_4FGL_J2313.5+3945_daily_bin1777.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) = 11889.8388628
delta logL = 0.501966064288

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11889.8335714
delta logL = 0.507257512301

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.0172       1.0000          .0000       .10000E+07
     2 'Index     '    3.7104       1.0000          .0000       10.000    
     3 'Normalizat'    1.0315       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0126       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5410E+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=   11889.83     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      285 TOTAL
                     EDM=   .87E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.0190        11.753        .16364E-04    .21843E-02
   2  Index         3.7102        1.4788        .95706E-02    .12388E-03
   3  Normalizat    1.0315        .22104        .40753E-03   -.90776E-04
   4  Prefactor     1.0125        .80823E-01    .15331E-03   -.28712E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.01896
  Index      = 3.71018
  Normalizat = 1.03154
  Prefactor  = 1.01254
 **********
 **   18 **HESSE 
 **********

 FCN=   11889.83     FROM HESSE     STATUS=OK            25 CALLS      310 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.0190        8.6018        .65454E-06   -1.5659    
   2  Index         3.7102        1.0887        .38282E-03   -.26091    
   3  Normalizat    1.0315        .22121        .16301E-04   -.91981    
   4  Prefactor     1.0125        .80767E-01    .30663E-04   -.92313    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.95884e-10
Minuit parameter uncertainties:
  1  8.60177
  2  1.09815
  3  0.221408
  4  0.0807766
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/926576': 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) = 11889.8335713
delta logL = 0.507257544228

Extracting fit parameters...

4FGL J2313.5+3945
   Spectrum: PowerLaw
406    Prefactor:  6.019e+00  8.602e+00  0.000e+00  1.000e+06 ( 1.000e-12)
407        Index:  3.710e+00  1.098e+00  0.000e+00  1.000e+01 (-1.000e+00)
408        Scale:  4.854e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
538    Prefactor:  1.013e+00  8.078e-02  0.000e+00  1.000e+01 ( 1.000e+00)
539        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
540        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
533   Normalization:  1.032e+00  2.214e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.12
Ra Dec: 348.400 39.764
Photon Index (Free Index): 3.71 +/- 1.10
Photon Flux (Free Index): 7.82e-08 +/- 6.18e-08
Energy Flux (Free Index): 1.24e-05 +/- 9.75e-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/926576/cmap_HighResolution_699926401_700185601_4FGL_J2313.5+3945_daily_bin1777.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.11e-02', comment='SUCCESS', photon_flux='4.43e-08', energy_flux2='1.24e-05', photon_flux_error='4.94e-08', dlogl='5.07e-01', energy_flux='1.02e-05', photon_flux2='7.82e-08', job_status='DONE', time_completed='2023-03-11 01:45:02.580119', photon_index_error2='1.10', photon_index2='3.71', ts='1.01', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='1.41e-07', energy_flux_error2='9.75e-06', EG='1.07', time_epoch_completed='1678527902.58', return_code='0', job_id='926576', GAL2='1.01', EG2='1.03', return_code2='0', energy_flux_error='1.14e-05', photon_flux_error2='6.18e-08', ts2='2.12', photon_index='2.76' WHERE bin_id='1777' AND source_name='4FGL J2313.5+3945' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Mar 11 01:45:02 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0188>
Subject: Job 926576: <4FGL_J2313.5+3945_daily_bin1777> in cluster <slac> Done

Job <4FGL_J2313.5+3945_daily_bin1777> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Sat Mar 11 01:30:19 2023
Job was executed on host(s) <bullet0188>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Mar 11 01:30:21 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Mar 11 01:30:21 2023
Terminated at Sat Mar 11 01:45:03 2023
Results reported at Sat Mar 11 01:45:03 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2313.5+3945_daily_bin1777 348.4 39.7644 699926401 700185601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2313.5+3945 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   793.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             337.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   881 sec.
    Turnaround time :                            884 sec.

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

