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


Performing analysis on: 4FGL_J1957.1-3231_daily_bin1640
RA = 299.286, Dec = -32.5246
tmin = 664416001, tmax = 664675201
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='283536', job_status='RUN', time_executed='2022-01-24 00:36:31.674864', time_epoch_executed='1643013391.67' WHERE source_name='4FGL J1957.1-3231' and cadence='daily' and bin_id='1640'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/283536

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/283536/ft1_4FGL_J1957.1-3231_daily_bin1640.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/283536/ft2_4FGL_J1957.1-3231_daily_bin1640.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/283536/ft1_4FGL_J1957.1-3231_daily_bin1640.fits outfile=/scratch/kocevski/283536/ft1_filteredMKT_4FGL_J1957.1-3231_daily_bin1640.fits ra=299.286 dec=-32.5246 rad=12.0 tmin=664416001.0 tmax=664675201.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.61
user 3.37
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/283536/ft1_filtered_4FGL_J1957.1-3231_daily_bin1640.fits" evtable="EVENTS" scfile=/scratch/kocevski/283536/ft2_4FGL_J1957.1-3231_daily_bin1640.fits sctable="SC_DATA" outfile=/scratch/kocevski/283536/ltcube_664416001_664675201_4FGL_J1957.1-3231_daily_bin1640.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/283536/ft2_4FGL_J1957.1-3231_daily_bin1640.fits
.....................!
real 11.77
user 11.36
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/283536/ft1_filtered_4FGL_J1957.1-3231_daily_bin1640.fits evtable="EVENTS" scfile=/scratch/kocevski/283536/ft2_4FGL_J1957.1-3231_daily_bin1640.fits sctable="SC_DATA" expcube=/scratch/kocevski/283536/ltcube_664416001_664675201_4FGL_J1957.1-3231_daily_bin1640.fits outfile=/scratch/kocevski/283536/expmap_664416001_664675201_4FGL_J1957.1-3231_daily_bin1640.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/283536/ltcube_664416001_664675201_4FGL_J1957.1-3231_daily_bin1640.fits
.....................!
real 192.52
user 187.70
sys 4.48

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/283536/ft1_filtered_4FGL_J1957.1-3231_daily_bin1640.fits scfile=/scratch/kocevski/283536/ft2_4FGL_J1957.1-3231_daily_bin1640.fits outfile=/scratch/kocevski/283536/cmap_664416001_664675201_4FGL_J1957.1-3231_daily_bin1640.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/283536/ft1_filtered_4FGL_J1957.1-3231_daily_bin1640.fits scfile=/scratch/kocevski/283536/ft2_4FGL_J1957.1-3231_daily_bin1640.fits outfile=/scratch/kocevski/283536/cmap_HighResolution_664416001_664675201_4FGL_J1957.1-3231_daily_bin1640.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/283536/ft1_filtered_4FGL_J1957.1-3231_daily_bin1640.fits evtable="EVENTS" scfile=/scratch/kocevski/283536/ft2_4FGL_J1957.1-3231_daily_bin1640.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/283536/Model_4FGL_J1957.1-3231_daily_bin1640.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/283536/ft1_filtered_4FGL_J1957.1-3231_daily_bin1640.fits.....................!
real 96.19
user 94.77
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.3080       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.5834       1.0000         .10000E-03   10000.    
     4 'Prefactor '    59.597       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .26510E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.430       1.0000         .10000E-03   10000.    
     9 'norm      '    13.172       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10667E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    11.820       1.0000         .10000E-03   10000.    
    12 'norm      '    38.437       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .70163       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .60083       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.3558       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=   11124.82     FROM MIGRAD    STATUS=CONVERGED    385 CALLS     1886 TOTAL
                     EDM=   .30E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.5971       -.84215E-07** at limit **
   2  norm          1.3081        1.4001       -.19552E-07    .11008E-03
   3  Prefactor     8.5826        5.7078        .17423E-06    .10785E-03
   4  Prefactor     59.469        80.136        .72538E-06   -.40739E-04
   5  Prefactor     .10000E-03    33.399        .10019E-05** at limit **
   6  Prefactor     .10000E-03    12.605        .52385E-07** at limit **
   7  norm          .10000E-03    39.157        .36918E-07** at limit **
   8  Prefactor     14.426        7.9036        .44410E-06    .95901E-04
   9  norm          13.173        2.1378        .10265E-06    .26555E-03
  10  Prefactor     .10000E-03    64.314        .46765E-06** at limit **
  11  norm          11.828        13.892        .96455E-06    .25039E-04
  12  norm          38.438        21.536        .57176E-06    .66373E-04
  13  Prefactor     .10000E-03    13.518        .84850E-07** at limit **
  14  norm          .10000E-03    9.1507        .33073E-06** at limit **
  15  Prefactor     .10000E-03    40.271        .22667E-06** at limit **
  16  norm          .10000E-03    42.726        .59040E-06** at limit **
  17  Prefactor     .67757        4.8090        .10755E-05    .17935E-04
  18  Normalizat    .60032        .35554       -.14197E-04   -.13118E-04
  19  Prefactor     1.3560        .10692        .23345E-05   -.14083E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 1.30809
  Prefactor  = 8.58262
  Prefactor  = 59.4694
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 14.4256
  norm       = 13.1735
  Prefactor  = 0.0001
  norm       = 11.8281
  norm       = 38.4377
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.677574
  Normalizat = 0.600322
  Prefactor  = 1.35598
 **********
 **   18 **HESSE 
 **********

 FCN=   11124.82     FROM HESSE     STATUS=OK           270 CALLS     2156 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.5988        .13015E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.3081        1.4061        .12600E-03   -1.5479    
   3  Prefactor     8.5826        5.7341        .13682E-03   -1.5122    
   4  Prefactor     59.469        80.214        .25986E-03   -1.4164    
   5  Prefactor     .10000E-03    35.032        .39917E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    12.610        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    39.647        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     14.426        7.9502        .10544E-03   -1.4948    
   9  norm          13.173        2.1440        .58807E-04   -1.4982    
  10  Prefactor     .10000E-03    64.757        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          11.828        13.961        .11652E-03   -1.5020    
  12  norm          38.438        21.637        .64648E-04   -1.4467    
  13  Prefactor     .10000E-03    13.521        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    9.2454        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    40.304        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    43.382        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .67757        46.058        .41631E-02   -1.5543    
  18  Normalizat    .60032        .37058        .75615E-03   -1.0797    
  19  Prefactor     1.3560        .10766        .16254E-03   -.81657    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.61037e-10
Minuit parameter uncertainties:
  1  3.96095e-06
  2  1.4061
  3  5.73451
  4  80.3599
  5  0.000134146
  6  2.80504e-06
  7  8.46377e-05
  8  7.9508
  9  2.14399
  10  0.000101673
  11  13.9645
  12  21.6416
  13  2.01334e-06
  14  1.14108e-05
  15  1.02053e-05
  16  3.45727e-05
  17  11.181
  18  0.372121
  19  0.10768
Done.

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

Extracting fit parameters...

4FGL J1957.1-3231
   Spectrum: PowerLaw
458    Prefactor:  1.443e+01  7.951e+00  1.000e-04  1.000e+04 ( 1.000e-12)
459        Index:  2.579e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
460        Scale:  7.441e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
752    Prefactor:  1.356e+00  1.077e-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:  6.003e-01  3.721e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.83
Ra Dec: 299.286 -32.525
Photon Index (Fixed Index): 2.58 +/- 0.00
Photon Flux (Fixed Index): 1.62e-07 +/- 8.91e-08
Energy Flux (Fixed Index): 4.33e-05 +/- 2.39e-05

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) = 11124.7987426
delta logL = 0.0223781638942

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11124.7911142
delta logL = 0.0300065439224

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.466       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4590       1.0000          .0000       10.000    
     3 'Normalizat'    .61524       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3534       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=   11124.79     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      246 TOTAL
                     EDM=   .95E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.472        179.70        .25461E-02    .11944E-03
   2  Index         2.4596        6.2298        .15449        .12667E-03
   3  Normalizat    .61516        .19183        .16845       -.30176E-05
   4  Prefactor     1.3534        .45535E-01    .31738E-01   -.44938E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.4722
  Index      = 2.45955
  Normalizat = 0.615159
  Prefactor  = 1.35344
 **********
 **   18 **HESSE 
 **********

 FCN=   11124.79     FROM HESSE     STATUS=OK            31 CALLS      277 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.472        9.6121        .10184E-03   -1.4921    
   2  Index         2.4596        .49445        .84418E-02   -.53297    
   3  Normalizat    .61516        .34223        .74776E-03   -1.0734    
   4  Prefactor     1.3534        .10580        .16268E-03   -.81732    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.80465e-09
Minuit parameter uncertainties:
  1  9.6131
  2  0.495543
  3  0.343421
  4  0.105815
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/283536': 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) = 11124.7911124
delta logL = 0.0300082837439

Extracting fit parameters...

4FGL J1957.1-3231
   Spectrum: PowerLaw
458    Prefactor:  1.547e+01  9.613e+00  1.000e-04  1.000e+04 ( 1.000e-12)
459        Index:  2.460e+00  4.955e-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:  1.353e+00  1.058e-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:  6.152e-01  3.434e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.85
Ra Dec: 299.286 -32.525
Photon Index (Free Index): 2.46 +/- 0.50
Photon Flux (Free Index): 1.48e-07 +/- 1.02e-07
Energy Flux (Free Index): 4.49e-05 +/- 2.68e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/283536/cmap_HighResolution_664416001_664675201_4FGL_J1957.1-3231_daily_bin1640.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.62e-07', energy_flux2='4.49e-05', photon_flux_error='8.91e-08', dlogl='3.00e-02', energy_flux='4.33e-05', photon_flux2='1.48e-07', job_status='DONE', time_completed='2022-01-24 00:50:05.118262', photon_index_error2='0.50', photon_index2='2.46', ts='5.83', fit_tolerance='1e-08', GAL='1.36', photon_index_error='0.00', energy_flux_error2='2.68e-05', EG='0.60', time_epoch_completed='1643014205.12', return_code='0', job_id='283536', GAL2='1.35', EG2='0.62', return_code2='0', energy_flux_error='2.39e-05', photon_flux_error2='1.02e-07', ts2='5.85', photon_index='2.58' WHERE bin_id='1640' AND source_name='4FGL J1957.1-3231' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jan 24 00:50:05 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0275>
Subject: Job 283536: <4FGL_J1957.1-3231_daily_bin1640> in cluster <slac> Done

Job <4FGL_J1957.1-3231_daily_bin1640> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Mon Jan 24 00:35:34 2022
Job was executed on host(s) <bullet0275>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jan 24 00:35:36 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Jan 24 00:35:36 2022
Terminated at Mon Jan 24 00:50:05 2022
Results reported at Mon Jan 24 00:50:05 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1957.1-3231_daily_bin1640 299.286 -32.5246 664416001 664675201 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 :                                   815.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             307.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   869 sec.
    Turnaround time :                            871 sec.

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

