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


Performing analysis on: 4FGL_J1957.1-3231_daily_bin1691
RA = 299.286, Dec = -32.5246
tmin = 677635201, tmax = 677894401
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='310823', job_status='RUN', time_executed='2022-06-26 01:14:26.071970', time_epoch_executed='1656231266.07' WHERE source_name='4FGL J1957.1-3231' and cadence='daily' and bin_id='1691'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/310823

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/310823/ft1_4FGL_J1957.1-3231_daily_bin1691.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/310823/ft2_4FGL_J1957.1-3231_daily_bin1691.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/310823/ft1_4FGL_J1957.1-3231_daily_bin1691.fits outfile=/scratch/kocevski/310823/ft1_filteredMKT_4FGL_J1957.1-3231_daily_bin1691.fits ra=299.286 dec=-32.5246 rad=12.0 tmin=677635201.0 tmax=677894401.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.40
user 2.15
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/310823/ft2_4FGL_J1957.1-3231_daily_bin1691.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/310823/ft1_filteredMKT_4FGL_J1957.1-3231_daily_bin1691.fits evtable="EVENTS" outfile="/scratch/kocevski/310823/ft1_filtered_4FGL_J1957.1-3231_daily_bin1691.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.54
user 0.34
sys 0.16

Number of photons that the gtmktime cut: 100

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/310823/ft1_filtered_4FGL_J1957.1-3231_daily_bin1691.fits" evtable="EVENTS" scfile=/scratch/kocevski/310823/ft2_4FGL_J1957.1-3231_daily_bin1691.fits sctable="SC_DATA" outfile=/scratch/kocevski/310823/ltcube_677635201_677894401_4FGL_J1957.1-3231_daily_bin1691.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/310823/ft2_4FGL_J1957.1-3231_daily_bin1691.fits
.....................!
real 16.50
user 16.11
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/310823/ft1_filtered_4FGL_J1957.1-3231_daily_bin1691.fits evtable="EVENTS" scfile=/scratch/kocevski/310823/ft2_4FGL_J1957.1-3231_daily_bin1691.fits sctable="SC_DATA" expcube=/scratch/kocevski/310823/ltcube_677635201_677894401_4FGL_J1957.1-3231_daily_bin1691.fits outfile=/scratch/kocevski/310823/expmap_677635201_677894401_4FGL_J1957.1-3231_daily_bin1691.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/310823/ltcube_677635201_677894401_4FGL_J1957.1-3231_daily_bin1691.fits
.....................!
real 192.78
user 187.17
sys 5.09

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/310823/ft1_filtered_4FGL_J1957.1-3231_daily_bin1691.fits scfile=/scratch/kocevski/310823/ft2_4FGL_J1957.1-3231_daily_bin1691.fits outfile=/scratch/kocevski/310823/cmap_677635201_677894401_4FGL_J1957.1-3231_daily_bin1691.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.57
user 0.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/310823/ft1_filtered_4FGL_J1957.1-3231_daily_bin1691.fits scfile=/scratch/kocevski/310823/ft2_4FGL_J1957.1-3231_daily_bin1691.fits outfile=/scratch/kocevski/310823/cmap_HighResolution_677635201_677894401_4FGL_J1957.1-3231_daily_bin1691.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.59
user 0.41
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/310823/ft1_filtered_4FGL_J1957.1-3231_daily_bin1691.fits evtable="EVENTS" scfile=/scratch/kocevski/310823/ft2_4FGL_J1957.1-3231_daily_bin1691.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/310823/Model_4FGL_J1957.1-3231_daily_bin1691.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/310823/ft1_filtered_4FGL_J1957.1-3231_daily_bin1691.fits....................!
real 23.40
user 22.09
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/310823/ft1_filtered_4FGL_J1957.1-3231_daily_bin1691.fits', '/scratch/kocevski/310823/ft2_4FGL_J1957.1-3231_daily_bin1691.fits', expMap='/scratch/kocevski/310823/expmap_677635201_677894401_4FGL_J1957.1-3231_daily_bin1691.fits', expCube='/scratch/kocevski/310823/ltcube_677635201_677894401_4FGL_J1957.1-3231_daily_bin1691.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/310823/Model_4FGL_J1957.1-3231_daily_bin1691.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/310823/ft1_filtered_4FGL_J1957.1-3231_daily_bin1691.fits
Spacecraft file(s): /scratch/kocevski/310823/ft2_4FGL_J1957.1-3231_daily_bin1691.fits
Exposure map: /scratch/kocevski/310823/expmap_677635201_677894401_4FGL_J1957.1-3231_daily_bin1691.fits
Exposure cube: /scratch/kocevski/310823/ltcube_677635201_677894401_4FGL_J1957.1-3231_daily_bin1691.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/310823/Model_4FGL_J1957.1-3231_daily_bin1691.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) = 1192.85138644

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    200.68       1.0000         .10000E-03   10000.    
     2 'norm      '    15.478       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12739E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1761.0       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10268E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .14690E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .14585E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    30.613       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .20656E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    15.026       1.0000         .10000E-03   10000.    
    12 'norm      '    .11277E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.8608       1.0000         .10000E-03   10000.    
    14 'norm      '    65.320       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10383E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    2.3570       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .33936       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=   1192.245     FROM MIGRAD    STATUS=CONVERGED    382 CALLS     2126 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          200.97        194.54        .31673E-04   -.17583E-03
   2  norm          15.484        30.875       -.12138E-05   -.26520E-05
   3  Prefactor     .10000E-03    47.054        .44548E-05** at limit **
   4  Prefactor     1761.8        1933.6        .28292E-04   -.19233E-04
   5  Prefactor     .10000E-03    47.433        .53206E-05** at limit **
   6  Prefactor     .10001E-03    235.36        .19910E-04** at limit **
   7  norm          .10000E-03    83.825       -.18885E-05** at limit **
   8  Prefactor     .10000E-03    42.870       -.66752E-05** at limit **
   9  norm          30.609        10.289        .13314E-05   -.39292E-03
  10  Prefactor     .10000E-03    298.07        .68220E-05** at limit **
  11  norm          15.019        61.996       -.26910E-05   -.10594E-04
  12  norm          .10000E-03    42.163       -.88780E-05** at limit **
  13  Prefactor     2.6604        6267.0       -.30428E-03   -.29545E-04
  14  norm          65.347        50.636        .13065E-05   -.27210E-04
  15  Prefactor     .10000E-03    117.98       -.72494E-05** at limit **
  16  norm          .10000E-03    39.215        .74882E-05** at limit **
  17  Prefactor     .10000E-03    17.456       -.18812E-05** at limit **
  18  Normalizat    2.3553        .77234        .81468E-05   -.92640E-04
  19  Prefactor     .33965        .23141       -.12911E-05   -.15952E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 200.969
  norm       = 15.4835
  Prefactor  = 0.000100001
  Prefactor  = 1761.81
  Prefactor  = 0.000100001
  Prefactor  = 0.000100009
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 30.6091
  Prefactor  = 0.000100001
  norm       = 15.0193
  norm       = 0.000100002
  Prefactor  = 2.66038
  norm       = 65.3473
  Prefactor  = 0.000100001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 2.35533
  Prefactor  = 0.33965
 **********
 **   18 **HESSE 
 **********

 FCN=   1192.245     FROM HESSE     STATUS=OK           258 CALLS     2384 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          200.97        191.16        .14262E-03   -1.2863    
   2  norm          15.484        30.868        .10181E-03   -1.4921    
   3  Prefactor     .10000E-03    47.008        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1761.8        1932.1        .52507E-04   -.70448    
   5  Prefactor     .10000E-03    47.381        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    235.22        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    83.828        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    43.048        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          30.609        10.301        .58602E-04   -1.4601    
  10  Prefactor     .10000E-03    298.67        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          15.019        61.863        .10332E-03   -1.4933    
  12  norm          .10000E-03    42.226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.6604        6214.6        .30548E-02   -1.5382    
  14  norm          65.347        50.890        .49656E-04   -1.4089    
  15  Prefactor     .10000E-03    117.96        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    39.117        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    17.577        .14087E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    2.3553        .93288        .34976E-03   -.55915    
  19  Prefactor     .33965        .27771        .24581E-03   -1.2001    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.08686e-09
Minuit parameter uncertainties:
  1  191.752
  2  30.8994
  3  0.000457841
  4  2026.33
  5  0.000424498
  6  0.00293358
  7  0.00013685
  8  0.000283457
  9  10.302
  10  0.00113073
  11  61.0726
  12  0.000573102
  13  173.522
  14  50.9244
  15  0.000686175
  16  0.000454711
  17  6.62581e-05
  18  0.940598
  19  0.278811
Done.

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

Extracting fit parameters...

4FGL J1957.1-3231
   Spectrum: PowerLaw
458    Prefactor:  1.000e-04  2.835e-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:  3.397e-01  2.788e-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:  2.355e+00  9.406e-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: 1.01e-06 ph cm-2 s-1
Energy Flux Upper Limit: 7.92e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/310823/likelihoodResults_677635201_677894401_4FGL_J1957.1-3231_daily_bin1691.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) = 1192.24549486
delta logL = -0.00011044154985

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1192.24538502
delta logL = -6.01553210799e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.0395       1.0000          .0000       10.000    
     3 'Normalizat'    2.3554       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .33967       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=   1192.245     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      279 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10527E-03    27.556        .18142E-01** at limit **
   2  Index         2.9181        6.5516        .50000        .76675E-05
   3  Normalizat    2.3553        .18155E-01    .34976E-03    .82074E-06
   4  Prefactor     .33965        .54508E-02    .24585E-03   -.29595E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000105265
  Index      = 2.91806
  Normalizat = 2.35535
  Prefactor  = 0.339646
 **********
 **   18 **HESSE 
 **********

 FCN=   1192.245     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      308 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10527E-03    1221.1        .38289E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.9181        5.5034        .50000       -.42947    
   3  Normalizat    2.3553        .12687        .13990E-04   -.55914    
   4  Prefactor     .33965        .38096E-01    .98339E-05   -1.2001    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.67347e-08
Minuit parameter uncertainties:
  1  0.163819
  2  1429.22
  3  0.126892
  4  0.0380986
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/310823': 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) = 1192.24538485
delta logL = -4.29026385973e-07

Extracting fit parameters...

4FGL J1957.1-3231
   Spectrum: PowerLaw
458    Prefactor:  1.053e-04  1.638e-01  1.000e-04  1.000e+04 ( 1.000e-12)
459        Index:  2.918e+00  1.429e+03  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:  3.396e-01  3.810e-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:  2.355e+00  1.269e-01  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/310823/cmap_HighResolution_677635201_677894401_4FGL_J1957.1-3231_daily_bin1691.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.92e-02', job_status='DONE', photon_flux_upper_limit='1.01e-06', time_completed='2022-06-26 01:20:58.951702', job_id='310823', GAL2='0.34', fit_tolerance='1e-08', EG2='2.36', EG='2.36', time_epoch_completed='1656231658.95', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.34', dlogl='-4.29e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1691' AND source_name='4FGL J1957.1-3231' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jun 26 01:20:58 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0266>
Subject: Job 310823: <4FGL_J1957.1-3231_daily_bin1691> in cluster <slac> Done

Job <4FGL_J1957.1-3231_daily_bin1691> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Jun 26 01:10:20 2022
Job was executed on host(s) <bullet0266>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jun 26 01:11:30 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jun 26 01:11:30 2022
Terminated at Sun Jun 26 01:20:59 2022
Results reported at Sun Jun 26 01:20:59 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1957.1-3231_daily_bin1691 299.286 -32.5246 677635201 677894401 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 :                                   395.52 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             268.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   572 sec.
    Turnaround time :                            639 sec.

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

