/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 185 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 = 7670
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1957.1-3231_daily_bin175
RA = 299.286, Dec = -32.5246
tmin = 284688001, tmax = 284947201
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='400454', job_status='RUN', time_executed='2021-09-23 23:25:11.129535', time_epoch_executed='1632464711.13' WHERE source_name='4FGL J1957.1-3231' and cadence='daily' and bin_id='175'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/400454

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/400454/ft1_4FGL_J1957.1-3231_daily_bin175.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/400454/ft2_4FGL_J1957.1-3231_daily_bin175.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/400454/ft1_4FGL_J1957.1-3231_daily_bin175.fits outfile=/scratch/kocevski/400454/ft1_filteredMKT_4FGL_J1957.1-3231_daily_bin175.fits ra=299.286 dec=-32.5246 rad=12.0 tmin=284688001.0 tmax=284947201.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.40
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/400454/ft1_filtered_4FGL_J1957.1-3231_daily_bin175.fits" evtable="EVENTS" scfile=/scratch/kocevski/400454/ft2_4FGL_J1957.1-3231_daily_bin175.fits sctable="SC_DATA" outfile=/scratch/kocevski/400454/ltcube_284688001_284947201_4FGL_J1957.1-3231_daily_bin175.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/400454/ft2_4FGL_J1957.1-3231_daily_bin175.fits
.....................!
real 11.81
user 11.44
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/400454/ft1_filtered_4FGL_J1957.1-3231_daily_bin175.fits evtable="EVENTS" scfile=/scratch/kocevski/400454/ft2_4FGL_J1957.1-3231_daily_bin175.fits sctable="SC_DATA" expcube=/scratch/kocevski/400454/ltcube_284688001_284947201_4FGL_J1957.1-3231_daily_bin175.fits outfile=/scratch/kocevski/400454/expmap_284688001_284947201_4FGL_J1957.1-3231_daily_bin175.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/400454/ltcube_284688001_284947201_4FGL_J1957.1-3231_daily_bin175.fits
.....................!
real 190.43
user 185.34
sys 4.77

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/400454/ft1_filtered_4FGL_J1957.1-3231_daily_bin175.fits scfile=/scratch/kocevski/400454/ft2_4FGL_J1957.1-3231_daily_bin175.fits outfile=/scratch/kocevski/400454/cmap_284688001_284947201_4FGL_J1957.1-3231_daily_bin175.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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/400454/ft1_filtered_4FGL_J1957.1-3231_daily_bin175.fits scfile=/scratch/kocevski/400454/ft2_4FGL_J1957.1-3231_daily_bin175.fits outfile=/scratch/kocevski/400454/cmap_HighResolution_284688001_284947201_4FGL_J1957.1-3231_daily_bin175.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.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/400454/ft1_filtered_4FGL_J1957.1-3231_daily_bin175.fits evtable="EVENTS" scfile=/scratch/kocevski/400454/ft2_4FGL_J1957.1-3231_daily_bin175.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/400454/Model_4FGL_J1957.1-3231_daily_bin175.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/400454/ft1_filtered_4FGL_J1957.1-3231_daily_bin175.fits.....................!
real 77.70
user 76.39
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .60108       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .30044E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    21.332       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .58697E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.5989       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      '    18.906       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    18.878       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.3335       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1227       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=   8525.679     FROM MIGRAD    STATUS=CONVERGED    407 CALLS     1889 TOTAL
                     EDM=   .83E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.3012       -.12932E-06** at limit **
   2  norm          .10000E-03    .86172       -.36875E-07** at limit **
   3  Prefactor     .60598        3.1331       -.44058E-06   -.50809E-04
   4  Prefactor     .10000E-03    335.25       -.20015E-04** at limit **
   5  Prefactor     21.330        14.856       -.17264E-05   -.21531E-03
   6  Prefactor     .10000E-03    11.561        .22834E-08** at limit **
   7  norm          .10179E-03    11.680        .32495E-05** at limit **
   8  Prefactor     .10000E-03    8.5499        .19997E-06** at limit **
   9  norm          2.5991        1.2739        .29752E-07   -.24893E-03
  10  Prefactor     .10000E-03    14.270       -.11987E-06** at limit **
  11  norm          .10000E-03    6.4710        .36225E-07** at limit **
  12  norm          18.914        18.492        .36116E-05    .10724E-03
  13  Prefactor     .10000E-03    33.524        .31928E-06** at limit **
  14  norm          18.884        17.440        .36554E-05    .12946E-03
  15  Prefactor     .10000E-03    93.994       -.18718E-04** at limit **
  16  norm          .10000E-03    10.262       -.84444E-08** at limit **
  17  Prefactor     .10000E-03    4.2894        .42613E-07** at limit **
  18  Normalizat    1.3332        .33679       -.14715E-05    .48314E-04
  19  Prefactor     1.1226        .98132E-01    .14892E-06    .92761E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.605975
  Prefactor  = 0.000100001
  Prefactor  = 21.3297
  Prefactor  = 0.0001
  norm       = 0.000101792
  Prefactor  = 0.0001
  norm       = 2.59905
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 18.9139
  Prefactor  = 0.0001
  norm       = 18.8839
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.33319
  Prefactor  = 1.12262
 **********
 **   18 **HESSE 
 **********

 FCN=   8525.679     FROM HESSE     STATUS=OK           268 CALLS     2157 TOTAL
                     EDM=   .36E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.3030        .13679E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .86457        .83702E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .60598        18.228        .30580E-02   -1.5552    
   4  Prefactor     .10000E-03    336.60        .19827E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     21.330        14.886        .86723E-04   -1.4784    
   6  Prefactor     .10000E-03    11.562        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10179E-03    104.50        .57709E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    8.9420        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.5991        1.2717        .70237E-04   -1.5386    
  10  Prefactor     .10000E-03    14.280        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    6.5057        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          18.914        18.452        .92113E-04   -1.4838    
  13  Prefactor     .10000E-03    33.551        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          18.884        17.436        .92182E-04   -1.4839    
  15  Prefactor     .10000E-03    94.777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    10.277        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.3114        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.3332        .38252        .50571E-03   -.82581    
  19  Prefactor     1.1226        .11261        .16303E-03   -.88747    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.59435e-08
Minuit parameter uncertainties:
  1  6.18218e-08
  2  4.6772e-07
  3  6.64867
  4  0.00136182
  5  14.8883
  6  6.82341e-07
  7  0.0274173
  8  3.90463e-06
  9  1.27169
  10  3.97034e-06
  11  6.85631e-06
  12  18.4576
  13  7.85267e-06
  14  17.4411
  15  0.00108427
  16  1.03265e-06
  17  1.64284e-06
  18  0.383335
  19  0.112635
Done.

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

Extracting fit parameters...

4FGL J1957.1-3231
   Spectrum: PowerLaw
458    Prefactor:  1.000e-04  3.905e-06  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.123e+00  1.126e-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.333e+00  3.833e-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.59e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.25e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/400454/likelihoodResults_284688001_284947201_4FGL_J1957.1-3231_daily_bin175.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) = 8525.6791682
delta logL = -0.000534138602234

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8525.67863361
delta logL = 4.50047082268e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10166E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5282       1.0000          .0000       10.000    
     3 'Normalizat'    1.3332       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1226       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=   8525.679     FROM MIGRAD    STATUS=FAILED       103 CALLS      268 TOTAL
                     EDM=   .58E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10783E-03    70.684        .34384E-02** at limit **
   2  Index         2.3489        8.6574        .50000        .20794E-04
   3  Normalizat    1.3332        .19702E-01    .50571E-03   -.10791E-05
   4  Prefactor     1.1226        .59411E-02    .16303E-03    .29986E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8525.679     FROM SIMPLEX   STATUS=PROGRESS     114 CALLS      382 TOTAL
                     EDM=   .48E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10063E-03    70.684        .45467E-03** at limit **
   2  Index         2.3467        8.6574        .71287E-03    .20794E-04
   3  Normalizat    1.3332        .19702E-01    .34378E-05   -.10791E-05
   4  Prefactor     1.1226        .59411E-02    .12602E-05    .29986E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8525.679     FROM MIGRAD    STATUS=CONVERGED     37 CALLS      419 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10112E-03    36.954        .68767E-02** at limit **
   2  Index         2.3016        8.2986        .50000        .13455E-04
   3  Normalizat    1.3332        .14056E-01    .20228E-04   -.15892E-02
   4  Prefactor     1.1226        .42387E-02    .65211E-05   -.49212E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101117
  Index      = 2.30163
  Normalizat = 1.33318
  Prefactor  = 1.12262
 **********
 **   18 **HESSE 
 **********

 FCN=   8525.679     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      448 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10112E-03    771.46        .27507E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3016        6.1438        .50000       -.57005    
   3  Normalizat    1.3332        .67966E-01    .40457E-05   -.82581    
   4  Prefactor     1.1226        .20498E-01    .13042E-05   -.88747    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.01473e-08
Minuit parameter uncertainties:
  1  0.0594909
  2  692.182
  3  0.067971
  4  0.0204979
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/400454': 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) = 8525.67863208
delta logL = 1.97370536625e-06

Extracting fit parameters...

4FGL J1957.1-3231
   Spectrum: PowerLaw
458    Prefactor:  1.011e-04  5.949e-02  1.000e-04  1.000e+04 ( 1.000e-12)
459        Index:  2.302e+00  6.922e+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.123e+00  2.050e-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.333e+00  6.797e-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/400454/cmap_HighResolution_284688001_284947201_4FGL_J1957.1-3231_daily_bin175.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.25e-02', job_status='DONE', photon_flux_upper_limit='1.59e-07', time_completed='2021-09-23 23:38:19.369335', job_id='400454', GAL2='1.12', fit_tolerance='1e-08', EG2='1.33', EG='1.33', time_epoch_completed='1632465499.37', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='1.97e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='175' AND source_name='4FGL J1957.1-3231' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 23 23:38:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0289>
Subject: Job 400454: <4FGL_J1957.1-3231_daily_bin175> in cluster <slac> Done

Job <4FGL_J1957.1-3231_daily_bin175> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep 23 23:21:54 2021
Job was executed on host(s) <bullet0289>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 23 23:21:57 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:21:57 2021
Terminated at Thu Sep 23 23:38:20 2021
Results reported at Thu Sep 23 23:38:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1957.1-3231_daily_bin175 299.286 -32.5246 284688001 284947201 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 :                                   788.24 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             267.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   982 sec.
    Turnaround time :                            986 sec.

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

