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


Performing analysis on: 4FGL_J1957.1-3231_daily_bin1282
RA = 299.286, Dec = -32.5246
tmin = 571622401, tmax = 571881601
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='408994', job_status='RUN', time_executed='2021-09-23 23:54:24.400745', time_epoch_executed='1632466464.4' WHERE source_name='4FGL J1957.1-3231' and cadence='daily' and bin_id='1282'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/408994

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/408994/ft1_4FGL_J1957.1-3231_daily_bin1282.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/408994/ft2_4FGL_J1957.1-3231_daily_bin1282.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/408994/ft1_4FGL_J1957.1-3231_daily_bin1282.fits outfile=/scratch/kocevski/408994/ft1_filteredMKT_4FGL_J1957.1-3231_daily_bin1282.fits ra=299.286 dec=-32.5246 rad=12.0 tmin=571622401.0 tmax=571881601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 2.89
user 2.52
sys 0.36

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/408994/ft2_4FGL_J1957.1-3231_daily_bin1282.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/408994/ft1_filteredMKT_4FGL_J1957.1-3231_daily_bin1282.fits evtable="EVENTS" outfile="/scratch/kocevski/408994/ft1_filtered_4FGL_J1957.1-3231_daily_bin1282.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/408994/ft1_filtered_4FGL_J1957.1-3231_daily_bin1282.fits" evtable="EVENTS" scfile=/scratch/kocevski/408994/ft2_4FGL_J1957.1-3231_daily_bin1282.fits sctable="SC_DATA" outfile=/scratch/kocevski/408994/ltcube_571622401_571881601_4FGL_J1957.1-3231_daily_bin1282.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/408994/ft2_4FGL_J1957.1-3231_daily_bin1282.fits
.....................!
real 13.87
user 12.70
sys 1.11

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/408994/ft1_filtered_4FGL_J1957.1-3231_daily_bin1282.fits evtable="EVENTS" scfile=/scratch/kocevski/408994/ft2_4FGL_J1957.1-3231_daily_bin1282.fits sctable="SC_DATA" expcube=/scratch/kocevski/408994/ltcube_571622401_571881601_4FGL_J1957.1-3231_daily_bin1282.fits outfile=/scratch/kocevski/408994/expmap_571622401_571881601_4FGL_J1957.1-3231_daily_bin1282.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/408994/ltcube_571622401_571881601_4FGL_J1957.1-3231_daily_bin1282.fits
.....................!
real 205.72
user 188.38
sys 16.75

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/408994/ft1_filtered_4FGL_J1957.1-3231_daily_bin1282.fits scfile=/scratch/kocevski/408994/ft2_4FGL_J1957.1-3231_daily_bin1282.fits outfile=/scratch/kocevski/408994/cmap_571622401_571881601_4FGL_J1957.1-3231_daily_bin1282.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=299.286 yref=-32.5246 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.64
user 0.36
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/408994/ft1_filtered_4FGL_J1957.1-3231_daily_bin1282.fits scfile=/scratch/kocevski/408994/ft2_4FGL_J1957.1-3231_daily_bin1282.fits outfile=/scratch/kocevski/408994/cmap_HighResolution_571622401_571881601_4FGL_J1957.1-3231_daily_bin1282.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.57
user 0.38
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/408994/ft1_filtered_4FGL_J1957.1-3231_daily_bin1282.fits evtable="EVENTS" scfile=/scratch/kocevski/408994/ft2_4FGL_J1957.1-3231_daily_bin1282.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/408994/Model_4FGL_J1957.1-3231_daily_bin1282.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/408994/ft1_filtered_4FGL_J1957.1-3231_daily_bin1282.fits......................!
real 40.52
user 36.97
sys 3.42

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.2102       1.0000         .10000E-03   10000.    
     2 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.8265       1.0000         .10000E-03   10000.    
     4 'Prefactor '    106.95       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.7805       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.0413       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10658E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    601.32       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .79791       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .88143       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=   2962.979     FROM MIGRAD    STATUS=CONVERGED    395 CALLS     2099 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.2090        10.961       -.26102E-06   -.97978E-04
   2  norm          .10000E-03    2.3360       -.30254E-07** at limit **
   3  Prefactor     1.8283        6.0037       -.10669E-05   -.43921E-03
   4  Prefactor     106.94        113.15       -.74777E-05    .24720E-05
   5  Prefactor     3.7815        13.217       -.83209E-06   -.91284E-04
   6  Prefactor     .10000E-03    76.314       -.15277E-04** at limit **
   7  norm          .10000E-03    14.888       -.66054E-07** at limit **
   8  Prefactor     .10000E-03    5.4302       -.94946E-08** at limit **
   9  norm          3.0413        2.2552        .86466E-07    .53418E-04
  10  Prefactor     .10000E-03    20.128       -.57085E-05** at limit **
  11  norm          .10000E-03    7.8079        .34380E-08** at limit **
  12  norm          .10000E-03    19.790        .53609E-05** at limit **
  13  Prefactor     .10000E-03    184.08       -.63795E-04** at limit **
  14  norm          .10000E-03    26.163        .61851E-08** at limit **
  15  Prefactor     .10000E-03    129.99        .62388E-04** at limit **
  16  norm          601.05        1318.1       -.11240E-03    .28161E-05
  17  Prefactor     .10000E-03    39.282        .18976E-05** at limit **
  18  Normalizat    .79743        .55178        .45588E-05    .72779E-05
  19  Prefactor     .88153        .13997        .88019E-07    .47957E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.209
  norm       = 0.0001
  Prefactor  = 1.82825
  Prefactor  = 106.945
  Prefactor  = 3.78154
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.04129
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 601.055
  Prefactor  = 0.0001
  Normalizat = 0.797431
  Prefactor  = 0.881526
 **********
 **   18 **HESSE 
 **********

 FCN=   2962.979     FROM HESSE     STATUS=OK           260 CALLS     2359 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.2090        10.993        .16109E-03   -1.5210    
   2  norm          .10000E-03    2.3899        .81226E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.8283        5.9672        .22393E-03   -1.5438    
   4  Prefactor     106.94        112.98        .38887E-04   -1.3636    
   5  Prefactor     3.7815        13.183        .20762E-03   -1.5319    
   6  Prefactor     .10000E-03    76.468        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    14.889        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.4528        .12385E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.0413        2.2522        .68130E-04   -1.5359    
  10  Prefactor     .10000E-03    20.130        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    7.8086        .14857E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    19.827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    183.46        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    26.171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    129.84        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          601.05        1316.5        .84129E-04   -1.0754    
  17  Prefactor     .10000E-03    39.289        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .79743        .60141        .54221E-03   -1.0016    
  19  Prefactor     .88153        .15630        .13299E-03   -.96790    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.76516e-10
Minuit parameter uncertainties:
  1  10.9967
  2  3.77981e-06
  3  5.96917
  4  113.207
  5  13.1934
  6  4.64377e-05
  7  8.96945e-07
  8  2.43638e-06
  9  2.2523
  10  2.95937e-06
  11  3.87572e-06
  12  2.96818e-05
  13  0.00047164
  14  1.7393e-06
  15  3.27024e-05
  16  1395.27
  17  1.06893e-05
  18  0.606528
  19  0.156383
Done.

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

Extracting fit parameters...

4FGL J1957.1-3231
   Spectrum: PowerLaw
458    Prefactor:  1.000e-04  2.436e-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:  8.815e-01  1.564e-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:  7.974e-01  6.065e-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: 2.40e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.87e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/408994/likelihoodResults_571622401_571881601_4FGL_J1957.1-3231_daily_bin1282.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) = 2962.97995205
delta logL = -0.000873367423083

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2962.97907868
delta logL = -2.99542080029e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5746       1.0000          .0000       10.000    
     3 'Normalizat'    .79738       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88154       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=   2962.979     FROM MIGRAD    STATUS=FAILED        90 CALLS      246 TOTAL
                     EDM=   .54E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10054E-03    748.35        .12395E-02** at limit **
   2  Index         2.4793        5.0181        .50000        .48586E-05
   3  Normalizat    .79743        .17999        .54221E-03   -.82822E-06
   4  Prefactor     .88153        .46652E-01    .13299E-03    .27782E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   2962.979     FROM SIMPLEX   STATUS=UNCHANGED    157 CALLS      403 TOTAL
                     EDM=   .68E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10054E-03    748.35        .34459E-03** at limit **
   2  Index         2.4793        5.0181        .11984E-04    .48586E-05
   3  Normalizat    .79743        .17999        .12599E-05   -.82822E-06
   4  Prefactor     .88153        .46652E-01    .11966E-06    .27782E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2962.979     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      446 TOTAL
                     EDM=   .63E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.4170        .24791E-03** at limit **
   2  Index         2.2968        6.1156        .50000       -.28058E-07
   3  Normalizat    .79743        .58839        .21688E-04    .16984E-04
   4  Prefactor     .88153        .15378        .53196E-05    .69029E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.29679
  Normalizat = 0.797432
  Prefactor  = 0.881526
 **********
 **   18 **HESSE 
 **********

 FCN=   2962.979     FROM HESSE     STATUS=OK            29 CALLS      475 TOTAL
                     EDM=   .57E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.6315        .49581E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2968        8.3443        .50000       -.57120    
   3  Normalizat    .79743        .58814        .43376E-05   -1.0016    
   4  Prefactor     .88153        .15375        .10639E-05   -.96790    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.65437e-12
Minuit parameter uncertainties:
  1  3.78616e-06
  2  226.122
  3  0.592927
  4  0.153822
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/408994': 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) = 2962.97907843
delta logL = 2.45005139732e-07

Extracting fit parameters...

4FGL J1957.1-3231
   Spectrum: PowerLaw
458    Prefactor:  1.000e-04  3.786e-06  1.000e-04  1.000e+04 ( 1.000e-12)
459        Index:  2.297e+00  2.261e+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:  8.815e-01  1.538e-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:  7.974e-01  5.929e-01  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/408994/cmap_HighResolution_571622401_571881601_4FGL_J1957.1-3231_daily_bin1282.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.87e-02', job_status='DONE', photon_flux_upper_limit='2.40e-07', time_completed='2021-09-24 00:03:09.954730', job_id='408994', GAL2='0.88', fit_tolerance='1e-08', EG2='0.80', EG='0.80', time_epoch_completed='1632466989.95', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='2.45e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1282' AND source_name='4FGL J1957.1-3231' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 24 00:03:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 408994: <4FGL_J1957.1-3231_daily_bin1282> in cluster <slac> Done

Job <4FGL_J1957.1-3231_daily_bin1282> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep 23 23:51:48 2021
Job was executed on host(s) <bullet0040>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 23 23:51:50 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:50 2021
Terminated at Fri Sep 24 00:03:10 2021
Results reported at Fri Sep 24 00:03:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1957.1-3231_daily_bin1282 299.286 -32.5246 571622401 571881601 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 :                                   520.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             270.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   680 sec.
    Turnaround time :                            682 sec.

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

