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


Performing analysis on: 4FGL_J1957.1-3231_daily_bin1097
RA = 299.286, Dec = -32.5246
tmin = 523670401, tmax = 523929601
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='407163', job_status='RUN', time_executed='2021-09-23 23:48:12.282812', time_epoch_executed='1632466092.28' WHERE source_name='4FGL J1957.1-3231' and cadence='daily' and bin_id='1097'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/407163

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/407163/ft1_4FGL_J1957.1-3231_daily_bin1097.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/407163/ft2_4FGL_J1957.1-3231_daily_bin1097.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/407163/ft1_4FGL_J1957.1-3231_daily_bin1097.fits outfile=/scratch/kocevski/407163/ft1_filteredMKT_4FGL_J1957.1-3231_daily_bin1097.fits ra=299.286 dec=-32.5246 rad=12.0 tmin=523670401.0 tmax=523929601.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.51
user 3.30
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/407163/ft1_filtered_4FGL_J1957.1-3231_daily_bin1097.fits" evtable="EVENTS" scfile=/scratch/kocevski/407163/ft2_4FGL_J1957.1-3231_daily_bin1097.fits sctable="SC_DATA" outfile=/scratch/kocevski/407163/ltcube_523670401_523929601_4FGL_J1957.1-3231_daily_bin1097.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/407163/ft2_4FGL_J1957.1-3231_daily_bin1097.fits
.....................!
real 11.87
user 11.55
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/407163/ft1_filtered_4FGL_J1957.1-3231_daily_bin1097.fits evtable="EVENTS" scfile=/scratch/kocevski/407163/ft2_4FGL_J1957.1-3231_daily_bin1097.fits sctable="SC_DATA" expcube=/scratch/kocevski/407163/ltcube_523670401_523929601_4FGL_J1957.1-3231_daily_bin1097.fits outfile=/scratch/kocevski/407163/expmap_523670401_523929601_4FGL_J1957.1-3231_daily_bin1097.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/407163/ltcube_523670401_523929601_4FGL_J1957.1-3231_daily_bin1097.fits
.....................!
real 190.51
user 185.49
sys 4.62

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/407163/ft1_filtered_4FGL_J1957.1-3231_daily_bin1097.fits scfile=/scratch/kocevski/407163/ft2_4FGL_J1957.1-3231_daily_bin1097.fits outfile=/scratch/kocevski/407163/cmap_523670401_523929601_4FGL_J1957.1-3231_daily_bin1097.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/407163/ft1_filtered_4FGL_J1957.1-3231_daily_bin1097.fits scfile=/scratch/kocevski/407163/ft2_4FGL_J1957.1-3231_daily_bin1097.fits outfile=/scratch/kocevski/407163/cmap_HighResolution_523670401_523929601_4FGL_J1957.1-3231_daily_bin1097.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.54
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/407163/ft1_filtered_4FGL_J1957.1-3231_daily_bin1097.fits evtable="EVENTS" scfile=/scratch/kocevski/407163/ft2_4FGL_J1957.1-3231_daily_bin1097.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/407163/Model_4FGL_J1957.1-3231_daily_bin1097.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/407163/ft1_filtered_4FGL_J1957.1-3231_daily_bin1097.fits.....................!
real 68.47
user 67.22
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.0652       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.091       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    15.451       1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.800       1.0000         .10000E-03   10000.    
     9 'norm      '    .20725       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.4847       1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    15.568       1.0000         .10000E-03   10000.    
    13 'Prefactor '    29.529       1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10644E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0872       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .92491       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=   7441.587     FROM MIGRAD    STATUS=CONVERGED    392 CALLS     1911 TOTAL
                     EDM=   .47E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.2957        .17197E-06** at limit **
   2  norm          .10000E-03    1.9420        .99924E-07** at limit **
   3  Prefactor     8.0652        6.3047        .20376E-05   -.79442E-04
   4  Prefactor     .10000E-03    27.120        .28091E-07** at limit **
   5  Prefactor     16.091        13.363        .12766E-06   -.25767E-05
   6  Prefactor     .10000E-03    17.163        .98125E-07** at limit **
   7  norm          15.452        16.859        .51008E-07   -.17316E-05
   8  Prefactor     12.798        8.0750        .36830E-08   -.18660E-04
   9  norm          .20623        .61087       -.56430E-07   -.15343E-04
  10  Prefactor     3.4821        41.878        .81526E-06   -.24997E-05
  11  norm          .10000E-03    4.8917        .32335E-07** at limit **
  12  norm          15.565        16.424        .94889E-07   -.61268E-05
  13  Prefactor     29.432        49.337       -.56528E-06   -.74154E-04
  14  norm          .10000E-03    13.999       -.52715E-07** at limit **
  15  Prefactor     .10000E-03    99.714        .88290E-06** at limit **
  16  norm          .10000E-03    10.470       -.22747E-07** at limit **
  17  Prefactor     .10000E-03    5.9622        .31685E-06** at limit **
  18  Normalizat    1.0875        .30404        .15555E-05   -.45715E-04
  19  Prefactor     .92484        .90747E-01   -.85161E-06    .10634E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 8.06519
  Prefactor  = 0.0001
  Prefactor  = 16.0911
  Prefactor  = 0.0001
  norm       = 15.4523
  Prefactor  = 12.798
  norm       = 0.206232
  Prefactor  = 3.4821
  norm       = 0.0001
  norm       = 15.5655
  Prefactor  = 29.4323
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.08755
  Prefactor  = 0.924836
 **********
 **   18 **HESSE 
 **********

 FCN=   7441.587     FROM HESSE     STATUS=OK           266 CALLS     2177 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.3729        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    2.0339        .23477E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.0652        6.3239        .70590E-03   -1.5140    
   4  Prefactor     .10000E-03    27.128        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     16.091        13.339        .99846E-04   -1.4905    
   6  Prefactor     .10000E-03    17.180        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          15.452        16.857        .10189E-03   -1.4922    
   8  Prefactor     12.798        8.0706        .11196E-03   -1.4992    
   9  norm          .20623        .61815        .11074E-02   -1.5617    
  10  Prefactor     3.4821        41.821        .21661E-03   -1.5335    
  11  norm          .10000E-03    4.9255        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          15.565        16.422        .10151E-03   -1.4919    
  13  Prefactor     29.432        49.372        .73729E-04   -1.4622    
  14  norm          .10000E-03    14.240        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    99.956        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    10.483        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.0189        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.0875        .33649        .46227E-03   -.90153    
  19  Prefactor     .92484        .10109        .15014E-03   -.95279    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.5032e-08
Minuit parameter uncertainties:
  1  4.11679e-06
  2  1.44543e-06
  3  6.32439
  4  1.97433e-05
  5  13.3415
  6  1.19549e-05
  7  16.8624
  8  8.07128
  9  0.618173
  10  24.1558
  11  1.48734e-06
  12  16.4266
  13  49.4408
  14  7.1585e-07
  15  0.000113858
  16  2.11961e-06
  17  1.62488e-06
  18  0.337156
  19  0.101106
Done.

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

Extracting fit parameters...

4FGL J1957.1-3231
   Spectrum: PowerLaw
458    Prefactor:  1.280e+01  8.071e+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.248e-01  1.011e-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.088e+00  3.372e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.78
Ra Dec: 299.286 -32.525
Photon Index (Fixed Index): 2.58 +/- 0.00
Photon Flux (Fixed Index): 1.44e-07 +/- 9.05e-08
Energy Flux (Fixed Index): 3.84e-05 +/- 2.42e-05

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

Saving results to:
/scratch/kocevski/407163/likelihoodResults_523670401_523929601_4FGL_J1957.1-3231_daily_bin1097.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) = 7441.58376038
delta logL = 0.00320498948076

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7441.58095361
delta logL = 0.0060117593348

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.554       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4936       1.0000          .0000       10.000    
     3 'Normalizat'    1.0973       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92292       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=   7441.581     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      260 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.551        11.308        .10880E-03    .28193E-03
   2  Index         2.4940        .81243        .88478E-02    .31638E-04
   3  Normalizat    1.0972        .34320        .46052E-03    .14269E-03
   4  Prefactor     .92293        .10172        .15028E-03    .24522E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.5511
  Index      = 2.49398
  Normalizat = 1.09718
  Prefactor  = 0.922928
 **********
 **   18 **HESSE 
 **********

 FCN=   7441.581     FROM HESSE     STATUS=OK            25 CALLS      285 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.551        10.623        .43518E-05   -1.4972    
   2  Index         2.4940        .76168        .35391E-03   -.52499    
   3  Normalizat    1.0972        .34181        .18421E-04   -.89842    
   4  Prefactor     .92293        .10148        .30056E-04   -.95344    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.25462e-10
Minuit parameter uncertainties:
  1  10.6246
  2  0.765672
  3  0.342503
  4  0.101502
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/407163': 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) = 7441.58095342
delta logL = 0.00601195131185

Extracting fit parameters...

4FGL J1957.1-3231
   Spectrum: PowerLaw
458    Prefactor:  1.355e+01  1.062e+01  1.000e-04  1.000e+04 ( 1.000e-12)
459        Index:  2.494e+00  7.657e-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.229e-01  1.015e-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.097e+00  3.425e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.77
Ra Dec: 299.286 -32.525
Photon Index (Free Index): 2.49 +/- 0.77
Photon Flux (Free Index): 1.35e-07 +/- 1.14e-07
Energy Flux (Free Index): 3.96e-05 +/- 2.76e-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/407163/cmap_HighResolution_523670401_523929601_4FGL_J1957.1-3231_daily_bin1097.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.50e-02', comment='SUCCESS', photon_flux='1.44e-07', energy_flux2='3.96e-05', photon_flux_error='9.05e-08', dlogl='6.01e-03', energy_flux='3.84e-05', photon_flux2='1.35e-07', job_status='DONE', time_completed='2021-09-24 00:01:15.647486', photon_index_error2='0.77', photon_index2='2.49', ts='3.78', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='3.20e-07', energy_flux_error2='2.76e-05', EG='1.09', time_epoch_completed='1632466875.65', return_code='0', job_id='407163', GAL2='0.92', EG2='1.10', return_code2='0', energy_flux_error='2.42e-05', photon_flux_error2='1.14e-07', ts2='3.77', photon_index='2.58' WHERE bin_id='1097' AND source_name='4FGL J1957.1-3231' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 24 00:01:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0047>
Subject: Job 407163: <4FGL_J1957.1-3231_daily_bin1097> in cluster <slac> Done

Job <4FGL_J1957.1-3231_daily_bin1097> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep 23 23:46:56 2021
Job was executed on host(s) <bullet0047>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 23 23:46:59 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:59 2021
Terminated at Fri Sep 24 00:01:16 2021
Results reported at Fri Sep 24 00:01:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1957.1-3231_daily_bin1097 299.286 -32.5246 523670401 523929601 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 :                                   711.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             317.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   856 sec.
    Turnaround time :                            860 sec.

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

