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


Performing analysis on: 4FGL_J1957.1-3231_daily_bin1280
RA = 299.286, Dec = -32.5246
tmin = 571104001, tmax = 571363201
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='408990', job_status='RUN', time_executed='2021-09-23 23:55:43.982222', time_epoch_executed='1632466543.98' WHERE source_name='4FGL J1957.1-3231' and cadence='daily' and bin_id='1280'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/408990

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/408990/ft1_4FGL_J1957.1-3231_daily_bin1280.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/408990/ft2_4FGL_J1957.1-3231_daily_bin1280.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/408990/ft1_4FGL_J1957.1-3231_daily_bin1280.fits outfile=/scratch/kocevski/408990/ft1_filteredMKT_4FGL_J1957.1-3231_daily_bin1280.fits ra=299.286 dec=-32.5246 rad=12.0 tmin=571104001.0 tmax=571363201.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.01
user 2.80
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/408990/ft2_4FGL_J1957.1-3231_daily_bin1280.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/408990/ft1_filteredMKT_4FGL_J1957.1-3231_daily_bin1280.fits evtable="EVENTS" outfile="/scratch/kocevski/408990/ft1_filtered_4FGL_J1957.1-3231_daily_bin1280.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/408990/ft1_filtered_4FGL_J1957.1-3231_daily_bin1280.fits" evtable="EVENTS" scfile=/scratch/kocevski/408990/ft2_4FGL_J1957.1-3231_daily_bin1280.fits sctable="SC_DATA" outfile=/scratch/kocevski/408990/ltcube_571104001_571363201_4FGL_J1957.1-3231_daily_bin1280.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/408990/ft2_4FGL_J1957.1-3231_daily_bin1280.fits
.....................!
real 12.56
user 12.20
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/408990/ft1_filtered_4FGL_J1957.1-3231_daily_bin1280.fits evtable="EVENTS" scfile=/scratch/kocevski/408990/ft2_4FGL_J1957.1-3231_daily_bin1280.fits sctable="SC_DATA" expcube=/scratch/kocevski/408990/ltcube_571104001_571363201_4FGL_J1957.1-3231_daily_bin1280.fits outfile=/scratch/kocevski/408990/expmap_571104001_571363201_4FGL_J1957.1-3231_daily_bin1280.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/408990/ltcube_571104001_571363201_4FGL_J1957.1-3231_daily_bin1280.fits
.....................!
real 191.47
user 185.61
sys 5.51

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/408990/ft1_filtered_4FGL_J1957.1-3231_daily_bin1280.fits scfile=/scratch/kocevski/408990/ft2_4FGL_J1957.1-3231_daily_bin1280.fits outfile=/scratch/kocevski/408990/cmap_571104001_571363201_4FGL_J1957.1-3231_daily_bin1280.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/408990/ft1_filtered_4FGL_J1957.1-3231_daily_bin1280.fits scfile=/scratch/kocevski/408990/ft2_4FGL_J1957.1-3231_daily_bin1280.fits outfile=/scratch/kocevski/408990/cmap_HighResolution_571104001_571363201_4FGL_J1957.1-3231_daily_bin1280.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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/408990/ft1_filtered_4FGL_J1957.1-3231_daily_bin1280.fits evtable="EVENTS" scfile=/scratch/kocevski/408990/ft2_4FGL_J1957.1-3231_daily_bin1280.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/408990/Model_4FGL_J1957.1-3231_daily_bin1280.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/408990/ft1_filtered_4FGL_J1957.1-3231_daily_bin1280.fits.....................!
real 43.74
user 42.42
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7596       1.0000         .10000E-03   10000.    
     2 'norm      '    1.5125       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.6171       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.3346       1.0000         .10000E-03   10000.    
     6 'Prefactor '    110.93       1.0000         .10000E-03   10000.    
     7 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.003       1.0000         .10000E-03   10000.    
     9 'norm      '    .15672E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10252E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    156.86       1.0000         .10000E-03   10000.    
    14 'norm      '    .11173E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .28258E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    45.889       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.5929       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .82194       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=   3691.324     FROM MIGRAD    STATUS=CONVERGED    387 CALLS     1889 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7562        6.0049        .18611E-05    .18064E-03
   2  norm          1.5123        1.7403       -.12982E-07   -.62875E-04
   3  Prefactor     3.6167        5.5373        .42783E-06    .55692E-04
   4  Prefactor     .10000E-03    35.455        .33245E-06** at limit **
   5  Prefactor     3.3265        22.484        .33869E-06   -.38597E-04
   6  Prefactor     110.78        94.544       -.11251E-06   -.42766E-04
   7  norm          .10000E-03    24.304        .20397E-06** at limit **
   8  Prefactor     12.000        12.044       -.16851E-06   -.10578E-03
   9  norm          .10000E-03    1.7750        .10448E-05** at limit **
  10  Prefactor     .10000E-03    20.809        .21104E-07** at limit **
  11  norm          .10000E-03    6.4779        .24396E-06** at limit **
  12  norm          .10000E-03    27.626       -.31061E-06** at limit **
  13  Prefactor     156.86        146.33       -.23336E-05   -.66800E-04
  14  norm          .10000E-03    132.80       -.28703E-05** at limit **
  15  Prefactor     .10000E-03    118.55       -.42084E-05** at limit **
  16  norm          .10000E-03    22.697        .64048E-07** at limit **
  17  Prefactor     45.799        48.388        .69966E-07   -.16702E-05
  18  Normalizat    1.5931        .56064        .62564E-05   -.20870E-03
  19  Prefactor     .82194        .14086       -.30417E-05   -.36139E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.75625
  norm       = 1.51228
  Prefactor  = 3.61666
  Prefactor  = 0.0001
  Prefactor  = 3.32647
  Prefactor  = 110.784
  norm       = 0.0001
  Prefactor  = 12.0005
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 156.864
  norm       = 0.000100001
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 45.7993
  Normalizat = 1.59308
  Prefactor  = 0.821937
 **********
 **   18 **HESSE 
 **********

 FCN=   3691.324     FROM HESSE     STATUS=OK           264 CALLS     2153 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7562        6.0826        .27001E-03   -1.5443    
   2  norm          1.5123        1.7406        .83899E-04   -1.5462    
   3  Prefactor     3.6167        5.5482        .16922E-03   -1.5328    
   4  Prefactor     .10000E-03    35.471        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.3265        22.497        .22165E-03   -1.5343    
   6  Prefactor     110.78        94.518        .19095E-03   -1.3599    
   7  norm          .10000E-03    24.389        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     12.000        12.057        .11563E-03   -1.5015    
   9  norm          .10000E-03    2.8909        .14208E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    20.813        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    6.4915        .15106E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    27.695        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     156.86        146.98        .16096E-03   -1.3196    
  14  norm          .10000E-03    137.54        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    119.88        .21415E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    22.697        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     45.799        48.664        .29594E-03   -1.4353    
  18  Normalizat    1.5931        .59461        .44471E-03   -.75195    
  19  Prefactor     .82194        .14904        .15490E-03   -.98925    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.72251e-10
Minuit parameter uncertainties:
  1  6.08478
  2  1.74064
  3  5.54895
  4  5.41275e-05
  5  17.3108
  6  94.6465
  7  3.75701e-05
  8  12.0594
  9  8.51358e-05
  10  1.86164e-06
  11  1.1882e-05
  12  4.39376e-05
  13  147.323
  14  0.000688079
  15  0.00112274
  16  1.69368e-05
  17  48.7059
  18  0.59727
  19  0.149113
Done.

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

Extracting fit parameters...

4FGL J1957.1-3231
   Spectrum: PowerLaw
458    Prefactor:  1.200e+01  1.206e+01  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.219e-01  1.491e-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.593e+00  5.973e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.40
Ra Dec: 299.286 -32.525
Photon Index (Fixed Index): 2.58 +/- 0.00
Photon Flux (Fixed Index): 1.35e-07 +/- 1.35e-07
Energy Flux (Fixed Index): 3.60e-05 +/- 3.62e-05

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

Saving results to:
/scratch/kocevski/408990/likelihoodResults_571104001_571363201_4FGL_J1957.1-3231_daily_bin1280.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) = 3691.30471784
delta logL = 0.0189269096759

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3691.29212596
delta logL = 0.0315187914953

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.8420       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8056       1.0000          .0000       10.000    
     3 'Normalizat'    1.5704       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82633       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=   3691.292     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      237 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.8366        14.869        .12773E-03    .47791E-03
   2  Index         2.8070        1.0188        .64577E-02    .12226E-03
   3  Normalizat    1.5705        .56754        .44726E-03   -.72717E-03
   4  Prefactor     .82629        .14694        .15454E-03   -.21745E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.83664
  Index      = 2.80701
  Normalizat = 1.57046
  Prefactor  = 0.826295
 **********
 **   18 **HESSE 
 **********

 FCN=   3691.292     FROM HESSE     STATUS=OK            25 CALLS      262 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.8366        13.762        .51092E-05   -1.5081    
   2  Index         2.8070        .94306        .25831E-03   -.45404    
   3  Normalizat    1.5705        .56757        .89452E-04   -.75817    
   4  Prefactor     .82629        .14689        .30907E-04   -.98766    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.29525e-09
Minuit parameter uncertainties:
  1  13.7667
  2  0.950122
  3  0.569915
  4  0.146965
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/408990': 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) = 3691.29212432
delta logL = 0.0315204287795

Extracting fit parameters...

4FGL J1957.1-3231
   Spectrum: PowerLaw
458    Prefactor:  9.837e+00  1.377e+01  1.000e-04  1.000e+04 ( 1.000e-12)
459        Index:  2.807e+00  9.501e-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.263e-01  1.470e-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.570e+00  5.699e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.47
Ra Dec: 299.286 -32.525
Photon Index (Free Index): 2.81 +/- 0.95
Photon Flux (Free Index): 1.52e-07 +/- 1.59e-07
Energy Flux (Free Index): 3.40e-05 +/- 3.42e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/408990/cmap_HighResolution_571104001_571363201_4FGL_J1957.1-3231_daily_bin1280.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.37e-02', comment='SUCCESS', photon_flux='1.35e-07', energy_flux2='3.40e-05', photon_flux_error='1.35e-07', dlogl='3.15e-02', energy_flux='3.60e-05', photon_flux2='1.52e-07', job_status='DONE', time_completed='2021-09-24 00:04:34.421898', photon_index_error2='0.95', photon_index2='2.81', ts='1.40', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', photon_flux_upper_limit='4.31e-07', energy_flux_error2='3.42e-05', EG='1.59', time_epoch_completed='1632467074.42', return_code='0', job_id='408990', GAL2='0.83', EG2='1.57', return_code2='0', energy_flux_error='3.62e-05', photon_flux_error2='1.59e-07', ts2='1.47', photon_index='2.58' WHERE bin_id='1280' AND source_name='4FGL J1957.1-3231' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 24 00:04:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 408990: <4FGL_J1957.1-3231_daily_bin1280> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1957.1-3231_daily_bin1280 299.286 -32.5246 571104001 571363201 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 :                                   522.22 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             228.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   764 sec.
    Turnaround time :                            768 sec.

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

