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


Performing analysis on: 4FGL_J1957.1-3231_daily_bin1379
RA = 299.286, Dec = -32.5246
tmin = 596764801, tmax = 597024001
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='409129', job_status='RUN', time_executed='2021-09-23 23:52:15.232991', time_epoch_executed='1632466335.23' WHERE source_name='4FGL J1957.1-3231' and cadence='daily' and bin_id='1379'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/409129

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/409129/ft1_4FGL_J1957.1-3231_daily_bin1379.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/409129/ft2_4FGL_J1957.1-3231_daily_bin1379.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/409129/ft1_4FGL_J1957.1-3231_daily_bin1379.fits outfile=/scratch/kocevski/409129/ft1_filteredMKT_4FGL_J1957.1-3231_daily_bin1379.fits ra=299.286 dec=-32.5246 rad=12.0 tmin=596764801.0 tmax=597024001.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.93
user 3.30
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/409129/ft2_4FGL_J1957.1-3231_daily_bin1379.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/409129/ft1_filteredMKT_4FGL_J1957.1-3231_daily_bin1379.fits evtable="EVENTS" outfile="/scratch/kocevski/409129/ft1_filtered_4FGL_J1957.1-3231_daily_bin1379.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.56
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/409129/ft1_filtered_4FGL_J1957.1-3231_daily_bin1379.fits" evtable="EVENTS" scfile=/scratch/kocevski/409129/ft2_4FGL_J1957.1-3231_daily_bin1379.fits sctable="SC_DATA" outfile=/scratch/kocevski/409129/ltcube_596764801_597024001_4FGL_J1957.1-3231_daily_bin1379.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/409129/ft2_4FGL_J1957.1-3231_daily_bin1379.fits
.....................!
real 12.50
user 11.83
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/409129/ft1_filtered_4FGL_J1957.1-3231_daily_bin1379.fits evtable="EVENTS" scfile=/scratch/kocevski/409129/ft2_4FGL_J1957.1-3231_daily_bin1379.fits sctable="SC_DATA" expcube=/scratch/kocevski/409129/ltcube_596764801_597024001_4FGL_J1957.1-3231_daily_bin1379.fits outfile=/scratch/kocevski/409129/expmap_596764801_597024001_4FGL_J1957.1-3231_daily_bin1379.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/409129/ltcube_596764801_597024001_4FGL_J1957.1-3231_daily_bin1379.fits
.....................!
real 192.25
user 185.93
sys 5.94

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/409129/ft1_filtered_4FGL_J1957.1-3231_daily_bin1379.fits scfile=/scratch/kocevski/409129/ft2_4FGL_J1957.1-3231_daily_bin1379.fits outfile=/scratch/kocevski/409129/cmap_596764801_597024001_4FGL_J1957.1-3231_daily_bin1379.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.56
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/409129/ft1_filtered_4FGL_J1957.1-3231_daily_bin1379.fits scfile=/scratch/kocevski/409129/ft2_4FGL_J1957.1-3231_daily_bin1379.fits outfile=/scratch/kocevski/409129/cmap_HighResolution_596764801_597024001_4FGL_J1957.1-3231_daily_bin1379.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/409129/ft1_filtered_4FGL_J1957.1-3231_daily_bin1379.fits evtable="EVENTS" scfile=/scratch/kocevski/409129/ft2_4FGL_J1957.1-3231_daily_bin1379.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/409129/Model_4FGL_J1957.1-3231_daily_bin1379.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/409129/ft1_filtered_4FGL_J1957.1-3231_daily_bin1379.fits.....................!
real 68.77
user 67.47
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.6355       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .29953E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .18518E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.751       1.0000         .10000E-03   10000.    
     9 'norm      '    .93464       1.0000         .10000E-03   10000.    
    10 'Prefactor '    29.183       1.0000         .10000E-03   10000.    
    11 'norm      '    22.225       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .11883       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.8535       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.3810       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .86820       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=   7563.875     FROM MIGRAD    STATUS=CONVERGED    447 CALLS     1954 TOTAL
                     EDM=   .47E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.6344        10.858        .42835E-06   -.71879E-04
   2  norm          .10000E-03    .93269       -.14710E-07** at limit **
   3  Prefactor     .10000E-03    4.5479        .11464E-06** at limit **
   4  Prefactor     .10000E-03    29.844       -.22558E-06** at limit **
   5  Prefactor     .10000E-03    5.7126        .53811E-07** at limit **
   6  Prefactor     .10000E-03    138.66        .26935E-05** at limit **
   7  norm          .10000E-03    6.1124        .76363E-09** at limit **
   8  Prefactor     14.752        6.9483       -.14428E-05   -.72746E-04
   9  norm          .93489        .93783        .77355E-08   -.66894E-03
  10  Prefactor     29.183        24.799        .75984E-06   -.22773E-06
  11  norm          22.229        14.032       -.17773E-05   -.19202E-04
  12  norm          .10000E-03    11.226        .35837E-06** at limit **
  13  Prefactor     .10000E-03    20.841       -.94672E-07** at limit **
  14  norm          .10000E-03    10.153       -.19604E-06** at limit **
  15  Prefactor     .10000E-03    88.181       -.20831E-05** at limit **
  16  norm          .10961E-03    10.680       -.15371E-07** at limit **
  17  Prefactor     4.8575        7.7637        .56044E-05   -.17494E-03
  18  Normalizat    1.3806        .29602       -.57127E-06   -.21358E-04
  19  Prefactor     .86825        .87104E-01    .16040E-06   -.87159E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 9.63436
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 14.7518
  norm       = 0.934888
  Prefactor  = 29.1832
  norm       = 22.2294
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.000109606
  Prefactor  = 4.85752
  Normalizat = 1.38057
  Prefactor  = 0.868255
 **********
 **   18 **HESSE 
 **********

 FCN=   7563.875     FROM HESSE     STATUS=OK           274 CALLS     2228 TOTAL
                     EDM=   .78E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.6344        10.916        .12910E-03   -1.5087    
   2  norm          .10000E-03    .93655        .82023E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    12.178        .35388E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    29.853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.7382        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    139.72        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    6.1132        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     14.752        6.9826        .10429E-03   -1.4940    
   9  norm          .93489        .89360        .81269E-03   -1.5515    
  10  Prefactor     29.183        24.804        .74164E-04   -1.4627    
  11  norm          22.229        14.068        .84965E-04   -1.4765    
  12  norm          .10000E-03    11.324        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    20.852        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    10.287        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    88.560        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10961E-03    14.615        .11142       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.8575        7.6223        .18259E-03   -1.5267    
  18  Normalizat    1.3806        .35057        .42771E-03   -.81192    
  19  Prefactor     .86825        .10364        .15573E-03   -.97259    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.82696e-11
Minuit parameter uncertainties:
  1  10.9184
  2  8.49888e-08
  3  1.20499e-05
  4  4.14571e-06
  5  7.89276e-06
  6  1.92346e-05
  7  8.80481e-07
  8  6.98297
  9  0.893615
  10  24.8131
  11  14.0704
  12  3.19998e-06
  13  6.2192e-06
  14  1.06597e-05
  15  0.000445464
  16  0.0237037
  17  7.62386
  18  0.351182
  19  0.103666
Done.

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

Extracting fit parameters...

4FGL J1957.1-3231
   Spectrum: PowerLaw
458    Prefactor:  1.475e+01  6.983e+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.683e-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.381e+00  3.512e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.61
Ra Dec: 299.286 -32.525
Photon Index (Fixed Index): 2.58 +/- 0.00
Photon Flux (Fixed Index): 1.66e-07 +/- 7.83e-08
Energy Flux (Fixed Index): 4.43e-05 +/- 2.10e-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) = 7563.32928517
delta logL = 0.545784710243

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7563.32921961
delta logL = 0.545850265485

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.520       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1285       1.0000          .0000       10.000    
     3 'Normalizat'    1.4322       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85873       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=   7563.329     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      274 TOTAL
                     EDM=   .73E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.510        219.87        .23267E-02    .21089E-04
   2  Index         2.1280        5.9968        .18598        .13579E-04
   3  Normalizat    1.4323        .39640        .95140E-01    .15381E-04
   4  Prefactor     .85873        .91527E-01    .44477E-01    .23248E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.5101
  Index      = 2.12796
  Normalizat = 1.43229
  Prefactor  = 0.858734
 **********
 **   18 **HESSE 
 **********

 FCN=   7563.329     FROM HESSE     STATUS=OK            31 CALLS      305 TOTAL
                     EDM=   .76E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.510        9.0222        .93067E-04   -1.4847    
   2  Index         2.1280        .40463        .69248E-02   -.61188    
   3  Normalizat    1.4323        .34144        .42142E-03   -.79699    
   4  Prefactor     .85873        .10129        .15648E-03   -.97598    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.62489e-14
Minuit parameter uncertainties:
  1  9.0229
  2  0.405289
  3  0.341983
  4  0.10131
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/409129': 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) = 7563.32921786
delta logL = 0.545852017689

Extracting fit parameters...

4FGL J1957.1-3231
   Spectrum: PowerLaw
458    Prefactor:  1.851e+01  9.023e+00  1.000e-04  1.000e+04 ( 1.000e-12)
459        Index:  2.128e+00  4.053e-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:  8.587e-01  1.013e-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.432e+00  3.420e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.70
Ra Dec: 299.286 -32.525
Photon Index (Free Index): 2.13 +/- 0.41
Photon Flux (Free Index): 1.17e-07 +/- 7.48e-08
Energy Flux (Free Index): 6.08e-05 +/- 3.92e-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/409129/cmap_HighResolution_596764801_597024001_4FGL_J1957.1-3231_daily_bin1379.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.66e-07', energy_flux2='6.08e-05', photon_flux_error='7.83e-08', dlogl='5.46e-01', energy_flux='4.43e-05', photon_flux2='1.17e-07', job_status='DONE', time_completed='2021-09-24 00:03:24.049370', photon_index_error2='0.41', photon_index2='2.13', ts='8.61', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', energy_flux_error2='3.92e-05', EG='1.38', time_epoch_completed='1632467004.05', return_code='0', job_id='409129', GAL2='0.86', EG2='1.43', return_code2='0', energy_flux_error='2.10e-05', photon_flux_error2='7.48e-08', ts2='9.70', photon_index='2.58' WHERE bin_id='1379' AND source_name='4FGL J1957.1-3231' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 24 00:03:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0108>
Subject: Job 409129: <4FGL_J1957.1-3231_daily_bin1379> in cluster <slac> Done

Job <4FGL_J1957.1-3231_daily_bin1379> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep 23 23:52:00 2021
Job was executed on host(s) <bullet0108>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 23 23:52:02 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:52:02 2021
Terminated at Fri Sep 24 00:03:24 2021
Results reported at Fri Sep 24 00:03:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1957.1-3231_daily_bin1379 299.286 -32.5246 596764801 597024001 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 :                                   665.19 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             357.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   682 sec.
    Turnaround time :                            684 sec.

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

