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


Performing analysis on: 4FGL_J1957.1-3231_daily_bin1325
RA = 299.286, Dec = -32.5246
tmin = 582768001, tmax = 583027201
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='409061', job_status='RUN', time_executed='2021-09-23 23:54:29.218588', time_epoch_executed='1632466469.22' WHERE source_name='4FGL J1957.1-3231' and cadence='daily' and bin_id='1325'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/409061

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/409061/ft1_4FGL_J1957.1-3231_daily_bin1325.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/409061/ft2_4FGL_J1957.1-3231_daily_bin1325.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/409061/ft1_4FGL_J1957.1-3231_daily_bin1325.fits outfile=/scratch/kocevski/409061/ft1_filteredMKT_4FGL_J1957.1-3231_daily_bin1325.fits ra=299.286 dec=-32.5246 rad=12.0 tmin=582768001.0 tmax=583027201.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.64
user 3.34
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/409061/ft1_filtered_4FGL_J1957.1-3231_daily_bin1325.fits" evtable="EVENTS" scfile=/scratch/kocevski/409061/ft2_4FGL_J1957.1-3231_daily_bin1325.fits sctable="SC_DATA" outfile=/scratch/kocevski/409061/ltcube_582768001_583027201_4FGL_J1957.1-3231_daily_bin1325.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/409061/ft2_4FGL_J1957.1-3231_daily_bin1325.fits
.....................!
real 11.91
user 11.53
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/409061/ft1_filtered_4FGL_J1957.1-3231_daily_bin1325.fits evtable="EVENTS" scfile=/scratch/kocevski/409061/ft2_4FGL_J1957.1-3231_daily_bin1325.fits sctable="SC_DATA" expcube=/scratch/kocevski/409061/ltcube_582768001_583027201_4FGL_J1957.1-3231_daily_bin1325.fits outfile=/scratch/kocevski/409061/expmap_582768001_583027201_4FGL_J1957.1-3231_daily_bin1325.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/409061/ltcube_582768001_583027201_4FGL_J1957.1-3231_daily_bin1325.fits
.....................!
real 193.32
user 187.76
sys 5.08

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/409061/ft1_filtered_4FGL_J1957.1-3231_daily_bin1325.fits scfile=/scratch/kocevski/409061/ft2_4FGL_J1957.1-3231_daily_bin1325.fits outfile=/scratch/kocevski/409061/cmap_582768001_583027201_4FGL_J1957.1-3231_daily_bin1325.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.62
user 0.37
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/409061/ft1_filtered_4FGL_J1957.1-3231_daily_bin1325.fits evtable="EVENTS" scfile=/scratch/kocevski/409061/ft2_4FGL_J1957.1-3231_daily_bin1325.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/409061/Model_4FGL_J1957.1-3231_daily_bin1325.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/409061/ft1_filtered_4FGL_J1957.1-3231_daily_bin1325.fits.....................!
real 74.51
user 72.56
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10160E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10653E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.7706       1.0000         .10000E-03   10000.    
     4 'Prefactor '    75.819       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    14.347       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.4501       1.0000         .10000E-03   10000.    
     9 'norm      '    .10323E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.2858       1.0000         .10000E-03   10000.    
    13 'Prefactor '    46.594       1.0000         .10000E-03   10000.    
    14 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.1611       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0141       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=   8354.193     FROM MIGRAD    STATUS=CONVERGED    389 CALLS     1869 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.6793       -.59688E-06** at limit **
   2  norm          .10001E-03    2.0987       -.99722E-06** at limit **
   3  Prefactor     3.7722        5.4467        .15408E-05    .23207E-03
   4  Prefactor     75.666        117.73        .94670E-05    .35322E-04
   5  Prefactor     .10000E-03    8.1883        .32203E-06** at limit **
   6  Prefactor     .10000E-03    60.661        .27812E-06** at limit **
   7  norm          14.348        18.984        .94549E-07   -.41631E-06
   8  Prefactor     6.4511        8.4930        .81300E-07   -.12716E-04
   9  norm          .10000E-03    .57705       -.16180E-07** at limit **
  10  Prefactor     .10000E-03    14.977        .14280E-06** at limit **
  11  norm          .10000E-03    2.8825        .15550E-07** at limit **
  12  norm          4.2809        18.768        .86607E-06    .29196E-05
  13  Prefactor     46.562        83.869        .26341E-05    .51748E-05
  14  norm          .10000E-03    5.0715       -.11690E-07** at limit **
  15  Prefactor     .10000E-03    31.383       -.48420E-07** at limit **
  16  norm          .10000E-03    8.8859       -.42615E-06** at limit **
  17  Prefactor     .10000E-03    2.8923        .68530E-07** at limit **
  18  Normalizat    1.1615        .30487       -.55987E-06    .24472E-04
  19  Prefactor     1.0140        .88782E-01   -.54280E-06    .13674E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.000100005
  Prefactor  = 3.77224
  Prefactor  = 75.6657
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 14.3485
  Prefactor  = 6.45107
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.28091
  Prefactor  = 46.5616
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.16151
  Prefactor  = 1.01398
 **********
 **   18 **HESSE 
 **********

 FCN=   8354.193     FROM HESSE     STATUS=OK           262 CALLS     2131 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.7560        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10001E-03    5.4702        .23436E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.7722        5.5117        .10395E-02   -1.5319    
   4  Prefactor     75.666        118.39        .23057E-03   -1.3966    
   5  Prefactor     .10000E-03    8.2619        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    61.050        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          14.348        18.994        .10575E-03   -1.4950    
   8  Prefactor     6.4511        8.4841        .15803E-03   -1.5200    
   9  norm          .10000E-03    .59873        .13535E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    14.990        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.8855        .15155E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.2809        18.729        .19461E-03   -1.5294    
  13  Prefactor     46.562        84.373        .58740E-04   -1.4342    
  14  norm          .10000E-03    5.0833        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    31.418        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    8.8919        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.9055        .15180E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.1615        .35168        .47525E-03   -.87801    
  19  Prefactor     1.0140        .10281        .15337E-03   -.92265    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0041e-09
Minuit parameter uncertainties:
  1  2.42313e-05
  2  0.000337684
  3  5.5124
  4  118.758
  5  3.35815e-06
  6  5.94856e-05
  7  19.0016
  8  8.48564
  9  7.09071e-08
  10  8.04172e-06
  11  1.29756e-06
  12  17.9176
  13  84.5901
  14  3.41822e-06
  15  1.83967e-05
  16  7.61129e-06
  17  4.57404e-06
  18  0.3524
  19  0.102833
Done.

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

Extracting fit parameters...

4FGL J1957.1-3231
   Spectrum: PowerLaw
458    Prefactor:  6.451e+00  8.486e+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:  1.014e+00  1.028e-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.162e+00  3.524e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/409061/likelihoodResults_582768001_583027201_4FGL_J1957.1-3231_daily_bin1325.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) = 8353.29626971
delta logL = 0.896338642859

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8353.25724609
delta logL = 0.935362262377

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11694       1.0000         .10000E-03   10000.    
     2 'Index     '    5.5622       1.0000          .0000       10.000    
     3 'Normalizat'    1.0262       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0441       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.

 FCN=   8353.257     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      295 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11553        .92927        .45680E-02    .38961E-02
   2  Index         5.5693        2.3161        .14802        .18414E-03
   3  Normalizat    1.0262        .68528E-01    .11310        .35656E-04
   4  Prefactor     1.0442        .20925E-01    .40271E-01    .33362E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.115526
  Index      = 5.56932
  Normalizat = 1.02619
  Prefactor  = 1.0442
 **********
 **   18 **HESSE 
 **********

 FCN=   8353.257     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      330 TOTAL
                     EDM=   .79E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11553        2.5497        .20791E-03   -1.5640    
   2  Index         5.5693        7.2807        .52307E-02    .11411    
   3  Normalizat    1.0262        .26055        .50148E-03   -.92158    
   4  Prefactor     1.0442        .78182E-01    .15130E-03   -.91270    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.92748e-11
Minuit parameter uncertainties:
  1  1.08504
  2  5.16001
  3  0.260876
  4  0.0781906
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/409061': 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) = 8353.25723933
delta logL = 0.935369021643

Extracting fit parameters...

4FGL J1957.1-3231
   Spectrum: PowerLaw
458    Prefactor:  1.155e-01  1.085e+00  1.000e-04  1.000e+04 ( 1.000e-12)
459        Index:  5.569e+00  5.160e+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:  1.044e+00  7.819e-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.026e+00  2.609e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.78
Ra Dec: 299.286 -32.525
Photon Index (Free Index): 5.57 +/- 5.16
Photon Flux (Free Index): 1.82e-07 +/- 1.22e-07
Energy Flux (Free Index): 2.33e-05 +/- 1.86e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/409061/cmap_HighResolution_582768001_583027201_4FGL_J1957.1-3231_daily_bin1325.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.01e-02', comment='SUCCESS', energy_flux2='2.33e-05', dlogl='9.35e-01', photon_flux2='1.82e-07', job_status='DONE', time_completed='2021-09-24 00:07:16.824007', photon_index_error2='5.16', photon_index2='5.57', ts='0.67', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='2.57e-07', energy_flux_error2='1.86e-05', EG='1.16', time_epoch_completed='1632467236.82', return_code='0', job_id='409061', GAL2='1.04', EG2='1.03', return_code2='102', photon_flux_error2='1.22e-07', ts2='2.78', photon_index='2.58' WHERE bin_id='1325' AND source_name='4FGL J1957.1-3231' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 24 00:07:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0072>
Subject: Job 409061: <4FGL_J1957.1-3231_daily_bin1325> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1957.1-3231_daily_bin1325 299.286 -32.5246 582768001 583027201 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 :                                   758.28 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             311.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   921 sec.
    Turnaround time :                            924 sec.

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

