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


Performing analysis on: 4FGL_J2116.2+3339_monthly_bin168
RA = 319.06, Dec = 33.6567
tmin = 672451201, tmax = 675043201
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='650041', job_status='RUN', time_executed='2022-05-24 04:08:04.549031', time_epoch_executed='1653390484.55' WHERE source_name='4FGL J2116.2+3339' and cadence='monthly' and bin_id='168'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/650041

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

Retrieving the FT1 file...

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

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

Retrieving 455 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/650041/ft1_4FGL_J2116.2+3339_monthly_bin168.fits


Retrieving the FT1 file...

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

Retrieving 455 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/650041/ft2_4FGL_J2116.2+3339_monthly_bin168.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/650041/ft1_4FGL_J2116.2+3339_monthly_bin168.fits outfile=/scratch/kocevski/650041/ft1_filteredMKT_4FGL_J2116.2+3339_monthly_bin168.fits ra=319.06 dec=33.6567 rad=12.0 tmin=672451201.0 tmax=675043201.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 29.00
user 28.09
sys 0.80

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/650041/ft2_4FGL_J2116.2+3339_monthly_bin168.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/650041/ft2_4FGL_J2116.2+3339_monthly_bin168.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/650041/ft1_filteredMKT_4FGL_J2116.2+3339_monthly_bin168.fits evtable="EVENTS" outfile="/scratch/kocevski/650041/ft1_filtered_4FGL_J2116.2+3339_monthly_bin168.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.91
user 0.73
sys 0.17

Number of photons that the gtmktime cut: 38820

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/650041/ft1_filtered_4FGL_J2116.2+3339_monthly_bin168.fits" evtable="EVENTS" scfile=/scratch/kocevski/650041/ft2_4FGL_J2116.2+3339_monthly_bin168.fits sctable="SC_DATA" outfile=/scratch/kocevski/650041/ltcube_672451201_675043201_4FGL_J2116.2+3339_monthly_bin168.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/650041/ft2_4FGL_J2116.2+3339_monthly_bin168.fits
.....................!
real 145.11
user 143.87
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/650041/ft1_filtered_4FGL_J2116.2+3339_monthly_bin168.fits evtable="EVENTS" scfile=/scratch/kocevski/650041/ft2_4FGL_J2116.2+3339_monthly_bin168.fits sctable="SC_DATA" expcube=/scratch/kocevski/650041/ltcube_672451201_675043201_4FGL_J2116.2+3339_monthly_bin168.fits outfile=/scratch/kocevski/650041/expmap_672451201_675043201_4FGL_J2116.2+3339_monthly_bin168.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/650041/ltcube_672451201_675043201_4FGL_J2116.2+3339_monthly_bin168.fits
.....................!
real 193.39
user 187.88
sys 5.00

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.
Extended source HB 21 in ROI with RadialDisk spatial model.
Added 200 point sources and 4 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 J2116.2+3339 @ 319.06 33.6567

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/650041/ft1_filtered_4FGL_J2116.2+3339_monthly_bin168.fits scfile=/scratch/kocevski/650041/ft2_4FGL_J2116.2+3339_monthly_bin168.fits outfile=/scratch/kocevski/650041/cmap_672451201_675043201_4FGL_J2116.2+3339_monthly_bin168.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.06 yref=33.6567 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.88
user 0.70
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/650041/ft1_filtered_4FGL_J2116.2+3339_monthly_bin168.fits scfile=/scratch/kocevski/650041/ft2_4FGL_J2116.2+3339_monthly_bin168.fits outfile=/scratch/kocevski/650041/cmap_HighResolution_672451201_675043201_4FGL_J2116.2+3339_monthly_bin168.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.06 yref=33.6567 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.91
user 0.71
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/650041/ft1_filtered_4FGL_J2116.2+3339_monthly_bin168.fits evtable="EVENTS" scfile=/scratch/kocevski/650041/ft2_4FGL_J2116.2+3339_monthly_bin168.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/650041/Model_4FGL_J2116.2+3339_monthly_bin168.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 HB 21
adding source gamma Cygni
Working on...
/scratch/kocevski/650041/ft1_filtered_4FGL_J2116.2+3339_monthly_bin168.fits....................!
real 7675.87
user 7655.60
sys 1.52

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/650041/ft1_filtered_4FGL_J2116.2+3339_monthly_bin168.fits', '/scratch/kocevski/650041/ft2_4FGL_J2116.2+3339_monthly_bin168.fits', expMap='/scratch/kocevski/650041/expmap_672451201_675043201_4FGL_J2116.2+3339_monthly_bin168.fits', expCube='/scratch/kocevski/650041/ltcube_672451201_675043201_4FGL_J2116.2+3339_monthly_bin168.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/650041/Model_4FGL_J2116.2+3339_monthly_bin168.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2116.2+3339'

4FGL J2116.2+3339
   Spectrum: LogParabola
448         norm:  1.245e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
449        alpha:  1.747e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
450         beta:  9.836e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
451           Eb:  1.649e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/650041/ft1_filtered_4FGL_J2116.2+3339_monthly_bin168.fits
Spacecraft file(s): /scratch/kocevski/650041/ft2_4FGL_J2116.2+3339_monthly_bin168.fits
Exposure map: /scratch/kocevski/650041/expmap_672451201_675043201_4FGL_J2116.2+3339_monthly_bin168.fits
Exposure cube: /scratch/kocevski/650041/ltcube_672451201_675043201_4FGL_J2116.2+3339_monthly_bin168.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/650041/Model_4FGL_J2116.2+3339_monthly_bin168.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) = 353059.45172

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4407       1.0000         .10000E-03   10000.    
     2 'norm      '    .84465       1.0000         .10000E-03   10000.    
     3 'norm      '    2.4714       1.0000         .10000E-03   10000.    
     4 'norm      '    8.9221       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.2255       1.0000         .10000E-03   10000.    
     6 'norm      '    3.4605       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.9005       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.3087       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11273       1.0000         .10000E-03   10000.    
    10 'norm      '    2.2249       1.0000         .10000E-03   10000.    
    11 'norm      '    .55078E-01   1.0000         .10000E-03   10000.    
    12 'norm      '    3.6669       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .18294E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    .98259       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0239       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   353059.1     FROM MIGRAD    STATUS=CONVERGED    362 CALLS     1498 TOTAL
                     EDM=   .29E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4418        2.5292         .0000        .23965E-02
   2  norm          .84455        .76322         .0000        .77454E-01
   3  norm          2.4715        1.3707         .0000        .66164E-02
   4  norm          8.9229        1.4548         .0000        .51111E-02
   5  Prefactor     2.2272        .86277         .0000        .15051E-01
   6  norm          3.4612        3.4238         .0000       -.34820E-03
   7  Prefactor     3.9444        16.660         .0000        .89467E-04
   8  Prefactor     7.3163        7.0289         .0000        .50022E-03
   9  Prefactor     .11382        .22587         .0000        .98980E-02
  10  norm          2.2244        1.0858         .0000        .14781E-03
  11  norm          .55043E-01    .96228E-01     .0000        .95925E-01
  12  norm          3.6687        2.2441         .0000        .14042E-02
  13  Prefactor     .10000E-03    .14723         .0000    ** at limit **
  14  Prefactor     .10000E-03    .29875         .0000    ** at limit **
  15  norm          .10000E-03    .18649E-01     .0000    ** at limit **
  16  Normalizat    .98251        .63030E-01     .0000        .18215E-02
  17  Prefactor     1.0239        .96480E-02     .0000        .18582E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.44181
  norm       = 0.844553
  norm       = 2.47145
  norm       = 8.92289
  Prefactor  = 2.22724
  norm       = 3.46115
  Prefactor  = 3.9444
  Prefactor  = 7.3163
  Prefactor  = 0.113817
  norm       = 2.22436
  norm       = 0.0550432
  norm       = 3.66874
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.982513
  Prefactor  = 1.02394
 **********
 **   18 **HESSE 
 **********

 FCN=   353059.1     FROM HESSE     STATUS=OK           255 CALLS     1753 TOTAL
                     EDM=   .50E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4418        2.4842        .35940E-03   -1.5468    
   2  norm          .84455        .77408        .45997E-02   -1.5524    
   3  norm          2.4715        1.3661        .26010E-03   -1.5394    
   4  norm          8.9229        1.4616        .13419E-03   -1.5110    
   5  Prefactor     2.2272        .85956        .27562E-03   -1.5409    
   6  norm          3.4612        3.4186        .21740E-03   -1.5336    
   7  Prefactor     3.9444        16.615        .20429E-03   -1.5311    
   8  Prefactor     7.3163        6.9999        .14836E-03   -1.5167    
   9  Prefactor     .11382        .30378        .62721E-01   -1.5641    
  10  norm          2.2244        1.1096        .27565E-04   -1.5410    
  11  norm          .55043E-01    .13537        .23661E-02   -1.5661    
  12  norm          3.6687        2.2410        .21093E-03   -1.5325    
  13  Prefactor     .10000E-03    .21282        .69436E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    .30226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .41420E-01    .15657E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    .98251        .62422E-01    .84821E-03   -.93619    
  17  Prefactor     1.0239        .97786E-02    .12925E-03   -.91936    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.97702e-06
Minuit parameter uncertainties:
  1  2.48433
  2  0.774088
  3  1.36612
  4  1.46163
  5  0.859562
  6  3.41881
  7  16.1985
  8  7.00066
  9  0.303784
  10  1.10956
  11  0.135373
  12  2.24106
  13  6.67402e-06
  14  2.27515e-07
  15  1.67915e-07
  16  0.0624268
  17  0.00977859
Done.

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

Extracting fit parameters...

4FGL J2116.2+3339
   Spectrum: LogParabola
448         norm:  5.504e-02  1.354e-01  1.000e-04  1.000e+04 ( 1.000e-12)
449        alpha:  1.747e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
450         beta:  9.836e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
451           Eb:  1.649e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
727    Prefactor:  1.024e+00  9.779e-03  0.000e+00  1.000e+01 ( 1.000e+00)
728        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
729        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
726   Normalization:  9.825e-01  6.243e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.24
Ra Dec: 319.060 33.657
Photon Flux Upper Limit: 6.27e-09 ph cm-2 s-1
Energy Flux Upper Limit: 7.70e-06 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/650041/likelihoodResults_672451201_675043201_4FGL_J2116.2+3339_monthly_bin168.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): 102
logL (Free Index) = 353058.982694
delta logL = 0.148221151729

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 353058.959068
delta logL = 0.171846738551

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .82214E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8507       1.0000          .0000       5.0000    
     3 'Normalizat'    .97605       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0241       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   353059.0     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      256 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .81586E-01    .20135        .23276E-01    .99481E-01
   2  alpha         2.8528        1.1022        .41675        .16366E-02
   3  Normalizat    .97601        .55367E-02    .19076        .21086E-02
   4  Prefactor     1.0241        .86299E-03    .29245E-01   -.73053E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0815861
  alpha      = 2.85284
  Normalizat = 0.976007
  Prefactor  = 1.02411
 **********
 **   18 **HESSE 
 **********

 FCN=   353059.0     FROM HESSE     STATUS=NOT POSDEF    37 CALLS      293 TOTAL
                     EDM=   .18E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .81586E-01    1.2803        .14431E-02   -1.5651    
   2  alpha         2.8528        1.7063        .50000        .14161    
   3  Normalizat    .97601        .12095E-01    .85068E-03   -.93839    
   4  Prefactor     1.0241        .18315E-02    .12924E-03   -.91930    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.77013e-07
Minuit parameter uncertainties:
  1  0.646004
  2  1.88271
  3  0.0120945
  4  0.00183146
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/650041': 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): 102
logL (Free Index) = 353058.95906
delta logL = 0.171855665452

Extracting fit parameters...

4FGL J2116.2+3339
   Spectrum: LogParabola
448         norm:  8.159e-02  6.460e-01  1.000e-04  1.000e+04 ( 1.000e-12)
449        alpha:  2.853e+00  1.883e+00  0.000e+00  5.000e+00 ( 1.000e+00)
450         beta:  9.836e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
451           Eb:  1.649e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
727    Prefactor:  1.024e+00  1.831e-03  0.000e+00  1.000e+01 ( 1.000e+00)
728        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
729        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
726   Normalization:  9.760e-01  1.209e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.24
Ra Dec: 319.060 33.657

Creating a high resolution counts map...
INFO: Auto-setting vmin to -6.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  6.660e+00 [aplpy.core]
Saving /scratch/kocevski/650041/cmap_HighResolution_672451201_675043201_4FGL_J2116.2+3339_monthly_bin168.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.70e-06', job_status='DONE', photon_flux_upper_limit='6.27e-09', time_completed='2022-05-24 10:51:06.472363', job_id='650041', GAL2='1.02', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1653414666.47', return_code2='102', ts='0.24', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='1.72e-01', ts2='0.60', photon_index_error='0.00', photon_index='1.75' WHERE bin_id='168' AND source_name='4FGL J2116.2+3339' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Tue May 24 10:51:06 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 650041: <4FGL_J2116.2+3339_monthly_bin168> in cluster <slac> Done

Job <4FGL_J2116.2+3339_monthly_bin168> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue May 24 04:05:36 2022
Job was executed on host(s) <bullet0073>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May 24 04:06:12 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May 24 04:06:12 2022
Terminated at Tue May 24 10:51:09 2022
Results reported at Tue May 24 10:51:09 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2116.2+3339_monthly_bin168 319.06 33.6567 672451201 675043201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2116.2+3339 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   24136.00 sec.
    Max Memory :                                 989 MB
    Average Memory :                             854.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   24296 sec.
    Turnaround time :                            24333 sec.

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

