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


Performing analysis on: 4FGL_J1957.1-3231_daily_bin1225
RA = 299.286, Dec = -32.5246
tmin = 556848001, tmax = 557107201
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='407342', job_status='RUN', time_executed='2021-09-23 23:48:47.937355', time_epoch_executed='1632466127.94' WHERE source_name='4FGL J1957.1-3231' and cadence='daily' and bin_id='1225'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/407342

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/407342/ft1_4FGL_J1957.1-3231_daily_bin1225.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/407342/ft2_4FGL_J1957.1-3231_daily_bin1225.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/407342/ft1_4FGL_J1957.1-3231_daily_bin1225.fits outfile=/scratch/kocevski/407342/ft1_filteredMKT_4FGL_J1957.1-3231_daily_bin1225.fits ra=299.286 dec=-32.5246 rad=12.0 tmin=556848001.0 tmax=557107201.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.75
user 3.47
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/407342/ft1_filtered_4FGL_J1957.1-3231_daily_bin1225.fits" evtable="EVENTS" scfile=/scratch/kocevski/407342/ft2_4FGL_J1957.1-3231_daily_bin1225.fits sctable="SC_DATA" outfile=/scratch/kocevski/407342/ltcube_556848001_557107201_4FGL_J1957.1-3231_daily_bin1225.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/407342/ft2_4FGL_J1957.1-3231_daily_bin1225.fits
.....................!
real 12.41
user 11.99
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/407342/ft1_filtered_4FGL_J1957.1-3231_daily_bin1225.fits evtable="EVENTS" scfile=/scratch/kocevski/407342/ft2_4FGL_J1957.1-3231_daily_bin1225.fits sctable="SC_DATA" expcube=/scratch/kocevski/407342/ltcube_556848001_557107201_4FGL_J1957.1-3231_daily_bin1225.fits outfile=/scratch/kocevski/407342/expmap_556848001_557107201_4FGL_J1957.1-3231_daily_bin1225.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/407342/ltcube_556848001_557107201_4FGL_J1957.1-3231_daily_bin1225.fits
.....................!
real 191.83
user 186.82
sys 4.52

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/407342/ft1_filtered_4FGL_J1957.1-3231_daily_bin1225.fits scfile=/scratch/kocevski/407342/ft2_4FGL_J1957.1-3231_daily_bin1225.fits outfile=/scratch/kocevski/407342/cmap_556848001_557107201_4FGL_J1957.1-3231_daily_bin1225.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.52
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/407342/ft1_filtered_4FGL_J1957.1-3231_daily_bin1225.fits scfile=/scratch/kocevski/407342/ft2_4FGL_J1957.1-3231_daily_bin1225.fits outfile=/scratch/kocevski/407342/cmap_HighResolution_556848001_557107201_4FGL_J1957.1-3231_daily_bin1225.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/407342/ft1_filtered_4FGL_J1957.1-3231_daily_bin1225.fits evtable="EVENTS" scfile=/scratch/kocevski/407342/ft2_4FGL_J1957.1-3231_daily_bin1225.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/407342/Model_4FGL_J1957.1-3231_daily_bin1225.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/407342/ft1_filtered_4FGL_J1957.1-3231_daily_bin1225.fits......................!
real 46.50
user 45.27
sys 1.10

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .48862       1.0000         .10000E-03   10000.    
     2 'norm      '    .10103E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.4254       1.0000         .10000E-03   10000.    
     4 'Prefactor '    58.834       1.0000         .10000E-03   10000.    
     5 'Prefactor '    25.601       1.0000         .10000E-03   10000.    
     6 'Prefactor '    43.096       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.562       1.0000         .10000E-03   10000.    
     9 'norm      '    .29027       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10400E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10073E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    68.556       1.0000         .10000E-03   10000.    
    14 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10383E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    24.291       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.1157       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .99994       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=   4142.313     FROM MIGRAD    STATUS=CONVERGED    384 CALLS     1933 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .48142        6.5313       -.60454E-06    .20557E-03
   2  norm          .10000E-03    2.9606        .28519E-06** at limit **
   3  Prefactor     4.4263        8.7319        .79690E-05   -.53191E-03
   4  Prefactor     58.754        114.59       -.12135E-04   -.13953E-03
   5  Prefactor     25.598        18.502        .16413E-06   -.22685E-04
   6  Prefactor     43.098        49.442        .32792E-06    .87875E-05
   7  norm          .10000E-03    8.1244        .92428E-08** at limit **
   8  Prefactor     14.547        13.796        .13064E-05    .23316E-03
   9  norm          .29017        1.2325        .63283E-06    .81458E-04
  10  Prefactor     .10000E-03    153.80        .19318E-05** at limit **
  11  norm          .10000E-03    5.1395        .75824E-07** at limit **
  12  norm          .10000E-03    18.021        .14551E-05** at limit **
  13  Prefactor     68.437        120.86       -.14287E-04   -.19794E-03
  14  norm          .10000E-03    22.723        .32870E-06** at limit **
  15  Prefactor     .10000E-03    154.38        .25255E-08** at limit **
  16  norm          .10000E-03    19.120       -.14371E-05** at limit **
  17  Prefactor     24.278        25.717        .17627E-06    .12087E-04
  18  Normalizat    1.1163        .53777        .47642E-05   -.90848E-04
  19  Prefactor     .99973        .13826       -.23168E-05    .93729E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.481417
  norm       = 0.0001
  Prefactor  = 4.42625
  Prefactor  = 58.754
  Prefactor  = 25.5979
  Prefactor  = 43.0975
  norm       = 0.0001
  Prefactor  = 14.5473
  norm       = 0.290171
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 68.4375
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 24.2784
  Normalizat = 1.11632
  Prefactor  = 0.999735
 **********
 **   18 **HESSE 
 **********

 FCN=   4142.313     FROM HESSE     STATUS=OK           264 CALLS     2197 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .48142        15.874        .31720E-02   -1.5569    
   2  norm          .10000E-03    3.0878        .21624E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.4263        9.0080        .95715E-03   -1.5287    
   4  Prefactor     58.754        116.71        .52305E-04   -1.4173    
   5  Prefactor     25.598        18.545        .79171E-04   -1.4696    
   6  Prefactor     43.098        49.443        .61068E-04   -1.4394    
   7  norm          .10000E-03    8.1243        .17918E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     14.547        13.843        .10496E-03   -1.4945    
   9  norm          .29017        1.1774        .13638E-03   -1.5600    
  10  Prefactor     .10000E-03    154.27        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    5.1467        .14250E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    18.082        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     68.437        126.09        .24239E-03   -1.4052    
  14  norm          .10000E-03    22.857        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    154.60        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    19.157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     24.278        25.751        .81275E-04   -1.4722    
  18  Normalizat    1.1163        .60696        .53346E-03   -.89229    
  19  Prefactor     .99973        .15826        .15409E-03   -.92738    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.65612e-09
Minuit parameter uncertainties:
  1  5.52982
  2  2.02405e-06
  3  9.01074
  4  117.164
  5  18.5496
  6  49.4905
  7  6.53551e-07
  8  13.8461
  9  1.16885
  10  0.000466628
  11  9.85878e-07
  12  0.000138339
  13  126.583
  14  4.68231e-05
  15  0.000212346
  16  0.000175809
  17  25.7628
  18  0.610813
  19  0.158337
Done.

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

Extracting fit parameters...

4FGL J1957.1-3231
   Spectrum: PowerLaw
458    Prefactor:  1.455e+01  1.385e+01  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.997e-01  1.583e-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.116e+00  6.108e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.44
Ra Dec: 299.286 -32.525
Photon Index (Fixed Index): 2.58 +/- 0.00
Photon Flux (Fixed Index): 1.63e-07 +/- 1.55e-07
Energy Flux (Fixed Index): 4.37e-05 +/- 4.16e-05

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

Saving results to:
/scratch/kocevski/407342/likelihoodResults_556848001_557107201_4FGL_J1957.1-3231_daily_bin1225.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) = 4142.30215545
delta logL = 0.01079457369

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4142.29283361
delta logL = 0.0201164097416

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.252       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7681       1.0000          .0000       10.000    
     3 'Normalizat'    1.0896       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0056       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=   4142.293     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      250 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.248        19.883        .11444E-03    .47315E-03
   2  Index         2.7682        1.1370        .71861E-02    .12391E-03
   3  Normalizat    1.0897        .57868        .53906E-03   -.31373E-03
   4  Prefactor     1.0056        .15758        .15371E-03   -.14558E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.2481
  Index      = 2.76821
  Normalizat = 1.08973
  Prefactor  = 1.00557
 **********
 **   18 **HESSE 
 **********

 FCN=   4142.293     FROM HESSE     STATUS=OK            25 CALLS      275 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.248        17.473        .45777E-05   -1.5008    
   2  Index         2.7682        .99950        .28745E-03   -.46269    
   3  Normalizat    1.0897        .57646        .10781E-03   -.90082    
   4  Prefactor     1.0056        .15678        .30743E-04   -.92544    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.93212e-09
Minuit parameter uncertainties:
  1  17.48
  2  1.008
  3  0.579836
  4  0.156854
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/407342': 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) = 4142.29283357
delta logL = 0.0201164552627

Extracting fit parameters...

4FGL J1957.1-3231
   Spectrum: PowerLaw
458    Prefactor:  1.225e+01  1.748e+01  1.000e-04  1.000e+04 ( 1.000e-12)
459        Index:  2.768e+00  1.008e+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.006e+00  1.569e-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.090e+00  5.798e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.49
Ra Dec: 299.286 -32.525
Photon Index (Free Index): 2.77 +/- 1.01
Photon Flux (Free Index): 1.79e-07 +/- 1.79e-07
Energy Flux (Free Index): 4.11e-05 +/- 4.06e-05

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/407342/cmap_HighResolution_556848001_557107201_4FGL_J1957.1-3231_daily_bin1225.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.70e-02', comment='SUCCESS', photon_flux='1.63e-07', energy_flux2='4.11e-05', photon_flux_error='1.55e-07', dlogl='2.01e-02', energy_flux='4.37e-05', photon_flux2='1.79e-07', job_status='DONE', time_completed='2021-09-24 00:00:09.663957', photon_index_error2='1.01', photon_index2='2.77', ts='1.44', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='4.73e-07', energy_flux_error2='4.06e-05', EG='1.12', time_epoch_completed='1632466809.66', return_code='0', job_id='407342', GAL2='1.01', EG2='1.09', return_code2='0', energy_flux_error='4.16e-05', photon_flux_error2='1.79e-07', ts2='1.49', photon_index='2.58' WHERE bin_id='1225' AND source_name='4FGL J1957.1-3231' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 24 00:00:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 407342: <4FGL_J1957.1-3231_daily_bin1225> in cluster <slac> Done

Job <4FGL_J1957.1-3231_daily_bin1225> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep 23 23:47:14 2021
Job was executed on host(s) <bullet0077>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 23 23:47:17 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:47:17 2021
Terminated at Fri Sep 24 00:00:10 2021
Results reported at Fri Sep 24 00:00:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1957.1-3231_daily_bin1225 299.286 -32.5246 556848001 557107201 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 :                                   547.01 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             276.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   772 sec.
    Turnaround time :                            776 sec.

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

