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


Performing analysis on: 4FGL_J1957.1-3231_daily_bin533
RA = 299.286, Dec = -32.5246
tmin = 377481601, tmax = 377740801
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='404092', job_status='RUN', time_executed='2021-09-23 23:36:52.359926', time_epoch_executed='1632465412.36' WHERE source_name='4FGL J1957.1-3231' and cadence='daily' and bin_id='533'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/404092

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

Retrieving the FT1 file...

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

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

Retrieving 36 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/404092/ft1_4FGL_J1957.1-3231_daily_bin533.fits


Retrieving the FT1 file...

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

Retrieving 40 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/404092/ft2_4FGL_J1957.1-3231_daily_bin533.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/404092/ft1_4FGL_J1957.1-3231_daily_bin533.fits outfile=/scratch/kocevski/404092/ft1_filteredMKT_4FGL_J1957.1-3231_daily_bin533.fits ra=299.286 dec=-32.5246 rad=12.0 tmin=377481601.0 tmax=377740801.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.16
user 2.94
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/404092/ft1_filtered_4FGL_J1957.1-3231_daily_bin533.fits" evtable="EVENTS" scfile=/scratch/kocevski/404092/ft2_4FGL_J1957.1-3231_daily_bin533.fits sctable="SC_DATA" outfile=/scratch/kocevski/404092/ltcube_377481601_377740801_4FGL_J1957.1-3231_daily_bin533.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/404092/ft2_4FGL_J1957.1-3231_daily_bin533.fits
.....................!
real 10.19
user 9.83
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/404092/ft1_filtered_4FGL_J1957.1-3231_daily_bin533.fits evtable="EVENTS" scfile=/scratch/kocevski/404092/ft2_4FGL_J1957.1-3231_daily_bin533.fits sctable="SC_DATA" expcube=/scratch/kocevski/404092/ltcube_377481601_377740801_4FGL_J1957.1-3231_daily_bin533.fits outfile=/scratch/kocevski/404092/expmap_377481601_377740801_4FGL_J1957.1-3231_daily_bin533.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/404092/ltcube_377481601_377740801_4FGL_J1957.1-3231_daily_bin533.fits
.....................!
real 190.27
user 185.30
sys 4.65

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/404092/ft1_filtered_4FGL_J1957.1-3231_daily_bin533.fits scfile=/scratch/kocevski/404092/ft2_4FGL_J1957.1-3231_daily_bin533.fits outfile=/scratch/kocevski/404092/cmap_377481601_377740801_4FGL_J1957.1-3231_daily_bin533.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.55
user 0.37
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/404092/ft1_filtered_4FGL_J1957.1-3231_daily_bin533.fits evtable="EVENTS" scfile=/scratch/kocevski/404092/ft2_4FGL_J1957.1-3231_daily_bin533.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/404092/Model_4FGL_J1957.1-3231_daily_bin533.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/404092/ft1_filtered_4FGL_J1957.1-3231_daily_bin533.fits.....................!
real 63.37
user 62.08
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.294       1.0000         .10000E-03   10000.    
     6 'Prefactor '    42.809       1.0000         .10000E-03   10000.    
     7 'norm      '    .10066E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.841       1.0000         .10000E-03   10000.    
     9 'norm      '    .11227E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    54.275       1.0000         .10000E-03   10000.    
    11 'norm      '    .48015E-02   1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    51.083       1.0000         .10000E-03   10000.    
    14 'norm      '    14.079       1.0000         .10000E-03   10000.    
    15 'Prefactor '    39.558       1.0000         .10000E-03   10000.    
    16 'norm      '    3.0354       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.0982       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0958       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .86814       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=   6781.390     FROM MIGRAD    STATUS=CONVERGED    428 CALLS     2026 TOTAL
                     EDM=   .70E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.0362        .29010E-06** at limit **
   2  norm          .10000E-03    .97599        .96678E-07** at limit **
   3  Prefactor     .10000E-03    4.0407       -.39016E-07** at limit **
   4  Prefactor     .10000E-03    687.79        .60475E-04** at limit **
   5  Prefactor     17.291        13.467        .45905E-06   -.53705E-05
   6  Prefactor     42.816        46.155       -.20854E-05    .33002E-06
   7  norm          .10000E-03    81.817        .60471E-07** at limit **
   8  Prefactor     10.842        8.5548        .75226E-07   -.31444E-04
   9  norm          .10000E-03    .74125       -.25379E-06** at limit **
  10  Prefactor     54.277        34.110       -.76338E-06   -.29177E-05
  11  norm          .10000E-03    6.7405        .15945E-07** at limit **
  12  norm          .10000E-03    3.8959        .27300E-07** at limit **
  13  Prefactor     51.204        66.668        .25523E-04    .89482E-05
  14  norm          14.081        13.740        .86002E-08   -.29418E-04
  15  Prefactor     39.586        52.319       -.34835E-05   -.39701E-05
  16  norm          3.0371        25.411        .59455E-06   -.51609E-04
  17  Prefactor     1.0963        1.1810        .15084E-07   -.65046E-03
  18  Normalizat    1.0954        .30143       -.41583E-05    .13244E-04
  19  Prefactor     .86815        .87841E-01    .25224E-06   -.23386E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 17.2907
  Prefactor  = 42.8164
  norm       = 0.0001
  Prefactor  = 10.8424
  norm       = 0.0001
  Prefactor  = 54.2775
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 51.2038
  norm       = 14.0815
  Prefactor  = 39.5865
  norm       = 3.03711
  Prefactor  = 1.09629
  Normalizat = 1.09545
  Prefactor  = 0.868153
 **********
 **   18 **HESSE 
 **********

 FCN=   6781.390     FROM HESSE     STATUS=OK           266 CALLS     2292 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.1079        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .97876        .79449E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.1899        .32313E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    701.01        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     17.291        13.478        .96311E-04   -1.4876    
   6  Prefactor     42.816        46.174        .61271E-04   -1.4398    
   7  norm          .10000E-03    84.005        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     10.842        8.5587        .12168E-03   -1.5049    
   9  norm          .10000E-03    1.8192        .13659E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     54.277        34.106        .54445E-04   -1.4233    
  11  norm          .10000E-03    58.670        .41041E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    3.9000        .15874E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     51.204        66.963        .56112E-04   -1.4276    
  14  norm          14.081        13.739        .53374E-03   -1.4957    
  15  Prefactor     39.586        53.643        .63729E-04   -1.4449    
  16  norm          3.0371        25.695        .11645E-02   -1.5359    
  17  Prefactor     1.0963        14.698        .22707E-02   -1.5499    
  18  Normalizat    1.0954        .34427        .43804E-03   -.89898    
  19  Prefactor     .86815        .99916E-01    .14885E-03   -.97263    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.53694e-09
Minuit parameter uncertainties:
  1  3.4959e-06
  2  6.85356e-07
  3  1.39301e-05
  4  0.00193559
  5  13.48
  6  46.2129
  7  2.36689e-05
  8  8.55968
  9  2.86755e-05
  10  34.1187
  11  0.000248766
  12  4.3384e-06
  13  67.0614
  14  13.7426
  15  53.7085
  16  17.6778
  17  8.03044
  18  0.344973
  19  0.0999371
Done.

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

Extracting fit parameters...

4FGL J1957.1-3231
   Spectrum: PowerLaw
458    Prefactor:  1.084e+01  8.560e+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:  8.682e-01  9.994e-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.095e+00  3.450e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.02
Ra Dec: 299.286 -32.525
Photon Index (Fixed Index): 2.58 +/- 0.00
Photon Flux (Fixed Index): 1.22e-07 +/- 9.59e-08
Energy Flux (Fixed Index): 3.25e-05 +/- 2.57e-05

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

Saving results to:
/scratch/kocevski/404092/likelihoodResults_377481601_377740801_4FGL_J1957.1-3231_daily_bin533.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): 0
logL (Free Index) = 6781.38080681
delta logL = 0.00934739042532

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6781.36521876
delta logL = 0.0249354416846

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.4353       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8214       1.0000          .0000       10.000    
     3 'Normalizat'    1.0753       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87328       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=   6781.365     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      288 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.4311        26.287        .13803E-03   -.44684E-03
   2  Index         2.8214        2.2533        .79322E-02   -.53684E-04
   3  Normalizat    1.0750        .36623        .44159E-03    .48313E-03
   4  Prefactor     .87337        .11121        .14845E-03    .21879E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.43105
  Index      = 2.82137
  Normalizat = 1.07505
  Prefactor  = 0.873369
 **********
 **   18 **HESSE 
 **********

 FCN=   6781.365     FROM HESSE     STATUS=OK            25 CALLS      313 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.4311        14.599        .55211E-05   -1.5127    
   2  Index         2.8214        1.2881        .31729E-03   -.45084    
   3  Normalizat    1.0750        .33772        .88319E-04   -.90557    
   4  Prefactor     .87337        .10236        .29691E-04   -.97078    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.44691e-09
Minuit parameter uncertainties:
  1  14.605
  2  1.30638
  3  0.338403
  4  0.102381
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/404092': 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) = 6781.36521806
delta logL = 0.0249361458618

Extracting fit parameters...

4FGL J1957.1-3231
   Spectrum: PowerLaw
458    Prefactor:  8.431e+00  1.461e+01  1.000e-04  1.000e+04 ( 1.000e-12)
459        Index:  2.821e+00  1.306e+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:  8.734e-01  1.024e-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.075e+00  3.384e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.10
Ra Dec: 299.286 -32.525
Photon Index (Free Index): 2.82 +/- 1.31
Photon Flux (Free Index): 1.33e-07 +/- 1.13e-07
Energy Flux (Free Index): 2.95e-05 +/- 2.69e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/404092/cmap_HighResolution_377481601_377740801_4FGL_J1957.1-3231_daily_bin533.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.38e-02', comment='SUCCESS', photon_flux='1.22e-07', energy_flux2='2.95e-05', photon_flux_error='9.59e-08', dlogl='2.49e-02', energy_flux='3.25e-05', photon_flux2='1.33e-07', job_status='DONE', time_completed='2021-09-23 23:48:23.327501', photon_index_error2='1.31', photon_index2='2.82', ts='2.02', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='3.04e-07', energy_flux_error2='2.69e-05', EG='1.10', time_epoch_completed='1632466103.33', return_code='0', job_id='404092', GAL2='0.87', EG2='1.08', return_code2='0', energy_flux_error='2.57e-05', photon_flux_error2='1.13e-07', ts2='2.10', photon_index='2.58' WHERE bin_id='533' AND source_name='4FGL J1957.1-3231' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 23 23:48:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0235>
Subject: Job 404092: <4FGL_J1957.1-3231_daily_bin533> in cluster <slac> Done

Job <4FGL_J1957.1-3231_daily_bin533> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Sep 23 23:36:34 2021
Job was executed on host(s) <bullet0235>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 23 23:36:37 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:36:37 2021
Terminated at Thu Sep 23 23:48:24 2021
Results reported at Thu Sep 23 23:48:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1957.1-3231_daily_bin533 299.286 -32.5246 377481601 377740801 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 :                                   690.35 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             341.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   706 sec.
    Turnaround time :                            710 sec.

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

