/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 158 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 = 7432
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1957.1-3231_daily_bin243
RA = 299.286, Dec = -32.5246
tmin = 302313601, tmax = 302572801
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='401748', job_status='RUN', time_executed='2021-09-23 23:30:10.065078', time_epoch_executed='1632465010.07' WHERE source_name='4FGL J1957.1-3231' and cadence='daily' and bin_id='243'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/401748

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/401748/ft1_4FGL_J1957.1-3231_daily_bin243.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/401748/ft2_4FGL_J1957.1-3231_daily_bin243.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/401748/ft1_4FGL_J1957.1-3231_daily_bin243.fits outfile=/scratch/kocevski/401748/ft1_filteredMKT_4FGL_J1957.1-3231_daily_bin243.fits ra=299.286 dec=-32.5246 rad=12.0 tmin=302313601.0 tmax=302572801.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.55
user 3.31
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/401748/ft2_4FGL_J1957.1-3231_daily_bin243.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/401748/ft1_filteredMKT_4FGL_J1957.1-3231_daily_bin243.fits evtable="EVENTS" outfile="/scratch/kocevski/401748/ft1_filtered_4FGL_J1957.1-3231_daily_bin243.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.53
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/401748/ft1_filtered_4FGL_J1957.1-3231_daily_bin243.fits" evtable="EVENTS" scfile=/scratch/kocevski/401748/ft2_4FGL_J1957.1-3231_daily_bin243.fits sctable="SC_DATA" outfile=/scratch/kocevski/401748/ltcube_302313601_302572801_4FGL_J1957.1-3231_daily_bin243.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/401748/ft2_4FGL_J1957.1-3231_daily_bin243.fits
.....................!
real 12.99
user 12.59
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/401748/ft1_filtered_4FGL_J1957.1-3231_daily_bin243.fits evtable="EVENTS" scfile=/scratch/kocevski/401748/ft2_4FGL_J1957.1-3231_daily_bin243.fits sctable="SC_DATA" expcube=/scratch/kocevski/401748/ltcube_302313601_302572801_4FGL_J1957.1-3231_daily_bin243.fits outfile=/scratch/kocevski/401748/expmap_302313601_302572801_4FGL_J1957.1-3231_daily_bin243.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/401748/ltcube_302313601_302572801_4FGL_J1957.1-3231_daily_bin243.fits
.....................!
real 192.40
user 185.67
sys 5.86

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/401748/ft1_filtered_4FGL_J1957.1-3231_daily_bin243.fits scfile=/scratch/kocevski/401748/ft2_4FGL_J1957.1-3231_daily_bin243.fits outfile=/scratch/kocevski/401748/cmap_302313601_302572801_4FGL_J1957.1-3231_daily_bin243.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.62
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/401748/ft1_filtered_4FGL_J1957.1-3231_daily_bin243.fits scfile=/scratch/kocevski/401748/ft2_4FGL_J1957.1-3231_daily_bin243.fits outfile=/scratch/kocevski/401748/cmap_HighResolution_302313601_302572801_4FGL_J1957.1-3231_daily_bin243.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/401748/ft1_filtered_4FGL_J1957.1-3231_daily_bin243.fits evtable="EVENTS" scfile=/scratch/kocevski/401748/ft2_4FGL_J1957.1-3231_daily_bin243.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/401748/Model_4FGL_J1957.1-3231_daily_bin243.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/401748/ft1_filtered_4FGL_J1957.1-3231_daily_bin243.fits.....................!
real 81.71
user 80.31
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.2184       1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.962       1.0000         .10000E-03   10000.    
     4 'Prefactor '    87.545       1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.843       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10731E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    5.7755       1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.402       1.0000         .10000E-03   10000.    
     9 'norm      '    3.7119       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10680E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    35.032       1.0000         .10000E-03   10000.    
    12 'norm      '    1.6290       1.0000         .10000E-03   10000.    
    13 'Prefactor '    30.918       1.0000         .10000E-03   10000.    
    14 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .16968       1.0000         .10000E-03   10000.    
    16 'norm      '    4.6674       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.7770       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .84081       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .96118       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=   9295.517     FROM MIGRAD    STATUS=CONVERGED    458 CALLS     1966 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.2179        6.3683       -.11025E-05    .79536E-04
   2  norm          .10000E-03    .90964       -.16504E-06** at limit **
   3  Prefactor     16.960        5.8127       -.17221E-06   -.25019E-04
   4  Prefactor     87.542        78.199       -.76657E-05    .57588E-04
   5  Prefactor     10.839        10.229        .55072E-05   -.47078E-03
   6  Prefactor     .10000E-03    11.598       -.33106E-06** at limit **
   7  norm          5.7758        10.717        .57656E-06   -.77606E-04
   8  Prefactor     14.399        6.6951       -.60117E-07   -.42099E-04
   9  norm          3.7113        1.3309       -.11963E-06   -.20244E-03
  10  Prefactor     .10000E-03    6.7477       -.39815E-08** at limit **
  11  norm          35.043        13.341       -.27506E-05    .28253E-03
  12  norm          1.6256        25.972       -.39451E-04    .10075E-03
  13  Prefactor     30.995        33.086       -.20487E-05    .36261E-04
  14  norm          .10000E-03    11.704        .20128E-06** at limit **
  15  Prefactor     .10166E-03    66.896       -.31343E-05** at limit **
  16  norm          4.6500        17.603       -.53232E-05    .24048E-05
  17  Prefactor     4.7980        8.6709        .75878E-06   -.18965E-04
  18  Normalizat    .84096        .29957        .54418E-05    .26880E-03
  19  Prefactor     .96119        .85116E-01    .28532E-06    .77746E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.21794
  norm       = 0.0001
  Prefactor  = 16.9601
  Prefactor  = 87.542
  Prefactor  = 10.8391
  Prefactor  = 0.0001
  norm       = 5.77583
  Prefactor  = 14.3991
  norm       = 3.7113
  Prefactor  = 0.0001
  norm       = 35.0429
  norm       = 1.62558
  Prefactor  = 30.9954
  norm       = 0.0001
  Prefactor  = 0.000101662
  norm       = 4.65003
  Prefactor  = 4.79801
  Normalizat = 0.840959
  Prefactor  = 0.961191
 **********
 **   18 **HESSE 
 **********

 FCN=   9295.517     FROM HESSE     STATUS=OK           280 CALLS     2246 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.2179        6.3765        .14930E-03   -1.5171    
   2  norm          .10000E-03    1.6197        .17936E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     16.960        5.8162        .97247E-04   -1.4884    
   4  Prefactor     87.542        78.220        .42940E-04   -1.3834    
   5  Prefactor     10.839        10.139        .12167E-03   -1.5049    
   6  Prefactor     .10000E-03    11.601        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          5.7758        10.706        .16712E-03   -1.5227    
   8  Prefactor     14.399        6.6871        .10554E-03   -1.4949    
   9  norm          3.7113        1.3282        .63485E-04   -1.5323    
  10  Prefactor     .10000E-03    6.7484        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          35.043        13.352        .67707E-04   -1.4523    
  12  norm          1.6256        27.350        .33137E-03   -1.5453    
  13  Prefactor     30.995        33.093        .72058E-04   -1.4594    
  14  norm          .10000E-03    11.892        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10166E-03    52.777        .18603       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.6500        17.617        .18628E-03   -1.5277    
  17  Prefactor     4.7980        8.5985        .18408E-03   -1.5270    
  18  Normalizat    .84096        .32302        .52701E-03   -.98567    
  19  Prefactor     .96119        .93572E-01    .15059E-03   -.94035    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.37148e-10
Minuit parameter uncertainties:
  1  6.37711
  2  2.26509e-05
  3  5.81639
  4  78.312
  5  10.1406
  6  1.20753e-05
  7  10.71
  8  6.68749
  9  1.32821
  10  1.11644e-06
  11  13.3529
  12  13.3424
  13  33.113
  14  7.16003e-05
  15  0.0187499
  16  17.6369
  17  8.60076
  18  0.323767
  19  0.0935875
Done.

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

Extracting fit parameters...

4FGL J1957.1-3231
   Spectrum: PowerLaw
458    Prefactor:  1.440e+01  6.687e+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.612e-01  9.359e-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:  8.410e-01  3.238e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.15
Ra Dec: 299.286 -32.525
Photon Index (Fixed Index): 2.58 +/- 0.00
Photon Flux (Fixed Index): 1.62e-07 +/- 7.50e-08
Energy Flux (Fixed Index): 4.32e-05 +/- 2.01e-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) = 9295.27343906
delta logL = 0.243842248741

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9295.27342485
delta logL = 0.243856459907

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.938       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2601       1.0000          .0000       10.000    
     3 'Normalizat'    .88151       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95252       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=   9295.273     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      276 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.935        152.54        .23641E-02    .46425E-04
   2  Index         2.2599        3.3296        .19600        .57905E-04
   3  Normalizat    .88154        .17861        .11637        .42991E-04
   4  Prefactor     .95255        .40256E-01    .34213E-01   -.66476E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.9351
  Index      = 2.25991
  Normalizat = 0.881538
  Prefactor  = 0.952546
 **********
 **   18 **HESSE 
 **********

 FCN=   9295.273     FROM HESSE     STATUS=OK            33 CALLS      309 TOTAL
                     EDM=   .12E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.935        9.0523        .94565E-04   -1.4861    
   2  Index         2.2599        .42730        .67742E-02   -.57999    
   3  Normalizat    .88154        .30484        .51608E-03   -.97112    
   4  Prefactor     .95255        .92264E-01    .15118E-03   -.94328    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17727e-12
Minuit parameter uncertainties:
  1  9.05299
  2  0.428045
  3  0.305434
  4  0.0922789
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/401748': 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) = 9295.27342445
delta logL = 0.243856853376

Extracting fit parameters...

4FGL J1957.1-3231
   Spectrum: PowerLaw
458    Prefactor:  1.794e+01  9.053e+00  1.000e-04  1.000e+04 ( 1.000e-12)
459        Index:  2.260e+00  4.280e-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.525e-01  9.228e-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:  8.815e-01  3.054e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.57
Ra Dec: 299.286 -32.525
Photon Index (Free Index): 2.26 +/- 0.43
Photon Flux (Free Index): 1.33e-07 +/- 7.69e-08
Energy Flux (Free Index): 5.37e-05 +/- 3.25e-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/401748/cmap_HighResolution_302313601_302572801_4FGL_J1957.1-3231_daily_bin243.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.62e-07', energy_flux2='5.37e-05', photon_flux_error='7.50e-08', dlogl='2.44e-01', energy_flux='4.32e-05', photon_flux2='1.33e-07', job_status='DONE', time_completed='2021-09-23 23:42:41.340184', photon_index_error2='0.43', photon_index2='2.26', ts='8.15', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='3.25e-05', EG='0.84', time_epoch_completed='1632465761.34', return_code='0', job_id='401748', GAL2='0.95', EG2='0.88', return_code2='0', energy_flux_error='2.01e-05', photon_flux_error2='7.69e-08', ts2='8.57', photon_index='2.58' WHERE bin_id='243' AND source_name='4FGL J1957.1-3231' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 23 23:42:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0169>
Subject: Job 401748: <4FGL_J1957.1-3231_daily_bin243> in cluster <slac> Done

Job <4FGL_J1957.1-3231_daily_bin243> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Thu Sep 23 23:27:20 2021
Job was executed on host(s) <bullet0169>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 23 23:27:23 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:27:23 2021
Terminated at Thu Sep 23 23:42:42 2021
Results reported at Thu Sep 23 23:42:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1957.1-3231_daily_bin243 299.286 -32.5246 302313601 302572801 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 :                                   749.12 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             275.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   918 sec.
    Turnaround time :                            922 sec.

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

