/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 116 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 = 7539
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1957.1-3231_daily_bin1323
RA = 299.286, Dec = -32.5246
tmin = 582249601, tmax = 582508801
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='409058', job_status='RUN', time_executed='2021-09-23 23:54:03.961692', time_epoch_executed='1632466443.96' WHERE source_name='4FGL J1957.1-3231' and cadence='daily' and bin_id='1323'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/409058

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/409058/ft1_4FGL_J1957.1-3231_daily_bin1323.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/409058/ft2_4FGL_J1957.1-3231_daily_bin1323.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/409058/ft1_4FGL_J1957.1-3231_daily_bin1323.fits outfile=/scratch/kocevski/409058/ft1_filteredMKT_4FGL_J1957.1-3231_daily_bin1323.fits ra=299.286 dec=-32.5246 rad=12.0 tmin=582249601.0 tmax=582508801.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 5.45
user 5.14
sys 0.28

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/409058/ft1_filtered_4FGL_J1957.1-3231_daily_bin1323.fits" evtable="EVENTS" scfile=/scratch/kocevski/409058/ft2_4FGL_J1957.1-3231_daily_bin1323.fits sctable="SC_DATA" outfile=/scratch/kocevski/409058/ltcube_582249601_582508801_4FGL_J1957.1-3231_daily_bin1323.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/409058/ft2_4FGL_J1957.1-3231_daily_bin1323.fits
.....................!
real 11.62
user 11.26
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/409058/ft1_filtered_4FGL_J1957.1-3231_daily_bin1323.fits evtable="EVENTS" scfile=/scratch/kocevski/409058/ft2_4FGL_J1957.1-3231_daily_bin1323.fits sctable="SC_DATA" expcube=/scratch/kocevski/409058/ltcube_582249601_582508801_4FGL_J1957.1-3231_daily_bin1323.fits outfile=/scratch/kocevski/409058/expmap_582249601_582508801_4FGL_J1957.1-3231_daily_bin1323.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/409058/ltcube_582249601_582508801_4FGL_J1957.1-3231_daily_bin1323.fits
.....................!
real 191.09
user 185.81
sys 4.96

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/409058/ft1_filtered_4FGL_J1957.1-3231_daily_bin1323.fits scfile=/scratch/kocevski/409058/ft2_4FGL_J1957.1-3231_daily_bin1323.fits outfile=/scratch/kocevski/409058/cmap_582249601_582508801_4FGL_J1957.1-3231_daily_bin1323.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/409058/ft1_filtered_4FGL_J1957.1-3231_daily_bin1323.fits scfile=/scratch/kocevski/409058/ft2_4FGL_J1957.1-3231_daily_bin1323.fits outfile=/scratch/kocevski/409058/cmap_HighResolution_582249601_582508801_4FGL_J1957.1-3231_daily_bin1323.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.3082       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.2181       1.0000         .10000E-03   10000.    
     4 'Prefactor '    24.284       1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.811       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10197E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.1760       1.0000         .10000E-03   10000.    
     9 'norm      '    1.2218       1.0000         .10000E-03   10000.    
    10 'Prefactor '    76.702       1.0000         .10000E-03   10000.    
    11 'norm      '    11.662       1.0000         .10000E-03   10000.    
    12 'norm      '    8.0121       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    46.821       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.7851       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .82348       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=   8028.207     FROM MIGRAD    STATUS=CONVERGED    375 CALLS     1850 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.4160        .83270E-07** at limit **
   2  norm          1.3082        1.6970        .74712E-07   -.39432E-04
   3  Prefactor     8.2177        7.2032        .13067E-06   -.57044E-04
   4  Prefactor     24.324        89.559        .10202E-04    .56683E-04
   5  Prefactor     14.809        12.160        .77292E-06   -.12262E-03
   6  Prefactor     .10000E-03    22.443       -.68337E-08** at limit **
   7  norm          .10000E-03    8.0293       -.11999E-07** at limit **
   8  Prefactor     1.1757        5.3669        .25159E-05   -.17525E-03
   9  norm          1.2217        .90779       -.69330E-08   -.11075E-03
  10  Prefactor     76.699        47.789       -.87068E-06   -.67147E-04
  11  norm          11.662        10.935        .11055E-05   -.14278E-03
  12  norm          8.0082        20.012        .70076E-07   -.35354E-04
  13  Prefactor     .10000E-03    33.692        .25546E-07** at limit **
  14  norm          .10000E-03    2.7242       -.16350E-07** at limit **
  15  Prefactor     46.819        58.341       -.48666E-07   -.20448E-04
  16  norm          .10000E-03    8.6101       -.73307E-08** at limit **
  17  Prefactor     .10000E-03    3.7600       -.21617E-07** at limit **
  18  Normalizat    1.7851        .30661       -.12752E-05   -.35064E-04
  19  Prefactor     .82349        .88055E-01   -.25595E-06   -.10090E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 1.30821
  Prefactor  = 8.21772
  Prefactor  = 24.3236
  Prefactor  = 14.8087
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.17566
  norm       = 1.22173
  Prefactor  = 76.6989
  norm       = 11.6621
  norm       = 8.00817
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 46.8188
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.78505
  Prefactor  = 0.823491
 **********
 **   18 **HESSE 
 **********

 FCN=   8028.207     FROM HESSE     STATUS=OK           264 CALLS     2114 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.4195        .13600E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.3082        1.6697        .12960E-03   -1.5479    
   3  Prefactor     8.2177        7.2153        .13985E-03   -1.5135    
   4  Prefactor     24.324        94.062        .81286E-04   -1.4721    
   5  Prefactor     14.809        12.212        .52037E-03   -1.4938    
   6  Prefactor     .10000E-03    22.456        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    8.0337        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.1757        5.6730        .40339E-03   -1.5491    
   9  norm          1.2217        .90456        .70915E-04   -1.5487    
  10  Prefactor     76.699        47.823        .45850E-04   -1.3954    
  11  norm          11.662        11.011        .58653E-03   -1.5025    
  12  norm          8.0082        20.063        .14165E-03   -1.5142    
  13  Prefactor     .10000E-03    33.747        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.7252        .14442E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     46.819        58.469        .58598E-04   -1.4338    
  16  norm          .10000E-03    8.6157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.7774        .16962E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.7851        .36177        .40586E-03   -.70055    
  19  Prefactor     .82349        .10461        .16670E-03   -.98868    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.36615e-10
Minuit parameter uncertainties:
  1  3.3151e-06
  2  1.6698
  3  7.21605
  4  94.6434
  5  12.2141
  6  7.37801e-06
  7  7.39481e-07
  8  5.16567
  9  0.904572
  10  47.8469
  11  11.0127
  12  20.0795
  13  1.80326e-05
  14  7.9497e-07
  15  58.5403
  16  1.23443e-06
  17  4.94926e-06
  18  0.362311
  19  0.104632
Done.

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

Extracting fit parameters...

4FGL J1957.1-3231
   Spectrum: PowerLaw
458    Prefactor:  1.176e+00  5.166e+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

GAL_V02
   Spectrum: PowerLaw
752    Prefactor:  8.235e-01  1.046e-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.785e+00  3.623e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/409058/likelihoodResults_582249601_582508801_4FGL_J1957.1-3231_daily_bin1323.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) = 8028.20673089
delta logL = 8.95696757652e-07

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8028.20672887
delta logL = 2.92382082989e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1756       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5826       1.0000          .0000       10.000    
     3 'Normalizat'    1.7847       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82361       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8028.207     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      263 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1724        6.0614        .40256E-03    .20362E-04
   2  Index         2.5868        2.4027        .12924E-01    .56968E-05
   3  Normalizat    1.7849        .35162        .40587E-03   -.43417E-05
   4  Prefactor     .82351        .10360        .16670E-03    .59742E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.17238
  Index      = 2.58682
  Normalizat = 1.78494
  Prefactor  = 0.82351
 **********
 **   18 **HESSE 
 **********

 FCN=   8028.207     FROM HESSE     STATUS=OK            25 CALLS      288 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1724        5.7988        .16102E-04   -1.5491    
   2  Index         2.5868        2.3556        .51694E-03   -.50366    
   3  Normalizat    1.7849        .35186        .16235E-04   -.70057    
   4  Prefactor     .82351        .10366        .66680E-05   -.98867    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.66856e-11
Minuit parameter uncertainties:
  1  5.21533
  2  2.48715
  3  0.352365
  4  0.103685
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/409058': 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) = 8028.20672683
delta logL = 4.96237316838e-06

Extracting fit parameters...

4FGL J1957.1-3231
   Spectrum: PowerLaw
458    Prefactor:  1.172e+00  5.215e+00  1.000e-04  1.000e+04 ( 1.000e-12)
459        Index:  2.587e+00  2.487e+00  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:  8.235e-01  1.037e-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.785e+00  3.524e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/409058/cmap_HighResolution_582249601_582508801_4FGL_J1957.1-3231_daily_bin1323.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.31e-02', job_status='DONE', photon_flux_upper_limit='1.68e-07', time_completed='2021-09-24 00:06:44.980946', job_id='409058', GAL2='0.82', fit_tolerance='1e-08', EG2='1.78', EG='1.79', time_epoch_completed='1632467204.98', return_code2='0', ts='0.06', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='4.96e-06', ts2='0.06', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1323' AND source_name='4FGL J1957.1-3231' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 24 00:06:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 409058: <4FGL_J1957.1-3231_daily_bin1323> in cluster <slac> Done

Job <4FGL_J1957.1-3231_daily_bin1323> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep 23 23:51:53 2021
Job was executed on host(s) <bullet0055>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 23 23:51:56 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 23 23:51:56 2021
Terminated at Fri Sep 24 00:06:45 2021
Results reported at Fri Sep 24 00:06:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1957.1-3231_daily_bin1323 299.286 -32.5246 582249601 582508801 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 :                                   757.27 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             293.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   889 sec.
    Turnaround time :                            892 sec.

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

