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


Performing analysis on: 4FGL_J1957.1-3231_daily_bin1687
RA = 299.286, Dec = -32.5246
tmin = 676598401, tmax = 676857601
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='698826', job_status='RUN', time_executed='2022-06-14 01:34:52.239577', time_epoch_executed='1655195692.24' WHERE source_name='4FGL J1957.1-3231' and cadence='daily' and bin_id='1687'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/698826

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/698826/ft1_4FGL_J1957.1-3231_daily_bin1687.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/698826/ft2_4FGL_J1957.1-3231_daily_bin1687.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/698826/ft1_4FGL_J1957.1-3231_daily_bin1687.fits outfile=/scratch/kocevski/698826/ft1_filteredMKT_4FGL_J1957.1-3231_daily_bin1687.fits ra=299.286 dec=-32.5246 rad=12.0 tmin=676598401.0 tmax=676857601.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 2.92
user 2.67
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/698826/ft2_4FGL_J1957.1-3231_daily_bin1687.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/698826/ft2_4FGL_J1957.1-3231_daily_bin1687.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/698826/ft1_filteredMKT_4FGL_J1957.1-3231_daily_bin1687.fits evtable="EVENTS" outfile="/scratch/kocevski/698826/ft1_filtered_4FGL_J1957.1-3231_daily_bin1687.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.37
sys 0.14

Number of photons that the gtmktime cut: 346

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/698826/ft1_filtered_4FGL_J1957.1-3231_daily_bin1687.fits" evtable="EVENTS" scfile=/scratch/kocevski/698826/ft2_4FGL_J1957.1-3231_daily_bin1687.fits sctable="SC_DATA" outfile=/scratch/kocevski/698826/ltcube_676598401_676857601_4FGL_J1957.1-3231_daily_bin1687.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/698826/ft2_4FGL_J1957.1-3231_daily_bin1687.fits
.....................!
real 14.73
user 14.29
sys 0.40

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/698826/ft1_filtered_4FGL_J1957.1-3231_daily_bin1687.fits evtable="EVENTS" scfile=/scratch/kocevski/698826/ft2_4FGL_J1957.1-3231_daily_bin1687.fits sctable="SC_DATA" expcube=/scratch/kocevski/698826/ltcube_676598401_676857601_4FGL_J1957.1-3231_daily_bin1687.fits outfile=/scratch/kocevski/698826/expmap_676598401_676857601_4FGL_J1957.1-3231_daily_bin1687.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/698826/ltcube_676598401_676857601_4FGL_J1957.1-3231_daily_bin1687.fits
.....................!
real 191.21
user 185.68
sys 5.04

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

Setting source of interest to:
4FGL J1957.1-3231 @ 299.286 -32.5246

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/698826/ft1_filtered_4FGL_J1957.1-3231_daily_bin1687.fits scfile=/scratch/kocevski/698826/ft2_4FGL_J1957.1-3231_daily_bin1687.fits outfile=/scratch/kocevski/698826/cmap_676598401_676857601_4FGL_J1957.1-3231_daily_bin1687.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=299.286 yref=-32.5246 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.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/698826/ft1_filtered_4FGL_J1957.1-3231_daily_bin1687.fits scfile=/scratch/kocevski/698826/ft2_4FGL_J1957.1-3231_daily_bin1687.fits outfile=/scratch/kocevski/698826/cmap_HighResolution_676598401_676857601_4FGL_J1957.1-3231_daily_bin1687.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=299.286 yref=-32.5246 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.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/698826/ft1_filtered_4FGL_J1957.1-3231_daily_bin1687.fits evtable="EVENTS" scfile=/scratch/kocevski/698826/ft2_4FGL_J1957.1-3231_daily_bin1687.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/698826/Model_4FGL_J1957.1-3231_daily_bin1687.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/698826/ft1_filtered_4FGL_J1957.1-3231_daily_bin1687.fits.....................!
real 41.08
user 39.66
sys 1.31

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/698826/ft1_filtered_4FGL_J1957.1-3231_daily_bin1687.fits', '/scratch/kocevski/698826/ft2_4FGL_J1957.1-3231_daily_bin1687.fits', expMap='/scratch/kocevski/698826/expmap_676598401_676857601_4FGL_J1957.1-3231_daily_bin1687.fits', expCube='/scratch/kocevski/698826/ltcube_676598401_676857601_4FGL_J1957.1-3231_daily_bin1687.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/698826/Model_4FGL_J1957.1-3231_daily_bin1687.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1957.1-3231'

4FGL J1957.1-3231
   Spectrum: PowerLaw
458    Prefactor:  1.079e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
459        Index:  2.579e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
460        Scale:  7.441e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/698826/ft1_filtered_4FGL_J1957.1-3231_daily_bin1687.fits
Spacecraft file(s): /scratch/kocevski/698826/ft2_4FGL_J1957.1-3231_daily_bin1687.fits
Exposure map: /scratch/kocevski/698826/expmap_676598401_676857601_4FGL_J1957.1-3231_daily_bin1687.fits
Exposure cube: /scratch/kocevski/698826/ltcube_676598401_676857601_4FGL_J1957.1-3231_daily_bin1687.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/698826/Model_4FGL_J1957.1-3231_daily_bin1687.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) = 3836.02838164

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10559E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    22.397       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10155E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    30.039       1.0000         .10000E-03   10000.    
    10 'Prefactor '    34.787       1.0000         .10000E-03   10000.    
    11 'norm      '    28.329       1.0000         .10000E-03   10000.    
    12 'norm      '    42.388       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    7.5104       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0554       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0718       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7550E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3836.013     FROM MIGRAD    STATUS=CONVERGED    382 CALLS     1853 TOTAL
                     EDM=   .74E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    130.65        .73058E-04** at limit **
   2  norm          22.392        21.639        .18359E-06   -.65103E-04
   3  Prefactor     .10000E-03    30.260       -.36503E-05** at limit **
   4  Prefactor     .10000E-03    198.98       -.77030E-04** at limit **
   5  Prefactor     .10000E-03    26.680        .62062E-05** at limit **
   6  Prefactor     .10000E-03    77.937       -.20278E-04** at limit **
   7  norm          .10000E-03    28.346       -.10412E-04** at limit **
   8  Prefactor     .10000E-03    14.566       -.46547E-06** at limit **
   9  norm          30.039        4.9730        .24406E-07   -.10982E-03
  10  Prefactor     34.810        75.956        .27161E-04   -.26471E-05
  11  norm          28.330        21.583        .12729E-06   -.10905E-04
  12  norm          42.383        32.698       -.29604E-06   -.87392E-05
  13  Prefactor     .10000E-03    32.516        .95417E-05** at limit **
  14  norm          .10000E-03    4.7365        .15504E-07** at limit **
  15  Prefactor     .10000E-03    41.496        .45232E-06** at limit **
  16  norm          7.5044        21.443        .64235E-06   -.21718E-04
  17  Prefactor     .10000E-03    3.8115        .88360E-08** at limit **
  18  Normalizat    1.0554        .44039        .33394E-06   -.61101E-04
  19  Prefactor     1.0718        .15738       -.16442E-05    .21052E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 22.3923
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 30.0395
  Prefactor  = 34.8095
  norm       = 28.3304
  norm       = 42.3829
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 7.50439
  Prefactor  = 0.0001
  Normalizat = 1.05538
  Prefactor  = 1.07183
 **********
 **   18 **HESSE 
 **********

 FCN=   3836.013     FROM HESSE     STATUS=OK           262 CALLS     2115 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    131.10        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          22.392        21.644        .84637E-04   -1.4761    
   3  Prefactor     .10000E-03    30.444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    199.13        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    26.732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    77.984        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    28.354        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    14.710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          30.039        4.9712        .53656E-04   -1.4611    
  10  Prefactor     34.810        76.226        .67944E-04   -1.4527    
  11  norm          28.330        21.580        .75271E-04   -1.4643    
  12  norm          42.383        32.718        .61573E-04   -1.4405    
  13  Prefactor     .10000E-03    32.530        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    4.7398        .13164E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    41.514        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          7.5044        21.440        .14634E-03   -1.5160    
  17  Prefactor     .10000E-03    3.8216        .11805E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.0554        .48792        .52029E-03   -.91198    
  19  Prefactor     1.0718        .17632        .18165E-03   -.90372    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.74419e-10
Minuit parameter uncertainties:
  1  0.000444748
  2  21.6513
  3  2.96838e-05
  4  1.69773e-05
  5  1.24058e-06
  6  4.11479e-05
  7  3.72183e-06
  8  0.000188335
  9  4.97124
  10  76.4404
  11  21.5863
  12  32.7321
  13  5.05928e-06
  14  5.66297e-07
  15  5.09668e-06
  16  21.4623
  17  3.861e-06
  18  0.490012
  19  0.17642
Done.

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

Extracting fit parameters...

4FGL J1957.1-3231
   Spectrum: PowerLaw
458    Prefactor:  1.000e-04  1.883e-04  1.000e-04  1.000e+04 ( 1.000e-12)
459        Index:  2.579e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
460        Scale:  7.441e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
752    Prefactor:  1.072e+00  1.764e-01  0.000e+00  1.000e+01 ( 1.000e+00)
753        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
754        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
751   Normalization:  1.055e+00  4.900e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 299.286 -32.525
Photon Flux Upper Limit: 3.33e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.60e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/698826/likelihoodResults_676598401_676857601_4FGL_J1957.1-3231_daily_bin1687.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) = 3836.01315246
delta logL = -0.000323952642702

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3836.01282967
delta logL = -1.17122772281e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11998E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5404       1.0000          .0000       10.000    
     3 'Normalizat'    1.0560       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0717       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7550E+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.

 FCN=   3836.013     FROM MIGRAD    STATUS=CONVERGED    116 CALLS      267 TOTAL
                     EDM=   .79E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.8811        .11276    ** at limit **
   2  Index         1.8638        8.8839        .50000       -.96600E-07
   3  Normalizat    1.0554        .61223E-02    .52029E-03    .69327E-03
   4  Prefactor     1.0718        .21710E-02    .18165E-03    .20420E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.86382
  Normalizat = 1.05539
  Prefactor  = 1.07183
 **********
 **   18 **HESSE 
 **********

 FCN=   3836.013     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      298 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    795.81        .39269E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8638        5.8107        .50000       -.67800    
   3  Normalizat    1.0554        .50978E-01    .10406E-03   -.91197    
   4  Prefactor     1.0718        .18079E-01    .36330E-04   -.90372    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.21244e-10
Minuit parameter uncertainties:
  1  0.000513196
  2  540.547
  3  0.0509801
  4  0.0180789
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/698826': 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) = 3836.01282622
delta logL = 2.2845656531e-06

Extracting fit parameters...

4FGL J1957.1-3231
   Spectrum: PowerLaw
458    Prefactor:  1.000e-04  5.132e-04  1.000e-04  1.000e+04 ( 1.000e-12)
459        Index:  1.864e+00  5.405e+02  0.000e+00  1.000e+01 (-1.000e+00)
460        Scale:  7.441e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
752    Prefactor:  1.072e+00  1.808e-02  0.000e+00  1.000e+01 ( 1.000e+00)
753        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
754        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
751   Normalization:  1.055e+00  5.098e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 299.286 -32.525

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/698826/cmap_HighResolution_676598401_676857601_4FGL_J1957.1-3231_daily_bin1687.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.60e-02', job_status='DONE', photon_flux_upper_limit='3.33e-07', time_completed='2022-06-14 01:43:34.435102', job_id='698826', GAL2='1.07', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1655196214.44', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='2.28e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1687' AND source_name='4FGL J1957.1-3231' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jun 14 01:43:34 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0154>
Subject: Job 698826: <4FGL_J1957.1-3231_daily_bin1687> in cluster <slac> Done

Job <4FGL_J1957.1-3231_daily_bin1687> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Jun 14 01:30:25 2022
Job was executed on host(s) <bullet0154>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jun 14 01:30:46 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jun 14 01:30:46 2022
Terminated at Tue Jun 14 01:43:35 2022
Results reported at Tue Jun 14 01:43:35 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1957.1-3231_daily_bin1687 299.286 -32.5246 676598401 676857601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1957.1-3231 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   525.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             258.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   768 sec.
    Turnaround time :                            790 sec.

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

