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


Performing analysis on: 4FGL_J2156.3-0036_daily_bin1710
RA = 329.08, Dec = -0.6039
tmin = 682560001, tmax = 682819201
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='238578', job_status='RUN', time_executed='2022-09-16 23:38:08.417900', time_epoch_executed='1663396688.42' WHERE source_name='4FGL J2156.3-0036' and cadence='daily' and bin_id='1710'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/238578

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/238578/ft1_4FGL_J2156.3-0036_daily_bin1710.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/238578/ft2_4FGL_J2156.3-0036_daily_bin1710.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/238578/ft1_4FGL_J2156.3-0036_daily_bin1710.fits outfile=/scratch/kocevski/238578/ft1_filteredMKT_4FGL_J2156.3-0036_daily_bin1710.fits ra=329.08 dec=-0.6039 rad=12.0 tmin=682560001.0 tmax=682819201.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.65
user 3.44
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/238578/ft2_4FGL_J2156.3-0036_daily_bin1710.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/238578/ft2_4FGL_J2156.3-0036_daily_bin1710.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/238578/ft1_filteredMKT_4FGL_J2156.3-0036_daily_bin1710.fits evtable="EVENTS" outfile="/scratch/kocevski/238578/ft1_filtered_4FGL_J2156.3-0036_daily_bin1710.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.50
user 0.33
sys 0.16

Number of photons that the gtmktime cut: 476

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/238578/ft1_filtered_4FGL_J2156.3-0036_daily_bin1710.fits" evtable="EVENTS" scfile=/scratch/kocevski/238578/ft2_4FGL_J2156.3-0036_daily_bin1710.fits sctable="SC_DATA" outfile=/scratch/kocevski/238578/ltcube_682560001_682819201_4FGL_J2156.3-0036_daily_bin1710.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/238578/ft2_4FGL_J2156.3-0036_daily_bin1710.fits
.....................!
real 14.08
user 13.65
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/238578/ft1_filtered_4FGL_J2156.3-0036_daily_bin1710.fits evtable="EVENTS" scfile=/scratch/kocevski/238578/ft2_4FGL_J2156.3-0036_daily_bin1710.fits sctable="SC_DATA" expcube=/scratch/kocevski/238578/ltcube_682560001_682819201_4FGL_J2156.3-0036_daily_bin1710.fits outfile=/scratch/kocevski/238578/expmap_682560001_682819201_4FGL_J2156.3-0036_daily_bin1710.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/238578/ltcube_682560001_682819201_4FGL_J2156.3-0036_daily_bin1710.fits
.....................!
real 192.52
user 186.59
sys 5.56

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
Added 166 point sources and 0 extended sources

Setting source of interest to:
4FGL J2156.3-0036 @ 329.08 -0.6039

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/238578/ft1_filtered_4FGL_J2156.3-0036_daily_bin1710.fits scfile=/scratch/kocevski/238578/ft2_4FGL_J2156.3-0036_daily_bin1710.fits outfile=/scratch/kocevski/238578/cmap_682560001_682819201_4FGL_J2156.3-0036_daily_bin1710.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.08 yref=-0.6039 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.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/238578/ft1_filtered_4FGL_J2156.3-0036_daily_bin1710.fits scfile=/scratch/kocevski/238578/ft2_4FGL_J2156.3-0036_daily_bin1710.fits outfile=/scratch/kocevski/238578/cmap_HighResolution_682560001_682819201_4FGL_J2156.3-0036_daily_bin1710.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.08 yref=-0.6039 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.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/238578/ft1_filtered_4FGL_J2156.3-0036_daily_bin1710.fits evtable="EVENTS" scfile=/scratch/kocevski/238578/ft2_4FGL_J2156.3-0036_daily_bin1710.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/238578/Model_4FGL_J2156.3-0036_daily_bin1710.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 EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/238578/ft1_filtered_4FGL_J2156.3-0036_daily_bin1710.fits.....................!
real 56.74
user 55.34
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/238578/ft1_filtered_4FGL_J2156.3-0036_daily_bin1710.fits', '/scratch/kocevski/238578/ft2_4FGL_J2156.3-0036_daily_bin1710.fits', expMap='/scratch/kocevski/238578/expmap_682560001_682819201_4FGL_J2156.3-0036_daily_bin1710.fits', expCube='/scratch/kocevski/238578/ltcube_682560001_682819201_4FGL_J2156.3-0036_daily_bin1710.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/238578/Model_4FGL_J2156.3-0036_daily_bin1710.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2156.3-0036'

4FGL J2156.3-0036
   Spectrum: PowerLaw
299    Prefactor:  2.502e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
300        Index:  2.249e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
301        Scale:  1.470e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/238578/ft1_filtered_4FGL_J2156.3-0036_daily_bin1710.fits
Spacecraft file(s): /scratch/kocevski/238578/ft2_4FGL_J2156.3-0036_daily_bin1710.fits
Exposure map: /scratch/kocevski/238578/expmap_682560001_682819201_4FGL_J2156.3-0036_daily_bin1710.fits
Exposure cube: /scratch/kocevski/238578/ltcube_682560001_682819201_4FGL_J2156.3-0036_daily_bin1710.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/238578/Model_4FGL_J2156.3-0036_daily_bin1710.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) = 5335.59084488

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .53916E-01   1.0000          .0000       .10000E+07
     2 'Prefactor '    16.942       1.0000          .0000       .10000E+07
     3 'Prefactor '    .61942E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .43800E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    2.8029       1.0000          .0000       .10000E+07
     6 'Prefactor '    .66927E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    .16124E-02   1.0000          .0000       .10000E+07
     8 'norm      '    .28024       1.0000          .0000       .10000E+07
     9 'norm      '    2.5758       1.0000          .0000       .10000E+07
    10 'Prefactor '    .55449E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    .54467E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '     .0000       1.0000          .0000       .10000E+07
    13 'Prefactor '    2.0828       1.0000          .0000       .10000E+07
    14 'Prefactor '    6.3775       1.0000          .0000       .10000E+07
    15 'Prefactor '    19.035       1.0000          .0000       .10000E+07
    16 'Prefactor '    .14786E-03   1.0000          .0000       .10000E+07
    17 'norm      '    .53229E-01   1.0000          .0000       .10000E+07
    18 'Prefactor '    .11605       1.0000          .0000       .10000E+07
    19 'Normalizat'    .70175       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .96972       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5390E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5335.554     FROM MIGRAD    STATUS=CONVERGED    114 CALLS     1233 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10312E-05    2.1063       -.39543E-06** at limit **
   2  Prefactor     17.102        1.2581        .25491E-07   -.29803E-01
   3  Prefactor     .48138E-05    5.5012       -.16038E-05** at limit **
   4  Prefactor     .38858E-09    2.5763       -.84827E-06** at limit **
   5  Prefactor     2.8031        2.4814       -.53013E-06   -.11362E-02
   6  Prefactor     .17083E-05    10.066       -.16879E-05** at limit **
   7  Prefactor     .83888E-06    16.379       -.15932E-05** at limit **
   8  norm          .28498        4.8290       -.11563E-05   -.12378E-02
   9  norm          2.5563        1.7822        .30461E-06   -.98522E-02
  10  Prefactor     .55511E-10    2.1871        .87052E-06** at limit **
  11  Prefactor     .24425E-08    6.4162       -.15805E-05** at limit **
  12  Prefactor     .86597E-08    4.0189        .72010E-06** at limit **
  13  Prefactor     2.1579        1.1481       -.98487E-07    .17643E-01
  14  Prefactor     6.3354        1.2243       -.81545E-07    .39449E-01
  15  Prefactor     19.062        1.5888        .76578E-07   -.51827E-01
  16  Prefactor      .0000        3.1813       -.14962E-05** at limit **
  17  norm          .56063E-01    5.5202        .21138E-05** at limit **
  18  Prefactor     .17797E-05    1.0128        .27307E-06** at limit **
  19  Normalizat    .70228        .24398        .16676E-04   -.72051E-04
  20  Prefactor     .96921        .13817       -.88333E-06   -.18220E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.03123e-06
  Prefactor  = 17.1019
  Prefactor  = 4.81382e-06
  Prefactor  = 3.88578e-10
  Prefactor  = 2.80309
  Prefactor  = 1.7083e-06
  Prefactor  = 8.38885e-07
  norm       = 0.284976
  norm       = 2.55632
  Prefactor  = 5.55112e-11
  Prefactor  = 2.44249e-09
  Prefactor  = 8.65974e-09
  Prefactor  = 2.15793
  Prefactor  = 6.3354
  Prefactor  = 19.0617
  Prefactor  = 0
  norm       = 0.0560625
  Prefactor  = 1.77974e-06
  Normalizat = 0.702279
  Prefactor  = 0.969215
 **********
 **   18 **HESSE 
 **********

 FCN=   5335.554     FROM HESSE     STATUS=OK           343 CALLS     1576 TOTAL
                     EDM=   .65E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10312E-05    242.07        .15388E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     17.102        24.790        .24306E-03   -1.5625    
   3  Prefactor     .48138E-05    15.193        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .38858E-09    2.6336        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.8031        2.4767        .60738E-03   -1.5674    
   6  Prefactor     .17083E-05    13.798        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .83888E-06    18.209        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .28498        1.2737        .45507E-02   -1.5719    
   9  norm          2.5563        10.487        .63566E-03   -1.5676    
  10  Prefactor     .55511E-10    2.4163        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .24425E-08    6.4620        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .86597E-08    4.1625        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.1579        19.248        .71521E-03   -1.5679    
  14  Prefactor     6.3354        14.199        .39721E-03   -1.5658    
  15  Prefactor     19.062        12.518        .22929E-03   -1.5621    
  16  Prefactor      .0000        3.2904        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .56063E-01    2.0884        .57155E-02   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .17797E-05    45.385        .13517E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .70228        .21331        .75704E-01   -1.0380    
  20  Prefactor     .96921        .11755        .45888E-01   -.93763    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.4559e-07
Minuit parameter uncertainties:
  1  0.0316004
  2  24.7899
  3  0.0171039
  4  6.19673e-05
  5  2.47671
  6  0.00971007
  7  0.0078167
  8  1.20494
  9  10.3555
  10  2.30443e-05
  11  0.000251967
  12  0.000379333
  13  12.8897
  14  14.1987
  15  12.5181
  16  1.62387e-05
  17  0.684347
  18  0.0179748
  19  0.213559
  20  0.117584
Done.

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

Extracting fit parameters...

4FGL J2156.3-0036
   Spectrum: PowerLaw
299    Prefactor:  8.660e-09  3.793e-04  0.000e+00  1.000e+06 ( 1.000e-13)
300        Index:  2.249e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
301        Scale:  1.470e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
536    Prefactor:  9.692e-01  1.176e-01  0.000e+00  1.000e+01 ( 1.000e+00)
537        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
538        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
535   Normalization:  7.023e-01  2.136e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 329.080 -0.604
Photon Flux Upper Limit: 6.58e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.03e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/238578/likelihoodResults_682560001_682819201_4FGL_J2156.3-0036_daily_bin1710.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) = 5335.56385961
delta logL = -0.00964029883471

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5335.55421932
delta logL = -8.34279489936e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .35083E-07   1.0000          .0000       .10000E+07
     2 'Index     '    2.3901       1.0000          .0000       10.000    
     3 'Normalizat'    .70226       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96922       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5390E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5335.554     FROM MIGRAD    STATUS=CONVERGED     70 CALLS      250 TOTAL
                     EDM=   .75E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .38858E-09    .38717        .42118E-03** at limit **
   2  Index         .70669        9.6310        .50000       -.79581E-09
   3  Normalizat    .70228        .27338E-02    .75704E-01   -.58755E-05
   4  Prefactor     .96921        .15586E-02    .45881E-01   -.10336E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.88578e-10
  Index      = 0.706687
  Normalizat = 0.702279
  Prefactor  = 0.969215
 **********
 **   18 **HESSE 
 **********

 FCN=   5335.554     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      281 TOTAL
                     EDM=   .37E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .38858E-09    1.9290        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .70669        5.3312        .50000       -1.0327    
   3  Normalizat    .70228        .60935E-02    .33513E-03   -1.0380    
   4  Prefactor     .96921        .34811E-02    .16385E-03   -.93763    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.7327e-12
Minuit parameter uncertainties:
  1  5.34003e-05
  2  52783.3
  3  0.00609354
  4  0.00348105
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/238578': 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) = 5335.55421931
delta logL = 9.1313268058e-10

Extracting fit parameters...

4FGL J2156.3-0036
   Spectrum: PowerLaw
299    Prefactor:  3.886e-10  5.340e-05  0.000e+00  1.000e+06 ( 1.000e-13)
300        Index:  7.067e-01  5.278e+04  0.000e+00  1.000e+01 (-1.000e+00)
301        Scale:  1.470e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
536    Prefactor:  9.692e-01  3.481e-03  0.000e+00  1.000e+01 ( 1.000e+00)
537        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
538        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
535   Normalization:  7.023e-01  6.094e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 329.080 -0.604

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/238578/cmap_HighResolution_682560001_682819201_4FGL_J2156.3-0036_daily_bin1710.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.03e-03', job_status='DONE', photon_flux_upper_limit='6.58e-08', time_completed='2022-09-16 23:46:29.340558', job_id='238578', GAL2='0.97', fit_tolerance='1e-08', EG2='0.70', EG='0.70', time_epoch_completed='1663397189.34', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='9.13e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='1710' AND source_name='4FGL J2156.3-0036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 23:46:29 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 238578: <4FGL_J2156.3-0036_daily_bin1710> in cluster <slac> Done

Job <4FGL_J2156.3-0036_daily_bin1710> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Sep 16 23:35:18 2022
Job was executed on host(s) <bullet0213>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 23:35:50 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 23:35:50 2022
Terminated at Fri Sep 16 23:46:30 2022
Results reported at Fri Sep 16 23:46:30 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2156.3-0036_daily_bin1710 329.08 -0.6039 682560001 682819201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2156.3-0036 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   503.26 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             305.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   639 sec.
    Turnaround time :                            672 sec.

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

