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


Performing analysis on: 4FGL_J1957.1-3231_daily_bin1608
RA = 299.286, Dec = -32.5246
tmin = 656121601, tmax = 656380801
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='450971', job_status='RUN', time_executed='2021-12-08 06:22:53.784470', time_epoch_executed='1638973373.78' WHERE source_name='4FGL J1957.1-3231' and cadence='daily' and bin_id='1608'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/450971

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/450971/ft1_4FGL_J1957.1-3231_daily_bin1608.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/450971/ft2_4FGL_J1957.1-3231_daily_bin1608.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/450971/ft1_4FGL_J1957.1-3231_daily_bin1608.fits outfile=/scratch/kocevski/450971/ft1_filteredMKT_4FGL_J1957.1-3231_daily_bin1608.fits ra=299.286 dec=-32.5246 rad=12.0 tmin=656121601.0 tmax=656380801.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.53
user 3.27
sys 0.22

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/450971/ft1_filtered_4FGL_J1957.1-3231_daily_bin1608.fits" evtable="EVENTS" scfile=/scratch/kocevski/450971/ft2_4FGL_J1957.1-3231_daily_bin1608.fits sctable="SC_DATA" outfile=/scratch/kocevski/450971/ltcube_656121601_656380801_4FGL_J1957.1-3231_daily_bin1608.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/450971/ft2_4FGL_J1957.1-3231_daily_bin1608.fits
.....................!
real 13.23
user 12.62
sys 0.41

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/450971/ft1_filtered_4FGL_J1957.1-3231_daily_bin1608.fits evtable="EVENTS" scfile=/scratch/kocevski/450971/ft2_4FGL_J1957.1-3231_daily_bin1608.fits sctable="SC_DATA" expcube=/scratch/kocevski/450971/ltcube_656121601_656380801_4FGL_J1957.1-3231_daily_bin1608.fits outfile=/scratch/kocevski/450971/expmap_656121601_656380801_4FGL_J1957.1-3231_daily_bin1608.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/450971/ltcube_656121601_656380801_4FGL_J1957.1-3231_daily_bin1608.fits
.....................!
real 194.58
user 188.77
sys 5.15

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/450971/ft1_filtered_4FGL_J1957.1-3231_daily_bin1608.fits scfile=/scratch/kocevski/450971/ft2_4FGL_J1957.1-3231_daily_bin1608.fits outfile=/scratch/kocevski/450971/cmap_656121601_656380801_4FGL_J1957.1-3231_daily_bin1608.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/450971/ft1_filtered_4FGL_J1957.1-3231_daily_bin1608.fits scfile=/scratch/kocevski/450971/ft2_4FGL_J1957.1-3231_daily_bin1608.fits outfile=/scratch/kocevski/450971/cmap_HighResolution_656121601_656380801_4FGL_J1957.1-3231_daily_bin1608.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=299.286 yref=-32.5246 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .39983E-02   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.1501       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.2769       1.0000         .10000E-03   10000.    
     6 'Prefactor '    46.967       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .15564       1.0000         .10000E-03   10000.    
     9 'norm      '    4.7109       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10520E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    113.69       1.0000         .10000E-03   10000.    
    16 'norm      '    7.4634       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.3368       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.5493       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .94655       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=   8244.734     FROM MIGRAD    STATUS=CONVERGED    376 CALLS     1880 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10011E-03    5.5157        .31235E-06** at limit **
   2  norm          .10000E-03    .88413        .31866E-07** at limit **
   3  Prefactor     6.1497        6.6677        .18258E-06   -.15057E-03
   4  Prefactor     .10000E-03    32.761        .13040E-04** at limit **
   5  Prefactor     9.2749        12.724       -.96387E-06   -.17048E-04
   6  Prefactor     46.964        40.862       -.38701E-05    .36986E-05
   7  norm          .10000E-03    6.4958        .63629E-07** at limit **
   8  Prefactor     .13378        5.3842       -.30082E-05    .10676E-02
   9  norm          4.7109        1.8870       -.91889E-07    .35231E-03
  10  Prefactor     .10000E-03    30.981        .28979E-05** at limit **
  11  norm          .10000E-03    19.004        .11515E-05** at limit **
  12  norm          .10000E-03    4.8976        .63497E-08** at limit **
  13  Prefactor     .10000E-03    28.501       -.14309E-04** at limit **
  14  norm          .10000E-03    9.1995        .20153E-06** at limit **
  15  Prefactor     113.66        75.405       -.20163E-04    .41588E-04
  16  norm          7.4627        22.613       -.29567E-05   -.17438E-04
  17  Prefactor     7.3347        7.6445        .20646E-05    .12875E-04
  18  Normalizat    1.5499        .32462        .41740E-05    .22305E-03
  19  Prefactor     .94641        .92541E-01   -.13402E-06    .79886E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100107
  norm       = 0.0001
  Prefactor  = 6.14974
  Prefactor  = 0.0001
  Prefactor  = 9.27494
  Prefactor  = 46.9636
  norm       = 0.0001
  Prefactor  = 0.133783
  norm       = 4.71086
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 113.662
  norm       = 7.46266
  Prefactor  = 7.33474
  Normalizat = 1.54986
  Prefactor  = 0.946409
 **********
 **   18 **HESSE 
 **********

 FCN=   8244.734     FROM HESSE     STATUS=OK           276 CALLS     2156 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10011E-03    55.525        .40941E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .88574        .83376E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.1497        6.6634        .16188E-03   -1.5212    
   4  Prefactor     .10000E-03    32.776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.2749        12.729        .13158E-03   -1.5099    
   6  Prefactor     46.964        40.887        .58507E-04   -1.4336    
   7  norm          .10000E-03    6.4961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .13378        6.7201        .57905E-01   -1.5635    
   9  norm          4.7109        1.8881        .74116E-04   -1.5274    
  10  Prefactor     .10000E-03    31.100        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    19.415        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    4.9039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    28.555        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    9.2462        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     113.66        75.640        .18865E-03   -1.3572    
  16  norm          7.4627        22.622        .14680E-03   -1.5162    
  17  Prefactor     7.3347        7.6441        .14808E-03   -1.5166    
  18  Normalizat    1.5499        .38299        .45405E-03   -.76387    
  19  Prefactor     .94641        .10912        .16547E-03   -.94538    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.56384e-09
Minuit parameter uncertainties:
  1  0.00487062
  2  6.3627e-07
  3  6.66422
  4  1.85664e-05
  5  12.7331
  6  40.9112
  7  1.78281e-07
  8  1.89586
  9  1.88816
  10  3.7134e-05
  11  8.2562e-05
  12  7.13185e-07
  13  8.28497e-06
  14  3.50116e-05
  15  75.7048
  16  22.6479
  17  7.64511
  18  0.383713
  19  0.10915
Done.

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

Extracting fit parameters...

4FGL J1957.1-3231
   Spectrum: PowerLaw
458    Prefactor:  1.338e-01  1.896e+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:  9.464e-01  1.091e-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.550e+00  3.837e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/450971/likelihoodResults_656121601_656380801_4FGL_J1957.1-3231_daily_bin1608.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) = 8244.73343684
delta logL = 6.59318957332e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8244.72604898
delta logL = 0.00745379660839

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .48368       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0415       1.0000          .0000       10.000    
     3 'Normalizat'    1.5436       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94675       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=   8244.726     FROM MIGRAD    STATUS=CONVERGED     70 CALLS      273 TOTAL
                     EDM=   .87E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .49250        7.1223        .71555E-01    .65902E-03
   2  Index         3.0341        1.3189        .50000        .19715E-04
   3  Normalizat    1.5429        .16309E-01    .10266        .23759E-04
   4  Prefactor     .94686        .48236E-02    .45598E-01    .34799E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.492499
  Index      = 3.03406
  Normalizat = 1.5429
  Prefactor  = 0.946862
 **********
 **   18 **HESSE 
 **********

 FCN=   8244.726     FROM HESSE     STATUS=OK            35 CALLS      308 TOTAL
                     EDM=   .57E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .49250        21.605        .24052E-02   -1.5568    
   2  Index         3.0341        3.8237        .13109E-01   -.40410    
   3  Normalizat    1.5429        .37080        .45489E-03   -.76580    
   4  Prefactor     .94686        .10813        .16544E-03   -.94522    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.73196e-11
Minuit parameter uncertainties:
  1  6.52578
  2  4.51553
  3  0.371459
  4  0.108156
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/450971': 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) = 8244.72604306
delta logL = 0.0074597154271

Extracting fit parameters...

4FGL J1957.1-3231
   Spectrum: PowerLaw
458    Prefactor:  4.925e-01  6.526e+00  1.000e-04  1.000e+04 ( 1.000e-12)
459        Index:  3.034e+00  4.516e+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:  9.469e-01  1.082e-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.543e+00  3.715e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/450971/cmap_HighResolution_656121601_656380801_4FGL_J1957.1-3231_daily_bin1608.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.46e-02', job_status='DONE', photon_flux_upper_limit='1.86e-07', time_completed='2021-12-08 06:35:38.186904', job_id='450971', GAL2='0.95', fit_tolerance='1e-08', EG2='1.54', EG='1.55', time_epoch_completed='1638974138.19', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='7.46e-03', ts2='0.02', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1608' AND source_name='4FGL J1957.1-3231' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec  8 06:35:38 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0148>
Subject: Job 450971: <4FGL_J1957.1-3231_daily_bin1608> in cluster <slac> Done

Job <4FGL_J1957.1-3231_daily_bin1608> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Dec  8 06:20:27 2021
Job was executed on host(s) <bullet0148>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec  8 06:22:15 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec  8 06:22:15 2021
Terminated at Wed Dec  8 06:35:38 2021
Results reported at Wed Dec  8 06:35:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1957.1-3231_daily_bin1608 299.286 -32.5246 656121601 656380801 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 :                                   762.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             339.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   803 sec.
    Turnaround time :                            911 sec.

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

