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


Performing analysis on: 4FGL_J1957.1-3231_daily_bin1327
RA = 299.286, Dec = -32.5246
tmin = 583286401, tmax = 583545601
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='409064', job_status='RUN', time_executed='2021-09-23 23:52:25.043080', time_epoch_executed='1632466345.04' WHERE source_name='4FGL J1957.1-3231' and cadence='daily' and bin_id='1327'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/409064

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/409064/ft1_4FGL_J1957.1-3231_daily_bin1327.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/409064/ft2_4FGL_J1957.1-3231_daily_bin1327.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/409064/ft1_4FGL_J1957.1-3231_daily_bin1327.fits outfile=/scratch/kocevski/409064/ft1_filteredMKT_4FGL_J1957.1-3231_daily_bin1327.fits ra=299.286 dec=-32.5246 rad=12.0 tmin=583286401.0 tmax=583545601.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.26
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/409064/ft1_filtered_4FGL_J1957.1-3231_daily_bin1327.fits" evtable="EVENTS" scfile=/scratch/kocevski/409064/ft2_4FGL_J1957.1-3231_daily_bin1327.fits sctable="SC_DATA" outfile=/scratch/kocevski/409064/ltcube_583286401_583545601_4FGL_J1957.1-3231_daily_bin1327.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/409064/ft2_4FGL_J1957.1-3231_daily_bin1327.fits
.....................!
real 11.81
user 11.44
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/409064/ft1_filtered_4FGL_J1957.1-3231_daily_bin1327.fits evtable="EVENTS" scfile=/scratch/kocevski/409064/ft2_4FGL_J1957.1-3231_daily_bin1327.fits sctable="SC_DATA" expcube=/scratch/kocevski/409064/ltcube_583286401_583545601_4FGL_J1957.1-3231_daily_bin1327.fits outfile=/scratch/kocevski/409064/expmap_583286401_583545601_4FGL_J1957.1-3231_daily_bin1327.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/409064/ltcube_583286401_583545601_4FGL_J1957.1-3231_daily_bin1327.fits
.....................!
real 189.78
user 185.20
sys 4.15

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/409064/ft1_filtered_4FGL_J1957.1-3231_daily_bin1327.fits scfile=/scratch/kocevski/409064/ft2_4FGL_J1957.1-3231_daily_bin1327.fits outfile=/scratch/kocevski/409064/cmap_583286401_583545601_4FGL_J1957.1-3231_daily_bin1327.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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/409064/ft1_filtered_4FGL_J1957.1-3231_daily_bin1327.fits scfile=/scratch/kocevski/409064/ft2_4FGL_J1957.1-3231_daily_bin1327.fits outfile=/scratch/kocevski/409064/cmap_HighResolution_583286401_583545601_4FGL_J1957.1-3231_daily_bin1327.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/409064/ft1_filtered_4FGL_J1957.1-3231_daily_bin1327.fits evtable="EVENTS" scfile=/scratch/kocevski/409064/ft2_4FGL_J1957.1-3231_daily_bin1327.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/409064/Model_4FGL_J1957.1-3231_daily_bin1327.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/409064/ft1_filtered_4FGL_J1957.1-3231_daily_bin1327.fits.....................!
real 76.13
user 74.77
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10687E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.863       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .30473E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.1042       1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.285       1.0000         .10000E-03   10000.    
     7 'norm      '    .46285E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.3568       1.0000         .10000E-03   10000.    
     9 'norm      '    1.2546       1.0000         .10000E-03   10000.    
    10 'Prefactor '    73.830       1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10965E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    15.475       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    18.391       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.3703       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .83831       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=   8012.778     FROM MIGRAD    STATUS=CONVERGED    428 CALLS     2245 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.3797        .33561E-07** at limit **
   2  norm          .10000E-03    1.5881        .16936E-06** at limit **
   3  Prefactor     11.862        7.3464       -.77558E-06    .94510E-04
   4  Prefactor     .10006E-03    292.21       -.64336E-04** at limit **
   5  Prefactor     2.1046        12.770       -.20536E-04    .17924E-04
   6  Prefactor     18.284        31.493        .94647E-06   -.15558E-04
   7  norm          .10324E-03    9.6561        .95387E-06** at limit **
   8  Prefactor     5.3564        5.7605       -.31226E-06   -.57893E-04
   9  norm          1.2547        .89327        .50772E-07    .34132E-03
  10  Prefactor     73.829        46.142        .92066E-07    .10225E-04
  11  norm          .10000E-03    3.1993        .32980E-07** at limit **
  12  norm          .10037E-03    11.555       -.90596E-06** at limit **
  13  Prefactor     .10000E-03    16.317       -.27600E-07** at limit **
  14  norm          15.475        12.148       -.61173E-05    .43395E-03
  15  Prefactor     .10000E-03    31.532       -.28349E-06** at limit **
  16  norm          .10000E-03    23.326        .12041E-06** at limit **
  17  Prefactor     18.391        9.6903       -.46313E-06    .60457E-04
  18  Normalizat    1.3702        .29116        .56801E-05    .18807E-03
  19  Prefactor     .83836        .84084E-01    .38340E-07    .79470E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 11.8616
  Prefactor  = 0.000100061
  Prefactor  = 2.10457
  Prefactor  = 18.2843
  norm       = 0.000103243
  Prefactor  = 5.35635
  norm       = 1.25466
  Prefactor  = 73.8292
  norm       = 0.0001
  norm       = 0.000100372
  Prefactor  = 0.0001
  norm       = 15.4754
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 18.3913
  Normalizat = 1.37017
  Prefactor  = 0.83836
 **********
 **   18 **HESSE 
 **********

 FCN=   8012.778     FROM HESSE     STATUS=OK           286 CALLS     2531 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.3877        .16070E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    3.2229        .21947E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     11.862        7.3629        .11631E-03   -1.5019    
   4  Prefactor     .10006E-03    291.23        .21383E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.1046        13.472        .28447E-03   -1.5418    
   6  Prefactor     18.284        31.503        .93665E-04   -1.4853    
   7  norm          .10324E-03    12.507        .11061       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.3564        5.7547        .17364E-03   -1.5245    
   9  norm          1.2547        .88087        .68855E-04   -1.5484    
  10  Prefactor     73.829        46.135        .46726E-04   -1.3987    
  11  norm          .10000E-03    3.2045        .15636E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10037E-03    15.487        .86515E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    16.324        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          15.475        12.142        .10181E-03   -1.4921    
  15  Prefactor     .10000E-03    31.570        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    23.529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     18.391        9.7417        .93395E-04   -1.4850    
  18  Normalizat    1.3702        .34195        .42444E-03   -.81495    
  19  Prefactor     .83836        .99667E-01    .15729E-03   -.98329    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.3442e-10
Minuit parameter uncertainties:
  1  2.85047e-07
  2  4.45172e-05
  3  7.36347
  4  0.00844081
  5  10.6528
  6  31.5318
  7  0.0127397
  8  5.75526
  9  0.880877
  10  46.1574
  11  1.74461e-06
  12  0.00479907
  13  4.09617e-06
  14  12.1441
  15  1.47001e-05
  16  5.5892e-05
  17  9.74252
  18  0.342517
  19  0.0996883
Done.

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

Extracting fit parameters...

4FGL J1957.1-3231
   Spectrum: PowerLaw
458    Prefactor:  5.356e+00  5.755e+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.384e-01  9.969e-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.370e+00  3.425e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.62
Ra Dec: 299.286 -32.525
Photon Index (Fixed Index): 2.58 +/- 0.00
Photon Flux (Fixed Index): 6.01e-08 +/- 6.45e-08
Energy Flux (Fixed Index): 1.61e-05 +/- 1.73e-05

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

Saving results to:
/scratch/kocevski/409064/likelihoodResults_583286401_583545601_4FGL_J1957.1-3231_daily_bin1327.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) = 8012.35287652
delta logL = 0.425286209862

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8012.34588025
delta logL = 0.432282471228

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.6135       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6998       1.0000          .0000       10.000    
     3 'Normalizat'    1.4086       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83312       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=   8012.346     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      212 TOTAL
                     EDM=   .96E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.6121        5.0439        .46847E-02   -.52190E-04
   2  Index         1.6997        .47195        .27866       -.76405E-04
   3  Normalizat    1.4086        .27613        .94747E-01    .19447E-04
   4  Prefactor     .83312        .82713E-01    .44147E-01    .10425E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.61209
  Index      = 1.69969
  Normalizat = 1.40862
  Prefactor  = 0.833115
 **********
 **   18 **HESSE 
 **********

 FCN=   8012.346     FROM HESSE     STATUS=OK            33 CALLS      245 TOTAL
                     EDM=   .73E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.6121        6.1321        .18739E-03   -1.5278    
   2  Index         1.6997        .75830        .10935E-01   -.72090    
   3  Normalizat    1.4086        .32471        .41968E-03   -.80380    
   4  Prefactor     .83312        .97586E-01    .15774E-03   -.98519    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.31217e-12
Minuit parameter uncertainties:
  1  6.13292
  2  0.763553
  3  0.325184
  4  0.0976063
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/409064': 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) = 8012.34588022
delta logL = 0.432282505722

Extracting fit parameters...

4FGL J1957.1-3231
   Spectrum: PowerLaw
458    Prefactor:  4.612e+00  6.133e+00  1.000e-04  1.000e+04 ( 1.000e-12)
459        Index:  1.700e+00  7.636e-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.331e-01  9.761e-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.409e+00  3.252e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.49
Ra Dec: 299.286 -32.525
Photon Index (Free Index): 1.70 +/- 0.76
Photon Flux (Free Index): 1.98e-08 +/- 3.28e-08
Energy Flux (Free Index): 3.24e-05 +/- 5.24e-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/409064/cmap_HighResolution_583286401_583545601_4FGL_J1957.1-3231_daily_bin1327.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.66e-02', comment='SUCCESS', photon_flux='6.01e-08', energy_flux2='3.24e-05', photon_flux_error='6.45e-08', dlogl='4.32e-01', energy_flux='1.61e-05', photon_flux2='1.98e-08', job_status='DONE', time_completed='2021-09-24 00:05:35.786487', photon_index_error2='0.76', photon_index2='1.70', ts='1.62', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', photon_flux_upper_limit='2.13e-07', energy_flux_error2='5.24e-05', EG='1.37', time_epoch_completed='1632467135.79', return_code='0', job_id='409064', GAL2='0.83', EG2='1.41', return_code2='0', energy_flux_error='1.73e-05', photon_flux_error2='3.28e-08', ts2='2.49', photon_index='2.58' WHERE bin_id='1327' AND source_name='4FGL J1957.1-3231' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 24 00:05:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 409064: <4FGL_J1957.1-3231_daily_bin1327> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1957.1-3231_daily_bin1327 299.286 -32.5246 583286401 583545601 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 :                                   788.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             354.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   820 sec.
    Turnaround time :                            823 sec.

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

