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


Performing analysis on: 4FGL_J2157.5+3127_daily_bin1764
RA = 329.386, Dec = 31.4552
tmin = 696556801, tmax = 696816001
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='466018', job_status='RUN', time_executed='2023-01-31 02:03:09.211577', time_epoch_executed='1675159389.21' WHERE source_name='4FGL J2157.5+3127' and cadence='daily' and bin_id='1764'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/466018

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/466018/ft1_4FGL_J2157.5+3127_daily_bin1764.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/466018/ft2_4FGL_J2157.5+3127_daily_bin1764.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/466018/ft1_4FGL_J2157.5+3127_daily_bin1764.fits outfile=/scratch/kocevski/466018/ft1_filteredMKT_4FGL_J2157.5+3127_daily_bin1764.fits ra=329.386 dec=31.4552 rad=12.0 tmin=696556801.0 tmax=696816001.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.76
user 3.49
sys 0.22

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

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

Number of photons that the gtmktime cut: 1034

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/466018/ft1_filtered_4FGL_J2157.5+3127_daily_bin1764.fits" evtable="EVENTS" scfile=/scratch/kocevski/466018/ft2_4FGL_J2157.5+3127_daily_bin1764.fits sctable="SC_DATA" outfile=/scratch/kocevski/466018/ltcube_696556801_696816001_4FGL_J2157.5+3127_daily_bin1764.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/466018/ft2_4FGL_J2157.5+3127_daily_bin1764.fits
.....................!
real 15.84
user 15.36
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/466018/ft1_filtered_4FGL_J2157.5+3127_daily_bin1764.fits evtable="EVENTS" scfile=/scratch/kocevski/466018/ft2_4FGL_J2157.5+3127_daily_bin1764.fits sctable="SC_DATA" expcube=/scratch/kocevski/466018/ltcube_696556801_696816001_4FGL_J2157.5+3127_daily_bin1764.fits outfile=/scratch/kocevski/466018/expmap_696556801_696816001_4FGL_J2157.5+3127_daily_bin1764.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/466018/ltcube_696556801_696816001_4FGL_J2157.5+3127_daily_bin1764.fits
.....................!
real 194.92
user 187.88
sys 4.82

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/466018/ft1_filtered_4FGL_J2157.5+3127_daily_bin1764.fits scfile=/scratch/kocevski/466018/ft2_4FGL_J2157.5+3127_daily_bin1764.fits outfile=/scratch/kocevski/466018/cmap_696556801_696816001_4FGL_J2157.5+3127_daily_bin1764.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.59
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/466018/ft1_filtered_4FGL_J2157.5+3127_daily_bin1764.fits scfile=/scratch/kocevski/466018/ft2_4FGL_J2157.5+3127_daily_bin1764.fits outfile=/scratch/kocevski/466018/cmap_HighResolution_696556801_696816001_4FGL_J2157.5+3127_daily_bin1764.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.59
user 0.40
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/466018/ft1_filtered_4FGL_J2157.5+3127_daily_bin1764.fits', '/scratch/kocevski/466018/ft2_4FGL_J2157.5+3127_daily_bin1764.fits', expMap='/scratch/kocevski/466018/expmap_696556801_696816001_4FGL_J2157.5+3127_daily_bin1764.fits', expCube='/scratch/kocevski/466018/ltcube_696556801_696816001_4FGL_J2157.5+3127_daily_bin1764.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/466018/Model_4FGL_J2157.5+3127_daily_bin1764.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/466018/ft1_filtered_4FGL_J2157.5+3127_daily_bin1764.fits
Spacecraft file(s): /scratch/kocevski/466018/ft2_4FGL_J2157.5+3127_daily_bin1764.fits
Exposure map: /scratch/kocevski/466018/expmap_696556801_696816001_4FGL_J2157.5+3127_daily_bin1764.fits
Exposure cube: /scratch/kocevski/466018/ltcube_696556801_696816001_4FGL_J2157.5+3127_daily_bin1764.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/466018/Model_4FGL_J2157.5+3127_daily_bin1764.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) = 10529.4818881

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.486       1.0000          .0000       .10000E+07
     2 'Prefactor '    5.0174       1.0000          .0000       .10000E+07
     3 'norm      '    .72209E-04   1.0000          .0000       .10000E+07
     4 'norm      '    2.0329       1.0000          .0000       .10000E+07
     5 'norm      '    .90767E-05   1.0000          .0000       .10000E+07
     6 'Prefactor '    .10996E-01   1.0000          .0000       .10000E+07
     7 'Prefactor '    5.2273       1.0000          .0000       .10000E+07
     8 'norm      '    1.2918       1.0000          .0000       .10000E+07
     9 'Prefactor '    11.359       1.0000          .0000       .10000E+07
    10 'norm      '    8.5961       1.0000          .0000       .10000E+07
    11 'Prefactor '    .15013E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    .97301E-05   1.0000          .0000       .10000E+07
    13 'Prefactor '    7.6685       1.0000          .0000       .10000E+07
    14 'norm      '    2.1976       1.0000          .0000       .10000E+07
    15 'Normalizat'    .65975       1.0000         .10000E-01   10.000    
    16 'Prefactor '    1.0381       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=   10529.48     FROM MIGRAD    STATUS=CONVERGED    105 CALLS     1105 TOTAL
                     EDM=   .69E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.644        1.7569       -.10412E-07    .12784E-01
   2  Prefactor     5.0237        5.2656        .38314E-07    .96725E-03
   3  norm          .16653E-09    11.407       -.87770E-06** at limit **
   4  norm          2.0333        1.1780       -.89277E-07   -.16314E-03
   5  norm          .14599E-07    16.081        .91326E-06** at limit **
   6  Prefactor     .48295E-08    52.897       -.29069E-06** at limit **
   7  Prefactor     5.2255        5.2504       -.86410E-07    .14542E-03
   8  norm          1.2926        .77981       -.64551E-07    .28192E-02
   9  Prefactor     11.220        3.8517       -.73026E-07    .34584E-01
  10  norm          8.5951        1.2711        .15702E-07   -.16952E-03
  11  Prefactor     .84377E-08    14.522        .43150E-06** at limit **
  12  Prefactor      .0000        6.0227        .23168E-06** at limit **
  13  Prefactor     7.6981        13.023        .13430E-06    .16635E-02
  14  norm          2.1979        1.1216        .85629E-08   -.12684E-02
  15  Normalizat    .65973        .23286        .36130E-05   -.19623E-05
  16  Prefactor     1.0379        .78888E-01    .65893E-06    .31297E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.6444
  Prefactor  = 5.02367
  norm       = 1.66533e-10
  norm       = 2.03327
  norm       = 1.45994e-08
  Prefactor  = 4.82947e-09
  Prefactor  = 5.22549
  norm       = 1.29262
  Prefactor  = 11.2203
  norm       = 8.59508
  Prefactor  = 8.43769e-09
  Prefactor  = 0
  Prefactor  = 7.69812
  norm       = 2.19793
  Normalizat = 0.659728
  Prefactor  = 1.03793
 **********
 **   18 **HESSE 
 **********

 FCN=   10529.48     FROM HESSE     STATUS=OK           237 CALLS     1342 TOTAL
                     EDM=   .19E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.644        33.904        .21579E-03   -1.5615    
   2  Prefactor     5.0237        5.3103        .44869E-03   -1.5663    
   3  norm          .16653E-09    11.385        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.0333        1.1726        .72522E-03   -1.5679    
   5  norm          .14599E-07    16.058        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .48295E-08    53.009        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.2255        5.2596        .43942E-03   -1.5662    
   8  norm          1.2926        .78815        .97369E-03   -1.5685    
   9  Prefactor     11.220        40.376        .29699E-03   -1.5641    
  10  norm          8.5951        1.2720        .34166E-03   -1.5649    
  11  Prefactor     .84377E-08    14.575        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        6.0366        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.6981        13.027        .36189E-03   -1.5652    
  14  norm          2.1979        1.1265        .69383E-03   -1.5678    
  15  Normalizat    .65973        .22199        .11724       -1.0550    
  16  Prefactor     1.0379        .74385E-01    .40664E-01   -.91476    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.87093e-07
Minuit parameter uncertainties:
  1  33.9047
  2  5.31027
  3  7.9874e-05
  4  1.17259
  5  0.000968232
  6  0.00101436
  7  5.25961
  8  0.788153
  9  40.3768
  10  1.27203
  11  0.000702439
  12  2.32009e-05
  13  13.0266
  14  1.12648
  15  0.222292
  16  0.0743929
Done.

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

Extracting fit parameters...

4FGL J2157.5+3127
   Spectrum: LogParabola
368         norm:  1.293e+00  7.882e-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:  1.038e+00  7.439e-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:  6.597e-01  2.223e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.25
Ra Dec: 329.386 31.455
Photon Index (Fixed Index): 2.17 +/- 0.00
Photon Flux (Fixed Index): 5.62e-08 +/- 3.43e-08
Energy Flux (Fixed Index): 2.28e-05 +/- 1.39e-05

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) = 10529.4637089
delta logL = 0.013288735563

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10529.4623038
delta logL = 0.0146938304315

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2602       1.0000          .0000       .10000E+07
     2 'alpha     '    2.0272       1.0000          .0000       5.0000    
     3 'Normalizat'    .66945       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0365       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=   10529.46     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      202 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2602        20.126        .99327E-03    .22195E-02
   2  alpha         2.0274        2.8403        .42122       -.15007E-04
   3  Normalizat    .66944        .17933        .11645        .60666E-04
   4  Prefactor     1.0366        .36302E-01    .40771E-01   -.11560E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.26022
  alpha      = 2.02744
  Normalizat = 0.669444
  Prefactor  = 1.03658
 **********
 **   18 **HESSE 
 **********

 FCN=   10529.46     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2602        .82915        .69641E-05   -1.5686    
   2  alpha         2.0274        .82535        .23293E-01   -.19017    
   3  Normalizat    .66944        .23030        .51656E-03   -1.0511    
   4  Prefactor     1.0366        .78092E-01    .14586E-03   -.91520    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.23587e-10
Minuit parameter uncertainties:
  1  0.829152
  2  0.841749
  3  0.230628
  4  0.0781003
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/466018': 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) = 10529.4623035
delta logL = 0.0146941640724

Extracting fit parameters...

4FGL J2157.5+3127
   Spectrum: LogParabola
368         norm:  1.260e+00  8.292e-01  0.000e+00  1.000e+06 ( 1.000e-11)
369        alpha:  2.027e+00  8.417e-01  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.037e+00  7.810e-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:  6.694e-01  2.306e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.26
Ra Dec: 329.386 31.455
Photon Index (Free Index): 2.03 +/- 0.84
Photon Flux (Free Index): 4.78e-08 +/- 5.48e-08
Energy Flux (Free Index): 2.32e-05 +/- 1.51e-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/466018/cmap_HighResolution_696556801_696816001_4FGL_J2157.5+3127_daily_bin1764.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.62e-08', energy_flux2='2.32e-05', photon_flux_error='3.43e-08', dlogl='1.47e-02', energy_flux='2.28e-05', photon_flux2='4.78e-08', job_status='DONE', time_completed='2023-01-31 02:15:11.926124', photon_index_error2='0.84', photon_index2='2.03', ts='7.25', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', energy_flux_error2='1.51e-05', EG='0.66', time_epoch_completed='1675160111.93', return_code='0', job_id='466018', GAL2='1.04', EG2='0.67', return_code2='0', energy_flux_error='1.39e-05', photon_flux_error2='5.48e-08', ts2='7.26', photon_index='2.17' WHERE bin_id='1764' AND source_name='4FGL J2157.5+3127' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jan 31 02:15:11 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 466018: <4FGL_J2157.5+3127_daily_bin1764> in cluster <slac> Done

Job <4FGL_J2157.5+3127_daily_bin1764> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Jan 31 02:00:28 2023
Job was executed on host(s) <bullet0203>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jan 31 02:00:58 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jan 31 02:00:58 2023
Terminated at Tue Jan 31 02:15:12 2023
Results reported at Tue Jan 31 02:15:12 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2157.5+3127_daily_bin1764 329.386 31.4552 696556801 696816001 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 :                                   721.11 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             350.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   854 sec.
    Turnaround time :                            884 sec.

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

