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


Performing analysis on: 4FGL_J1957.1-3231_daily_bin1573
RA = 299.286, Dec = -32.5246
tmin = 647049601, tmax = 647308801
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='410677', job_status='RUN', time_executed='2021-09-23 23:58:07.927015', time_epoch_executed='1632466687.93' WHERE source_name='4FGL J1957.1-3231' and cadence='daily' and bin_id='1573'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/410677

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/410677/ft1_4FGL_J1957.1-3231_daily_bin1573.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/410677/ft2_4FGL_J1957.1-3231_daily_bin1573.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/410677/ft1_4FGL_J1957.1-3231_daily_bin1573.fits outfile=/scratch/kocevski/410677/ft1_filteredMKT_4FGL_J1957.1-3231_daily_bin1573.fits ra=299.286 dec=-32.5246 rad=12.0 tmin=647049601.0 tmax=647308801.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.72
user 3.31
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/410677/ft1_filtered_4FGL_J1957.1-3231_daily_bin1573.fits" evtable="EVENTS" scfile=/scratch/kocevski/410677/ft2_4FGL_J1957.1-3231_daily_bin1573.fits sctable="SC_DATA" outfile=/scratch/kocevski/410677/ltcube_647049601_647308801_4FGL_J1957.1-3231_daily_bin1573.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/410677/ft2_4FGL_J1957.1-3231_daily_bin1573.fits
.....................!
real 12.70
user 12.36
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/410677/ft1_filtered_4FGL_J1957.1-3231_daily_bin1573.fits evtable="EVENTS" scfile=/scratch/kocevski/410677/ft2_4FGL_J1957.1-3231_daily_bin1573.fits sctable="SC_DATA" expcube=/scratch/kocevski/410677/ltcube_647049601_647308801_4FGL_J1957.1-3231_daily_bin1573.fits outfile=/scratch/kocevski/410677/expmap_647049601_647308801_4FGL_J1957.1-3231_daily_bin1573.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/410677/ltcube_647049601_647308801_4FGL_J1957.1-3231_daily_bin1573.fits
.....................!
real 191.03
user 185.91
sys 4.79

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/410677/ft1_filtered_4FGL_J1957.1-3231_daily_bin1573.fits scfile=/scratch/kocevski/410677/ft2_4FGL_J1957.1-3231_daily_bin1573.fits outfile=/scratch/kocevski/410677/cmap_647049601_647308801_4FGL_J1957.1-3231_daily_bin1573.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/410677/ft1_filtered_4FGL_J1957.1-3231_daily_bin1573.fits scfile=/scratch/kocevski/410677/ft2_4FGL_J1957.1-3231_daily_bin1573.fits outfile=/scratch/kocevski/410677/cmap_HighResolution_647049601_647308801_4FGL_J1957.1-3231_daily_bin1573.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3983       1.0000         .10000E-03   10000.    
     2 'norm      '    2.4626       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10232E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    97.788       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.4275       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    29.907       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    8.2152       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.8202       1.0000         .10000E-03   10000.    
    11 'norm      '    6.3427       1.0000         .10000E-03   10000.    
    12 'norm      '    .10069E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    34.327       1.0000         .10000E-03   10000.    
    14 'norm      '    14.547       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .97438       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1271       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=   8629.165     FROM MIGRAD    STATUS=CONVERGED    379 CALLS     1872 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4063        16.459        .20895E-04   -.44346E-04
   2  norm          2.4627        2.7423        .52109E-07   -.11987E-04
   3  Prefactor     .10000E-03    5.8196       -.65529E-06** at limit **
   4  Prefactor     97.652        114.81        .16958E-04    .31060E-04
   5  Prefactor     5.4306        14.051        .23943E-05   -.10175E-04
   6  Prefactor     .10000E-03    16.916        .35504E-06** at limit **
   7  norm          29.902        25.404        .52410E-06    .89195E-05
   8  Prefactor     .10000E-03    3.5808       -.35716E-06** at limit **
   9  norm          8.2149        2.0495        .40483E-07   -.13111E-03
  10  Prefactor     4.7958        103.48        .14579E-04    .33890E-05
  11  norm          6.3420        11.360        .64044E-06    .45528E-06
  12  norm          .10000E-03    13.927        .29820E-06** at limit **
  13  Prefactor     34.320        62.350        .23666E-05   -.60163E-05
  14  norm          14.543        16.463        .97039E-06   -.25801E-04
  15  Prefactor     .10000E-03    28.600       -.11105E-06** at limit **
  16  norm          .10000E-03    7.4674       -.23718E-07** at limit **
  17  Prefactor     .10000E-03    7.2234        .55883E-06** at limit **
  18  Normalizat    .97471        .33523       -.44069E-05   -.10800E-03
  19  Prefactor     1.1270        .10078       -.84147E-06    .21110E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.40626
  norm       = 2.46267
  Prefactor  = 0.0001
  Prefactor  = 97.6518
  Prefactor  = 5.43064
  Prefactor  = 0.0001
  norm       = 29.9022
  Prefactor  = 0.0001
  norm       = 8.2149
  Prefactor  = 4.79577
  norm       = 6.34203
  norm       = 0.0001
  Prefactor  = 34.3196
  norm       = 14.5431
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.974714
  Prefactor  = 1.12696
 **********
 **   18 **HESSE 
 **********

 FCN=   8629.165     FROM HESSE     STATUS=OK           268 CALLS     2140 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4063        16.556        .18353E-02   -1.5471    
   2  norm          2.4627        2.7355        .15788E-03   -1.5394    
   3  Prefactor     .10000E-03    5.9839        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     97.652        114.87        .20325E-03   -1.3728    
   5  Prefactor     5.4306        14.017        .86242E-03   -1.5242    
   6  Prefactor     .10000E-03    16.923        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          29.902        25.395        .73263E-04   -1.4614    
   8  Prefactor     .10000E-03    3.6080        .17160E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          8.2149        2.0471        .62565E-04   -1.5135    
  10  Prefactor     4.7958        104.37        .18324E-03   -1.5270    
  11  norm          6.3420        11.347        .15938E-03   -1.5204    
  12  norm          .10000E-03    14.048        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     34.320        62.390        .68397E-04   -1.4536    
  14  norm          14.543        16.460        .10501E-03   -1.4945    
  15  Prefactor     .10000E-03    28.625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    7.4694        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.4601        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .97471        .37027        .55705E-03   -.93882    
  19  Prefactor     1.1270        .11277        .15910E-03   -.88609    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.11844e-10
Minuit parameter uncertainties:
  1  9.65341
  2  2.73561
  3  6.42295e-05
  4  115.136
  5  14.0256
  6  2.39469e-05
  7  25.404
  8  2.74802e-05
  9  2.0471
  10  44.833
  11  11.3513
  12  9.30428e-05
  13  62.5087
  14  16.4651
  15  5.0783e-05
  16  4.5498e-06
  17  6.96408e-05
  18  0.371247
  19  0.11279
Done.

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

Extracting fit parameters...

4FGL J1957.1-3231
   Spectrum: PowerLaw
458    Prefactor:  1.000e-04  2.748e-05  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:  1.127e+00  1.128e-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:  9.747e-01  3.712e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/410677/likelihoodResults_647049601_647308801_4FGL_J1957.1-3231_daily_bin1573.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) = 8629.16651679
delta logL = -0.00132074905196

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8629.16519625
delta logL = -2.15170075535e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10130E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5711       1.0000          .0000       10.000    
     3 'Normalizat'    .97463       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1270       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=   8629.165     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      240 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.7321        .17206E-02** at limit **
   2  Index         2.5632        6.2789        .50000        .19242E-04
   3  Normalizat    .97472        .35091        .55704E-03    .80820E-05
   4  Prefactor     1.1270        .10829        .15909E-03    .26154E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.56317
  Normalizat = 0.974721
  Prefactor  = 1.12696
 **********
 **   18 **HESSE 
 **********

 FCN=   8629.165     FROM HESSE     STATUS=OK            29 CALLS      269 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.6279        .34412E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5632        6.2769        .50000       -.50907    
   3  Normalizat    .97472        .35106        .22282E-04   -.93882    
   4  Prefactor     1.1270        .10834        .63638E-05   -.88609    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.76886e-10
Minuit parameter uncertainties:
  1  0.00014066
  2  4.3695
  3  0.35189
  4  0.108358
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/410677': 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) = 8629.16519597
delta logL = 7.0371243055e-08

Extracting fit parameters...

4FGL J1957.1-3231
   Spectrum: PowerLaw
458    Prefactor:  1.000e-04  1.407e-04  1.000e-04  1.000e+04 ( 1.000e-12)
459        Index:  2.563e+00  4.370e+00  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:  1.127e+00  1.084e-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:  9.747e-01  3.519e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 299.286 -32.525

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/410677/cmap_HighResolution_647049601_647308801_4FGL_J1957.1-3231_daily_bin1573.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.13e-02', job_status='DONE', photon_flux_upper_limit='1.45e-07', time_completed='2021-09-24 00:11:00.229786', job_id='410677', GAL2='1.13', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1632467460.23', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='7.04e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1573' AND source_name='4FGL J1957.1-3231' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 24 00:11:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0106>
Subject: Job 410677: <4FGL_J1957.1-3231_daily_bin1573> in cluster <slac> Done

Job <4FGL_J1957.1-3231_daily_bin1573> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 23 23:57:20 2021
Job was executed on host(s) <bullet0106>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 23 23:57:22 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:57:22 2021
Terminated at Fri Sep 24 00:11:00 2021
Results reported at Fri Sep 24 00:11:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1957.1-3231_daily_bin1573 299.286 -32.5246 647049601 647308801 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 :                                   769.25 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             348.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   818 sec.
    Turnaround time :                            820 sec.

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

