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


Performing analysis on: 4FGL_J1957.1-3231_daily_bin1754
RA = 299.286, Dec = -32.5246
tmin = 693964801, tmax = 694224001
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='651805', job_status='RUN', time_executed='2023-01-01 01:43:06.784374', time_epoch_executed='1672566186.78' WHERE source_name='4FGL J1957.1-3231' and cadence='daily' and bin_id='1754'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/651805

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/651805/ft1_4FGL_J1957.1-3231_daily_bin1754.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/651805/ft2_4FGL_J1957.1-3231_daily_bin1754.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/651805/ft1_4FGL_J1957.1-3231_daily_bin1754.fits outfile=/scratch/kocevski/651805/ft1_filteredMKT_4FGL_J1957.1-3231_daily_bin1754.fits ra=299.286 dec=-32.5246 rad=12.0 tmin=693964801.0 tmax=694224001.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 4.06
user 3.80
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/651805/ft2_4FGL_J1957.1-3231_daily_bin1754.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/651805/ft1_filteredMKT_4FGL_J1957.1-3231_daily_bin1754.fits evtable="EVENTS" outfile="/scratch/kocevski/651805/ft1_filtered_4FGL_J1957.1-3231_daily_bin1754.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.52
user 0.33
sys 0.17

Number of photons that the gtmktime cut: 569

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/651805/ft1_filtered_4FGL_J1957.1-3231_daily_bin1754.fits" evtable="EVENTS" scfile=/scratch/kocevski/651805/ft2_4FGL_J1957.1-3231_daily_bin1754.fits sctable="SC_DATA" outfile=/scratch/kocevski/651805/ltcube_693964801_694224001_4FGL_J1957.1-3231_daily_bin1754.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/651805/ft2_4FGL_J1957.1-3231_daily_bin1754.fits
.....................!
real 15.87
user 15.44
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/651805/ft1_filtered_4FGL_J1957.1-3231_daily_bin1754.fits evtable="EVENTS" scfile=/scratch/kocevski/651805/ft2_4FGL_J1957.1-3231_daily_bin1754.fits sctable="SC_DATA" expcube=/scratch/kocevski/651805/ltcube_693964801_694224001_4FGL_J1957.1-3231_daily_bin1754.fits outfile=/scratch/kocevski/651805/expmap_693964801_694224001_4FGL_J1957.1-3231_daily_bin1754.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/651805/ltcube_693964801_694224001_4FGL_J1957.1-3231_daily_bin1754.fits
.....................!
real 192.01
user 186.30
sys 5.33

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/651805/ft1_filtered_4FGL_J1957.1-3231_daily_bin1754.fits scfile=/scratch/kocevski/651805/ft2_4FGL_J1957.1-3231_daily_bin1754.fits outfile=/scratch/kocevski/651805/cmap_693964801_694224001_4FGL_J1957.1-3231_daily_bin1754.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.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/651805/ft1_filtered_4FGL_J1957.1-3231_daily_bin1754.fits scfile=/scratch/kocevski/651805/ft2_4FGL_J1957.1-3231_daily_bin1754.fits outfile=/scratch/kocevski/651805/cmap_HighResolution_693964801_694224001_4FGL_J1957.1-3231_daily_bin1754.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.57
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/651805/ft1_filtered_4FGL_J1957.1-3231_daily_bin1754.fits evtable="EVENTS" scfile=/scratch/kocevski/651805/ft2_4FGL_J1957.1-3231_daily_bin1754.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/651805/Model_4FGL_J1957.1-3231_daily_bin1754.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/651805/ft1_filtered_4FGL_J1957.1-3231_daily_bin1754.fits.....................!
real 57.17
user 55.73
sys 1.32

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/651805/ft1_filtered_4FGL_J1957.1-3231_daily_bin1754.fits', '/scratch/kocevski/651805/ft2_4FGL_J1957.1-3231_daily_bin1754.fits', expMap='/scratch/kocevski/651805/expmap_693964801_694224001_4FGL_J1957.1-3231_daily_bin1754.fits', expCube='/scratch/kocevski/651805/ltcube_693964801_694224001_4FGL_J1957.1-3231_daily_bin1754.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/651805/Model_4FGL_J1957.1-3231_daily_bin1754.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  0.000e+00  1.000e+06 ( 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/651805/ft1_filtered_4FGL_J1957.1-3231_daily_bin1754.fits
Spacecraft file(s): /scratch/kocevski/651805/ft2_4FGL_J1957.1-3231_daily_bin1754.fits
Exposure map: /scratch/kocevski/651805/expmap_693964801_694224001_4FGL_J1957.1-3231_daily_bin1754.fits
Exposure cube: /scratch/kocevski/651805/ltcube_693964801_694224001_4FGL_J1957.1-3231_daily_bin1754.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/651805/Model_4FGL_J1957.1-3231_daily_bin1754.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) = 5823.47023868

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.3681       1.0000          .0000       .10000E+07
     2 'norm      '    .10095E-05   1.0000          .0000       .10000E+07
     3 'Prefactor '    .17447E-06   1.0000          .0000       .10000E+07
     4 'Prefactor '    18.333       1.0000          .0000       .10000E+07
     5 'Prefactor '    .10534E-03   1.0000          .0000       .10000E+07
     6 'norm      '    41.889       1.0000          .0000       .10000E+07
     7 'Prefactor '    11.609       1.0000          .0000       .10000E+07
     8 'norm      '    7.3124       1.0000          .0000       .10000E+07
     9 'Prefactor '    .11484E-02   1.0000          .0000       .10000E+07
    10 'norm      '    .15365E-05   1.0000          .0000       .10000E+07
    11 'norm      '    29.892       1.0000          .0000       .10000E+07
    12 'norm      '    8.3089       1.0000          .0000       .10000E+07
    13 'Prefactor '    10.753       1.0000          .0000       .10000E+07
    14 'norm      '    .82097       1.0000          .0000       .10000E+07
    15 'Prefactor '    1.9223       1.0000          .0000       .10000E+07
    16 'Normalizat'    1.0113       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .90986       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7550E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5823.406     FROM MIGRAD    STATUS=CONVERGED    120 CALLS      944 TOTAL
                     EDM=   .75E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.3639        7.9071        .79886E-07    .16900E-03
   2  norm           .0000        1.4427        .28955E-07** at limit **
   3  Prefactor      .0000        2.4538       -.78400E-07** at limit **
   4  Prefactor     18.239        2.3693       -.20100E-07   -.15967E-01
   5  Prefactor     .83267E-09    16.738        .31498E-06** at limit **
   6  norm          41.018        27.803        .17900E-06   -.40836E-02
   7  Prefactor     11.576        6.6194       -.13414E-07    .21664E-03
   8  norm          7.3119        1.9307        .35867E-07   -.15646E-03
   9  Prefactor     .71054E-08    14.558        .12677E-06** at limit **
  10  norm           .0000        5.1639       -.92868E-07** at limit **
  11  norm          29.528        2.5848        .25959E-08    .61638E-01
  12  norm          8.4045        12.330        .11527E-06    .11059E-02
  13  Prefactor     10.370        20.928       -.31740E-07   -.20776E-02
  14  norm          .45236        116.46       -.39151E-07    .92200E-03
  15  Prefactor     1.8086        5.2402        .65706E-07   -.20285E-04
  16  Normalizat    1.0130        .35691       -.41545E-05   -.26849E-05
  17  Prefactor     .90999        .11309        .53676E-06   -.60280E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 4.36386
  norm       = 0
  Prefactor  = 0
  Prefactor  = 18.239
  Prefactor  = 8.32667e-10
  norm       = 41.0182
  Prefactor  = 11.5755
  norm       = 7.31186
  Prefactor  = 7.10543e-09
  norm       = 0
  norm       = 29.5283
  norm       = 8.40449
  Prefactor  = 10.3701
  norm       = 0.452363
  Prefactor  = 1.80856
  Normalizat = 1.01295
  Prefactor  = 0.909992
 **********
 **   18 **HESSE 
 **********

 FCN=   5823.406     FROM HESSE     STATUS=OK           263 CALLS     1207 TOTAL
                     EDM=   .46E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.3639        7.9268        .48168E-03   -1.5666    
   2  norm           .0000        1.4427        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        2.4574        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     18.239        16.451        .23364E-03   -1.5623    
   5  Prefactor     .83267E-09    16.789        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          41.018        27.949        .15452E-03   -1.5580    
   7  Prefactor     11.576        6.6308        .29377E-03   -1.5640    
   8  norm          7.3119        1.9378        .37068E-03   -1.5654    
   9  Prefactor     .71054E-08    14.770        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm           .0000        5.1680        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          29.528        17.657        .18293E-03   -1.5599    
  12  norm          8.4045        12.423        .34755E-03   -1.5650    
  13  Prefactor     10.370        46.531        .30529E-03   -1.5644    
  14  norm          .45236        157.76        .51385E-03   -1.5695    
  15  Prefactor     1.8086        5.3013        .74911E-03   -1.5681    
  16  Normalizat    1.0130        .32529        .10147       -.92598    
  17  Prefactor     .90999        .10037        .34042E-01   -.95793    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.63383e-08
Minuit parameter uncertainties:
  1  7.92678
  2  1.11191e-06
  3  2.38988e-06
  4  16.4509
  5  0.000238098
  6  27.9488
  7  6.63081
  8  1.93784
  9  0.000647363
  10  3.80179e-06
  11  17.6566
  12  12.423
  13  43.9338
  14  16.8961
  15  5.30132
  16  0.325927
  17  0.100392
Done.

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

Extracting fit parameters...

4FGL J1957.1-3231
   Spectrum: PowerLaw
458    Prefactor:  1.158e+01  6.631e+00  0.000e+00  1.000e+06 ( 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:  9.100e-01  1.004e-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.013e+00  3.259e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.14
Ra Dec: 299.286 -32.525
Photon Index (Fixed Index): 2.58 +/- 0.00
Photon Flux (Fixed Index): 1.30e-07 +/- 7.43e-08
Energy Flux (Fixed Index): 3.47e-05 +/- 1.99e-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) = 5823.25554818
delta logL = 0.150003158226

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5823.25520303
delta logL = 0.15034829978

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.059       1.0000          .0000       .10000E+07
     2 'Index     '    2.2848       1.0000          .0000       10.000    
     3 'Normalizat'    1.0378       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90550       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=   5823.255     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      313 TOTAL
                     EDM=   .11E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.050        8.9551        .53374E-04   -.21534E-03
   2  Index         2.2841        .52608        .68429E-02   -.71639E-05
   3  Normalizat    1.0380        .35235        .44494E-03    .58767E-05
   4  Prefactor     .90554        .11240        .15076E-03    .86719E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.0503
  Index      = 2.28406
  Normalizat = 1.03805
  Prefactor  = 0.90554
 **********
 **   18 **HESSE 
 **********

 FCN=   5823.255     FROM HESSE     STATUS=OK            25 CALLS      338 TOTAL
                     EDM=   .34E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.050        8.8213        .21350E-05   -1.5633    
   2  Index         2.2841        .51802        .27372E-03   -.57423    
   3  Normalizat    1.0380        .35245        .17798E-04   -.91766    
   4  Prefactor     .90554        .11245        .60305E-05   -.95948    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.3738e-12
Minuit parameter uncertainties:
  1  8.82133
  2  0.519345
  3  0.353251
  4  0.112477
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/651805': 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) = 5823.25519959
delta logL = 0.15035174605

Extracting fit parameters...

4FGL J1957.1-3231
   Spectrum: PowerLaw
458    Prefactor:  1.405e+01  8.821e+00  0.000e+00  1.000e+06 ( 1.000e-12)
459        Index:  2.284e+00  5.193e-01  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:  9.055e-01  1.125e-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.038e+00  3.533e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.41
Ra Dec: 299.286 -32.525
Photon Index (Free Index): 2.28 +/- 0.52
Photon Flux (Free Index): 1.07e-07 +/- 7.83e-08
Energy Flux (Free Index): 4.16e-05 +/- 2.99e-05

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/651805/cmap_HighResolution_693964801_694224001_4FGL_J1957.1-3231_daily_bin1754.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.30e-07', energy_flux2='4.16e-05', photon_flux_error='7.43e-08', dlogl='1.50e-01', energy_flux='3.47e-05', photon_flux2='1.07e-07', job_status='DONE', time_completed='2023-01-01 01:51:46.582616', photon_index_error2='0.52', photon_index2='2.28', ts='6.14', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='2.99e-05', EG='1.01', time_epoch_completed='1672566706.58', return_code='0', job_id='651805', GAL2='0.91', EG2='1.04', return_code2='0', energy_flux_error='1.99e-05', photon_flux_error2='7.83e-08', ts2='6.41', photon_index='2.58' WHERE bin_id='1754' AND source_name='4FGL J1957.1-3231' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jan  1 01:51:46 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0080>
Subject: Job 651805: <4FGL_J1957.1-3231_daily_bin1754> in cluster <slac> Done

Job <4FGL_J1957.1-3231_daily_bin1754> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Jan  1 01:40:17 2023
Job was executed on host(s) <bullet0080>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jan  1 01:42:52 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jan  1 01:42:52 2023
Terminated at Sun Jan  1 01:51:47 2023
Results reported at Sun Jan  1 01:51:47 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1957.1-3231_daily_bin1754 299.286 -32.5246 693964801 694224001 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 :                                   522.06 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             298.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   535 sec.
    Turnaround time :                            690 sec.

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

