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


Performing analysis on: 4FGL_J2313.5+3945_daily_bin1745
RA = 348.4, Dec = 39.7644
tmin = 691632001, tmax = 691891201
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='658782', job_status='RUN', time_executed='2022-12-05 01:31:02.368618', time_epoch_executed='1670232662.37' WHERE source_name='4FGL J2313.5+3945' and cadence='daily' and bin_id='1745'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/658782

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/658782/ft1_4FGL_J2313.5+3945_daily_bin1745.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/658782/ft2_4FGL_J2313.5+3945_daily_bin1745.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/658782/ft1_4FGL_J2313.5+3945_daily_bin1745.fits outfile=/scratch/kocevski/658782/ft1_filteredMKT_4FGL_J2313.5+3945_daily_bin1745.fits ra=348.4 dec=39.7644 rad=12.0 tmin=691632001.0 tmax=691891201.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 2.36
user 2.15
sys 0.20

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

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

Number of photons that the gtmktime cut: 1189

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/658782/ft1_filtered_4FGL_J2313.5+3945_daily_bin1745.fits" evtable="EVENTS" scfile=/scratch/kocevski/658782/ft2_4FGL_J2313.5+3945_daily_bin1745.fits sctable="SC_DATA" outfile=/scratch/kocevski/658782/ltcube_691632001_691891201_4FGL_J2313.5+3945_daily_bin1745.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/658782/ft2_4FGL_J2313.5+3945_daily_bin1745.fits
.....................!
real 12.65
user 12.28
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/658782/ft1_filtered_4FGL_J2313.5+3945_daily_bin1745.fits evtable="EVENTS" scfile=/scratch/kocevski/658782/ft2_4FGL_J2313.5+3945_daily_bin1745.fits sctable="SC_DATA" expcube=/scratch/kocevski/658782/ltcube_691632001_691891201_4FGL_J2313.5+3945_daily_bin1745.fits outfile=/scratch/kocevski/658782/expmap_691632001_691891201_4FGL_J2313.5+3945_daily_bin1745.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/658782/ltcube_691632001_691891201_4FGL_J2313.5+3945_daily_bin1745.fits
.....................!
real 192.36
user 187.30
sys 4.64

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/658782/ft1_filtered_4FGL_J2313.5+3945_daily_bin1745.fits scfile=/scratch/kocevski/658782/ft2_4FGL_J2313.5+3945_daily_bin1745.fits outfile=/scratch/kocevski/658782/cmap_691632001_691891201_4FGL_J2313.5+3945_daily_bin1745.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.55
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/658782/ft1_filtered_4FGL_J2313.5+3945_daily_bin1745.fits scfile=/scratch/kocevski/658782/ft2_4FGL_J2313.5+3945_daily_bin1745.fits outfile=/scratch/kocevski/658782/cmap_HighResolution_691632001_691891201_4FGL_J2313.5+3945_daily_bin1745.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.57
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/658782/ft1_filtered_4FGL_J2313.5+3945_daily_bin1745.fits evtable="EVENTS" scfile=/scratch/kocevski/658782/ft2_4FGL_J2313.5+3945_daily_bin1745.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/658782/Model_4FGL_J2313.5+3945_daily_bin1745.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/658782/ft1_filtered_4FGL_J2313.5+3945_daily_bin1745.fits.....................!
real 140.94
user 139.41
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/658782/ft1_filtered_4FGL_J2313.5+3945_daily_bin1745.fits', '/scratch/kocevski/658782/ft2_4FGL_J2313.5+3945_daily_bin1745.fits', expMap='/scratch/kocevski/658782/expmap_691632001_691891201_4FGL_J2313.5+3945_daily_bin1745.fits', expCube='/scratch/kocevski/658782/ltcube_691632001_691891201_4FGL_J2313.5+3945_daily_bin1745.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/658782/Model_4FGL_J2313.5+3945_daily_bin1745.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/658782/ft1_filtered_4FGL_J2313.5+3945_daily_bin1745.fits
Spacecraft file(s): /scratch/kocevski/658782/ft2_4FGL_J2313.5+3945_daily_bin1745.fits
Exposure map: /scratch/kocevski/658782/expmap_691632001_691891201_4FGL_J2313.5+3945_daily_bin1745.fits
Exposure cube: /scratch/kocevski/658782/ltcube_691632001_691891201_4FGL_J2313.5+3945_daily_bin1745.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/658782/Model_4FGL_J2313.5+3945_daily_bin1745.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) = 12338.8697907

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13119E-02   1.0000          .0000       .10000E+07
     2 'norm      '    15.536       1.0000          .0000       .10000E+07
     3 'Prefactor '    .46212E-03   1.0000          .0000       .10000E+07
     4 'norm      '    .44131E-07   1.0000          .0000       .10000E+07
     5 'Prefactor '    6.8001       1.0000          .0000       .10000E+07
     6 'Prefactor '    4.3268       1.0000          .0000       .10000E+07
     7 'Prefactor '    .27820E-02   1.0000          .0000       .10000E+07
     8 'norm      '    .14741       1.0000          .0000       .10000E+07
     9 'Prefactor '    .17910E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    289.02       1.0000          .0000       .10000E+07
    11 'norm      '    .16370E-04   1.0000          .0000       .10000E+07
    12 'norm      '    9.5520       1.0000          .0000       .10000E+07
    13 'Prefactor '    10.685       1.0000          .0000       .10000E+07
    14 'norm      '    .27421E-04   1.0000          .0000       .10000E+07
    15 'Prefactor '    47.734       1.0000          .0000       .10000E+07
    16 'Prefactor '    .12304       1.0000          .0000       .10000E+07
    17 'Prefactor '    .45290E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    .93936E-03   1.0000          .0000       .10000E+07
    19 'Normalizat'    1.3829       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .86574       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=   12338.79     FROM MIGRAD    STATUS=CONVERGED    177 CALLS     1666 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .94369E-09    32.089       -.53085E-06** at limit **
   2  norm          15.461        18.272       -.17600E-06   -.13109E-02
   3  Prefactor     .57732E-08    6.8338        .21372E-06** at limit **
   4  norm           .0000        3.1325        .78553E-07** at limit **
   5  Prefactor     7.1221        8.5844        .24504E-08    .12183E-04
   6  Prefactor     4.3124        3.9613        .10211E-06   -.34317E-03
   7  Prefactor      .0000        5.8652        .42770E-08** at limit **
   8  norm          .14721        1.0400        .75760E-07** at limit **
   9  Prefactor     .33862E-08    7.8723       -.56709E-07** at limit **
  10  Prefactor     290.04        44.750       -.18967E-06   -.16187    
  11  norm           .0000        1.0618        .53098E-07** at limit **
  12  norm          9.4402        9.0463       -.13683E-09    .25142E-04
  13  Prefactor     10.568        16.430       -.48060E-06    .76152E-03
  14  norm           .0000        1.3008        .61451E-07** at limit **
  15  Prefactor     48.688        30.561       -.46494E-06    .98467E-01
  16  Prefactor     .55511E-10    60.484        .29843E-06** at limit **
  17  Prefactor     .21721E-05    289.69        .57010E-05** at limit **
  18  Prefactor     .22038E-07    2.9592        .79352E-07** at limit **
  19  Normalizat    1.3822        .22360        .53646E-05    .49992E-06
  20  Prefactor     .86575        .76761E-01   -.18449E-05    .19332E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.4369e-10
  norm       = 15.4614
  Prefactor  = 5.77316e-09
  norm       = 0
  Prefactor  = 7.12205
  Prefactor  = 4.31243
  Prefactor  = 0
  norm       = 0.147208
  Prefactor  = 3.38618e-09
  Prefactor  = 290.041
  norm       = 0
  norm       = 9.44021
  Prefactor  = 10.5683
  norm       = 0
  Prefactor  = 48.6878
  Prefactor  = 5.55112e-11
  Prefactor  = 2.1721e-06
  Prefactor  = 2.20379e-08
  Normalizat = 1.38225
  Prefactor  = 0.86575
 **********
 **   18 **HESSE 
 **********

 FCN=   12338.79     FROM HESSE     STATUS=OK           331 CALLS     1997 TOTAL
                     EDM=   .96E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .94369E-09    32.139        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          15.461        18.283        .25384E-03   -1.5629    
   3  Prefactor     .57732E-08    8.7968        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm           .0000        3.0672        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.1221        8.5929        .38453E-03   -1.5655    
   6  Prefactor     4.3124        3.9748        .48403E-03   -1.5666    
   7  Prefactor      .0000        5.8742        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .14721        .56445        .28385E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .33862E-08    8.6237        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     290.04        52.173        .58830E-04   -1.5367    
  11  norm           .0000        1.0660        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          9.4402        9.0392        .32401E-03   -1.5647    
  13  Prefactor     10.568        16.594        .30626E-03   -1.5643    
  14  norm           .0000        1.2946        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     48.688        56.593        .14475E-03   -1.5568    
  16  Prefactor     .55511E-10    59.525        .13348E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .21721E-05    291.74        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .22038E-07    9.0566        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.3822        .19513        .84324E-01   -.81143    
  20  Prefactor     .86575        .66499E-01    .44567E-01   -.97348    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.5567e-07
Minuit parameter uncertainties:
  1  0.000348249
  2  18.2829
  3  0.000451512
  4  2.80797e-07
  5  8.59296
  6  3.97478
  7  1.37105e-05
  8  0.564446
  9  0.000342228
  10  52.1732
  11  5.11277e-07
  12  9.03926
  13  16.5939
  14  1.02782e-06
  15  56.5941
  16  0.000138859
  17  0.0503481
  18  0.000893932
  19  0.195239
  20  0.0665048
Done.

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

Extracting fit parameters...

4FGL J2313.5+3945
   Spectrum: PowerLaw
406    Prefactor:  3.386e-09  3.422e-04  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:  8.658e-01  6.650e-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.382e+00  1.952e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 348.400 39.764
Photon Flux Upper Limit: 9.20e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.27e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/658782/likelihoodResults_691632001_691891201_4FGL_J2313.5+3945_daily_bin1745.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) = 12338.7942004
delta logL = -0.000301700021737

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 12338.7938987
delta logL = -3.62524588127e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .29976E-08   1.0000          .0000       .10000E+07
     2 'Index     '    1.8221       1.0000          .0000       10.000    
     3 'Normalizat'    1.3823       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86574       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   12338.79     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      287 TOTAL
                     EDM=   .33E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        5.8995        .42118E-03** at limit **
   2  Index         3.5362        1.2718       -.21327E-04     .0000    
   3  Normalizat    1.3822        1.0646       -.10968E-04   -.59603E-04
   4  Prefactor     .86575        1.2122        .35535E-05   -.93164E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 3.5362
  Normalizat = 1.38225
  Prefactor  = 0.86575
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   12338.79     FROM HESSE     STATUS=FAILED         9 CALLS      296 TOTAL
                     EDM=   .33E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        5.8995        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.3885        2.2004       -.21327E-04   -.29711    
   3  Normalizat    1.3822        1.0646       -.10968E-04   -.81143    
   4  Prefactor     .86575        1.2122        .35535E-05   -.97348    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 3.3224e-12
Minuit parameter uncertainties:
  1  7.45063e-06
  2  1.28728
  3  1.08235
  4  1.25327
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/658782': 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): 101
logL (Free Index) = 12338.7938987
delta logL = 1.92812876776e-10

Extracting fit parameters...

4FGL J2313.5+3945
   Spectrum: PowerLaw
406    Prefactor:  0.000e+00  7.451e-06  0.000e+00  1.000e+06 ( 1.000e-12)
407        Index:  3.536e+00  1.287e+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:  8.658e-01  1.253e+00  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.382e+00  1.082e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 348.400 39.764

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/658782/cmap_HighResolution_691632001_691891201_4FGL_J2313.5+3945_daily_bin1745.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.27e-03', job_status='DONE', photon_flux_upper_limit='9.20e-08', time_completed='2022-12-05 01:45:02.249848', job_id='658782', GAL2='0.87', fit_tolerance='1e-08', EG2='1.38', EG='1.38', time_epoch_completed='1670233502.25', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='1.93e-10', ts2='0.00', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='1745' AND source_name='4FGL J2313.5+3945' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Dec  5 01:45:02 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 658782: <4FGL_J2313.5+3945_daily_bin1745> in cluster <slac> Done

Job <4FGL_J2313.5+3945_daily_bin1745> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Dec  5 01:30:23 2022
Job was executed on host(s) <bullet0254>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Dec  5 01:30:24 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Dec  5 01:30:24 2022
Terminated at Mon Dec  5 01:45:03 2022
Results reported at Mon Dec  5 01:45:03 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2313.5+3945_daily_bin1745 348.4 39.7644 691632001 691891201 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 :                                   842.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             348.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   878 sec.
    Turnaround time :                            880 sec.

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

