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


Performing analysis on: 4FGL_J1957.1-3231_daily_bin1401
RA = 299.286, Dec = -32.5246
tmin = 602467201, tmax = 602726401
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='409154', job_status='RUN', time_executed='2021-09-23 23:52:43.772573', time_epoch_executed='1632466363.77' WHERE source_name='4FGL J1957.1-3231' and cadence='daily' and bin_id='1401'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/409154

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/409154/ft1_4FGL_J1957.1-3231_daily_bin1401.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/409154/ft2_4FGL_J1957.1-3231_daily_bin1401.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/409154/ft1_4FGL_J1957.1-3231_daily_bin1401.fits outfile=/scratch/kocevski/409154/ft1_filteredMKT_4FGL_J1957.1-3231_daily_bin1401.fits ra=299.286 dec=-32.5246 rad=12.0 tmin=602467201.0 tmax=602726401.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.18
user 2.97
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/409154/ft1_filtered_4FGL_J1957.1-3231_daily_bin1401.fits" evtable="EVENTS" scfile=/scratch/kocevski/409154/ft2_4FGL_J1957.1-3231_daily_bin1401.fits sctable="SC_DATA" outfile=/scratch/kocevski/409154/ltcube_602467201_602726401_4FGL_J1957.1-3231_daily_bin1401.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/409154/ft2_4FGL_J1957.1-3231_daily_bin1401.fits
.....................!
real 12.40
user 12.07
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/409154/ft1_filtered_4FGL_J1957.1-3231_daily_bin1401.fits evtable="EVENTS" scfile=/scratch/kocevski/409154/ft2_4FGL_J1957.1-3231_daily_bin1401.fits sctable="SC_DATA" expcube=/scratch/kocevski/409154/ltcube_602467201_602726401_4FGL_J1957.1-3231_daily_bin1401.fits outfile=/scratch/kocevski/409154/expmap_602467201_602726401_4FGL_J1957.1-3231_daily_bin1401.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/409154/ltcube_602467201_602726401_4FGL_J1957.1-3231_daily_bin1401.fits
.....................!
real 190.83
user 185.85
sys 4.65

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/409154/ft1_filtered_4FGL_J1957.1-3231_daily_bin1401.fits scfile=/scratch/kocevski/409154/ft2_4FGL_J1957.1-3231_daily_bin1401.fits outfile=/scratch/kocevski/409154/cmap_602467201_602726401_4FGL_J1957.1-3231_daily_bin1401.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.52
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/409154/ft1_filtered_4FGL_J1957.1-3231_daily_bin1401.fits scfile=/scratch/kocevski/409154/ft2_4FGL_J1957.1-3231_daily_bin1401.fits outfile=/scratch/kocevski/409154/cmap_HighResolution_602467201_602726401_4FGL_J1957.1-3231_daily_bin1401.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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/409154/ft1_filtered_4FGL_J1957.1-3231_daily_bin1401.fits evtable="EVENTS" scfile=/scratch/kocevski/409154/ft2_4FGL_J1957.1-3231_daily_bin1401.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/409154/Model_4FGL_J1957.1-3231_daily_bin1401.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/409154/ft1_filtered_4FGL_J1957.1-3231_daily_bin1401.fits.....................!
real 52.64
user 51.35
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.2236       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.6709       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11975E-02   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.802       1.0000         .10000E-03   10000.    
     9 'norm      '    5.9683       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10151E-03   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      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    27.791       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.9738       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .83722       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=   4567.726     FROM MIGRAD    STATUS=CONVERGED    372 CALLS     1825 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.2250        9.4054       -.66173E-06   -.21299E-03
   2  norm          .10000E-03    1.0799        .89034E-08** at limit **
   3  Prefactor     5.6763        10.208       -.45696E-06   -.16613E-03
   4  Prefactor     .10000E-03    69.668        .42789E-04** at limit **
   5  Prefactor     .10000E-03    19.921        .29984E-05** at limit **
   6  Prefactor     .10000E-03    143.88       -.12591E-04** at limit **
   7  norm          .10000E-03    15.768        .97978E-05** at limit **
   8  Prefactor     11.806        10.936       -.25938E-06   -.83571E-05
   9  norm          5.9684        2.7231        .43853E-07    .46519E-03
  10  Prefactor     .10000E-03    16.882       -.14294E-04** at limit **
  11  norm          .10000E-03    34.335       -.28436E-04** at limit **
  12  norm          .10000E-03    11.886       -.31384E-06** at limit **
  13  Prefactor     .10000E-03    116.26       -.50776E-04** at limit **
  14  norm          .10000E-03    9.3955        .29262E-07** at limit **
  15  Prefactor     .10000E-03    100.60        .75326E-05** at limit **
  16  norm          .10000E-03    27.676        .18018E-04** at limit **
  17  Prefactor     27.797        28.430        .14851E-05   -.54510E-05
  18  Normalizat    1.9730        .48694        .23103E-06    .94928E-04
  19  Prefactor     .83725        .12370        .14003E-06    .16904E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.22495
  norm       = 0.0001
  Prefactor  = 5.67625
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 11.8056
  norm       = 5.96841
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 27.7966
  Normalizat = 1.97305
  Prefactor  = 0.837252
 **********
 **   18 **HESSE 
 **********

 FCN=   4567.726     FROM HESSE     STATUS=OK           260 CALLS     2085 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.2250        9.4534        .22563E-03   -1.5349    
   2  norm          .10000E-03    1.0810        .68590E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.6763        10.202        .16868E-03   -1.5231    
   4  Prefactor     .10000E-03    69.728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    20.026        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    146.20        .20639E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    15.779        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     11.806        10.957        .11661E-03   -1.5021    
   9  norm          5.9684        2.7339        .71229E-04   -1.5219    
  10  Prefactor     .10000E-03    16.889        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    34.775        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    11.896        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    116.39        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    9.4019        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    100.63        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    27.690        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     27.797        28.509        .75995E-04   -1.4653    
  18  Normalizat    1.9730        .59884        .45538E-03   -.65228    
  19  Prefactor     .83725        .15268        .16912E-03   -.98369    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.14977e-10
Minuit parameter uncertainties:
  1  9.45778
  2  1.03669e-07
  3  10.2053
  4  1.58769e-05
  5  7.54629e-06
  6  0.000210163
  7  1.38012e-06
  8  10.9588
  9  2.73393
  10  9.725e-07
  11  0.00032154
  12  1.80725e-06
  13  3.54499e-05
  14  1.60915e-06
  15  5.23792e-05
  16  1.8419e-06
  17  28.523
  18  0.601139
  19  0.152758
Done.

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

Extracting fit parameters...

4FGL J1957.1-3231
   Spectrum: PowerLaw
458    Prefactor:  1.181e+01  1.096e+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.373e-01  1.528e-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.973e+00  6.011e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.08
Ra Dec: 299.286 -32.525
Photon Index (Fixed Index): 2.58 +/- 0.00
Photon Flux (Fixed Index): 1.32e-07 +/- 1.23e-07
Energy Flux (Fixed Index): 3.54e-05 +/- 3.29e-05

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

Saving results to:
/scratch/kocevski/409154/likelihoodResults_602467201_602726401_4FGL_J1957.1-3231_daily_bin1401.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) = 4567.09149209
delta logL = 0.634733226291

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4567.04106598
delta logL = 0.685159333942

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.4692       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5304       1.0000          .0000       10.000    
     3 'Normalizat'    2.0760       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82382       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=   4567.041     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      219 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.4388        7.9401        .36687E-02   -.86362E-03
   2  Index         1.5281        .46348        .21417       -.67302E-04
   3  Normalizat    2.0756        .46638        .10092       -.77735E-06
   4  Prefactor     .82391        .12095        .44026E-01    .96454E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.43875
  Index      = 1.52805
  Normalizat = 2.07563
  Prefactor  = 0.823906
 **********
 **   18 **HESSE 
 **********

 FCN=   4567.041     FROM HESSE     STATUS=OK            33 CALLS      252 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.4388        11.716        .73373E-03   -1.5162    
   2  Index         1.5281        .78207        .82498E-02   -.76757    
   3  Normalizat    2.0756        .57059        .44694E-03   -.62668    
   4  Prefactor     .82391        .14834        .17034E-03   -.98853    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.40732e-11
Minuit parameter uncertainties:
  1  11.7197
  2  0.788363
  3  0.572499
  4  0.148411
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/409154': 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) = 4567.04106144
delta logL = 0.68516387653

Extracting fit parameters...

4FGL J1957.1-3231
   Spectrum: PowerLaw
458    Prefactor:  7.439e+00  1.172e+01  1.000e-04  1.000e+04 ( 1.000e-12)
459        Index:  1.528e+00  7.884e-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.239e-01  1.484e-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:  2.076e+00  5.725e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.45
Ra Dec: 299.286 -32.525
Photon Index (Free Index): 1.53 +/- 0.79
Photon Flux (Free Index): 2.95e-08 +/- 5.18e-08
Energy Flux (Free Index): 8.48e-05 +/- 1.36e-04

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/409154/cmap_HighResolution_602467201_602726401_4FGL_J1957.1-3231_daily_bin1401.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.25e-02', comment='SUCCESS', photon_flux='1.32e-07', energy_flux2='8.48e-05', photon_flux_error='1.23e-07', dlogl='6.85e-01', energy_flux='3.54e-05', photon_flux2='2.95e-08', job_status='DONE', time_completed='2021-09-24 00:02:10.299183', photon_index_error2='0.79', photon_index2='1.53', ts='2.08', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', photon_flux_upper_limit='4.16e-07', energy_flux_error2='1.36e-04', EG='1.97', time_epoch_completed='1632466930.3', return_code='0', job_id='409154', GAL2='0.82', EG2='2.08', return_code2='0', energy_flux_error='3.29e-05', photon_flux_error2='5.18e-08', ts2='3.45', photon_index='2.58' WHERE bin_id='1401' AND source_name='4FGL J1957.1-3231' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 24 00:02:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0111>
Subject: Job 409154: <4FGL_J1957.1-3231_daily_bin1401> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1957.1-3231_daily_bin1401 299.286 -32.5246 602467201 602726401 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 :                                   558.01 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             328.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   604 sec.
    Turnaround time :                            608 sec.

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

