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 150 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_J2118.0+0019_daily_bin1758
RA = 319.505, Dec = 0.3295
tmin = 695001601, tmax = 695260801
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='382332', job_status='RUN', time_executed='2023-01-13 01:43:30.847376', time_epoch_executed='1673603010.85' WHERE source_name='4FGL J2118.0+0019' and cadence='daily' and bin_id='1758'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/382332

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/382332/ft1_4FGL_J2118.0+0019_daily_bin1758.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/382332/ft2_4FGL_J2118.0+0019_daily_bin1758.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/382332/ft1_4FGL_J2118.0+0019_daily_bin1758.fits outfile=/scratch/kocevski/382332/ft1_filteredMKT_4FGL_J2118.0+0019_daily_bin1758.fits ra=319.505 dec=0.3295 rad=12.0 tmin=695001601.0 tmax=695260801.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.77
user 2.55
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/382332/ft2_4FGL_J2118.0+0019_daily_bin1758.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/382332/ft2_4FGL_J2118.0+0019_daily_bin1758.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/382332/ft1_filteredMKT_4FGL_J2118.0+0019_daily_bin1758.fits evtable="EVENTS" outfile="/scratch/kocevski/382332/ft1_filtered_4FGL_J2118.0+0019_daily_bin1758.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.52
user 0.33
sys 0.16

Number of photons that the gtmktime cut: 518

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/382332/ft1_filtered_4FGL_J2118.0+0019_daily_bin1758.fits" evtable="EVENTS" scfile=/scratch/kocevski/382332/ft2_4FGL_J2118.0+0019_daily_bin1758.fits sctable="SC_DATA" outfile=/scratch/kocevski/382332/ltcube_695001601_695260801_4FGL_J2118.0+0019_daily_bin1758.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/382332/ft2_4FGL_J2118.0+0019_daily_bin1758.fits
.....................!
real 16.04
user 15.63
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/382332/ft1_filtered_4FGL_J2118.0+0019_daily_bin1758.fits evtable="EVENTS" scfile=/scratch/kocevski/382332/ft2_4FGL_J2118.0+0019_daily_bin1758.fits sctable="SC_DATA" expcube=/scratch/kocevski/382332/ltcube_695001601_695260801_4FGL_J2118.0+0019_daily_bin1758.fits outfile=/scratch/kocevski/382332/expmap_695001601_695260801_4FGL_J2118.0+0019_daily_bin1758.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/382332/ltcube_695001601_695260801_4FGL_J2118.0+0019_daily_bin1758.fits
.....................!
real 191.30
user 186.79
sys 3.91

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 176 point sources and 0 extended sources

Setting source of interest to:
4FGL J2118.0+0019 @ 319.505 0.3295

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/382332/ft1_filtered_4FGL_J2118.0+0019_daily_bin1758.fits scfile=/scratch/kocevski/382332/ft2_4FGL_J2118.0+0019_daily_bin1758.fits outfile=/scratch/kocevski/382332/cmap_695001601_695260801_4FGL_J2118.0+0019_daily_bin1758.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=319.505 yref=0.3295 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/382332/ft1_filtered_4FGL_J2118.0+0019_daily_bin1758.fits scfile=/scratch/kocevski/382332/ft2_4FGL_J2118.0+0019_daily_bin1758.fits outfile=/scratch/kocevski/382332/cmap_HighResolution_695001601_695260801_4FGL_J2118.0+0019_daily_bin1758.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=319.505 yref=0.3295 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.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/382332/ft1_filtered_4FGL_J2118.0+0019_daily_bin1758.fits evtable="EVENTS" scfile=/scratch/kocevski/382332/ft2_4FGL_J2118.0+0019_daily_bin1758.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/382332/Model_4FGL_J2118.0+0019_daily_bin1758.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/382332/ft1_filtered_4FGL_J2118.0+0019_daily_bin1758.fits.....................!
real 62.82
user 61.35
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/382332/ft1_filtered_4FGL_J2118.0+0019_daily_bin1758.fits', '/scratch/kocevski/382332/ft2_4FGL_J2118.0+0019_daily_bin1758.fits', expMap='/scratch/kocevski/382332/expmap_695001601_695260801_4FGL_J2118.0+0019_daily_bin1758.fits', expCube='/scratch/kocevski/382332/ltcube_695001601_695260801_4FGL_J2118.0+0019_daily_bin1758.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/382332/Model_4FGL_J2118.0+0019_daily_bin1758.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2118.0+0019'

4FGL J2118.0+0019
   Spectrum: PowerLaw
308    Prefactor:  7.605e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
309        Index:  2.572e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
310        Scale:  6.601e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/382332/ft1_filtered_4FGL_J2118.0+0019_daily_bin1758.fits
Spacecraft file(s): /scratch/kocevski/382332/ft2_4FGL_J2118.0+0019_daily_bin1758.fits
Exposure map: /scratch/kocevski/382332/expmap_695001601_695260801_4FGL_J2118.0+0019_daily_bin1758.fits
Exposure cube: /scratch/kocevski/382332/ltcube_695001601_695260801_4FGL_J2118.0+0019_daily_bin1758.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/382332/Model_4FGL_J2118.0+0019_daily_bin1758.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) = 5940.55760045

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .32786E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    13.794       1.0000          .0000       .10000E+07
     3 'Prefactor '    .11445E-01   1.0000          .0000       .10000E+07
     4 'Prefactor '    7.6368       1.0000          .0000       .10000E+07
     5 'Prefactor '    121.54       1.0000          .0000       .10000E+07
     6 'Prefactor '    65.456       1.0000          .0000       .10000E+07
     7 'Prefactor '    51.088       1.0000          .0000       .10000E+07
     8 'Prefactor '    31.431       1.0000          .0000       .10000E+07
     9 'Prefactor '    4.7277       1.0000          .0000       .10000E+07
    10 'Prefactor '    .37847E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    26.458       1.0000          .0000       .10000E+07
    12 'Prefactor '    .57296E-03   1.0000          .0000       .10000E+07
    13 'norm      '    1.9682       1.0000          .0000       .10000E+07
    14 'norm      '    .30859E-06   1.0000          .0000       .10000E+07
    15 'Prefactor '    11.876       1.0000          .0000       .10000E+07
    16 'Prefactor '    .51363E-04   1.0000          .0000       .10000E+07
    17 'Normalizat'    1.0393       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .84560       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5740E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5940.557     FROM MIGRAD    STATUS=CONVERGED    178 CALLS     1427 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        9.0482       -.50750E-08** at limit **
   2  Prefactor     13.772        10.790       -.68350E-07   -.18422E-03
   3  Prefactor     .22204E-09    19.713        .16130E-06** at limit **
   4  Prefactor     7.6380        12.929       -.12769E-06   -.21143E-03
   5  Prefactor     123.59        115.38        .63541E-06   -.93605E-02
   6  Prefactor     65.731        14.047       -.10168E-06   -.17189    
   7  Prefactor     51.206        33.807       -.26985E-06    .11301E-01
   8  Prefactor     32.679        66.269       -.49378E-06    .22329E-01
   9  Prefactor     4.6591        10.136        .86643E-07    .22002E-02
  10  Prefactor      .0000        16.059        .85444E-06** at limit **
  11  Prefactor     26.313        45.879        .38298E-06    .62120E-02
  12  Prefactor     .11102E-09    16.136       -.11271E-06** at limit **
  13  norm          1.9714        1.9468       -.26485E-09   -.24233E-04
  14  norm           .0000        7.5136        .87553E-07** at limit **
  15  Prefactor     12.064        8.2219       -.24896E-07   -.28366E-03
  16  Prefactor      .0000        3.8371       -.54748E-07** at limit **
  17  Normalizat    1.0358        .35586       -.41899E-06   -.14137E-05
  18  Prefactor     .84619        .14566        .34354E-06   -.88394E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  Prefactor  = 13.7723
  Prefactor  = 2.22045e-10
  Prefactor  = 7.63796
  Prefactor  = 123.589
  Prefactor  = 65.7311
  Prefactor  = 51.2061
  Prefactor  = 32.6791
  Prefactor  = 4.65907
  Prefactor  = 0
  Prefactor  = 26.3131
  Prefactor  = 1.11022e-10
  norm       = 1.97138
  norm       = 0
  Prefactor  = 12.0643
  Prefactor  = 0
  Normalizat = 1.03579
  Prefactor  = 0.846193
 **********
 **   18 **HESSE 
 **********

 FCN=   5940.557     FROM HESSE     STATUS=OK           286 CALLS     1713 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        9.0545        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     13.772        10.788        .26943E-03   -1.5634    
   3  Prefactor     .22204E-09    19.728        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.6380        12.936        .36265E-03   -1.5653    
   5  Prefactor     123.59        117.05        .90715E-04   -1.5486    
   6  Prefactor     65.731        50.622        .12361E-03   -1.5546    
   7  Prefactor     51.206        33.680        .13992E-03   -1.5565    
   8  Prefactor     32.679        72.676        .17840E-03   -1.5594    
   9  Prefactor     4.6591        10.369        .46254E-03   -1.5665    
  10  Prefactor      .0000        2.4888        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     26.313        46.355        .19445E-03   -1.5605    
  12  Prefactor     .11102E-09    16.148        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.9714        1.9481        .73888E-03   -1.5680    
  14  norm           .0000        7.5069        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     12.064        8.2169        .29043E-03   -1.5638    
  16  Prefactor      .0000        3.8432        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.0358        .29164        .81879E-01   -.91841    
  18  Prefactor     .84619        .11927        .44308E-01   -.98047    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.25738e-06
Minuit parameter uncertainties:
  1  1.63438e-05
  2  10.788
  3  0.00012428
  4  12.9356
  5  117.055
  6  50.6227
  7  33.6801
  8  72.6777
  9  10.3692
  10  8.01076e-06
  11  46.3556
  12  7.79189e-05
  13  1.94808
  14  8.56169e-06
  15  8.21692
  16  9.1546e-06
  17  0.292092
  18  0.119303
Done.

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

Extracting fit parameters...

4FGL J2118.0+0019
   Spectrum: PowerLaw
308    Prefactor:  1.236e+02  1.171e+02  0.000e+00  1.000e+06 ( 1.000e-13)
309        Index:  2.572e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
310        Scale:  6.601e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
571    Prefactor:  8.462e-01  1.193e-01  0.000e+00  1.000e+01 ( 1.000e+00)
572        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
573        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
570   Normalization:  1.036e+00  2.921e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.40
Ra Dec: 319.505 0.330
Photon Index (Fixed Index): 2.57 +/- 0.00
Photon Flux (Fixed Index): 1.01e-07 +/- 9.55e-08
Energy Flux (Fixed Index): 2.72e-05 +/- 2.57e-05

TS (Fixed Index): 1.40
Ra Dec: 319.505 0.330
Photon Flux Upper Limit: 2.76e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.15e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/382332/likelihoodResults_695001601_695260801_4FGL_J2118.0+0019_daily_bin1758.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) = 5940.0046546
delta logL = 0.551972664677

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5939.98685097
delta logL = 0.569776293446

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.109       1.0000          .0000       .10000E+07
     2 'Index     '    4.0584       1.0000          .0000       10.000    
     3 'Normalizat'    .94225       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88090       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5740E+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=   5939.987     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      320 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.071        557.14        .78298E-05    .87118E-05
   2  Index         4.0601        6.9802        .52318E-02    .20087E-04
   3  Normalizat    .94212        .32411        .37768E-03   -.52978E-05
   4  Prefactor     .88084        .14936        .17667E-03    .98454E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.0709
  Index      = 4.06009
  Normalizat = 0.942124
  Prefactor  = 0.880836
 **********
 **   18 **HESSE 
 **********

 FCN=   5939.987     FROM HESSE     STATUS=OK            25 CALLS      345 TOTAL
                     EDM=   .12E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.071        57.009        .31319E-06   -1.5606    
   2  Index         4.0601        1.3522        .20927E-03   -.18911    
   3  Normalizat    .94212        .32823        .15107E-04   -.94995    
   4  Prefactor     .88084        .14493        .70669E-05   -.96814    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.21342e-12
Minuit parameter uncertainties:
  1  57.01
  2  1.36989
  3  0.328929
  4  0.144995
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/382332': 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) = 5939.98684798
delta logL = 0.569779289143

Extracting fit parameters...

4FGL J2118.0+0019
   Spectrum: PowerLaw
308    Prefactor:  2.607e+01  5.701e+01  0.000e+00  1.000e+06 ( 1.000e-13)
309        Index:  4.060e+00  1.370e+00  0.000e+00  1.000e+01 (-1.000e+00)
310        Scale:  6.601e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
571    Prefactor:  8.808e-01  1.450e-01  0.000e+00  1.000e+01 ( 1.000e+00)
572        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
573        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
570   Normalization:  9.421e-01  3.289e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.77
Ra Dec: 319.505 0.330
Photon Index (Free Index): 4.06 +/- 1.37
Photon Flux (Free Index): 1.82e-07 +/- 1.29e-07
Energy Flux (Free Index): 2.70e-05 +/- 1.95e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/382332/cmap_HighResolution_695001601_695260801_4FGL_J2118.0+0019_daily_bin1758.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.15e-02', comment='SUCCESS', photon_flux='1.01e-07', energy_flux2='2.70e-05', photon_flux_error='9.55e-08', dlogl='5.70e-01', energy_flux='2.72e-05', photon_flux2='1.82e-07', job_status='DONE', time_completed='2023-01-13 01:52:45.755991', photon_index_error2='1.37', photon_index2='4.06', ts='1.40', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', photon_flux_upper_limit='2.76e-07', energy_flux_error2='1.95e-05', EG='1.04', time_epoch_completed='1673603565.76', return_code='0', job_id='382332', GAL2='0.88', EG2='0.94', return_code2='0', energy_flux_error='2.57e-05', photon_flux_error2='1.29e-07', ts2='2.77', photon_index='2.57' WHERE bin_id='1758' AND source_name='4FGL J2118.0+0019' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jan 13 01:52:45 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0080>
Subject: Job 382332: <4FGL_J2118.0+0019_daily_bin1758> in cluster <slac> Done

Job <4FGL_J2118.0+0019_daily_bin1758> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Jan 13 01:40:16 2023
Job was executed on host(s) <bullet0080>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Jan 13 01:40:50 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Jan 13 01:40:50 2023
Terminated at Fri Jan 13 01:52:46 2023
Results reported at Fri Jan 13 01:52:46 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2118.0+0019_daily_bin1758 319.505 0.3295 695001601 695260801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2118.0+0019 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   556.41 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             272.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   716 sec.
    Turnaround time :                            750 sec.

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

