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


Performing analysis on: 4FGL_J2313.5+3945_daily_bin1716
RA = 348.4, Dec = 39.7644
tmin = 684115201, tmax = 684374401
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='255198', job_status='RUN', time_executed='2022-09-17 00:28:51.379427', time_epoch_executed='1663399731.38' WHERE source_name='4FGL J2313.5+3945' and cadence='daily' and bin_id='1716'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/255198

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/255198/ft1_4FGL_J2313.5+3945_daily_bin1716.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/255198/ft2_4FGL_J2313.5+3945_daily_bin1716.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/255198/ft1_4FGL_J2313.5+3945_daily_bin1716.fits outfile=/scratch/kocevski/255198/ft1_filteredMKT_4FGL_J2313.5+3945_daily_bin1716.fits ra=348.4 dec=39.7644 rad=12.0 tmin=684115201.0 tmax=684374401.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.16
user 3.89
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/255198/ft2_4FGL_J2313.5+3945_daily_bin1716.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/255198/ft1_filteredMKT_4FGL_J2313.5+3945_daily_bin1716.fits evtable="EVENTS" outfile="/scratch/kocevski/255198/ft1_filtered_4FGL_J2313.5+3945_daily_bin1716.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.51
user 0.32
sys 0.17

Number of photons that the gtmktime cut: 959

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/255198/ft1_filtered_4FGL_J2313.5+3945_daily_bin1716.fits" evtable="EVENTS" scfile=/scratch/kocevski/255198/ft2_4FGL_J2313.5+3945_daily_bin1716.fits sctable="SC_DATA" outfile=/scratch/kocevski/255198/ltcube_684115201_684374401_4FGL_J2313.5+3945_daily_bin1716.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/255198/ft2_4FGL_J2313.5+3945_daily_bin1716.fits
.....................!
real 14.17
user 13.76
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/255198/ft1_filtered_4FGL_J2313.5+3945_daily_bin1716.fits evtable="EVENTS" scfile=/scratch/kocevski/255198/ft2_4FGL_J2313.5+3945_daily_bin1716.fits sctable="SC_DATA" expcube=/scratch/kocevski/255198/ltcube_684115201_684374401_4FGL_J2313.5+3945_daily_bin1716.fits outfile=/scratch/kocevski/255198/expmap_684115201_684374401_4FGL_J2313.5+3945_daily_bin1716.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/255198/ltcube_684115201_684374401_4FGL_J2313.5+3945_daily_bin1716.fits
.....................!
real 192.77
user 186.50
sys 5.55

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/255198/ft1_filtered_4FGL_J2313.5+3945_daily_bin1716.fits scfile=/scratch/kocevski/255198/ft2_4FGL_J2313.5+3945_daily_bin1716.fits outfile=/scratch/kocevski/255198/cmap_684115201_684374401_4FGL_J2313.5+3945_daily_bin1716.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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/255198/ft1_filtered_4FGL_J2313.5+3945_daily_bin1716.fits scfile=/scratch/kocevski/255198/ft2_4FGL_J2313.5+3945_daily_bin1716.fits outfile=/scratch/kocevski/255198/cmap_HighResolution_684115201_684374401_4FGL_J2313.5+3945_daily_bin1716.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.59
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .31403       1.0000          .0000       .10000E+07
     2 'norm      '    21.367       1.0000          .0000       .10000E+07
     3 'Prefactor '    .49599       1.0000          .0000       .10000E+07
     4 'norm      '    .80313       1.0000          .0000       .10000E+07
     5 'Prefactor '    .78681E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .39412E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    14.249       1.0000          .0000       .10000E+07
     8 'norm      '    .30453E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    2.5474       1.0000          .0000       .10000E+07
    10 'Prefactor '    16.704       1.0000          .0000       .10000E+07
    11 'norm      '    .23149E-02   1.0000          .0000       .10000E+07
    12 'norm      '    4.3988       1.0000          .0000       .10000E+07
    13 'Prefactor '    46.541       1.0000          .0000       .10000E+07
    14 'norm      '    .64747       1.0000          .0000       .10000E+07
    15 'Prefactor '    30.417       1.0000          .0000       .10000E+07
    16 'Prefactor '    .26844E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    .19823E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    2.2078       1.0000          .0000       .10000E+07
    19 'Normalizat'    .84809       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .99151       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=   10137.37     FROM MIGRAD    STATUS=CONVERGED    120 CALLS     1587 TOTAL
                     EDM=   .84E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .61073E-06    9.4296        .49552E-07** at limit **
   2  norm          21.417        3.7651        .77749E-06    .70786E-02
   3  Prefactor     .49838        1.2417       -.41749E-06   -.10929E-02
   4  norm          .84153        3.4058        .58518E-06    .10557E-02
   5  Prefactor     .18358E-06    10.129       -.23578E-05** at limit **
   6  Prefactor     .66003E-07    10.689        .15896E-05** at limit **
   7  Prefactor     14.227        1.0575        .39092E-07    .25303E-02
   8  norm          .55511E-10    .45882        .39603E-06** at limit **
   9  Prefactor     2.5461        9.3053       -.75709E-06    .17926E-02
  10  Prefactor     16.676        7.9418       -.21392E-05    .30355E-02
  11  norm          .52180E-08    7.0462       -.82424E-06** at limit **
  12  norm          4.3255        5.8683       -.21662E-06    .17633E-03
  13  Prefactor     46.717        19.511        .27240E-05    .97318E-01
  14  norm          .65368        2.0658       -.87156E-07    .10369E-02
  15  Prefactor     30.325        12.713       -.25888E-05    .14186    
  16  Prefactor     .88818E-09    9.3166        .14166E-05** at limit **
  17  Prefactor     .20306E-06    9.6973        .30746E-05** at limit **
  18  Prefactor     2.2170        7.0571        .41257E-06    .69115E-03
  19  Normalizat    .84783        .23903       -.56782E-04    .43845E-04
  20  Prefactor     .99156        .85977E-01    .14930E-04   -.72473E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.10734e-07
  norm       = 21.4169
  Prefactor  = 0.49838
  norm       = 0.841532
  Prefactor  = 1.83575e-07
  Prefactor  = 6.60028e-08
  Prefactor  = 14.227
  norm       = 5.55112e-11
  Prefactor  = 2.54611
  Prefactor  = 16.6761
  norm       = 5.21805e-09
  norm       = 4.32551
  Prefactor  = 46.7171
  norm       = 0.653685
  Prefactor  = 30.3251
  Prefactor  = 8.88178e-10
  Prefactor  = 2.0306e-07
  Prefactor  = 2.21696
  Normalizat = 0.847833
  Prefactor  = 0.991562
 **********
 **   18 **HESSE 
 **********

 FCN=   10137.37     FROM HESSE     STATUS=OK           341 CALLS     1928 TOTAL
                     EDM=   .16E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .61073E-06    70.460        .10021E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          21.417        21.284        .21640E-03   -1.5615    
   3  Prefactor     .49838        6.8665        .79114E-02   -1.5694    
   4  norm          .84153        3.4019        .52702E-03   -1.5690    
   5  Prefactor     .18358E-06    11.249        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .66003E-07    10.888        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     14.227        14.872        .26508E-03   -1.5633    
   8  norm          .55511E-10    .46007        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.5461        9.4129        .63951E-03   -1.5676    
  10  Prefactor     16.676        22.042        .24479E-03   -1.5626    
  11  norm          .52180E-08    6.9792        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.3255        5.8842        .47995E-03   -1.5666    
  13  Prefactor     46.717        21.812        .14660E-03   -1.5571    
  14  norm          .65368        2.0780        .65079E-03   -1.5692    
  15  Prefactor     30.325        45.596        .18135E-03   -1.5598    
  16  Prefactor     .88818E-09    19.081        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .20306E-06    18.683        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.2170        8.9237        .69204E-03   -1.5678    
  19  Normalizat    .84783        .22206        .96653E-01   -.98318    
  20  Prefactor     .99156        .77201E-01    .33264E-01   -.93011    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.55735e-06
Minuit parameter uncertainties:
  1  0.0131202
  2  21.284
  3  3.69981
  4  3.38396
  5  0.00287405
  6  0.00169551
  7  14.8717
  8  1.04314e-05
  9  9.41291
  10  22.0422
  11  0.000382525
  12  5.88418
  13  21.812
  14  2.07797
  15  45.5962
  16  0.000260327
  17  0.00389539
  18  8.89574
  19  0.222298
  20  0.07721
Done.

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

Extracting fit parameters...

4FGL J2313.5+3945
   Spectrum: PowerLaw
406    Prefactor:  2.546e+00  9.413e+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:  9.916e-01  7.721e-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:  8.478e-01  2.223e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/255198/likelihoodResults_684115201_684374401_4FGL_J2313.5+3945_daily_bin1716.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) = 10137.3321542
delta logL = 0.0418001351463

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10137.3310201
delta logL = 0.0429342730149

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.5485       1.0000          .0000       .10000E+07
     2 'Index     '    3.3530       1.0000          .0000       10.000    
     3 'Normalizat'    .83596       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99377       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=   10137.33     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      268 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5482        8.2629        .25574E-04   -.88640E-03
   2  Index         3.3528        2.1768        .11745E-01   -.28321E-04
   3  Normalizat    .83597        .23401        .43104E-03   -.16305E-03
   4  Prefactor     .99374        .84809E-01    .14684E-03   -.34028E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.54819
  Index      = 3.35284
  Normalizat = 0.835971
  Prefactor  = 0.993743
 **********
 **   18 **HESSE 
 **********

 FCN=   10137.33     FROM HESSE     STATUS=OK            25 CALLS      293 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5482        7.6742        .10230E-05   -1.5676    
   2  Index         3.3528        2.0300        .46982E-03   -.33570    
   3  Normalizat    .83597        .23424        .17242E-04   -.98748    
   4  Prefactor     .99374        .84835E-01    .29368E-04   -.92938    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.71428e-10
Minuit parameter uncertainties:
  1  7.67427
  2  2.09837
  3  0.234528
  4  0.0848461
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/255198': 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) = 10137.33102
delta logL = 0.0429343850719

Extracting fit parameters...

4FGL J2313.5+3945
   Spectrum: PowerLaw
406    Prefactor:  2.548e+00  7.674e+00  0.000e+00  1.000e+06 ( 1.000e-12)
407        Index:  3.353e+00  2.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:  9.937e-01  8.485e-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:  8.360e-01  2.345e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.09
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/255198/cmap_HighResolution_684115201_684374401_4FGL_J2313.5+3945_daily_bin1716.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.03e-03', job_status='DONE', photon_flux_upper_limit='1.14e-07', time_completed='2022-09-17 00:41:46.546255', job_id='255198', GAL2='0.99', fit_tolerance='1e-08', EG2='0.84', EG='0.85', time_epoch_completed='1663400506.55', return_code2='0', ts='0.09', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='4.29e-02', ts2='0.18', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='1716' AND source_name='4FGL J2313.5+3945' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 17 00:41:46 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 255198: <4FGL_J2313.5+3945_daily_bin1716> in cluster <slac> Done

Job <4FGL_J2313.5+3945_daily_bin1716> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep 17 00:25:18 2022
Job was executed on host(s) <bullet0216>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 17 00:28:00 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 17 00:28:00 2022
Terminated at Sat Sep 17 00:41:47 2022
Results reported at Sat Sep 17 00:41:47 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2313.5+3945_daily_bin1716 348.4 39.7644 684115201 684374401 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 :                                   776.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             334.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   826 sec.
    Turnaround time :                            989 sec.

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

