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


Performing analysis on: 4FGL_J1957.1-3231_daily_bin1564
RA = 299.286, Dec = -32.5246
tmin = 644716801, tmax = 644976001
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='410664', job_status='RUN', time_executed='2021-09-23 23:57:58.099454', time_epoch_executed='1632466678.1' WHERE source_name='4FGL J1957.1-3231' and cadence='daily' and bin_id='1564'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/410664

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/410664/ft1_4FGL_J1957.1-3231_daily_bin1564.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/410664/ft2_4FGL_J1957.1-3231_daily_bin1564.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/410664/ft1_4FGL_J1957.1-3231_daily_bin1564.fits outfile=/scratch/kocevski/410664/ft1_filteredMKT_4FGL_J1957.1-3231_daily_bin1564.fits ra=299.286 dec=-32.5246 rad=12.0 tmin=644716801.0 tmax=644976001.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.88
user 2.63
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/410664/ft2_4FGL_J1957.1-3231_daily_bin1564.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/410664/ft1_filteredMKT_4FGL_J1957.1-3231_daily_bin1564.fits evtable="EVENTS" outfile="/scratch/kocevski/410664/ft1_filtered_4FGL_J1957.1-3231_daily_bin1564.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.62
user 0.34
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/410664/ft1_filtered_4FGL_J1957.1-3231_daily_bin1564.fits" evtable="EVENTS" scfile=/scratch/kocevski/410664/ft2_4FGL_J1957.1-3231_daily_bin1564.fits sctable="SC_DATA" outfile=/scratch/kocevski/410664/ltcube_644716801_644976001_4FGL_J1957.1-3231_daily_bin1564.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/410664/ft2_4FGL_J1957.1-3231_daily_bin1564.fits
.....................!
real 12.74
user 12.35
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/410664/ft1_filtered_4FGL_J1957.1-3231_daily_bin1564.fits evtable="EVENTS" scfile=/scratch/kocevski/410664/ft2_4FGL_J1957.1-3231_daily_bin1564.fits sctable="SC_DATA" expcube=/scratch/kocevski/410664/ltcube_644716801_644976001_4FGL_J1957.1-3231_daily_bin1564.fits outfile=/scratch/kocevski/410664/expmap_644716801_644976001_4FGL_J1957.1-3231_daily_bin1564.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/410664/ltcube_644716801_644976001_4FGL_J1957.1-3231_daily_bin1564.fits
.....................!
real 191.64
user 185.42
sys 4.95

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/410664/ft1_filtered_4FGL_J1957.1-3231_daily_bin1564.fits scfile=/scratch/kocevski/410664/ft2_4FGL_J1957.1-3231_daily_bin1564.fits outfile=/scratch/kocevski/410664/cmap_644716801_644976001_4FGL_J1957.1-3231_daily_bin1564.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.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/410664/ft1_filtered_4FGL_J1957.1-3231_daily_bin1564.fits scfile=/scratch/kocevski/410664/ft2_4FGL_J1957.1-3231_daily_bin1564.fits outfile=/scratch/kocevski/410664/cmap_HighResolution_644716801_644976001_4FGL_J1957.1-3231_daily_bin1564.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.56
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/410664/ft1_filtered_4FGL_J1957.1-3231_daily_bin1564.fits evtable="EVENTS" scfile=/scratch/kocevski/410664/ft2_4FGL_J1957.1-3231_daily_bin1564.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/410664/Model_4FGL_J1957.1-3231_daily_bin1564.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/410664/ft1_filtered_4FGL_J1957.1-3231_daily_bin1564.fits.....................!
real 58.41
user 56.97
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    10.501       1.0000         .10000E-03   10000.    
     3 'Prefactor '    21.397       1.0000         .10000E-03   10000.    
     4 'Prefactor '    31.512       1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.6669       1.0000         .10000E-03   10000.    
     6 'Prefactor '    34.579       1.0000         .10000E-03   10000.    
     7 'norm      '    78.415       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .68106       1.0000         .10000E-03   10000.    
     9 'norm      '    3.1001       1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.960       1.0000         .10000E-03   10000.    
    11 'norm      '    6.6356       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .91179E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .96103       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0400       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=   6587.291     FROM MIGRAD    STATUS=CONVERGED    370 CALLS     1860 TOTAL
                     EDM=   .61E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.6180        .10982E-06** at limit **
   2  norm          10.503        8.8013        .13578E-06   -.16329E-05
   3  Prefactor     21.399        10.492        .15859E-06   -.33632E-04
   4  Prefactor     31.555        152.02        .19493E-05    .44082E-05
   5  Prefactor     8.6608        18.630        .16780E-06   -.15665E-04
   6  Prefactor     34.543        62.228        .38515E-06   -.33860E-04
   7  norm          78.426        47.986        .53196E-07    .20246E-04
   8  Prefactor     .66159        3.2786        .78580E-06   -.22078E-03
   9  norm          3.0998        1.5842       -.16011E-06   -.81515E-04
  10  Prefactor     10.964        18.119        .42388E-07   -.11251E-04
  11  norm          6.6258        12.505        .43509E-05   -.12163E-04
  12  norm          .10000E-03    8.6600        .29442E-07** at limit **
  13  Prefactor     .10001E-03    280.70       -.70719E-05** at limit **
  14  norm          .10000E-03    5.8275        .95416E-07** at limit **
  15  Prefactor     .10000E-03    31.408        .25766E-06** at limit **
  16  norm          .10000E-03    20.428       -.38097E-07** at limit **
  17  Prefactor     .10000E-03    3.4872        .17395E-06** at limit **
  18  Normalizat    .96113        .29614       -.36615E-05   -.64255E-04
  19  Prefactor     1.0400        .10303       -.16839E-06   -.26364E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 10.5027
  Prefactor  = 21.3991
  Prefactor  = 31.5553
  Prefactor  = 8.66076
  Prefactor  = 34.5426
  norm       = 78.4259
  Prefactor  = 0.661589
  norm       = 3.09978
  Prefactor  = 10.9642
  norm       = 6.62584
  norm       = 0.0001
  Prefactor  = 0.000100006
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.96113
  Prefactor  = 1.03997
 **********
 **   18 **HESSE 
 **********

 FCN=   6587.291     FROM HESSE     STATUS=OK           266 CALLS     2126 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.6259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          10.503        8.8219        .12364E-03   -1.5060    
   3  Prefactor     21.399        10.500        .86590E-04   -1.4782    
   4  Prefactor     31.555        152.12        .71378E-04   -1.4584    
   5  Prefactor     8.6608        18.603        .13616E-03   -1.5119    
   6  Prefactor     34.543        62.483        .68148E-04   -1.4532    
   7  norm          78.426        48.017        .22675E-03   -1.3934    
   8  Prefactor     .66159        12.949        .27315E-02   -1.5545    
   9  norm          3.0998        1.5796        .69383E-04   -1.5356    
  10  Prefactor     10.964        18.120        .12102E-03   -1.5046    
  11  norm          6.6258        12.496        .77890E-03   -1.5193    
  12  norm          .10000E-03    8.6873        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    284.40        .20822E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    5.8566        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    31.455        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    20.688        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.5286        .14808E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .96113        .33004        .47249E-03   -.94344    
  19  Prefactor     1.0400        .11807        .15727E-03   -.91409    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.66658e-10
Minuit parameter uncertainties:
  1  1.33667e-06
  2  8.82296
  3  10.5008
  4  139.142
  5  18.6149
  6  62.6018
  7  48.0406
  8  5.85498
  9  1.5796
  10  18.1286
  11  12.5007
  12  2.13408e-05
  13  0.00268852
  14  1.56994e-05
  15  9.06173e-05
  16  6.50807e-06
  17  1.5981e-05
  18  0.330736
  19  0.118098
Done.

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

Extracting fit parameters...

4FGL J1957.1-3231
   Spectrum: PowerLaw
458    Prefactor:  6.616e-01  5.855e+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.040e+00  1.181e-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:  9.611e-01  3.307e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/410664/likelihoodResults_644716801_644976001_4FGL_J1957.1-3231_daily_bin1564.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) = 6587.28454392
delta logL = 0.00682707403666

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6587.2800975
delta logL = 0.0112734985423

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3424       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2977       1.0000          .0000       10.000    
     3 'Normalizat'    .96265       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0386       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6587.280     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      277 TOTAL
                     EDM=   .41E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3424        10.982        .18909E-02   -.91422E-04
   2  Index         2.2978        1.5858        .12201E-01    .18347E-05
   3  Normalizat    .96264        .32664        .47215E-03    .28172E-05
   4  Prefactor     1.0386        .11476        .15736E-03    .88865E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.34238
  Index      = 2.29779
  Normalizat = 0.962639
  Prefactor  = 1.03861
 **********
 **   18 **HESSE 
 **********

 FCN=   6587.280     FROM HESSE     STATUS=OK            27 CALLS      304 TOTAL
                     EDM=   .61E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3424        10.156        .75637E-04   -1.5476    
   2  Index         2.2978        1.5302        .48803E-03   -.57096    
   3  Normalizat    .96264        .32678        .18886E-04   -.94293    
   4  Prefactor     1.0386        .11470        .62943E-05   -.91453    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.1043e-11
Minuit parameter uncertainties:
  1  7.38619
  2  1.56616
  3  0.32746
  4  0.114727
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/410664': 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) = 6587.2800975
delta logL = 0.0112735015509

Extracting fit parameters...

4FGL J1957.1-3231
   Spectrum: PowerLaw
458    Prefactor:  1.342e+00  7.386e+00  1.000e-04  1.000e+04 ( 1.000e-12)
459        Index:  2.298e+00  1.566e+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.039e+00  1.147e-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:  9.626e-01  3.275e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
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/410664/cmap_HighResolution_644716801_644976001_4FGL_J1957.1-3231_daily_bin1564.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.32e-02', job_status='DONE', photon_flux_upper_limit='1.69e-07', time_completed='2021-09-24 00:08:59.612652', job_id='410664', GAL2='1.04', fit_tolerance='1e-08', EG2='0.96', EG='0.96', time_epoch_completed='1632467339.61', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='1.13e-02', ts2='0.04', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1564' AND source_name='4FGL J1957.1-3231' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 24 00:08:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 410664: <4FGL_J1957.1-3231_daily_bin1564> in cluster <slac> Done

Job <4FGL_J1957.1-3231_daily_bin1564> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 23 23:57:20 2021
Job was executed on host(s) <bullet0054>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 23 23:57:22 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:57:22 2021
Terminated at Fri Sep 24 00:09:00 2021
Results reported at Fri Sep 24 00:09:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1957.1-3231_daily_bin1564 299.286 -32.5246 644716801 644976001 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 :                                   658.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             336.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   697 sec.
    Turnaround time :                            700 sec.

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

