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


Performing analysis on: 4FGL_J2313.5+3945_daily_bin1747
RA = 348.4, Dec = 39.7644
tmin = 692150401, tmax = 692409601
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='816109', job_status='RUN', time_executed='2022-12-11 01:51:39.433744', time_epoch_executed='1670752299.43' WHERE source_name='4FGL J2313.5+3945' and cadence='daily' and bin_id='1747'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/816109

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/816109/ft1_4FGL_J2313.5+3945_daily_bin1747.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/816109/ft2_4FGL_J2313.5+3945_daily_bin1747.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/816109/ft1_4FGL_J2313.5+3945_daily_bin1747.fits outfile=/scratch/kocevski/816109/ft1_filteredMKT_4FGL_J2313.5+3945_daily_bin1747.fits ra=348.4 dec=39.7644 rad=12.0 tmin=692150401.0 tmax=692409601.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 4.00
user 3.77
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/816109/ft1_filtered_4FGL_J2313.5+3945_daily_bin1747.fits" evtable="EVENTS" scfile=/scratch/kocevski/816109/ft2_4FGL_J2313.5+3945_daily_bin1747.fits sctable="SC_DATA" outfile=/scratch/kocevski/816109/ltcube_692150401_692409601_4FGL_J2313.5+3945_daily_bin1747.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/816109/ft2_4FGL_J2313.5+3945_daily_bin1747.fits
.....................!
real 12.14
user 11.81
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/816109/ft1_filtered_4FGL_J2313.5+3945_daily_bin1747.fits evtable="EVENTS" scfile=/scratch/kocevski/816109/ft2_4FGL_J2313.5+3945_daily_bin1747.fits sctable="SC_DATA" expcube=/scratch/kocevski/816109/ltcube_692150401_692409601_4FGL_J2313.5+3945_daily_bin1747.fits outfile=/scratch/kocevski/816109/expmap_692150401_692409601_4FGL_J2313.5+3945_daily_bin1747.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/816109/ltcube_692150401_692409601_4FGL_J2313.5+3945_daily_bin1747.fits
.....................!
real 191.21
user 185.50
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
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/816109/ft1_filtered_4FGL_J2313.5+3945_daily_bin1747.fits scfile=/scratch/kocevski/816109/ft2_4FGL_J2313.5+3945_daily_bin1747.fits outfile=/scratch/kocevski/816109/cmap_692150401_692409601_4FGL_J2313.5+3945_daily_bin1747.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/816109/ft1_filtered_4FGL_J2313.5+3945_daily_bin1747.fits scfile=/scratch/kocevski/816109/ft2_4FGL_J2313.5+3945_daily_bin1747.fits outfile=/scratch/kocevski/816109/cmap_HighResolution_692150401_692409601_4FGL_J2313.5+3945_daily_bin1747.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.55
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.627       1.0000          .0000       .10000E+07
     2 'norm      '    5.2232       1.0000          .0000       .10000E+07
     3 'Prefactor '    3.4851       1.0000          .0000       .10000E+07
     4 'norm      '    2.9830       1.0000          .0000       .10000E+07
     5 'Prefactor '    .33239E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .34486E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .28283E-03   1.0000          .0000       .10000E+07
     8 'norm      '    1.1013       1.0000          .0000       .10000E+07
     9 'Prefactor '    1.2630       1.0000          .0000       .10000E+07
    10 'Prefactor '    41.106       1.0000          .0000       .10000E+07
    11 'norm      '    .32405E-01   1.0000          .0000       .10000E+07
    12 'norm      '    .10263E-05   1.0000          .0000       .10000E+07
    13 'Prefactor '    31.876       1.0000          .0000       .10000E+07
    14 'norm      '    .55511E-10   1.0000          .0000       .10000E+07
    15 'Prefactor '    .11012E-01   1.0000          .0000       .10000E+07
    16 'Prefactor '    15.943       1.0000          .0000       .10000E+07
    17 'Prefactor '    .30699E-04   1.0000          .0000       .10000E+07
    18 'Prefactor '    .36937E-05   1.0000          .0000       .10000E+07
    19 'Normalizat'    1.0754       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0591       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=   11654.98     FROM MIGRAD    STATUS=CONVERGED    134 CALLS     1527 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     32.202        21.392       -.13632E-06    .82279E-01
   2  norm          4.9533        5.1207        .29911E-07    .11313    
   3  Prefactor     3.4998        4.3279        .28200E-08   -.53929E-02
   4  norm          2.9848        3.6101       -.26049E-06    .13432E-02
   5  Prefactor     .44964E-08    5.0234        .53845E-06** at limit **
   6  Prefactor     .15543E-07    4.8021        .24241E-06** at limit **
   7  Prefactor     .14544E-07    12.160       -.53324E-06** at limit **
   8  norm          1.1028        1.0033       -.16705E-06    .24333E-02
   9  Prefactor     1.3044        16.234        .92283E-06    .53782E-02
  10  Prefactor     41.433        3.2915       -.66600E-07    .85843E-01
  11  norm          .27756E-09    28.261        .11673E-05** at limit **
  12  norm          .78826E-08    4.3750        .95107E-08** at limit **
  13  Prefactor     31.645        5.9230        .98785E-09    .10084    
  14  norm           .0000        .96183        .28617E-06** at limit **
  15  Prefactor     .24958E-06    61.733        .19260E-05** at limit **
  16  Prefactor     15.924        1.8304        .49272E-09    .13185E-01
  17  Prefactor     .20040E-07    10.213        .22096E-07** at limit **
  18  Prefactor      .0000        1.7265       -.91910E-07** at limit **
  19  Normalizat    1.0761        .22702       -.34083E-05   -.77524E-04
  20  Prefactor     1.0589        .86720E-01    .29878E-05   -.25927E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 32.2024
  norm       = 4.95334
  Prefactor  = 3.4998
  norm       = 2.98482
  Prefactor  = 4.4964e-09
  Prefactor  = 1.55431e-08
  Prefactor  = 1.45439e-08
  norm       = 1.10278
  Prefactor  = 1.30442
  Prefactor  = 41.433
  norm       = 2.77556e-10
  norm       = 7.88258e-09
  Prefactor  = 31.6451
  norm       = 0
  Prefactor  = 2.49578e-07
  Prefactor  = 15.9237
  Prefactor  = 2.00395e-08
  Prefactor  = 0
  Normalizat = 1.0761
  Prefactor  = 1.05887
 **********
 **   18 **HESSE 
 **********

 FCN=   11654.98     FROM HESSE     STATUS=OK           339 CALLS     1866 TOTAL
                     EDM=   .96E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     32.202        24.514        .17784E-03   -1.5594    
   2  norm          4.9533        13.011        .43959E-03   -1.5663    
   3  Prefactor     3.4998        4.4212        .54139E-03   -1.5671    
   4  norm          2.9848        3.6149        .58755E-03   -1.5673    
   5  Prefactor     .44964E-08    5.0295        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .15543E-07    4.7819        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .14544E-07    12.420        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.1028        1.0289        .11313E-02   -1.5687    
   9  Prefactor     1.3044        16.284        .99149E-03   -1.5685    
  10  Prefactor     41.433        34.624        .15599E-03   -1.5579    
  11  norm          .27756E-09    2.5699        .98361E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .78826E-08    4.3829        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     31.645        21.589        .17714E-03   -1.5595    
  14  norm           .0000        .95923        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .24958E-06    62.346        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     15.924        20.740        .25057E-03   -1.5628    
  17  Prefactor     .20040E-07    10.352        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor      .0000        1.7306        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0761        .21422        .92575E-01   -.90523    
  20  Prefactor     1.0589        .76772E-01    .39404E-01   -.90792    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.59576e-07
Minuit parameter uncertainties:
  1  24.514
  2  13.011
  3  4.42121
  4  3.61491
  5  0.000300898
  6  0.000545251
  7  0.000849242
  8  1.02892
  9  9.21756
  10  34.6238
  11  5.43828e-05
  12  0.000372219
  13  21.5891
  14  7.89199e-06
  15  0.00788961
  16  20.7401
  17  0.000911549
  18  1.08979e-06
  19  0.214391
  20  0.0767801
Done.

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

Extracting fit parameters...

4FGL J2313.5+3945
   Spectrum: PowerLaw
406    Prefactor:  1.304e+00  9.218e+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

GAL_V02
   Spectrum: PowerLaw
538    Prefactor:  1.059e+00  7.678e-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.076e+00  2.144e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/816109/likelihoodResults_692150401_692409601_4FGL_J2313.5+3945_daily_bin1747.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) = 11654.9439873
delta logL = 0.0391336958619

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11654.8908496
delta logL = 0.092271393085

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.8502       1.0000          .0000       .10000E+07
     2 'Index     '    2.1741       1.0000          .0000       10.000    
     3 'Normalizat'    1.0765       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0565       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=   11654.89     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      281 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.8506        11.360        .18261E-04   -.11356E-02
   2  Index         2.1740        .94287        .17991E-01   -.33222E-04
   3  Normalizat    1.0765        .22497        .40998E-03   -.23925E-03
   4  Prefactor     1.0565        .86263E-01    .15724E-03   -.54930E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.85063
  Index      = 2.17396
  Normalizat = 1.07645
  Prefactor  = 1.05652
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.8506        11.326        .73044E-06   -1.5664    
   2  Index         2.1740        .94108        .71965E-03   -.60069    
   3  Normalizat    1.0765        .22511        .16399E-04   -.90511    
   4  Prefactor     1.0565        .86291E-01    .31449E-04   -.90868    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37352e-10
Minuit parameter uncertainties:
  1  11.3262
  2  0.949446
  3  0.225308
  4  0.0863024
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/816109': 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) = 11654.8908495
delta logL = 0.0922714264198

Extracting fit parameters...

4FGL J2313.5+3945
   Spectrum: PowerLaw
406    Prefactor:  4.851e+00  1.133e+01  0.000e+00  1.000e+06 ( 1.000e-12)
407        Index:  2.174e+00  9.494e-01  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.057e+00  8.630e-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.076e+00  2.253e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.02
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/816109/cmap_HighResolution_692150401_692409601_4FGL_J2313.5+3945_daily_bin1747.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.00e-03', job_status='DONE', photon_flux_upper_limit='1.01e-07', time_completed='2022-12-11 02:05:47.768653', job_id='816109', GAL2='1.06', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1670753147.77', return_code2='0', ts='0.02', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='9.23e-02', ts2='0.21', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='1747' AND source_name='4FGL J2313.5+3945' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Dec 11 02:05:47 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0107>
Subject: Job 816109: <4FGL_J2313.5+3945_daily_bin1747> in cluster <slac> Done

Job <4FGL_J2313.5+3945_daily_bin1747> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sun Dec 11 01:50:19 2022
Job was executed on host(s) <bullet0107>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Dec 11 01:50:19 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Dec 11 01:50:19 2022
Terminated at Sun Dec 11 02:05:48 2022
Results reported at Sun Dec 11 02:05:48 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2313.5+3945_daily_bin1747 348.4 39.7644 692150401 692409601 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 :                                   850.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             357.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   929 sec.
    Turnaround time :                            929 sec.

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

