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


Performing analysis on: 4FGL_J1957.1-3231_daily_bin1635
RA = 299.286, Dec = -32.5246
tmin = 663120001, tmax = 663379201
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='885874', job_status='RUN', time_executed='2022-01-09 03:14:39.708391', time_epoch_executed='1641726879.71' WHERE source_name='4FGL J1957.1-3231' and cadence='daily' and bin_id='1635'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/885874

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/885874/ft1_4FGL_J1957.1-3231_daily_bin1635.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/885874/ft2_4FGL_J1957.1-3231_daily_bin1635.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/885874/ft1_4FGL_J1957.1-3231_daily_bin1635.fits outfile=/scratch/kocevski/885874/ft1_filteredMKT_4FGL_J1957.1-3231_daily_bin1635.fits ra=299.286 dec=-32.5246 rad=12.0 tmin=663120001.0 tmax=663379201.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.82
user 2.58
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/885874/ft1_filtered_4FGL_J1957.1-3231_daily_bin1635.fits" evtable="EVENTS" scfile=/scratch/kocevski/885874/ft2_4FGL_J1957.1-3231_daily_bin1635.fits sctable="SC_DATA" outfile=/scratch/kocevski/885874/ltcube_663120001_663379201_4FGL_J1957.1-3231_daily_bin1635.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/885874/ft2_4FGL_J1957.1-3231_daily_bin1635.fits
.....................!
real 15.18
user 14.79
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/885874/ft1_filtered_4FGL_J1957.1-3231_daily_bin1635.fits evtable="EVENTS" scfile=/scratch/kocevski/885874/ft2_4FGL_J1957.1-3231_daily_bin1635.fits sctable="SC_DATA" expcube=/scratch/kocevski/885874/ltcube_663120001_663379201_4FGL_J1957.1-3231_daily_bin1635.fits outfile=/scratch/kocevski/885874/expmap_663120001_663379201_4FGL_J1957.1-3231_daily_bin1635.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/885874/ltcube_663120001_663379201_4FGL_J1957.1-3231_daily_bin1635.fits
.....................!
real 191.29
user 186.09
sys 4.82

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/885874/ft1_filtered_4FGL_J1957.1-3231_daily_bin1635.fits scfile=/scratch/kocevski/885874/ft2_4FGL_J1957.1-3231_daily_bin1635.fits outfile=/scratch/kocevski/885874/cmap_663120001_663379201_4FGL_J1957.1-3231_daily_bin1635.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.94
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/885874/ft1_filtered_4FGL_J1957.1-3231_daily_bin1635.fits scfile=/scratch/kocevski/885874/ft2_4FGL_J1957.1-3231_daily_bin1635.fits outfile=/scratch/kocevski/885874/cmap_HighResolution_663120001_663379201_4FGL_J1957.1-3231_daily_bin1635.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.80
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/885874/ft1_filtered_4FGL_J1957.1-3231_daily_bin1635.fits evtable="EVENTS" scfile=/scratch/kocevski/885874/ft2_4FGL_J1957.1-3231_daily_bin1635.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/885874/Model_4FGL_J1957.1-3231_daily_bin1635.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/885874/ft1_filtered_4FGL_J1957.1-3231_daily_bin1635.fits......................!
real 23.30
user 21.41
sys 1.30

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '   10000.0       1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .80364E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11247E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .13219E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10640E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.8265       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11852E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10311E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    33.681       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .15008E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10570E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .14191E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    16.266       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .21181       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .91643       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=   1189.533     FROM MIGRAD    STATUS=CONVERGED    398 CALLS     2250 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10000.        1775.9        .10711E-02** at limit **
   2  norm          .10000E-03    25.346       -.31567E-06** at limit **
   3  Prefactor    10000.0        1196.0        .52698E-04** at limit **
   4  Prefactor     .10000E-03    7145.9       -.14427E-02** at limit **
   5  Prefactor     .10000E-03    17.955       -.96149E-07** at limit **
   6  Prefactor     .10000E-03    531.31        .16072E-03** at limit **
   7  norm          .10000E-03    120.13       -.16925E-04** at limit **
   8  Prefactor     .10000E-03    5.6719       -.43835E-07** at limit **
   9  norm          1.8229        2.9307        .56422E-07    .12236E-04
  10  Prefactor     .10000E-03    59.094       -.15974E-04** at limit **
  11  norm          .10000E-03    6.4914       -.11046E-06** at limit **
  12  norm          33.646        51.376        .46223E-05    .24578E-05
  13  Prefactor     .10000E-03    76.128       -.73159E-06** at limit **
  14  norm          .10000E-03    31.716       -.74134E-07** at limit **
  15  Prefactor     .10000E-03    62.940        .20601E-04** at limit **
  16  norm          16.217        27.391        .11420E-04    .23064E-05
  17  Prefactor     .10000E-03    7.5933       -.61214E-07** at limit **
  18  Normalizat    .21191        .68404       -.47005E-05   -.22745E-04
  19  Prefactor     .91630        .29212       -.91058E-07    .84721E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 10000
  norm       = 0.0001
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.82288
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 33.6459
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 16.217
  Prefactor  = 0.0001
  Normalizat = 0.211909
  Prefactor  = 0.9163
 **********
 **   18 **HESSE 
 **********

 FCN=   1189.533     FROM HESSE     STATUS=OK           256 CALLS     2506 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10000.        1775.7        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    25.346        .16968E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor    10000.0        1196.1        .21409E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7145.8        .18469E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    17.961        .14279E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    531.30        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    120.44        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.6732        .80238E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.8229        2.9115        .71248E-04   -1.5438    
  10  Prefactor     .10000E-03    59.104        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    6.4930        .85838E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          33.646        51.411        .69048E-04   -1.4547    
  13  Prefactor     .10000E-03    76.172        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    31.892        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    62.959        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          16.217        27.394        .99308E-04   -1.4902    
  17  Prefactor     .10000E-03    7.6050        .92779E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .21191        .54787        .76075E-03   -1.2855    
  19  Prefactor     .91630        .23135        .15172E-03   -.95574    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.2946e-10
Minuit parameter uncertainties:
  1  7.88665e-05
  2  8.19152e-07
  3  9.66688e-05
  4  0.00015578
  5  5.66356e-06
  6  1.94069e-05
  7  7.75357e-05
  8  1.22107e-06
  9  2.91168
  10  5.05879e-06
  11  1.16751e-06
  12  51.4791
  13  1.40257e-05
  14  4.61396e-05
  15  1.18403e-05
  16  27.4157
  17  7.93345e-06
  18  0.562785
  19  0.231603
Done.

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

Extracting fit parameters...

4FGL J1957.1-3231
   Spectrum: PowerLaw
458    Prefactor:  1.000e-04  1.221e-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:  9.163e-01  2.316e-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:  2.119e-01  5.628e-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: 3.62e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.83e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/885874/likelihoodResults_663120001_663379201_4FGL_J1957.1-3231_daily_bin1635.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) = 1189.5341766
delta logL = -0.000755442271384

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1189.53342128
delta logL = -1.17565832625e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10358E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5533       1.0000          .0000       10.000    
     3 'Normalizat'    .21170       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91635       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=   1189.533     FROM MIGRAD    STATUS=CONVERGED    108 CALLS      262 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    84.120        .82974E-02** at limit **
   2  Index         1.7199        6.9463        .50000        .58185E-07
   3  Normalizat    .21191        .39750E-01    .76075E-03   -.13812E-03
   4  Prefactor     .91629        .16111E-01    .15172E-03   -.70708E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Index      = 1.71988
  Normalizat = 0.211912
  Prefactor  = 0.916295
 **********
 **   18 **HESSE 
 **********

 FCN=   1189.533     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      291 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    556.81        .11236E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7199        5.8296        .50000       -.71554    
   3  Normalizat    .21191        .10831        .30430E-04   -1.2855    
   4  Prefactor     .91629        .43935E-01    .30343E-04   -.95574    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.10506e-08
Minuit parameter uncertainties:
  1  0.00269364
  2  1098.61
  3  0.108418
  4  0.0439367
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/885874': 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) = 1189.53341684
delta logL = 4.31795911027e-06

Extracting fit parameters...

4FGL J1957.1-3231
   Spectrum: PowerLaw
458    Prefactor:  1.000e-04  2.694e-03  1.000e-04  1.000e+04 ( 1.000e-12)
459        Index:  1.720e+00  1.099e+03  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.163e-01  4.394e-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:  2.119e-01  1.084e-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/885874/cmap_HighResolution_663120001_663379201_4FGL_J1957.1-3231_daily_bin1635.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.83e-02', job_status='DONE', photon_flux_upper_limit='3.62e-07', time_completed='2022-01-09 03:21:18.458674', job_id='885874', GAL2='0.92', fit_tolerance='1e-08', EG2='0.21', EG='0.21', time_epoch_completed='1641727278.46', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='4.32e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1635' AND source_name='4FGL J1957.1-3231' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jan  9 03:21:18 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0069>
Subject: Job 885874: <4FGL_J1957.1-3231_daily_bin1635> in cluster <slac> Done

Job <4FGL_J1957.1-3231_daily_bin1635> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Jan  9 03:10:32 2022
Job was executed on host(s) <bullet0069>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jan  9 03:13:46 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jan  9 03:13:46 2022
Terminated at Sun Jan  9 03:21:19 2022
Results reported at Sun Jan  9 03:21:19 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1957.1-3231_daily_bin1635 299.286 -32.5246 663120001 663379201 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 :                                   400.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             303.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   452 sec.
    Turnaround time :                            647 sec.

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

