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 31 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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


Performing analysis on: 4FGL_J2114.8+2831_monthly_bin167
RA = 318.716, Dec = 28.5222
tmin = 669859201, tmax = 672451201
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='907896', job_status='RUN', time_executed='2022-04-24 02:35:48.647917', time_epoch_executed='1650792948.65' WHERE source_name='4FGL J2114.8+2831' and cadence='monthly' and bin_id='167'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/907896

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

Retrieving the FT1 file...

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

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

Retrieving 456 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/907896/ft1_4FGL_J2114.8+2831_monthly_bin167.fits


Retrieving the FT1 file...

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

Retrieving 456 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/907896/ft2_4FGL_J2114.8+2831_monthly_bin167.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/907896/ft1_4FGL_J2114.8+2831_monthly_bin167.fits outfile=/scratch/kocevski/907896/ft1_filteredMKT_4FGL_J2114.8+2831_monthly_bin167.fits ra=318.716 dec=28.5222 rad=12.0 tmin=669859201.0 tmax=672451201.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 31.07
user 30.21
sys 0.76

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/907896/ft2_4FGL_J2114.8+2831_monthly_bin167.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/907896/ft2_4FGL_J2114.8+2831_monthly_bin167.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/907896/ft1_filteredMKT_4FGL_J2114.8+2831_monthly_bin167.fits evtable="EVENTS" outfile="/scratch/kocevski/907896/ft1_filtered_4FGL_J2114.8+2831_monthly_bin167.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.74
user 0.55
sys 0.18

Number of photons that the gtmktime cut: 17096

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/907896/ft1_filtered_4FGL_J2114.8+2831_monthly_bin167.fits" evtable="EVENTS" scfile=/scratch/kocevski/907896/ft2_4FGL_J2114.8+2831_monthly_bin167.fits sctable="SC_DATA" outfile=/scratch/kocevski/907896/ltcube_669859201_672451201_4FGL_J2114.8+2831_monthly_bin167.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/907896/ft2_4FGL_J2114.8+2831_monthly_bin167.fits
.....................!
real 100.16
user 99.59
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/907896/ft1_filtered_4FGL_J2114.8+2831_monthly_bin167.fits evtable="EVENTS" scfile=/scratch/kocevski/907896/ft2_4FGL_J2114.8+2831_monthly_bin167.fits sctable="SC_DATA" expcube=/scratch/kocevski/907896/ltcube_669859201_672451201_4FGL_J2114.8+2831_monthly_bin167.fits outfile=/scratch/kocevski/907896/expmap_669859201_672451201_4FGL_J2114.8+2831_monthly_bin167.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/907896/ltcube_669859201_672451201_4FGL_J2114.8+2831_monthly_bin167.fits
.....................!
real 151.27
user 146.61
sys 4.32

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_archive_v18/Templates/CygnusLoop.fits is the correct path to the extended template.
Extended source gamma Cygni in ROI with RadialDisk spatial model.
Extended source Cygnus Cocoon in ROI with RadialGaussian spatial model.
Added 205 point sources and 3 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+2831 @ 318.716 28.5222

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/907896/ft1_filtered_4FGL_J2114.8+2831_monthly_bin167.fits scfile=/scratch/kocevski/907896/ft2_4FGL_J2114.8+2831_monthly_bin167.fits outfile=/scratch/kocevski/907896/cmap_669859201_672451201_4FGL_J2114.8+2831_monthly_bin167.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.716 yref=28.5222 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.68
user 0.52
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/907896/ft1_filtered_4FGL_J2114.8+2831_monthly_bin167.fits scfile=/scratch/kocevski/907896/ft2_4FGL_J2114.8+2831_monthly_bin167.fits outfile=/scratch/kocevski/907896/cmap_HighResolution_669859201_672451201_4FGL_J2114.8+2831_monthly_bin167.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.716 yref=28.5222 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.67
user 0.51
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/907896/ft1_filtered_4FGL_J2114.8+2831_monthly_bin167.fits evtable="EVENTS" scfile=/scratch/kocevski/907896/ft2_4FGL_J2114.8+2831_monthly_bin167.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/907896/Model_4FGL_J2114.8+2831_monthly_bin167.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 Cocoon
adding source Cygnus Loop
adding source EG_v02
adding source GAL_V02
adding source gamma Cygni
Working on...
/scratch/kocevski/907896/ft1_filtered_4FGL_J2114.8+2831_monthly_bin167.fits.....................!
real 2661.73
user 2654.99
sys 1.12

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/907896/ft1_filtered_4FGL_J2114.8+2831_monthly_bin167.fits', '/scratch/kocevski/907896/ft2_4FGL_J2114.8+2831_monthly_bin167.fits', expMap='/scratch/kocevski/907896/expmap_669859201_672451201_4FGL_J2114.8+2831_monthly_bin167.fits', expCube='/scratch/kocevski/907896/ltcube_669859201_672451201_4FGL_J2114.8+2831_monthly_bin167.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/907896/Model_4FGL_J2114.8+2831_monthly_bin167.xml', optimizer='MINUIT')

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

4FGL J2114.8+2831
   Spectrum: PowerLaw
465    Prefactor:  1.040e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
466        Index:  2.712e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
467        Scale:  7.137e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/907896/ft1_filtered_4FGL_J2114.8+2831_monthly_bin167.fits
Spacecraft file(s): /scratch/kocevski/907896/ft2_4FGL_J2114.8+2831_monthly_bin167.fits
Exposure map: /scratch/kocevski/907896/expmap_669859201_672451201_4FGL_J2114.8+2831_monthly_bin167.fits
Exposure cube: /scratch/kocevski/907896/ltcube_669859201_672451201_4FGL_J2114.8+2831_monthly_bin167.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/907896/Model_4FGL_J2114.8+2831_monthly_bin167.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) = 171771.231155

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .73176E-02   1.0000         .10000E-03   10000.    
     2 'norm      '    1.0527       1.0000         .10000E-03   10000.    
     3 'norm      '    .81333       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.1505       1.0000         .10000E-03   10000.    
     5 'norm      '    10.757       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.2850       1.0000         .10000E-03   10000.    
     7 'Prefactor '    49.917       1.0000         .10000E-03   10000.    
     8 'Prefactor '    18.085       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .26709E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.0541       1.0000         .10000E-03   10000.    
    11 'norm      '    1.7366       1.0000         .10000E-03   10000.    
    12 'norm      '    .64112       1.0000         .10000E-03   10000.    
    13 'norm      '    2.3998       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    19.427       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .25880       1.0000         .10000E-03   10000.    
    17 'norm      '    .22415       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0423       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .97624       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7430E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   171771.2     FROM MIGRAD    STATUS=CONVERGED    428 CALLS     2071 TOTAL
                     EDM=   .69E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    1.1125         .0000    ** at limit **
   2  norm          1.0532        .91545         .0000        .29205E-01
   3  norm          .81343        .72923         .0000        .13998E-01
   4  Prefactor     5.1505        1.1990         .0000        .82305E-01
   5  norm          10.757        5.8838         .0000        .31022E-02
   6  Prefactor     4.2858        4.0449         .0000        .96698E-03
   7  Prefactor     49.916        21.114         .0000       -.14126E-03
   8  Prefactor     18.085        9.5556         .0000       -.48269E-03
   9  Prefactor     .10001E-03    1.3044         .0000    ** at limit **
  10  Prefactor     1.0533        1.1822         .0000        .25893E-01
  11  norm          1.7412        1.3687         .0000        .36380    
  12  norm          .64105        .37807         .0000        .31990E-02
  13  norm          2.4008        .95054         .0000        .78371E-02
  14  norm          .10000E-03    1.5001         .0000    ** at limit **
  15  Prefactor     19.427        15.764         .0000       -.21475E-03
  16  Prefactor     .26122        .55186         .0000        .90997E-02
  17  norm          .22416        .15279         .0000        .33863E-01
  18  Normalizat    1.0423        .71286E-01     .0000        .46241E-03
  19  Prefactor     .97625        .15159E-01     .0000        .12079E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100009
  norm       = 1.05321
  norm       = 0.813434
  Prefactor  = 5.15052
  norm       = 10.7571
  Prefactor  = 4.28583
  Prefactor  = 49.9158
  Prefactor  = 18.0846
  Prefactor  = 0.000100008
  Prefactor  = 1.05331
  norm       = 1.74119
  norm       = 0.641048
  norm       = 2.40085
  norm       = 0.0001
  Prefactor  = 19.4274
  Prefactor  = 0.261222
  norm       = 0.224161
  Normalizat = 1.04225
  Prefactor  = 0.976249
 **********
 **   18 **HESSE 
 **********

 FCN=   171771.2     FROM HESSE     STATUS=OK           302 CALLS     2373 TOTAL
                     EDM=   .37E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    1.1493        .13852       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.0532        .89975        .34385E-03   -1.5503    
   3  norm          .81343        .86365        .32504E-02   -1.5528    
   4  Prefactor     5.1505        1.1987        .88572E-03   -1.5254    
   5  norm          10.757        5.8836        .12216E-03   -1.5052    
   6  Prefactor     4.2858        4.0360        .19463E-03   -1.5294    
   7  Prefactor     49.916        21.084        .56760E-04   -1.4294    
   8  Prefactor     18.085        9.5137        .94181E-04   -1.4857    
   9  Prefactor     .10001E-03    1.3056        .16064       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.0533        1.1114        .40662E-03   -1.5503    
  11  norm          1.7412        1.3028        .15922E-02   -1.5444    
  12  norm          .64105        .27108        .18922E-02   -1.5548    
  13  norm          2.4008        .94794        .24431E-03   -1.5398    
  14  norm          .10000E-03    1.5633        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     19.427        15.764        .90870E-04   -1.4826    
  16  Prefactor     .26122        2.2905        .42296E-02   -1.5606    
  17  norm          .22416        .14977        .12675E-03   -1.5613    
  18  Normalizat    1.0423        .72910E-01    .59185E-03   -.91628    
  19  Prefactor     .97625        .15846E-01    .13455E-03   -.93525    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.68603e-07
Minuit parameter uncertainties:
  1  0.000208099
  2  0.899761
  3  0.863665
  4  1.19866
  5  5.88391
  6  4.03626
  7  21.0868
  8  9.5145
  9  0.000208154
  10  1.11146
  11  1.30282
  12  0.271082
  13  0.947942
  14  8.2905e-06
  15  15.7672
  16  1.54681
  17  0.149771
  18  0.0729172
  19  0.0158465
Done.

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

Extracting fit parameters...

4FGL J2114.8+2831
   Spectrum: PowerLaw
465    Prefactor:  1.053e+00  1.111e+00  1.000e-04  1.000e+04 ( 1.000e-12)
466        Index:  2.712e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
467        Scale:  7.137e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
736    Prefactor:  9.762e-01  1.585e-02  0.000e+00  1.000e+01 ( 1.000e+00)
737        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
738        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
735   Normalization:  1.042e+00  7.292e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.37
Ra Dec: 318.716 28.522
Photon Index (Fixed Index): 2.71 +/- 0.00
Photon Flux (Fixed Index): 1.27e-08 +/- 1.34e-08
Energy Flux (Fixed Index): 3.03e-06 +/- 3.20e-06

TS (Fixed Index): 1.37
Ra Dec: 318.716 28.522
Photon Flux Upper Limit: 3.82e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.01e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/907896/likelihoodResults_669859201_672451201_4FGL_J2114.8+2831_monthly_bin167.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) = 171770.789113
delta logL = 0.418982626958

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 171770.77262
delta logL = 0.435476053593

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .77910       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8493       1.0000          .0000       10.000    
     3 'Normalizat'    1.0514       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97554       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7430E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   171770.8     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      314 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .77906        .97210        .36690E-03   -.37679E-04
   2  Index         1.8492        .65112        .25276E-01   -.11496E-03
   3  Normalizat    1.0513        .67702E-01    .58958E-03    .18511E-05
   4  Prefactor     .97554        .15068E-01    .13460E-03    .27028E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.779062
  Index      = 1.84917
  Normalizat = 1.05135
  Prefactor  = 0.975542
 **********
 **   18 **HESSE 
 **********

 FCN=   171770.8     FROM HESSE     STATUS=OK            25 CALLS      339 TOTAL
                     EDM=   .57E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .77906        1.0700        .14676E-04   -1.5531    
   2  Index         1.8492        .71792        .10110E-02   -.68177    
   3  Normalizat    1.0513        .67742E-01    .23583E-04   -.91329    
   4  Prefactor     .97554        .15071E-01    .53840E-05   -.93549    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.71382e-13
Minuit parameter uncertainties:
  1  1.06999
  2  0.72208
  3  0.0677476
  4  0.0150715
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/907896': 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) = 171770.77262
delta logL = 0.43547608814

Extracting fit parameters...

4FGL J2114.8+2831
   Spectrum: PowerLaw
465    Prefactor:  7.791e-01  1.070e+00  1.000e-04  1.000e+04 ( 1.000e-12)
466        Index:  1.849e+00  7.221e-01  0.000e+00  1.000e+01 (-1.000e+00)
467        Scale:  7.137e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
736    Prefactor:  9.755e-01  1.507e-02  0.000e+00  1.000e+01 ( 1.000e+00)
737        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
738        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
735   Normalization:  1.051e+00  6.775e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.22
Ra Dec: 318.716 28.522
Photon Index (Free Index): 1.85 +/- 0.72
Photon Flux (Free Index): 3.47e-09 +/- 6.31e-09
Energy Flux (Free Index): 3.59e-06 +/- 4.14e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -3.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  3.330e+00 [aplpy.core]
Saving /scratch/kocevski/907896/cmap_HighResolution_669859201_672451201_4FGL_J2114.8+2831_monthly_bin167.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.01e-03', comment='SUCCESS', photon_flux='1.27e-08', energy_flux2='3.59e-06', photon_flux_error='1.34e-08', dlogl='4.35e-01', energy_flux='3.03e-06', photon_flux2='3.47e-09', job_status='DONE', time_completed='2022-04-24 05:32:34.344966', photon_index_error2='0.72', photon_index2='1.85', ts='1.37', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='3.82e-08', energy_flux_error2='4.14e-06', EG='1.04', time_epoch_completed='1650803554.35', return_code='0', job_id='907896', GAL2='0.98', EG2='1.05', return_code2='0', energy_flux_error='3.20e-06', photon_flux_error2='6.31e-09', ts2='2.22', photon_index='2.71' WHERE bin_id='167' AND source_name='4FGL J2114.8+2831' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Sun Apr 24 05:32:34 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0023>
Subject: Job 907896: <4FGL_J2114.8+2831_monthly_bin167> in cluster <slac> Done

Job <4FGL_J2114.8+2831_monthly_bin167> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Apr 24 02:30:31 2022
Job was executed on host(s) <bullet0023>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Apr 24 02:35:08 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Apr 24 02:35:08 2022
Terminated at Sun Apr 24 05:32:36 2022
Results reported at Sun Apr 24 05:32:36 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2114.8+2831_monthly_bin167 318.716 28.5222 669859201 672451201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2114.8+2831 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   10551.00 sec.
    Max Memory :                                 651 MB
    Average Memory :                             588.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   10647 sec.
    Turnaround time :                            10925 sec.

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

