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


Performing analysis on: 4FGL_J2114.8+2026_daily_bin1733
RA = 318.717, Dec = 20.4418
tmin = 688521601, tmax = 688780801
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='708432', job_status='RUN', time_executed='2022-10-30 00:36:50.487265', time_epoch_executed='1667115410.49' WHERE source_name='4FGL J2114.8+2026' and cadence='daily' and bin_id='1733'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/708432

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/708432/ft1_4FGL_J2114.8+2026_daily_bin1733.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/708432/ft2_4FGL_J2114.8+2026_daily_bin1733.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/708432/ft1_4FGL_J2114.8+2026_daily_bin1733.fits outfile=/scratch/kocevski/708432/ft1_filteredMKT_4FGL_J2114.8+2026_daily_bin1733.fits ra=318.717 dec=20.4418 rad=12.0 tmin=688521601.0 tmax=688780801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.54
user 3.32
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/708432/ft2_4FGL_J2114.8+2026_daily_bin1733.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/708432/ft2_4FGL_J2114.8+2026_daily_bin1733.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/708432/ft1_filteredMKT_4FGL_J2114.8+2026_daily_bin1733.fits evtable="EVENTS" outfile="/scratch/kocevski/708432/ft1_filtered_4FGL_J2114.8+2026_daily_bin1733.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.33
sys 0.16

Number of photons that the gtmktime cut: 977

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/708432/ft1_filtered_4FGL_J2114.8+2026_daily_bin1733.fits" evtable="EVENTS" scfile=/scratch/kocevski/708432/ft2_4FGL_J2114.8+2026_daily_bin1733.fits sctable="SC_DATA" outfile=/scratch/kocevski/708432/ltcube_688521601_688780801_4FGL_J2114.8+2026_daily_bin1733.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/708432/ft2_4FGL_J2114.8+2026_daily_bin1733.fits
.....................!
real 11.98
user 11.64
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/708432/ft1_filtered_4FGL_J2114.8+2026_daily_bin1733.fits evtable="EVENTS" scfile=/scratch/kocevski/708432/ft2_4FGL_J2114.8+2026_daily_bin1733.fits sctable="SC_DATA" expcube=/scratch/kocevski/708432/ltcube_688521601_688780801_4FGL_J2114.8+2026_daily_bin1733.fits outfile=/scratch/kocevski/708432/expmap_688521601_688780801_4FGL_J2114.8+2026_daily_bin1733.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/708432/ltcube_688521601_688780801_4FGL_J2114.8+2026_daily_bin1733.fits
.....................!
real 190.27
user 184.93
sys 5.02

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 Cygnus Loop in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/CygnusLoop.fits is the correct path to the extended template.
Added 201 point sources and 1 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 J2114.8+2026 @ 318.717 20.4418

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/708432/ft1_filtered_4FGL_J2114.8+2026_daily_bin1733.fits scfile=/scratch/kocevski/708432/ft2_4FGL_J2114.8+2026_daily_bin1733.fits outfile=/scratch/kocevski/708432/cmap_688521601_688780801_4FGL_J2114.8+2026_daily_bin1733.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=318.717 yref=20.4418 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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/708432/ft1_filtered_4FGL_J2114.8+2026_daily_bin1733.fits scfile=/scratch/kocevski/708432/ft2_4FGL_J2114.8+2026_daily_bin1733.fits outfile=/scratch/kocevski/708432/cmap_HighResolution_688521601_688780801_4FGL_J2114.8+2026_daily_bin1733.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=318.717 yref=20.4418 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/708432/ft1_filtered_4FGL_J2114.8+2026_daily_bin1733.fits evtable="EVENTS" scfile=/scratch/kocevski/708432/ft2_4FGL_J2114.8+2026_daily_bin1733.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/708432/Model_4FGL_J2114.8+2026_daily_bin1733.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 Cygnus Loop
adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/708432/ft1_filtered_4FGL_J2114.8+2026_daily_bin1733.fits.....................!
real 155.57
user 154.05
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/708432/ft1_filtered_4FGL_J2114.8+2026_daily_bin1733.fits', '/scratch/kocevski/708432/ft2_4FGL_J2114.8+2026_daily_bin1733.fits', expMap='/scratch/kocevski/708432/expmap_688521601_688780801_4FGL_J2114.8+2026_daily_bin1733.fits', expCube='/scratch/kocevski/708432/ltcube_688521601_688780801_4FGL_J2114.8+2026_daily_bin1733.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/708432/Model_4FGL_J2114.8+2026_daily_bin1733.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2114.8+2026'

4FGL J2114.8+2026
   Spectrum: PowerLaw
420    Prefactor:  1.772e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
421        Index:  2.106e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
422        Scale:  2.990e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/708432/ft1_filtered_4FGL_J2114.8+2026_daily_bin1733.fits
Spacecraft file(s): /scratch/kocevski/708432/ft2_4FGL_J2114.8+2026_daily_bin1733.fits
Exposure map: /scratch/kocevski/708432/expmap_688521601_688780801_4FGL_J2114.8+2026_daily_bin1733.fits
Exposure cube: /scratch/kocevski/708432/ltcube_688521601_688780801_4FGL_J2114.8+2026_daily_bin1733.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/708432/Model_4FGL_J2114.8+2026_daily_bin1733.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) = 10185.6887974

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .46806E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    31.043       1.0000          .0000       .10000E+07
     3 'Prefactor '    .11935E-01   1.0000          .0000       .10000E+07
     4 'Prefactor '    48.206       1.0000          .0000       .10000E+07
     5 'Prefactor '    .47222       1.0000          .0000       .10000E+07
     6 'Prefactor '    24.290       1.0000          .0000       .10000E+07
     7 'Prefactor '    .98199E-07   1.0000          .0000       .10000E+07
     8 'norm      '    5.0221       1.0000          .0000       .10000E+07
     9 'norm      '    4.0532       1.0000          .0000       .10000E+07
    10 'Prefactor '    .75265E-01   1.0000          .0000       .10000E+07
    11 'Prefactor '    .49059       1.0000          .0000       .10000E+07
    12 'norm      '    2.8670       1.0000          .0000       .10000E+07
    13 'Prefactor '    .12871E-01   1.0000          .0000       .10000E+07
    14 'Prefactor '    9.7976       1.0000          .0000       .10000E+07
    15 'norm      '    .10781       1.0000          .0000       .10000E+07
    16 'Normalizat'    1.0779       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .90376       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6990E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10185.69     FROM MIGRAD    STATUS=CONVERGED    126 CALLS     1344 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.0642        .35538E-06** at limit **
   2  norm          30.922        1.7363       -.22289E-07    .33130E-01
   3  Prefactor     .72387E-06    38.027       -.23204E-06** at limit **
   4  Prefactor     47.958        6.0275       -.52691E-07    .36289    
   5  Prefactor     .52772        54.469        .14054E-05    .12509E-01
   6  Prefactor     24.324        2.5151       -.29419E-07    .29072E-01
   7  Prefactor     .11102E-09    4.2099        .25783E-06** at limit **
   8  norm          5.0178        4.9466        .10822E-06    .34720E-02
   9  norm          4.0732        4.1092        .39014E-07   -.23932E-02
  10  Prefactor     .86219E-01    80.157       -.28797E-05** at limit **
  11  Prefactor     .16622E-04    16.307        .29146E-06** at limit **
  12  norm          2.8683        2.4636       -.60535E-07   -.46410E-02
  13  Prefactor     .52153E-06    40.924        .35100E-06** at limit **
  14  Prefactor     9.8029        1.0792       -.53105E-08   -.12059E-02
  15  norm          .10817        2.6305        .14501E-06** at limit **
  16  Normalizat    1.0775        .26117       -.18381E-05   -.25002E-03
  17  Prefactor     .90385        .84284E-01   -.32918E-06   -.59942E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 30.9218
  Prefactor  = 7.23865e-07
  Prefactor  = 47.9585
  Prefactor  = 0.527722
  Prefactor  = 24.3237
  Prefactor  = 1.11022e-10
  norm       = 5.01778
  norm       = 4.07316
  Prefactor  = 0.0862193
  Prefactor  = 1.66223e-05
  norm       = 2.86831
  Prefactor  = 5.21527e-07
  Prefactor  = 9.80289
  norm       = 0.108166
  Normalizat = 1.07751
  Prefactor  = 0.903851
 **********
 **   18 **HESSE 
 **********

 FCN=   10185.69     FROM HESSE     STATUS=OK           283 CALLS     1627 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.2021        .47711E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          30.922        25.596        .17951E-03   -1.5597    
   3  Prefactor     .72387E-06    37.769        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     47.958        66.997        .14404E-03   -1.5569    
   5  Prefactor     .52772        7.3535        .98936E-02   -1.5693    
   6  Prefactor     24.324        27.767        .20295E-03   -1.5609    
   7  Prefactor     .11102E-09    4.1975        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          5.0178        4.8989        .44848E-03   -1.5663    
   9  norm          4.0732        4.1874        .50059E-03   -1.5668    
  10  Prefactor     .86219E-01    2.1776        .98006E-02   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .16622E-04    154.35        .79661E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.8683        2.4704        .60009E-03   -1.5674    
  13  Prefactor     .52153E-06    46.569        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     9.8029        29.691        .31990E-03   -1.5645    
  15  norm          .10817        .87464        .29655E-02   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.0775        .23444        .92461E-01   -.90477    
  17  Prefactor     .90385        .74657E-01    .33738E-01   -.96007    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.26895e-05
Minuit parameter uncertainties:
  1  9.65133e-06
  2  25.5965
  3  0.0104575
  4  66.9985
  5  3.93987
  6  27.767
  7  3.98548e-05
  8  4.8989
  9  4.18744
  10  0.866614
  11  0.101308
  12  2.47036
  13  0.00985632
  14  29.6912
  15  0.615163
  16  0.234669
  17  0.0746653
Done.

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

Extracting fit parameters...

4FGL J2114.8+2026
   Spectrum: PowerLaw
420    Prefactor:  2.432e+01  2.777e+01  0.000e+00  1.000e+06 ( 1.000e-14)
421        Index:  2.106e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
422        Scale:  2.990e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
696    Prefactor:  9.039e-01  7.467e-02  0.000e+00  1.000e+01 ( 1.000e+00)
697        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
698        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
695   Normalization:  1.078e+00  2.347e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.15
Ra Dec: 318.717 20.442
Photon Index (Fixed Index): 2.11 +/- 0.00
Photon Flux (Fixed Index): 2.82e-08 +/- 3.22e-08
Energy Flux (Fixed Index): 1.53e-05 +/- 1.74e-05

TS (Fixed Index): 1.15
Ra Dec: 318.717 20.442
Photon Flux Upper Limit: 1.04e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.87e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/708432/likelihoodResults_688521601_688780801_4FGL_J2114.8+2026_daily_bin1733.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) = 10185.6774799
delta logL = 0.0102832325138

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10185.6679291
delta logL = 0.0198340474726

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.629       1.0000          .0000       .10000E+07
     2 'Index     '    1.9261       1.0000          .0000       10.000    
     3 'Normalizat'    1.0848       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90264       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6990E+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=   10185.67     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      280 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.616        43.757        .73497E-05   -.61873E-04
   2  Index         1.9266        .92975        .13988E-01    .53869E-03
   3  Normalizat    1.0848        .24848        .40834E-03    .69046E-05
   4  Prefactor     .90265        .83496E-01    .14916E-03   -.62316E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.6165
  Index      = 1.9266
  Normalizat = 1.0848
  Prefactor  = 0.902649
 **********
 **   18 **HESSE 
 **********

 FCN=   10185.67     FROM HESSE     STATUS=OK            25 CALLS      305 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.616        40.607        .29399E-06   -1.5599    
   2  Index         1.9266        .86409        .27976E-02   -.66198    
   3  Normalizat    1.0848        .24796        .16334E-04   -.90241    
   4  Prefactor     .90265        .83481E-01    .29832E-04   -.96049    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.5864e-11
Minuit parameter uncertainties:
  1  40.6074
  2  0.871156
  3  0.248227
  4  0.0834932
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/708432': 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) = 10185.6679288
delta logL = 0.0198343066695

Extracting fit parameters...

4FGL J2114.8+2026
   Spectrum: PowerLaw
420    Prefactor:  2.962e+01  4.061e+01  0.000e+00  1.000e+06 ( 1.000e-14)
421        Index:  1.927e+00  8.712e-01  0.000e+00  1.000e+01 (-1.000e+00)
422        Scale:  2.990e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
696    Prefactor:  9.026e-01  8.349e-02  0.000e+00  1.000e+01 ( 1.000e+00)
697        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
698        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
695   Normalization:  1.085e+00  2.482e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.19
Ra Dec: 318.717 20.442
Photon Index (Free Index): 1.93 +/- 0.87
Photon Flux (Free Index): 2.22e-08 +/- 3.76e-08
Energy Flux (Free Index): 1.86e-05 +/- 2.90e-05

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/708432/cmap_HighResolution_688521601_688780801_4FGL_J2114.8+2026_daily_bin1733.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.87e-03', comment='SUCCESS', photon_flux='2.82e-08', energy_flux2='1.86e-05', photon_flux_error='3.22e-08', dlogl='1.98e-02', energy_flux='1.53e-05', photon_flux2='2.22e-08', job_status='DONE', time_completed='2022-10-30 00:50:15.053887', photon_index_error2='0.87', photon_index2='1.93', ts='1.15', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='1.04e-07', energy_flux_error2='2.90e-05', EG='1.08', time_epoch_completed='1667116215.05', return_code='0', job_id='708432', GAL2='0.90', EG2='1.08', return_code2='0', energy_flux_error='1.74e-05', photon_flux_error2='3.76e-08', ts2='1.19', photon_index='2.11' WHERE bin_id='1733' AND source_name='4FGL J2114.8+2026' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Oct 30 00:50:15 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0036>
Subject: Job 708432: <4FGL_J2114.8+2026_daily_bin1733> in cluster <slac> Done

Job <4FGL_J2114.8+2026_daily_bin1733> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Oct 30 00:35:26 2022
Job was executed on host(s) <bullet0036>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Oct 30 00:35:27 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Oct 30 00:35:27 2022
Terminated at Sun Oct 30 00:50:15 2022
Results reported at Sun Oct 30 00:50:15 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2114.8+2026_daily_bin1733 318.717 20.4418 688521601 688780801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2114.8+2026 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   807.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             372.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   888 sec.
    Turnaround time :                            889 sec.

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

