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


Performing analysis on: 4FGL_J1957.1-3231_daily_bin1010
RA = 299.286, Dec = -32.5246
tmin = 501120001, tmax = 501379201
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='407036', job_status='RUN', time_executed='2021-09-23 23:47:29.504527', time_epoch_executed='1632466049.5' WHERE source_name='4FGL J1957.1-3231' and cadence='daily' and bin_id='1010'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/407036

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/407036/ft1_4FGL_J1957.1-3231_daily_bin1010.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/407036/ft2_4FGL_J1957.1-3231_daily_bin1010.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/407036/ft1_4FGL_J1957.1-3231_daily_bin1010.fits outfile=/scratch/kocevski/407036/ft1_filteredMKT_4FGL_J1957.1-3231_daily_bin1010.fits ra=299.286 dec=-32.5246 rad=12.0 tmin=501120001.0 tmax=501379201.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.48
user 3.28
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/407036/ft1_filtered_4FGL_J1957.1-3231_daily_bin1010.fits" evtable="EVENTS" scfile=/scratch/kocevski/407036/ft2_4FGL_J1957.1-3231_daily_bin1010.fits sctable="SC_DATA" outfile=/scratch/kocevski/407036/ltcube_501120001_501379201_4FGL_J1957.1-3231_daily_bin1010.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/407036/ft2_4FGL_J1957.1-3231_daily_bin1010.fits
.....................!
real 11.98
user 11.61
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/407036/ft1_filtered_4FGL_J1957.1-3231_daily_bin1010.fits evtable="EVENTS" scfile=/scratch/kocevski/407036/ft2_4FGL_J1957.1-3231_daily_bin1010.fits sctable="SC_DATA" expcube=/scratch/kocevski/407036/ltcube_501120001_501379201_4FGL_J1957.1-3231_daily_bin1010.fits outfile=/scratch/kocevski/407036/expmap_501120001_501379201_4FGL_J1957.1-3231_daily_bin1010.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/407036/ltcube_501120001_501379201_4FGL_J1957.1-3231_daily_bin1010.fits
.....................!
real 192.28
user 187.49
sys 4.39

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/407036/ft1_filtered_4FGL_J1957.1-3231_daily_bin1010.fits scfile=/scratch/kocevski/407036/ft2_4FGL_J1957.1-3231_daily_bin1010.fits outfile=/scratch/kocevski/407036/cmap_501120001_501379201_4FGL_J1957.1-3231_daily_bin1010.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/407036/ft1_filtered_4FGL_J1957.1-3231_daily_bin1010.fits scfile=/scratch/kocevski/407036/ft2_4FGL_J1957.1-3231_daily_bin1010.fits outfile=/scratch/kocevski/407036/cmap_HighResolution_501120001_501379201_4FGL_J1957.1-3231_daily_bin1010.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 1.15
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/407036/ft1_filtered_4FGL_J1957.1-3231_daily_bin1010.fits evtable="EVENTS" scfile=/scratch/kocevski/407036/ft2_4FGL_J1957.1-3231_daily_bin1010.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/407036/Model_4FGL_J1957.1-3231_daily_bin1010.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/407036/ft1_filtered_4FGL_J1957.1-3231_daily_bin1010.fits.....................!
real 77.12
user 74.42
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .21785E-01   1.0000         .10000E-03   10000.    
     2 'norm      '    1.9245       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    26.380       1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.429       1.0000         .10000E-03   10000.    
     9 'norm      '    .76121       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.1293       1.0000         .10000E-03   10000.    
    11 'norm      '    18.406       1.0000         .10000E-03   10000.    
    12 'norm      '    9.0756       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    18.690       1.0000         .10000E-03   10000.    
    16 'norm      '    8.5003       1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.609       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.2702       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .94888       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=   8394.062     FROM MIGRAD    STATUS=CONVERGED    395 CALLS     1935 TOTAL
                     EDM=   .43E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .13860        5.1277       -.98801E-06    .57917E-03
   2  norm          1.9243        2.9896        .47131E-06    .29012E-04
   3  Prefactor     .10000E-03    2.9839        .15004E-06** at limit **
   4  Prefactor     .10000E-03    82.385        .36285E-06** at limit **
   5  Prefactor     .10000E-03    6.3171        .20529E-06** at limit **
   6  Prefactor     .10000E-03    21.238        .70647E-07** at limit **
   7  norm          26.381        25.042       -.11976E-07   -.26077E-05
   8  Prefactor     14.433        7.6054        .33167E-07   -.61525E-04
   9  norm          .76123        1.0043        .55327E-06    .10023E-02
  10  Prefactor     9.1307        20.605        .21324E-06    .11421E-05
  11  norm          18.409        10.751       -.73024E-07   -.55996E-04
  12  norm          9.0799        15.326        .30066E-06   -.51639E-05
  13  Prefactor     .10000E-03    80.640        .23431E-06** at limit **
  14  norm          .10000E-03    11.706       -.30873E-06** at limit **
  15  Prefactor     18.512        44.809       -.17207E-05   -.40925E-04
  16  norm          8.4973        15.371        .10863E-06   -.11166E-04
  17  Prefactor     11.623        11.178        .17466E-05    .16434E-05
  18  Normalizat    1.2701        .29134       -.26086E-06   -.38438E-04
  19  Prefactor     .94879        .85610E-01   -.52330E-06    .82392E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.138595
  norm       = 1.92431
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 26.3814
  Prefactor  = 14.433
  norm       = 0.761226
  Prefactor  = 9.13075
  norm       = 18.4086
  norm       = 9.07987
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 18.5121
  norm       = 8.49727
  Prefactor  = 11.6229
  Normalizat = 1.27013
  Prefactor  = 0.948795
 **********
 **   18 **HESSE 
 **********

 FCN=   8394.062     FROM HESSE     STATUS=OK           282 CALLS     2217 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .13860        6.9984        .66787E-01   -1.5634    
   2  norm          1.9243        2.9657        .19090E-03   -1.5431    
   3  Prefactor     .10000E-03    3.0832        .30913E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    82.510        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.3495        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    21.259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          26.381        25.049        .77997E-04   -1.4680    
   8  Prefactor     14.433        7.6108        .10544E-03   -1.4948    
   9  norm          .76123        .96826        .10849E-02   -1.5533    
  10  Prefactor     9.1307        20.607        .13265E-03   -1.5104    
  11  norm          18.409        10.763        .93356E-04   -1.4850    
  12  norm          9.0799        15.333        .13304E-03   -1.5105    
  13  Prefactor     .10000E-03    81.191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    11.913        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     18.512        44.866        .92644E-04   -1.4847    
  16  norm          8.4973        15.369        .13749E-03   -1.5125    
  17  Prefactor     11.623        11.108        .58788E-03   -1.5026    
  18  Normalizat    1.2701        .33894        .45433E-03   -.84462    
  19  Prefactor     .94879        .99788E-01    .15640E-03   -.94456    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.89763e-09
Minuit parameter uncertainties:
  1  1.96925
  2  2.96588
  3  5.12095e-06
  4  0.000101022
  5  3.37133e-08
  6  7.93119e-06
  7  25.0594
  8  7.61131
  9  0.968281
  10  20.6227
  11  10.7642
  12  15.3393
  13  1.62941e-06
  14  3.86826e-06
  15  44.9484
  16  15.3764
  17  11.1096
  18  0.339533
  19  0.099807
Done.

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

Extracting fit parameters...

4FGL J1957.1-3231
   Spectrum: PowerLaw
458    Prefactor:  1.443e+01  7.611e+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:  9.488e-01  9.981e-02  0.000e+00  1.000e+01 ( 1.000e+00)
753        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
754        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
751   Normalization:  1.270e+00  3.395e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.19
Ra Dec: 299.286 -32.525
Photon Index (Fixed Index): 2.58 +/- 0.00
Photon Flux (Fixed Index): 1.62e-07 +/- 8.53e-08
Energy Flux (Fixed Index): 4.33e-05 +/- 2.28e-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) = 8394.05949772
delta logL = 0.00209802180143

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8394.05850693
delta logL = 0.00308880783268

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.784       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5405       1.0000          .0000       10.000    
     3 'Normalizat'    1.2752       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94791       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=   8394.059     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      240 TOTAL
                     EDM=   .77E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.785        9.1382        .10417E-03    .31432E-04
   2  Index         2.5403        .50254        .64888E-02   -.21330E-04
   3  Normalizat    1.2748        .32619        .45363E-03    .13122E-03
   4  Prefactor     .94799        .97631E-01    .15646E-03    .45109E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.7845
  Index      = 2.54032
  Normalizat = 1.27481
  Prefactor  = 0.947994
 **********
 **   18 **HESSE 
 **********

 FCN=   8394.059     FROM HESSE     STATUS=OK            25 CALLS      265 TOTAL
                     EDM=   .90E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.785        8.9064        .41667E-05   -1.4939    
   2  Index         2.5403        .48920        .25955E-03   -.51431    
   3  Normalizat    1.2748        .32610        .18145E-04   -.84322    
   4  Prefactor     .94799        .97631E-01    .31292E-04   -.94484    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.02015e-11
Minuit parameter uncertainties:
  1  8.90717
  2  0.490234
  3  0.326626
  4  0.0976486
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/407036': 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) = 8394.05850611
delta logL = 0.00308962467716

Extracting fit parameters...

4FGL J1957.1-3231
   Spectrum: PowerLaw
458    Prefactor:  1.478e+01  8.907e+00  1.000e-04  1.000e+04 ( 1.000e-12)
459        Index:  2.540e+00  4.902e-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.480e-01  9.765e-02  0.000e+00  1.000e+01 ( 1.000e+00)
753        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
754        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
751   Normalization:  1.275e+00  3.266e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.18
Ra Dec: 299.286 -32.525
Photon Index (Free Index): 2.54 +/- 0.49
Photon Flux (Free Index): 1.57e-07 +/- 1.02e-07
Energy Flux (Free Index): 4.37e-05 +/- 2.38e-05

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/407036/cmap_HighResolution_501120001_501379201_4FGL_J1957.1-3231_daily_bin1010.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.62e-07', energy_flux2='4.37e-05', photon_flux_error='8.53e-08', dlogl='3.09e-03', energy_flux='4.33e-05', photon_flux2='1.57e-07', job_status='DONE', time_completed='2021-09-23 23:59:20.826347', photon_index_error2='0.49', photon_index2='2.54', ts='7.19', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='2.38e-05', EG='1.27', time_epoch_completed='1632466760.83', return_code='0', job_id='407036', GAL2='0.95', EG2='1.27', return_code2='0', energy_flux_error='2.28e-05', photon_flux_error2='1.02e-07', ts2='7.18', photon_index='2.58' WHERE bin_id='1010' AND source_name='4FGL J1957.1-3231' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 23 23:59:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0036>
Subject: Job 407036: <4FGL_J1957.1-3231_daily_bin1010> in cluster <slac> Done

Job <4FGL_J1957.1-3231_daily_bin1010> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep 23 23:46:45 2021
Job was executed on host(s) <bullet0036>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 23 23:46:46 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:46:46 2021
Terminated at Thu Sep 23 23:59:21 2021
Results reported at Thu Sep 23 23:59:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1957.1-3231_daily_bin1010 299.286 -32.5246 501120001 501379201 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 :                                   692.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             326.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   755 sec.
    Turnaround time :                            756 sec.

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

