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


Performing analysis on: 4FGL_J1957.1-3231_daily_bin1338
RA = 299.286, Dec = -32.5246
tmin = 586137601, tmax = 586396801
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='409083', job_status='RUN', time_executed='2021-09-23 23:53:03.540172', time_epoch_executed='1632466383.54' WHERE source_name='4FGL J1957.1-3231' and cadence='daily' and bin_id='1338'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/409083

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/409083/ft1_4FGL_J1957.1-3231_daily_bin1338.fits


Retrieving the FT1 file...

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

Retrieving 41 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/409083/ft2_4FGL_J1957.1-3231_daily_bin1338.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/409083/ft1_4FGL_J1957.1-3231_daily_bin1338.fits outfile=/scratch/kocevski/409083/ft1_filteredMKT_4FGL_J1957.1-3231_daily_bin1338.fits ra=299.286 dec=-32.5246 rad=12.0 tmin=586137601.0 tmax=586396801.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 4.57
user 4.34
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/409083/ft1_filtered_4FGL_J1957.1-3231_daily_bin1338.fits" evtable="EVENTS" scfile=/scratch/kocevski/409083/ft2_4FGL_J1957.1-3231_daily_bin1338.fits sctable="SC_DATA" outfile=/scratch/kocevski/409083/ltcube_586137601_586396801_4FGL_J1957.1-3231_daily_bin1338.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/409083/ft2_4FGL_J1957.1-3231_daily_bin1338.fits
.....................!
real 10.03
user 9.69
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/409083/ft1_filtered_4FGL_J1957.1-3231_daily_bin1338.fits evtable="EVENTS" scfile=/scratch/kocevski/409083/ft2_4FGL_J1957.1-3231_daily_bin1338.fits sctable="SC_DATA" expcube=/scratch/kocevski/409083/ltcube_586137601_586396801_4FGL_J1957.1-3231_daily_bin1338.fits outfile=/scratch/kocevski/409083/expmap_586137601_586396801_4FGL_J1957.1-3231_daily_bin1338.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/409083/ltcube_586137601_586396801_4FGL_J1957.1-3231_daily_bin1338.fits
.....................!
real 190.34
user 185.11
sys 4.91

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/409083/ft1_filtered_4FGL_J1957.1-3231_daily_bin1338.fits scfile=/scratch/kocevski/409083/ft2_4FGL_J1957.1-3231_daily_bin1338.fits outfile=/scratch/kocevski/409083/cmap_586137601_586396801_4FGL_J1957.1-3231_daily_bin1338.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/409083/ft1_filtered_4FGL_J1957.1-3231_daily_bin1338.fits scfile=/scratch/kocevski/409083/ft2_4FGL_J1957.1-3231_daily_bin1338.fits outfile=/scratch/kocevski/409083/cmap_HighResolution_586137601_586396801_4FGL_J1957.1-3231_daily_bin1338.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.53
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/409083/ft1_filtered_4FGL_J1957.1-3231_daily_bin1338.fits evtable="EVENTS" scfile=/scratch/kocevski/409083/ft2_4FGL_J1957.1-3231_daily_bin1338.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/409083/Model_4FGL_J1957.1-3231_daily_bin1338.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/409083/ft1_filtered_4FGL_J1957.1-3231_daily_bin1338.fits.....................!
real 86.15
user 84.71
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11307E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.1535       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10655E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.1529       1.0000         .10000E-03   10000.    
     9 'norm      '    1.1583       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .29807E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    7.2353       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.2632       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .93340       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=   9765.122     FROM MIGRAD    STATUS=CONVERGED    694 CALLS     1962 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.5634        .12057E-02** at limit **
   2  norm          .10000E-03    1.0787        .19711E-03** at limit **
   3  Prefactor     .10000E-03    14.021        .24251E-02** at limit **
   4  Prefactor     6.1154        156.73        .16184E-03   -.56197E-06
   5  Prefactor     .10000E-03    8.6075        .66821E-01** at limit **
   6  Prefactor     .10000E-03    7.1977        .18142E-02** at limit **
   7  norm          .10000E-03    18.542        .18142E-02** at limit **
   8  Prefactor     7.1535        5.7592        .14998E-03   -.37899E-05
   9  norm          1.1581        .84689        .76024E-04   -.31105E-04
  10  Prefactor     .10000E-03    11.665        .18142E-02** at limit **
  11  norm          .10000E-03    4.5547        .18142E-02** at limit **
  12  norm          .10000E-03    3.7284        .18142E-02** at limit **
  13  Prefactor     .10000E-03    32.130        .17320    ** at limit **
  14  norm          7.2351        10.223        .74560E-03   -.16955E-04
  15  Prefactor     .10000E-03    20.662        .18142E-02** at limit **
  16  norm          .10000E-03    14.660        .18142E-02** at limit **
  17  Prefactor     .10000E-03    6.1781        .36285E-03** at limit **
  18  Normalizat    1.2631        .29363        .41592E-03   -.68553E-04
  19  Prefactor     .93345        .88825E-01    .14717E-03   -.10944E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.11538
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.15353
  norm       = 1.15815
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 7.23513
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.26306
  Prefactor  = 0.933448
 **********
 **   18 **HESSE 
 **********

 FCN=   9765.122     FROM HESSE     STATUS=OK           270 CALLS     2232 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.5634        .24113E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.0787        .39422E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    14.224        .48501E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.1154        156.68        .64736E-05   -1.5213    
   5  Prefactor     .10000E-03    7.4477        .73560E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.1977        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    18.548        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.1535        5.7588        .59994E-05   -1.5173    
   9  norm          1.1581        .84688        .30409E-05   -1.5493    
  10  Prefactor     .10000E-03    11.665        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    4.5569        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    3.7287        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    32.142        .17314       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          7.2351        10.220        .29824E-04   -1.5170    
  15  Prefactor     .10000E-03    20.663        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    14.661        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.1783        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.2631        .29384        .16637E-04   -.84676    
  19  Prefactor     .93345        .88874E-01    .29434E-04   -.94982    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.58877e-11
Minuit parameter uncertainties:
  1  2.57093e-06
  2  3.01552e-07
  3  0.000132507
  4  62.0891
  5  0.000194756
  6  5.9156e-08
  7  5.1097e-06
  8  5.75924
  9  0.84689
  10  1.51375e-06
  11  5.77863e-07
  12  4.50826e-08
  13  0.000146846
  14  10.2229
  15  1.81922e-06
  16  2.62917e-07
  17  1.34997e-06
  18  0.294232
  19  0.0888878
Done.

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

Extracting fit parameters...

4FGL J1957.1-3231
   Spectrum: PowerLaw
458    Prefactor:  7.154e+00  5.759e+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:  9.334e-01  8.889e-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:  1.263e+00  2.942e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.17
Ra Dec: 299.286 -32.525
Photon Index (Fixed Index): 2.58 +/- 0.00
Photon Flux (Fixed Index): 8.03e-08 +/- 6.46e-08
Energy Flux (Fixed Index): 2.15e-05 +/- 1.73e-05

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

Saving results to:
/scratch/kocevski/409083/likelihoodResults_586137601_586396801_4FGL_J1957.1-3231_daily_bin1338.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) = 9764.71914938
delta logL = 0.402498507396

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9764.71892693
delta logL = 0.402720961314

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.9353       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9760       1.0000          .0000       10.000    
     3 'Normalizat'    1.3077       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92377       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=   9764.719     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      322 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.9378        7.7576        .63564E-03   -.55159E-04
   2  Index         1.9758        .56455        .92338E-02   -.19103E-04
   3  Normalizat    1.3077        .28664        .40992E-03    .12757E-05
   4  Prefactor     .92374        .88901E-01    .14783E-03   -.56909E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.93776
  Index      = 1.97581
  Normalizat = 1.30773
  Prefactor  = 0.923738
 **********
 **   18 **HESSE 
 **********

 FCN=   9764.719     FROM HESSE     STATUS=OK            25 CALLS      347 TOTAL
                     EDM=   .97E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.9378        7.7980        .25426E-04   -1.5077    
   2  Index         1.9758        .56741        .36935E-03   -.64956    
   3  Normalizat    1.3077        .28679        .16397E-04   -.83336    
   4  Prefactor     .92374        .88949E-01    .59132E-05   -.95316    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.73255e-12
Minuit parameter uncertainties:
  1  7.79881
  2  0.569351
  3  0.287137
  4  0.088963
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/409083': 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) = 9764.71892673
delta logL = 0.402721162236

Extracting fit parameters...

4FGL J1957.1-3231
   Spectrum: PowerLaw
458    Prefactor:  9.938e+00  7.799e+00  1.000e-04  1.000e+04 ( 1.000e-12)
459        Index:  1.976e+00  5.694e-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:  9.237e-01  8.896e-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:  1.308e+00  2.871e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.98
Ra Dec: 299.286 -32.525
Photon Index (Free Index): 1.98 +/- 0.57
Photon Flux (Free Index): 5.37e-08 +/- 5.55e-08
Energy Flux (Free Index): 3.94e-05 +/- 4.28e-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/409083/cmap_HighResolution_586137601_586396801_4FGL_J1957.1-3231_daily_bin1338.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.63e-02', comment='SUCCESS', photon_flux='8.03e-08', energy_flux2='3.94e-05', photon_flux_error='6.46e-08', dlogl='4.03e-01', energy_flux='2.15e-05', photon_flux2='5.37e-08', job_status='DONE', time_completed='2021-09-24 00:07:57.102645', photon_index_error2='0.57', photon_index2='1.98', ts='2.17', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='2.09e-07', energy_flux_error2='4.28e-05', EG='1.26', time_epoch_completed='1632467277.1', return_code='0', job_id='409083', GAL2='0.92', EG2='1.31', return_code2='0', energy_flux_error='1.73e-05', photon_flux_error2='5.55e-08', ts2='2.98', photon_index='2.58' WHERE bin_id='1338' AND source_name='4FGL J1957.1-3231' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 24 00:07:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0050>
Subject: Job 409083: <4FGL_J1957.1-3231_daily_bin1338> in cluster <slac> Done

Job <4FGL_J1957.1-3231_daily_bin1338> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep 23 23:51:55 2021
Job was executed on host(s) <bullet0050>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 23 23:51:58 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 23 23:51:58 2021
Terminated at Fri Sep 24 00:07:57 2021
Results reported at Fri Sep 24 00:07:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1957.1-3231_daily_bin1338 299.286 -32.5246 586137601 586396801 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 :                                   886.34 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             312.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   959 sec.
    Turnaround time :                            962 sec.

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

