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 192 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_J2115.4+2932_monthly_bin167
RA = 318.874, Dec = 29.5456
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='907898', job_status='RUN', time_executed='2022-04-24 02:38:30.567860', time_epoch_executed='1650793110.57' WHERE source_name='4FGL J2115.4+2932' and cadence='monthly' and bin_id='167'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/907898

Creating custom pfile directory:
/scratch/kocevski/907898/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/907898/ft1_4FGL_J2115.4+2932_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/907898/ft2_4FGL_J2115.4+2932_monthly_bin167.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/907898/ft1_4FGL_J2115.4+2932_monthly_bin167.fits outfile=/scratch/kocevski/907898/ft1_filteredMKT_4FGL_J2115.4+2932_monthly_bin167.fits ra=318.874 dec=29.5456 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 37.95
user 37.03
sys 0.83

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/907898/ft2_4FGL_J2115.4+2932_monthly_bin167.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/907898/ft2_4FGL_J2115.4+2932_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/907898/ft1_filteredMKT_4FGL_J2115.4+2932_monthly_bin167.fits evtable="EVENTS" outfile="/scratch/kocevski/907898/ft1_filtered_4FGL_J2115.4+2932_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.86
user 0.67
sys 0.18

Number of photons that the gtmktime cut: 18800

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/907898/ft1_filtered_4FGL_J2115.4+2932_monthly_bin167.fits" evtable="EVENTS" scfile=/scratch/kocevski/907898/ft2_4FGL_J2115.4+2932_monthly_bin167.fits sctable="SC_DATA" outfile=/scratch/kocevski/907898/ltcube_669859201_672451201_4FGL_J2115.4+2932_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/907898/ft2_4FGL_J2115.4+2932_monthly_bin167.fits
.....................!
real 111.34
user 110.78
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/907898/ft1_filtered_4FGL_J2115.4+2932_monthly_bin167.fits evtable="EVENTS" scfile=/scratch/kocevski/907898/ft2_4FGL_J2115.4+2932_monthly_bin167.fits sctable="SC_DATA" expcube=/scratch/kocevski/907898/ltcube_669859201_672451201_4FGL_J2115.4+2932_monthly_bin167.fits outfile=/scratch/kocevski/907898/expmap_669859201_672451201_4FGL_J2115.4+2932_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/907898/ltcube_669859201_672451201_4FGL_J2115.4+2932_monthly_bin167.fits
.....................!
real 192.36
user 186.30
sys 5.72

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 208 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 J2115.4+2932 @ 318.874 29.5456

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/907898/ft1_filtered_4FGL_J2115.4+2932_monthly_bin167.fits scfile=/scratch/kocevski/907898/ft2_4FGL_J2115.4+2932_monthly_bin167.fits outfile=/scratch/kocevski/907898/cmap_669859201_672451201_4FGL_J2115.4+2932_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.874 yref=29.5456 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.81
user 0.63
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/907898/ft1_filtered_4FGL_J2115.4+2932_monthly_bin167.fits scfile=/scratch/kocevski/907898/ft2_4FGL_J2115.4+2932_monthly_bin167.fits outfile=/scratch/kocevski/907898/cmap_HighResolution_669859201_672451201_4FGL_J2115.4+2932_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.874 yref=29.5456 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.82
user 0.66
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/907898/ft1_filtered_4FGL_J2115.4+2932_monthly_bin167.fits evtable="EVENTS" scfile=/scratch/kocevski/907898/ft2_4FGL_J2115.4+2932_monthly_bin167.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/907898/Model_4FGL_J2115.4+2932_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 HB 21
adding source gamma Cygni
Working on...
/scratch/kocevski/907898/ft1_filtered_4FGL_J2115.4+2932_monthly_bin167.fits....................!
real 3660.85
user 3653.50
sys 1.51

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/907898/ft1_filtered_4FGL_J2115.4+2932_monthly_bin167.fits', '/scratch/kocevski/907898/ft2_4FGL_J2115.4+2932_monthly_bin167.fits', expMap='/scratch/kocevski/907898/expmap_669859201_672451201_4FGL_J2115.4+2932_monthly_bin167.fits', expCube='/scratch/kocevski/907898/ltcube_669859201_672451201_4FGL_J2115.4+2932_monthly_bin167.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/907898/Model_4FGL_J2115.4+2932_monthly_bin167.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2115.4+2932'

4FGL J2115.4+2932
   Spectrum: LogParabola
472         norm:  6.398e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
473        alpha:  2.243e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
474         beta:  1.080e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
475           Eb:  8.394e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/907898/ft1_filtered_4FGL_J2115.4+2932_monthly_bin167.fits
Spacecraft file(s): /scratch/kocevski/907898/ft2_4FGL_J2115.4+2932_monthly_bin167.fits
Exposure map: /scratch/kocevski/907898/expmap_669859201_672451201_4FGL_J2115.4+2932_monthly_bin167.fits
Exposure cube: /scratch/kocevski/907898/ltcube_669859201_672451201_4FGL_J2115.4+2932_monthly_bin167.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/907898/Model_4FGL_J2115.4+2932_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) = 186404.027729

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .49711E-02   1.0000         .10000E-03   10000.    
     2 'norm      '    1.1649       1.0000         .10000E-03   10000.    
     3 'norm      '    .78816       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.0493       1.0000         .10000E-03   10000.    
     5 'norm      '    10.695       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.9946       1.0000         .10000E-03   10000.    
     7 'Prefactor '    47.191       1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.613       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .19961E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .96030       1.0000         .10000E-03   10000.    
    11 'norm      '    1.6564       1.0000         .10000E-03   10000.    
    12 'norm      '    .63293       1.0000         .10000E-03   10000.    
    13 'norm      '    2.3341       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    19.403       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .13130       1.0000         .10000E-03   10000.    
    17 'norm      '    .21579       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0587       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .98182       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7590E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   186404.0     FROM MIGRAD    STATUS=CONVERGED    428 CALLS     2068 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10026E-03    1.0472        .32894E-06** at limit **
   2  norm          1.1648        .86190       -.38240E-07   -.88353E-03
   3  norm          .78817        .70469       -.13104E-07   -.24687E-03
   4  Prefactor     5.0492        1.1801        .25480E-08   -.10056E-02
   5  norm          10.694        5.8652        .13092E-05   -.23033E-05
   6  Prefactor     3.9947        3.9587        .54037E-06   -.10320E-03
   7  Prefactor     47.169        20.887       -.12108E-04    .67173E-05
   8  Prefactor     16.612        9.4607       -.26815E-06   -.32874E-04
   9  Prefactor     .10027E-03    1.2117       -.33031E-06** at limit **
  10  Prefactor     .96120        1.0884        .31093E-06    .64600E-03
  11  norm          1.6554        .29577       -.37352E-07   -.45062E-02
  12  norm          .63303        .37441       -.29036E-07   -.16451E-02
  13  norm          2.3339        .93973       -.10604E-07    .28535E-03
  14  norm          .10000E-03    1.4327        .15401E-07** at limit **
  15  Prefactor     19.419        15.841        .52087E-05    .38534E-05
  16  Prefactor     .13558        .40756       -.14821E-06    .12341E-03
  17  norm          .21578        .14687       -.43971E-07   -.19074E-02
  18  Normalizat    1.0587        .70822E-01    .15567E-05    .10631E-03
  19  Prefactor     .98183        .13966E-01   -.78563E-07    .42837E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100263
  norm       = 1.16478
  norm       = 0.788167
  Prefactor  = 5.04925
  norm       = 10.6937
  Prefactor  = 3.99472
  Prefactor  = 47.169
  Prefactor  = 16.6124
  Prefactor  = 0.000100274
  Prefactor  = 0.961203
  norm       = 1.65541
  norm       = 0.633033
  norm       = 2.33391
  norm       = 0.0001
  Prefactor  = 19.419
  Prefactor  = 0.13558
  norm       = 0.215778
  Normalizat = 1.0587
  Prefactor  = 0.981826
 **********
 **   18 **HESSE 
 **********

 FCN=   186404.0     FROM HESSE     STATUS=OK           308 CALLS     2376 TOTAL
                     EDM=   .63E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10026E-03    1.0870        .14045       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.1648        .85404        .32128E-03   -1.5492    
   3  norm          .78817        .85610        .33314E-02   -1.5530    
   4  Prefactor     5.0492        1.1879        .89473E-03   -1.5259    
   5  norm          10.694        5.8644        .12251E-03   -1.5054    
   6  Prefactor     3.9947        3.9805        .10090E-02   -1.5308    
   7  Prefactor     47.169        20.906        .58369E-04   -1.4333    
   8  Prefactor     16.612        9.4206        .49133E-03   -1.4893    
   9  Prefactor     .10027E-03    1.2345        .16602       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .96120        1.0840        .43497E-03   -1.5512    
  11  norm          1.6554        1.2856        .16395E-02   -1.5451    
  12  norm          .63303        .26907        .19655E-02   -1.5549    
  13  norm          2.3339        .93745        .25588E-03   -1.5402    
  14  norm          .10000E-03    1.5010        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     19.419        15.838        .90928E-04   -1.4826    
  16  Prefactor     .13558        .44579        .81117E-01   -1.5634    
  17  norm          .21578        .14820        .12946E-02   -1.5615    
  18  Normalizat    1.0587        .72192E-01    .62256E-03   -.91089    
  19  Prefactor     .98183        .14516E-01    .13280E-03   -.93338    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.30618e-07
Minuit parameter uncertainties:
  1  0.00107031
  2  0.854052
  3  0.85611
  4  1.18793
  5  5.86473
  6  3.98072
  7  20.9091
  8  9.42145
  9  0.00116381
  10  1.08397
  11  1.28564
  12  0.26907
  13  0.937452
  14  2.35159e-06
  15  15.8419
  16  0.445797
  17  0.1482
  18  0.0721987
  19  0.0145163
Done.

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

Extracting fit parameters...

4FGL J2115.4+2932
   Spectrum: LogParabola
472         norm:  1.655e+00  1.286e+00  1.000e-04  1.000e+04 ( 1.000e-12)
473        alpha:  2.243e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
474         beta:  1.080e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
475           Eb:  8.394e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
748    Prefactor:  9.818e-01  1.452e-02  0.000e+00  1.000e+01 ( 1.000e+00)
749        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
750        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
747   Normalization:  1.059e+00  7.220e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.33
Ra Dec: 318.874 29.546
Photon Index (Fixed Index): 2.24 +/- 0.00
Photon Flux (Fixed Index): 1.23e-08 +/- 9.56e-09
Energy Flux (Fixed Index): 4.88e-06 +/- 3.79e-06

TS (Fixed Index): 2.33
Ra Dec: 318.874 29.546
Photon Flux Upper Limit: 2.99e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.18e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/907898/likelihoodResults_669859201_672451201_4FGL_J2115.4+2932_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) = 186403.053571
delta logL = 0.95190170937

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 186403.047824
delta logL = 0.957648584474

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2389       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1159       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0393       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98328       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7590E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   186403.0     FROM MIGRAD    STATUS=FAILED        97 CALLS      292 TOTAL
                     EDM=   .13E-03    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2389        16.425        .23843E-03   -.87124E-03
   2  alpha         3.1159        3.9608        .43717E-01    .51040E-02
   3  Normalizat    1.0393        .89232E-01    .62764E-03   -.11998E-03
   4  Prefactor     .98328        .14763E-01    .13270E-03   -.52088E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   186403.0     FROM SIMPLEX   STATUS=UNCHANGED     88 CALLS      380 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2389        16.425        .65963E-04   -.87124E-03
   2  alpha         3.1159        3.9608        .18082E-02    .51040E-02
   3  Normalizat    1.0393        .89232E-01    .51716E-04   -.11998E-03
   4  Prefactor     .98328        .14763E-01    .11843E-04   -.52088E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   186403.0     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      413 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2389        1.2761        .95371E-05   -.91549E-03
   2  alpha         3.1159        .74961        .87434E-02   -.28127E-04
   3  Normalizat    1.0393        .68870E-01    .25106E-04   -.12172E-03
   4  Prefactor     .98328        .13909E-01    .53081E-05   -.52088E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.23894
  alpha      = 3.11593
  Normalizat = 1.03926
  Prefactor  = 0.983279
 **********
 **   18 **HESSE 
 **********

 FCN=   186403.0     FROM HESSE     STATUS=OK            25 CALLS      438 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2389        1.1361        .19074E-05   -1.5485    
   2  alpha         3.1159        .66885        .34974E-03    .24894    
   3  Normalizat    1.0393        .68711E-01    .50211E-05   -.91726    
   4  Prefactor     .98328        .13894E-01    .10616E-05   -.93289    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.1248e-11
Minuit parameter uncertainties:
  1  1.13609
  2  0.677649
  3  0.0687169
  4  0.0138937
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/907898': 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) = 186403.047824
delta logL = 0.957648591546

Extracting fit parameters...

4FGL J2115.4+2932
   Spectrum: LogParabola
472         norm:  1.239e+00  1.136e+00  1.000e-04  1.000e+04 ( 1.000e-12)
473        alpha:  3.116e+00  6.776e-01  0.000e+00  5.000e+00 ( 1.000e+00)
474         beta:  1.080e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
475           Eb:  8.394e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
748    Prefactor:  9.833e-01  1.389e-02  0.000e+00  1.000e+01 ( 1.000e+00)
749        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
750        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
747   Normalization:  1.039e+00  6.872e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.37
Ra Dec: 318.874 29.546
Photon Index (Free Index): 3.12 +/- 0.68
Photon Flux (Free Index): 3.25e-08 +/- 2.01e-08
Energy Flux (Free Index): 6.64e-06 +/- 3.48e-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/907898/cmap_HighResolution_669859201_672451201_4FGL_J2115.4+2932_monthly_bin167.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.18e-05', comment='SUCCESS', photon_flux='1.23e-08', energy_flux2='6.64e-06', photon_flux_error='9.56e-09', dlogl='9.58e-01', energy_flux='4.88e-06', photon_flux2='3.25e-08', job_status='DONE', time_completed='2022-04-24 06:47:28.846666', photon_index_error2='0.68', photon_index2='3.12', ts='2.33', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='2.99e-08', energy_flux_error2='3.48e-06', EG='1.06', time_epoch_completed='1650808048.85', return_code='0', job_id='907898', GAL2='0.98', EG2='1.04', return_code2='0', energy_flux_error='3.79e-06', photon_flux_error2='2.01e-08', ts2='4.37', photon_index='2.24' WHERE bin_id='167' AND source_name='4FGL J2115.4+2932' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Sun Apr 24 06:47:28 PDT 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0044>
Subject: Job 907898: <4FGL_J2115.4+2932_monthly_bin167> in cluster <slac> Done

Job <4FGL_J2115.4+2932_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) <bullet0044>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Apr 24 02:35:09 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:09 2022
Terminated at Sun Apr 24 06:47:30 2022
Results reported at Sun Apr 24 06:47:30 2022

Your job looked like:

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

Successfully completed.

Resource usage summary:

    CPU time :                                   14896.00 sec.
    Max Memory :                                 658 MB
    Average Memory :                             615.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   15141 sec.
    Turnaround time :                            15419 sec.

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

