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


Performing analysis on: 4FGL_J1957.1-3231_daily_bin1771
RA = 299.286, Dec = -32.5246
tmin = 698371201, tmax = 698630401
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='564915', job_status='RUN', time_executed='2023-02-21 01:59:07.569578', time_epoch_executed='1676973547.57' WHERE source_name='4FGL J1957.1-3231' and cadence='daily' and bin_id='1771'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/564915

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/564915/ft1_4FGL_J1957.1-3231_daily_bin1771.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/564915/ft2_4FGL_J1957.1-3231_daily_bin1771.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/564915/ft1_4FGL_J1957.1-3231_daily_bin1771.fits outfile=/scratch/kocevski/564915/ft1_filteredMKT_4FGL_J1957.1-3231_daily_bin1771.fits ra=299.286 dec=-32.5246 rad=12.0 tmin=698371201.0 tmax=698630401.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.10
user 2.88
sys 0.19

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

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

Number of photons that the gtmktime cut: 620

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/564915/ft1_filtered_4FGL_J1957.1-3231_daily_bin1771.fits" evtable="EVENTS" scfile=/scratch/kocevski/564915/ft2_4FGL_J1957.1-3231_daily_bin1771.fits sctable="SC_DATA" outfile=/scratch/kocevski/564915/ltcube_698371201_698630401_4FGL_J1957.1-3231_daily_bin1771.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/564915/ft2_4FGL_J1957.1-3231_daily_bin1771.fits
.....................!
real 12.98
user 12.57
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/564915/ft1_filtered_4FGL_J1957.1-3231_daily_bin1771.fits evtable="EVENTS" scfile=/scratch/kocevski/564915/ft2_4FGL_J1957.1-3231_daily_bin1771.fits sctable="SC_DATA" expcube=/scratch/kocevski/564915/ltcube_698371201_698630401_4FGL_J1957.1-3231_daily_bin1771.fits outfile=/scratch/kocevski/564915/expmap_698371201_698630401_4FGL_J1957.1-3231_daily_bin1771.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/564915/ltcube_698371201_698630401_4FGL_J1957.1-3231_daily_bin1771.fits
.....................!
real 192.65
user 186.95
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/564915/ft1_filtered_4FGL_J1957.1-3231_daily_bin1771.fits scfile=/scratch/kocevski/564915/ft2_4FGL_J1957.1-3231_daily_bin1771.fits outfile=/scratch/kocevski/564915/cmap_698371201_698630401_4FGL_J1957.1-3231_daily_bin1771.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/564915/ft1_filtered_4FGL_J1957.1-3231_daily_bin1771.fits scfile=/scratch/kocevski/564915/ft2_4FGL_J1957.1-3231_daily_bin1771.fits outfile=/scratch/kocevski/564915/cmap_HighResolution_698371201_698630401_4FGL_J1957.1-3231_daily_bin1771.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/564915/ft1_filtered_4FGL_J1957.1-3231_daily_bin1771.fits evtable="EVENTS" scfile=/scratch/kocevski/564915/ft2_4FGL_J1957.1-3231_daily_bin1771.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/564915/Model_4FGL_J1957.1-3231_daily_bin1771.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/564915/ft1_filtered_4FGL_J1957.1-3231_daily_bin1771.fits....................!
real 66.10
user 64.69
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .83279E-05   1.0000          .0000       .10000E+07
     2 'norm      '    1.0527       1.0000          .0000       .10000E+07
     3 'Prefactor '    .15060E-01   1.0000          .0000       .10000E+07
     4 'Prefactor '    .76492E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    .17137E-01   1.0000          .0000       .10000E+07
     6 'norm      '    .32258E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    5.4014       1.0000          .0000       .10000E+07
     8 'norm      '    10.423       1.0000          .0000       .10000E+07
     9 'Prefactor '    .38150E-03   1.0000          .0000       .10000E+07
    10 'norm      '    5.5981       1.0000          .0000       .10000E+07
    11 'norm      '    31.459       1.0000          .0000       .10000E+07
    12 'norm      '    .48443E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    .42096E-02   1.0000          .0000       .10000E+07
    14 'norm      '    .31055E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    7.8854       1.0000          .0000       .10000E+07
    16 'Normalizat'    .94206       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0272       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=   6754.338     FROM MIGRAD    STATUS=CONVERGED    126 CALLS     1215 TOTAL
                     EDM=   .89E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        5.2064       -.81400E-06** at limit **
   2  norm          1.0544        2.3777        .66292E-06    .10812E-02
   3  Prefactor     .12768E-08    56.103       -.57023E-05** at limit **
   4  Prefactor     .90428E-07    15.226       -.16378E-06** at limit **
   5  Prefactor     .16653E-09    17.581        .11033E-05** at limit **
   6  norm          .35272E-06    12.345        .13544E-05** at limit **
   7  Prefactor     5.5726        6.4892       -.13953E-05   -.32149E-02
   8  norm          10.423        2.3038        .10910E-06    .23013E-02
   9  Prefactor     .17541E-05    42.060       -.17534E-05** at limit **
  10  norm          5.5291        9.3726       -.20021E-05   -.63949E-01
  11  norm          31.388        18.598       -.19427E-05    .87483E-01
  12  norm           .0000        76.861       -.28985E-05** at limit **
  13  Prefactor     .26110E-05    53.332       -.20333E-05** at limit **
  14  norm          .73719E-07    12.577        .70230E-06** at limit **
  15  Prefactor     7.8158        7.6243       -.96867E-06   -.16293E-01
  16  Normalizat    .94156        .43608        .16289E-04    .27079E-04
  17  Prefactor     1.0272        .11838        .59194E-05    .39318E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  norm       = 1.0544
  Prefactor  = 1.27676e-09
  Prefactor  = 9.04277e-08
  Prefactor  = 1.66533e-10
  norm       = 3.52718e-07
  Prefactor  = 5.57262
  norm       = 10.4233
  Prefactor  = 1.7541e-06
  norm       = 5.52909
  norm       = 31.3877
  norm       = 0
  Prefactor  = 2.61102e-06
  norm       = 7.37188e-08
  Prefactor  = 7.81581
  Normalizat = 0.941564
  Prefactor  = 1.02723
 **********
 **   18 **HESSE 
 **********

 FCN=   6754.338     FROM HESSE     STATUS=OK           261 CALLS     1476 TOTAL
                     EDM=   .39E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        5.1873        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.0544        2.4254        .12031E-02   -1.5687    
   3  Prefactor     .12768E-08    2.3884        .10885E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .90428E-07    15.692        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .16653E-09    17.564        .17233E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .35272E-06    13.849        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.5726        6.5144        .43215E-03   -1.5661    
   8  norm          10.423        2.3197        .31010E-03   -1.5643    
   9  Prefactor     .17541E-05    94.037        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.5291        15.093        .42436E-03   -1.5661    
  11  norm          31.388        23.118        .17832E-03   -1.5596    
  12  norm           .0000        77.037        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .26110E-05    95.865        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .73719E-07    12.875        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.8158        16.538        .35684E-03   -1.5652    
  16  Normalizat    .94156        .39137        .12572       -.95015    
  17  Prefactor     1.0272        .10390        .41489E-01   -.91827    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.89061e-07
Minuit parameter uncertainties:
  1  2.15338e-05
  2  2.42538
  3  0.000110894
  4  0.00238238
  5  0.000102504
  6  0.00442052
  7  6.51441
  8  2.31974
  9  0.025687
  10  15.0929
  11  23.1182
  12  9.19049e-05
  13  0.0316427
  14  0.00194863
  15  16.538
  16  0.39256
  17  0.103923
Done.

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

Extracting fit parameters...

4FGL J1957.1-3231
   Spectrum: PowerLaw
458    Prefactor:  5.573e+00  6.514e+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:  1.027e+00  1.039e-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:  9.416e-01  3.926e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.13
Ra Dec: 299.286 -32.525
Photon Index (Fixed Index): 2.58 +/- 0.00
Photon Flux (Fixed Index): 6.25e-08 +/- 7.30e-08
Energy Flux (Fixed Index): 1.67e-05 +/- 1.95e-05

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

Saving results to:
/scratch/kocevski/564915/likelihoodResults_698371201_698630401_4FGL_J1957.1-3231_daily_bin1771.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) = 6754.32058489
delta logL = 0.0174680904001

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6754.31702306
delta logL = 0.0210299246137

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.1424       1.0000          .0000       .10000E+07
     2 'Index     '    2.3824       1.0000          .0000       10.000    
     3 'Normalizat'    .95331       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0252       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.

 FCN=   6754.317     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      207 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.1424        275.90        .40484E-03    .38603E-02
   2  Index         2.3826        5.6374        .23972        .38379E-04
   3  Normalizat    .95328        .15305        .12504       -.11343E-03
   4  Prefactor     1.0252        .36387E-01    .41659E-01   -.59610E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.14237
  Index      = 2.38257
  Normalizat = 0.953284
  Prefactor  = 1.02517
 **********
 **   18 **HESSE 
 **********

 FCN=   6754.317     FROM HESSE     STATUS=OK            31 CALLS      238 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.1424        7.5532        .16194E-04   -1.5658    
   2  Index         2.3826        .94312        .11848E-01   -.55094    
   3  Normalizat    .95328        .41561        .55469E-03   -.94612    
   4  Prefactor     1.0252        .11688        .15059E-03   -.91895    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.2061e-10
Minuit parameter uncertainties:
  1  7.55324
  2  0.951001
  3  0.41702
  4  0.116908
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/564915': 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) = 6754.31702302
delta logL = 0.0210299695127

Extracting fit parameters...

4FGL J1957.1-3231
   Spectrum: PowerLaw
458    Prefactor:  6.142e+00  7.553e+00  0.000e+00  1.000e+06 ( 1.000e-12)
459        Index:  2.383e+00  9.510e-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:  1.025e+00  1.169e-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:  9.533e-01  4.170e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.17
Ra Dec: 299.286 -32.525
Photon Index (Free Index): 2.38 +/- 0.95
Photon Flux (Free Index): 5.31e-08 +/- 7.89e-08
Energy Flux (Free Index): 1.78e-05 +/- 2.23e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/564915/cmap_HighResolution_698371201_698630401_4FGL_J1957.1-3231_daily_bin1771.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.85e-02', comment='SUCCESS', photon_flux='6.25e-08', energy_flux2='1.78e-05', photon_flux_error='7.30e-08', dlogl='2.10e-02', energy_flux='1.67e-05', photon_flux2='5.31e-08', job_status='DONE', time_completed='2023-02-21 02:09:08.601202', photon_index_error2='0.95', photon_index2='2.38', ts='1.13', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='2.36e-07', energy_flux_error2='2.23e-05', EG='0.94', time_epoch_completed='1676974148.6', return_code='0', job_id='564915', GAL2='1.03', EG2='0.95', return_code2='0', energy_flux_error='1.95e-05', photon_flux_error2='7.89e-08', ts2='1.17', photon_index='2.58' WHERE bin_id='1771' AND source_name='4FGL J1957.1-3231' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Feb 21 02:09:08 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0050>
Subject: Job 564915: <4FGL_J1957.1-3231_daily_bin1771> in cluster <slac> Done

Job <4FGL_J1957.1-3231_daily_bin1771> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Feb 21 01:55:13 2023
Job was executed on host(s) <bullet0050>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Feb 21 01:55:14 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Feb 21 01:55:14 2023
Terminated at Tue Feb 21 02:09:09 2023
Results reported at Tue Feb 21 02:09:09 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1957.1-3231_daily_bin1771 299.286 -32.5246 698371201 698630401 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 :                                   603.00 sec.
    Max Memory :                                 1157 MB
    Average Memory :                             279.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   834 sec.
    Turnaround time :                            836 sec.

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

