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


Performing analysis on: 4FGL_J2157.5+3127_daily_bin1765
RA = 329.386, Dec = 31.4552
tmin = 696816001, tmax = 697075201
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='647082', job_status='RUN', time_executed='2023-02-03 01:42:03.367968', time_epoch_executed='1675417323.37' WHERE source_name='4FGL J2157.5+3127' and cadence='daily' and bin_id='1765'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/647082

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/647082/ft1_4FGL_J2157.5+3127_daily_bin1765.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/647082/ft2_4FGL_J2157.5+3127_daily_bin1765.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/647082/ft1_4FGL_J2157.5+3127_daily_bin1765.fits outfile=/scratch/kocevski/647082/ft1_filteredMKT_4FGL_J2157.5+3127_daily_bin1765.fits ra=329.386 dec=31.4552 rad=12.0 tmin=696816001.0 tmax=697075201.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.73
user 3.43
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/647082/ft2_4FGL_J2157.5+3127_daily_bin1765.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/647082/ft2_4FGL_J2157.5+3127_daily_bin1765.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/647082/ft1_filteredMKT_4FGL_J2157.5+3127_daily_bin1765.fits evtable="EVENTS" outfile="/scratch/kocevski/647082/ft1_filtered_4FGL_J2157.5+3127_daily_bin1765.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.51
user 0.34
sys 0.16

Number of photons that the gtmktime cut: 1154

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/647082/ft1_filtered_4FGL_J2157.5+3127_daily_bin1765.fits" evtable="EVENTS" scfile=/scratch/kocevski/647082/ft2_4FGL_J2157.5+3127_daily_bin1765.fits sctable="SC_DATA" outfile=/scratch/kocevski/647082/ltcube_696816001_697075201_4FGL_J2157.5+3127_daily_bin1765.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/647082/ft2_4FGL_J2157.5+3127_daily_bin1765.fits
.....................!
real 15.90
user 15.39
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/647082/ft1_filtered_4FGL_J2157.5+3127_daily_bin1765.fits evtable="EVENTS" scfile=/scratch/kocevski/647082/ft2_4FGL_J2157.5+3127_daily_bin1765.fits sctable="SC_DATA" expcube=/scratch/kocevski/647082/ltcube_696816001_697075201_4FGL_J2157.5+3127_daily_bin1765.fits outfile=/scratch/kocevski/647082/expmap_696816001_697075201_4FGL_J2157.5+3127_daily_bin1765.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/647082/ltcube_696816001_697075201_4FGL_J2157.5+3127_daily_bin1765.fits
.....................!
real 193.04
user 186.73
sys 5.76

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.
Extended source gamma Cygni in ROI with RadialDisk spatial model.
Extended source Cygnus Cocoon in ROI with RadialGaussian spatial model.
Added 186 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 J2157.5+3127 @ 329.386 31.4552

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/647082/ft1_filtered_4FGL_J2157.5+3127_daily_bin1765.fits scfile=/scratch/kocevski/647082/ft2_4FGL_J2157.5+3127_daily_bin1765.fits outfile=/scratch/kocevski/647082/cmap_696816001_697075201_4FGL_J2157.5+3127_daily_bin1765.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=329.386 yref=31.4552 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.56
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/647082/ft1_filtered_4FGL_J2157.5+3127_daily_bin1765.fits scfile=/scratch/kocevski/647082/ft2_4FGL_J2157.5+3127_daily_bin1765.fits outfile=/scratch/kocevski/647082/cmap_HighResolution_696816001_697075201_4FGL_J2157.5+3127_daily_bin1765.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=329.386 yref=31.4552 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.57
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/647082/ft1_filtered_4FGL_J2157.5+3127_daily_bin1765.fits evtable="EVENTS" scfile=/scratch/kocevski/647082/ft2_4FGL_J2157.5+3127_daily_bin1765.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/647082/Model_4FGL_J2157.5+3127_daily_bin1765.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/647082/ft1_filtered_4FGL_J2157.5+3127_daily_bin1765.fits.....................!
real 188.63
user 186.91
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/647082/ft1_filtered_4FGL_J2157.5+3127_daily_bin1765.fits', '/scratch/kocevski/647082/ft2_4FGL_J2157.5+3127_daily_bin1765.fits', expMap='/scratch/kocevski/647082/expmap_696816001_697075201_4FGL_J2157.5+3127_daily_bin1765.fits', expCube='/scratch/kocevski/647082/ltcube_696816001_697075201_4FGL_J2157.5+3127_daily_bin1765.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/647082/Model_4FGL_J2157.5+3127_daily_bin1765.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2157.5+3127'

4FGL J2157.5+3127
   Spectrum: LogParabola
368         norm:  1.006e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-11)
369        alpha:  2.171e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
370         beta:  1.366e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
371           Eb:  6.818e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/647082/ft1_filtered_4FGL_J2157.5+3127_daily_bin1765.fits
Spacecraft file(s): /scratch/kocevski/647082/ft2_4FGL_J2157.5+3127_daily_bin1765.fits
Exposure map: /scratch/kocevski/647082/expmap_696816001_697075201_4FGL_J2157.5+3127_daily_bin1765.fits
Exposure cube: /scratch/kocevski/647082/ltcube_696816001_697075201_4FGL_J2157.5+3127_daily_bin1765.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/647082/Model_4FGL_J2157.5+3127_daily_bin1765.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) = 11787.2702729

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.592       1.0000          .0000       .10000E+07
     2 'Prefactor '    .25252E-06   1.0000          .0000       .10000E+07
     3 'norm      '    4.2152       1.0000          .0000       .10000E+07
     4 'norm      '    .40821       1.0000          .0000       .10000E+07
     5 'norm      '    5.8391       1.0000          .0000       .10000E+07
     6 'Prefactor '    .64036       1.0000          .0000       .10000E+07
     7 'Prefactor '    5.5974       1.0000          .0000       .10000E+07
     8 'norm      '    .12184       1.0000          .0000       .10000E+07
     9 'Prefactor '    14.731       1.0000          .0000       .10000E+07
    10 'norm      '    8.9250       1.0000          .0000       .10000E+07
    11 'Prefactor '    18.238       1.0000          .0000       .10000E+07
    12 'Prefactor '    3.7282       1.0000          .0000       .10000E+07
    13 'Prefactor '    .33288E-03   1.0000          .0000       .10000E+07
    14 'norm      '    3.1878       1.0000          .0000       .10000E+07
    15 'Normalizat'    .98996       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .99185       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   11787.27     FROM MIGRAD    STATUS=CONVERGED     94 CALLS     1071 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.725        5.9584        .22242E-05    .25900E-01
   2  Prefactor     .55511E-10    1.3815        .67531E-06** at limit **
   3  norm          4.2227        3.4337       -.33943E-06    .27044E-02
   4  norm          .40758        1.3903        .61772E-06    .86963E-04
   5  norm          5.8475        7.1942        .18371E-05   -.87394E-04
   6  Prefactor     .63838E-08    61.278        .18838E-05** at limit **
   7  Prefactor     5.6049        6.9081       -.20109E-06   -.14392E-03
   8  norm          .12138        .48809        .90286E-07** at limit **
   9  Prefactor     14.966        26.287        .11754E-04   -.41589E-02
  10  norm          8.9247        1.2567       -.17080E-06    .41909E-01
  11  Prefactor     18.419        20.038        .80603E-05   -.53642E-03
  12  Prefactor     3.8019        19.318        .29805E-05    .56838E-03
  13  Prefactor     .49960E-09    9.3141        .32933E-06** at limit **
  14  norm          3.1840        1.1728        .17374E-06   -.26159E-02
  15  Normalizat    .99019        .23415       -.37648E-04   -.11786E-03
  16  Prefactor     .99169        .78468E-01    .44341E-05   -.64218E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.7246
  Prefactor  = 5.55112e-11
  norm       = 4.22268
  norm       = 0.407583
  norm       = 5.8475
  Prefactor  = 6.38378e-09
  Prefactor  = 5.60495
  norm       = 0.121385
  Prefactor  = 14.9661
  norm       = 8.92468
  Prefactor  = 18.4195
  Prefactor  = 3.80189
  Prefactor  = 4.996e-10
  norm       = 3.184
  Normalizat = 0.990188
  Prefactor  = 0.991687
 **********
 **   18 **HESSE 
 **********

 FCN=   11787.27     FROM HESSE     STATUS=OK           243 CALLS     1314 TOTAL
                     EDM=   .58E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.725        26.401        .23200E-03   -1.5621    
   2  Prefactor     .55511E-10    1.3788        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.2227        3.4334        .49058E-03   -1.5667    
   4  norm          .40758        1.3990        .88541E-03   -1.5695    
   5  norm          5.8475        7.1939        .41537E-03   -1.5660    
   6  Prefactor     .63838E-08    61.307        .65688E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.6049        6.9454        .42439E-03   -1.5661    
   8  norm          .12138        .48388        .13376E-02   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     14.966        33.802        .26069E-03   -1.5631    
  10  norm          8.9247        1.2932        .33526E-03   -1.5648    
  11  Prefactor     18.419        33.386        .23425E-03   -1.5622    
  12  Prefactor     3.8019        19.384        .52272E-03   -1.5669    
  13  Prefactor     .49960E-09    9.3030        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.1840        1.1712        .56729E-03   -1.5672    
  15  Normalizat    .99019        .21449        .10204       -.93360    
  16  Prefactor     .99169        .71339E-01    .34778E-01   -.93007    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.81886e-08
Minuit parameter uncertainties:
  1  26.4013
  2  1.72782e-05
  3  3.43338
  4  1.39899
  5  7.19394
  6  0.00125112
  7  6.94544
  8  0.483883
  9  33.8029
  10  1.29325
  11  33.3865
  12  17.1693
  13  0.000139017
  14  1.1712
  15  0.214675
  16  0.071346
Done.

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

Extracting fit parameters...

4FGL J2157.5+3127
   Spectrum: LogParabola
368         norm:  1.214e-01  4.839e-01  0.000e+00  1.000e+06 ( 1.000e-11)
369        alpha:  2.171e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
370         beta:  1.366e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
371           Eb:  6.818e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
656    Prefactor:  9.917e-01  7.135e-02  0.000e+00  1.000e+01 ( 1.000e+00)
657        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
658        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
655   Normalization:  9.902e-01  2.147e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.07
Ra Dec: 329.386 31.455
Photon Flux Upper Limit: 7.12e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.88e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/647082/likelihoodResults_696816001_697075201_4FGL_J2157.5+3127_daily_bin1765.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) = 11786.92516
delta logL = 0.344582218529

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 11786.8495572
delta logL = 0.420185026638

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .41957E-01   1.0000          .0000       .10000E+07
     2 'alpha     '    4.5644       1.0000          .0000       5.0000    
     3 'Normalizat'    .93041       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0023       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   11786.85     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      248 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .41643E-01    .83032        .52904E-03** at limit **
   2  alpha         4.5697        2.5397        .50000        .28972E-04
   3  Normalizat    .93021        .50617E-01    .10495       -.13221E-03
   4  Prefactor     1.0024        .17130E-01    .44884E-01   -.23385E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0416432
  alpha      = 4.56972
  Normalizat = 0.930213
  Prefactor  = 1.00235
 **********
 **   18 **HESSE 
 **********

 FCN=   11786.85     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      281 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .41643E-01    2.3549        .23879E-04   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         4.5697        2.8728        .66050E-01    .97533    
   3  Normalizat    .93021        .15035        .46517E-03   -.95406    
   4  Prefactor     1.0024        .51199E-01    .15295E-03   -.92651    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.54411e-10
Minuit parameter uncertainties:
  1  0.626305
  2  9.39547
  3  0.150416
  4  0.0512017
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/647082': 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) = 11786.8495559
delta logL = 0.42018629891

Extracting fit parameters...

4FGL J2157.5+3127
   Spectrum: LogParabola
368         norm:  4.164e-02  6.263e-01  0.000e+00  1.000e+06 ( 1.000e-11)
369        alpha:  4.570e+00  9.395e+00  0.000e+00  5.000e+00 ( 1.000e+00)
370         beta:  1.366e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
371           Eb:  6.818e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
656    Prefactor:  1.002e+00  5.120e-02  0.000e+00  1.000e+01 ( 1.000e+00)
657        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
658        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
655   Normalization:  9.302e-01  1.504e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.01
Ra Dec: 329.386 31.455
Photon Index (Free Index): 4.57 +/- 9.40
Photon Flux (Free Index): 5.21e-08 +/- 5.11e-08
Energy Flux (Free Index): 7.51e-06 +/- 1.11e-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/647082/cmap_HighResolution_696816001_697075201_4FGL_J2157.5+3127_daily_bin1765.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.88e-05', comment='SUCCESS', energy_flux2='7.51e-06', dlogl='4.20e-01', photon_flux2='5.21e-08', job_status='DONE', time_completed='2023-02-03 01:55:52.208735', photon_index_error2='9.40', photon_index2='4.57', ts='0.07', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='7.12e-08', energy_flux_error2='1.11e-05', EG='0.99', time_epoch_completed='1675418152.21', return_code='0', job_id='647082', GAL2='1.00', EG2='0.93', return_code2='102', photon_flux_error2='5.11e-08', ts2='1.01', photon_index='2.17' WHERE bin_id='1765' AND source_name='4FGL J2157.5+3127' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Feb  3 01:55:52 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0122>
Subject: Job 647082: <4FGL_J2157.5+3127_daily_bin1765> in cluster <slac> Done

Job <4FGL_J2157.5+3127_daily_bin1765> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Feb  3 01:40:19 2023
Job was executed on host(s) <bullet0122>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Feb  3 01:41:50 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Feb  3 01:41:50 2023
Terminated at Fri Feb  3 01:55:53 2023
Results reported at Fri Feb  3 01:55:53 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2157.5+3127_daily_bin1765 329.386 31.4552 696816001 697075201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2157.5+3127 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   830.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             380.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   842 sec.
    Turnaround time :                            934 sec.

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

