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


Performing analysis on: 4FGL_J1957.1-3231_daily_bin1441
RA = 299.286, Dec = -32.5246
tmin = 612835201, tmax = 613094401
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='409218', job_status='RUN', time_executed='2021-09-23 23:55:57.454408', time_epoch_executed='1632466557.45' WHERE source_name='4FGL J1957.1-3231' and cadence='daily' and bin_id='1441'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/409218

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/409218/ft1_4FGL_J1957.1-3231_daily_bin1441.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/409218/ft2_4FGL_J1957.1-3231_daily_bin1441.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/409218/ft1_4FGL_J1957.1-3231_daily_bin1441.fits outfile=/scratch/kocevski/409218/ft1_filteredMKT_4FGL_J1957.1-3231_daily_bin1441.fits ra=299.286 dec=-32.5246 rad=12.0 tmin=612835201.0 tmax=613094401.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 2.87
user 2.66
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/409218/ft1_filtered_4FGL_J1957.1-3231_daily_bin1441.fits" evtable="EVENTS" scfile=/scratch/kocevski/409218/ft2_4FGL_J1957.1-3231_daily_bin1441.fits sctable="SC_DATA" outfile=/scratch/kocevski/409218/ltcube_612835201_613094401_4FGL_J1957.1-3231_daily_bin1441.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/409218/ft2_4FGL_J1957.1-3231_daily_bin1441.fits
.....................!
real 12.09
user 11.73
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/409218/ft1_filtered_4FGL_J1957.1-3231_daily_bin1441.fits evtable="EVENTS" scfile=/scratch/kocevski/409218/ft2_4FGL_J1957.1-3231_daily_bin1441.fits sctable="SC_DATA" expcube=/scratch/kocevski/409218/ltcube_612835201_613094401_4FGL_J1957.1-3231_daily_bin1441.fits outfile=/scratch/kocevski/409218/expmap_612835201_613094401_4FGL_J1957.1-3231_daily_bin1441.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/409218/ltcube_612835201_613094401_4FGL_J1957.1-3231_daily_bin1441.fits
.....................!
real 193.09
user 187.08
sys 5.25

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/409218/ft1_filtered_4FGL_J1957.1-3231_daily_bin1441.fits scfile=/scratch/kocevski/409218/ft2_4FGL_J1957.1-3231_daily_bin1441.fits outfile=/scratch/kocevski/409218/cmap_612835201_613094401_4FGL_J1957.1-3231_daily_bin1441.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.64
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/409218/ft1_filtered_4FGL_J1957.1-3231_daily_bin1441.fits scfile=/scratch/kocevski/409218/ft2_4FGL_J1957.1-3231_daily_bin1441.fits outfile=/scratch/kocevski/409218/cmap_HighResolution_612835201_613094401_4FGL_J1957.1-3231_daily_bin1441.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.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/409218/ft1_filtered_4FGL_J1957.1-3231_daily_bin1441.fits evtable="EVENTS" scfile=/scratch/kocevski/409218/ft2_4FGL_J1957.1-3231_daily_bin1441.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/409218/Model_4FGL_J1957.1-3231_daily_bin1441.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/409218/ft1_filtered_4FGL_J1957.1-3231_daily_bin1441.fits.....................!
real 65.65
user 63.72
sys 1.37

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.046       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .46090E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    183.61       1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.346       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    25.375       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.2485       1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.036       1.0000         .10000E-03   10000.    
    11 'norm      '    .82518E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    21.122       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    28.485       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.6298       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .58737       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.2653       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=   7353.692     FROM MIGRAD    STATUS=CONVERGED    362 CALLS     1867 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.051        17.499        .54031E-05   -.43776E-04
   2  norm          .10000E-03    2.2136       -.52091E-06** at limit **
   3  Prefactor     .10012E-03    6.1843        .36736E-05** at limit **
   4  Prefactor     183.54        176.79       -.49274E-04   -.91370E-04
   5  Prefactor     10.348        14.642        .84199E-06   -.12618E-03
   6  Prefactor     .10000E-03    33.438       -.15504E-04** at limit **
   7  norm          25.375        31.309        .33121E-06   -.36554E-04
   8  Prefactor     .10000E-03    5.3924       -.21998E-06** at limit **
   9  norm          2.2485        1.3875       -.65122E-07   -.97323E-03
  10  Prefactor     10.046        34.531        .25314E-04   -.24449E-04
  11  norm          .10043E-03    6.0978        .24855E-05** at limit **
  12  norm          21.123        18.364        .97192E-06   -.55568E-04
  13  Prefactor     .10000E-03    31.630        .10594E-04** at limit **
  14  norm          28.486        17.096        .35745E-06   -.76585E-04
  15  Prefactor     .10000E-03    20.262       -.19496E-05** at limit **
  16  norm          .10000E-03    4.4698       -.71027E-07** at limit **
  17  Prefactor     6.6294        6.9815       -.13262E-05   -.26785E-03
  18  Normalizat    .58789        .39706        .47828E-05   -.26822E-03
  19  Prefactor     1.2651        .12931       -.91970E-06   -.10918E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 14.0513
  norm       = 0.0001
  Prefactor  = 0.000100119
  Prefactor  = 183.542
  Prefactor  = 10.3476
  Prefactor  = 0.0001
  norm       = 25.3751
  Prefactor  = 0.0001
  norm       = 2.24845
  Prefactor  = 10.0461
  norm       = 0.000100431
  norm       = 21.1233
  Prefactor  = 0.0001
  norm       = 28.4859
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.62944
  Normalizat = 0.587893
  Prefactor  = 1.26506
 **********
 **   18 **HESSE 
 **********

 FCN=   7353.692     FROM HESSE     STATUS=OK           270 CALLS     2137 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.051        17.526        .10687E-03   -1.4958    
   2  norm          .10000E-03    2.2238        .12459E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10012E-03    36.597        .40535E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     183.54        176.92        .14897E-03   -1.2990    
   5  Prefactor     10.348        14.613        .12457E-03   -1.5065    
   6  Prefactor     .10000E-03    33.441        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          25.375        31.309        .79523E-04   -1.4700    
   8  Prefactor     .10000E-03    5.4534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.2485        1.3769        .75327E-04   -1.5408    
  10  Prefactor     10.046        34.511        .12649E-03   -1.5074    
  11  norm          .10043E-03    35.270        .40464E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          21.123        18.275        .87152E-04   -1.4788    
  13  Prefactor     .10000E-03    31.648        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          28.486        16.916        .75066E-04   -1.4640    
  15  Prefactor     .10000E-03    20.270        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    4.4700        .17707E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.6294        6.9157        .15585E-03   -1.5193    
  18  Normalizat    .58789        .38068        .64654E-03   -1.0850    
  19  Prefactor     1.2651        .12908        .15641E-03   -.84352    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.54491e-08
Minuit parameter uncertainties:
  1  17.5323
  2  7.15538e-07
  3  0.00417607
  4  177.432
  5  14.6182
  6  4.01313e-07
  7  31.3289
  8  1.71821e-05
  9  1.37694
  10  34.5794
  11  0.00780488
  12  18.2797
  13  2.32017e-05
  14  16.9184
  15  4.80405e-06
  16  3.97117e-07
  17  6.91652
  18  0.38239
  19  0.129115
Done.

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

Extracting fit parameters...

4FGL J1957.1-3231
   Spectrum: PowerLaw
458    Prefactor:  1.000e-04  1.718e-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.265e+00  1.291e-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:  5.879e-01  3.824e-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.68e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.32e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/409218/likelihoodResults_612835201_613094401_4FGL_J1957.1-3231_daily_bin1441.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): 102
logL (Free Index) = 7353.69327704
delta logL = -0.000873940474776

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7353.69240315
delta logL = -5.6528733694e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5813       1.0000          .0000       10.000    
     3 'Normalizat'    .58784       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2651       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=   7353.692     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      205 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.592        .90712E-02** at limit **
   2  Index         2.5835        6.0376        .50000       -.33136E-05
   3  Normalizat    .58790        .11310E-01    .14572        .49296E-04
   4  Prefactor     1.2651        .38999E-02    .33248E-01   -.15177E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.58345
  Normalizat = 0.587895
  Prefactor  = 1.26506
 **********
 **   18 **HESSE 
 **********

 FCN=   7353.692     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      238 TOTAL
                     EDM=   .75E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    71.554        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5835        8.4466        .50000       -.50443    
   3  Normalizat    .58790        .29444E-01    .64654E-03   -1.0850    
   4  Prefactor     1.2651        .10196E-01    .15641E-03   -.84352    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.47526e-08
Minuit parameter uncertainties:
  1  8.84978e-05
  2  350.477
  3  0.0294445
  4  0.0101961
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/409218': 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): 102
logL (Free Index) = 7353.69240309
delta logL = 3.93447407987e-09

Extracting fit parameters...

4FGL J1957.1-3231
   Spectrum: PowerLaw
458    Prefactor:  1.000e-04  8.850e-05  1.000e-04  1.000e+04 ( 1.000e-12)
459        Index:  2.583e+00  3.505e+02  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.265e+00  1.020e-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:  5.879e-01  2.944e-02  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/409218/cmap_HighResolution_612835201_613094401_4FGL_J1957.1-3231_daily_bin1441.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.32e-02', job_status='DONE', photon_flux_upper_limit='1.68e-07', time_completed='2021-09-24 00:07:40.015466', job_id='409218', GAL2='1.27', fit_tolerance='1e-08', EG2='0.59', EG='0.59', time_epoch_completed='1632467260.02', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.27', dlogl='3.93e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1441' AND source_name='4FGL J1957.1-3231' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 24 00:07:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0146>
Subject: Job 409218: <4FGL_J1957.1-3231_daily_bin1441> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1957.1-3231_daily_bin1441 299.286 -32.5246 612835201 613094401 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 :                                   699.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             239.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   928 sec.
    Turnaround time :                            931 sec.

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

