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


Performing analysis on: 4FGL_J1957.1-3231_daily_bin1553
RA = 299.286, Dec = -32.5246
tmin = 641865601, tmax = 642124801
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='410649', job_status='RUN', time_executed='2021-09-23 23:58:03.787844', time_epoch_executed='1632466683.79' WHERE source_name='4FGL J1957.1-3231' and cadence='daily' and bin_id='1553'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/410649

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/410649/ft1_4FGL_J1957.1-3231_daily_bin1553.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/410649/ft2_4FGL_J1957.1-3231_daily_bin1553.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/410649/ft1_4FGL_J1957.1-3231_daily_bin1553.fits outfile=/scratch/kocevski/410649/ft1_filteredMKT_4FGL_J1957.1-3231_daily_bin1553.fits ra=299.286 dec=-32.5246 rad=12.0 tmin=641865601.0 tmax=642124801.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.46
user 4.11
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/410649/ft1_filtered_4FGL_J1957.1-3231_daily_bin1553.fits" evtable="EVENTS" scfile=/scratch/kocevski/410649/ft2_4FGL_J1957.1-3231_daily_bin1553.fits sctable="SC_DATA" outfile=/scratch/kocevski/410649/ltcube_641865601_642124801_4FGL_J1957.1-3231_daily_bin1553.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/410649/ft2_4FGL_J1957.1-3231_daily_bin1553.fits
.....................!
real 11.82
user 11.41
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/410649/ft1_filtered_4FGL_J1957.1-3231_daily_bin1553.fits evtable="EVENTS" scfile=/scratch/kocevski/410649/ft2_4FGL_J1957.1-3231_daily_bin1553.fits sctable="SC_DATA" expcube=/scratch/kocevski/410649/ltcube_641865601_642124801_4FGL_J1957.1-3231_daily_bin1553.fits outfile=/scratch/kocevski/410649/expmap_641865601_642124801_4FGL_J1957.1-3231_daily_bin1553.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/410649/ltcube_641865601_642124801_4FGL_J1957.1-3231_daily_bin1553.fits
.....................!
real 191.59
user 185.29
sys 5.05

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/410649/ft1_filtered_4FGL_J1957.1-3231_daily_bin1553.fits scfile=/scratch/kocevski/410649/ft2_4FGL_J1957.1-3231_daily_bin1553.fits outfile=/scratch/kocevski/410649/cmap_641865601_642124801_4FGL_J1957.1-3231_daily_bin1553.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/410649/ft1_filtered_4FGL_J1957.1-3231_daily_bin1553.fits scfile=/scratch/kocevski/410649/ft2_4FGL_J1957.1-3231_daily_bin1553.fits outfile=/scratch/kocevski/410649/cmap_HighResolution_641865601_642124801_4FGL_J1957.1-3231_daily_bin1553.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.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/410649/ft1_filtered_4FGL_J1957.1-3231_daily_bin1553.fits evtable="EVENTS" scfile=/scratch/kocevski/410649/ft2_4FGL_J1957.1-3231_daily_bin1553.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/410649/Model_4FGL_J1957.1-3231_daily_bin1553.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/410649/ft1_filtered_4FGL_J1957.1-3231_daily_bin1553.fits.....................!
real 78.95
user 77.56
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0136       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.2527       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    18.107       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    23.609       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.9059       1.0000         .10000E-03   10000.    
     9 'norm      '    1.3910       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    28.193       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    29.431       1.0000         .10000E-03   10000.    
    15 'Prefactor '    47.986       1.0000         .10000E-03   10000.    
    16 'norm      '    .10119E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.5037       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.2433       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .96700       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=   8850.816     FROM MIGRAD    STATUS=CONVERGED    382 CALLS     1870 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0118        5.1360        .57674E-06   -.19394E-03
   2  norm          .10000E-03    .82821       -.46786E-07** at limit **
   3  Prefactor     1.2520        3.4101        .71499E-08   -.11558E-03
   4  Prefactor     .10000E-03    83.526       -.33468E-04** at limit **
   5  Prefactor     18.108        11.814        .31041E-07   -.38455E-05
   6  Prefactor     .10000E-03    12.778        .31950E-06** at limit **
   7  norm          23.608        19.743        .19580E-08   -.26120E-06
   8  Prefactor     1.9066        2.2400        .56490E-06   -.20266E-02
   9  norm          1.3910        1.0220        .26029E-07   -.44889E-04
  10  Prefactor     .10000E-03    9.0585       -.96019E-07** at limit **
  11  norm          .10000E-03    4.5742        .90807E-07** at limit **
  12  norm          28.194        16.404       -.27405E-06   -.81350E-05
  13  Prefactor     .10000E-03    18.751       -.47988E-06** at limit **
  14  norm          29.434        16.084       -.10517E-05   -.22916E-04
  15  Prefactor     47.999        65.180        .13581E-04    .23096E-04
  16  norm          .10000E-03    76.849        .30210E-04** at limit **
  17  Prefactor     3.5041        5.4774       -.75822E-06   -.87371E-04
  18  Normalizat    1.2430        .28826       -.17814E-05   -.26914E-04
  19  Prefactor     .96708        .85713E-01    .48274E-07   -.16159E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.01177
  norm       = 0.0001
  Prefactor  = 1.25204
  Prefactor  = 0.0001
  Prefactor  = 18.1077
  Prefactor  = 0.0001
  norm       = 23.6085
  Prefactor  = 1.90662
  norm       = 1.39105
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 28.194
  Prefactor  = 0.0001
  norm       = 29.4338
  Prefactor  = 47.9985
  norm       = 0.0001
  Prefactor  = 3.5041
  Normalizat = 1.243
  Prefactor  = 0.967076
 **********
 **   18 **HESSE 
 **********

 FCN=   8850.816     FROM HESSE     STATUS=OK           270 CALLS     2140 TOTAL
                     EDM=   .55E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0118        11.948        .40940E-02   -1.5507    
   2  norm          .10000E-03    .83446        .83609E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.2520        3.3751        .27653E-03   -1.5484    
   4  Prefactor     .10000E-03    83.652        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     18.108        11.818        .94123E-04   -1.4857    
   6  Prefactor     .10000E-03    12.782        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          23.608        19.747        .82439E-04   -1.4736    
   8  Prefactor     1.9066        6.7261        .15059E-02   -1.5432    
   9  norm          1.3910        1.0080        .78368E-04   -1.5472    
  10  Prefactor     .10000E-03    9.0607        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    4.6135        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          28.194        16.422        .75452E-04   -1.4646    
  13  Prefactor     .10000E-03    18.757        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          29.434        16.118        .73851E-04   -1.4622    
  15  Prefactor     47.999        65.306        .57886E-04   -1.4321    
  16  norm          .10000E-03    77.460        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.5041        5.4649        .21599E-03   -1.5334    
  18  Normalizat    1.2430        .34390        .45895E-03   -.85284    
  19  Prefactor     .96708        .10174        .15617E-03   -.93835    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.51853e-08
Minuit parameter uncertainties:
  1  6.95526
  2  3.25737e-07
  3  3.37558
  4  0.000335681
  5  11.8199
  6  3.8475e-06
  7  19.7521
  8  6.72877
  9  1.008
  10  1.04977e-07
  11  3.76004e-06
  12  16.4246
  13  3.31292e-06
  14  16.1206
  15  65.4031
  16  4.69408e-05
  17  5.46569
  18  0.344531
  19  0.101761
Done.

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

Extracting fit parameters...

4FGL J1957.1-3231
   Spectrum: PowerLaw
458    Prefactor:  1.907e+00  6.729e+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.671e-01  1.018e-01  0.000e+00  1.000e+01 ( 1.000e+00)
753        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
754        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
751   Normalization:  1.243e+00  3.445e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/410649/likelihoodResults_641865601_642124801_4FGL_J1957.1-3231_daily_bin1553.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) = 8849.44166531
delta logL = 1.3740724259

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8849.3108991
delta logL = 1.50483863862

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    9.3016       1.0000          .0000       10.000    
     3 'Normalizat'    1.0827       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99910       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8849.311     FROM MIGRAD    STATUS=FAILED       375 CALLS      866 TOTAL
                     EDM=   .47E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .16820E-01    .14139E-03** at limit **
   2  Index         9.3026        8.8429        .12774E-01    .38782E-03
   3  Normalizat    1.0829        .17604        .48680E-03    .34564E-05
   4  Prefactor     .99898        .53468E-01    .15380E-03    .22766E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8849.311     FROM SIMPLEX   STATUS=UNCHANGED    150 CALLS     1016 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .16820E-01    .18764E-04** at limit **
   2  Index         9.3026        8.8429        .52447E-03    .38782E-03
   3  Normalizat    1.0829        .17604        .25831E-04    .34564E-05
   4  Prefactor     .99898        .53468E-01    .55849E-05    .22766E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8849.311     FROM MIGRAD    STATUS=CONVERGED     40 CALLS     1056 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .86283E-02    .19997E-03** at limit **
   2  Index         9.3026        8.7223        .25549E-02   -.52329E-05
   3  Normalizat    1.0829        .15061        .19472E-04    .35031E-05
   4  Prefactor     .99898        .45756E-01    .61522E-05    .22914E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 9.30255
  Normalizat = 1.08288
  Prefactor  = 0.998977
 **********
 **   18 **HESSE 
 **********

 FCN=   8849.311     FROM HESSE     STATUS=NOT POSDEF    33 CALLS     1089 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .11950E-01    .16997E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         9.3026        8.8098        .10220E-03    1.0363    
   3  Normalizat    1.0829        .16718        .38944E-05   -.90303    
   4  Prefactor     .99898        .50802E-01    .12304E-05   -.92764    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.94627e-10
Minuit parameter uncertainties:
  1  7.81656e-08
  2  4.48715
  3  0.167259
  4  0.0508048
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/410649': 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) = 8849.31088913
delta logL = 1.50484861368

Extracting fit parameters...

4FGL J1957.1-3231
   Spectrum: PowerLaw
458    Prefactor:  1.000e-04  7.817e-08  1.000e-04  1.000e+04 ( 1.000e-12)
459        Index:  9.303e+00  4.487e+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:  9.990e-01  5.080e-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.083e+00  1.673e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.35
Ra Dec: 299.286 -32.525
Photon Index (Free Index): 9.30 +/- 4.49
Photon Flux (Free Index): 1.59e-07 +/- 1.31e-06
Energy Flux (Free Index): 1.80e-05 +/- 1.48e-04

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/410649/cmap_HighResolution_641865601_642124801_4FGL_J1957.1-3231_daily_bin1553.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.44e-02', comment='SUCCESS', energy_flux2='1.80e-05', dlogl='1.50e+00', photon_flux2='1.59e-07', job_status='DONE', time_completed='2021-09-24 00:13:05.431084', photon_index_error2='4.49', photon_index2='9.30', ts='0.09', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='1.85e-07', energy_flux_error2='1.48e-04', EG='1.24', time_epoch_completed='1632467585.43', return_code='0', job_id='410649', GAL2='1.00', EG2='1.08', return_code2='102', photon_flux_error2='1.31e-06', ts2='3.35', photon_index='2.58' WHERE bin_id='1553' AND source_name='4FGL J1957.1-3231' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 24 00:13:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0288>
Subject: Job 410649: <4FGL_J1957.1-3231_daily_bin1553> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1957.1-3231_daily_bin1553 299.286 -32.5246 641865601 642124801 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 :                                   898.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             346.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   944 sec.
    Turnaround time :                            947 sec.

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

