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


Performing analysis on: 4FGL_J1957.1-3231_daily_bin1375
RA = 299.286, Dec = -32.5246
tmin = 595728001, tmax = 595987201
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='409125', job_status='RUN', time_executed='2021-09-23 23:52:17.024306', time_epoch_executed='1632466337.02' WHERE source_name='4FGL J1957.1-3231' and cadence='daily' and bin_id='1375'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/409125

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/409125/ft1_4FGL_J1957.1-3231_daily_bin1375.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/409125/ft2_4FGL_J1957.1-3231_daily_bin1375.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/409125/ft1_4FGL_J1957.1-3231_daily_bin1375.fits outfile=/scratch/kocevski/409125/ft1_filteredMKT_4FGL_J1957.1-3231_daily_bin1375.fits ra=299.286 dec=-32.5246 rad=12.0 tmin=595728001.0 tmax=595987201.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.58
user 2.39
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/409125/ft1_filtered_4FGL_J1957.1-3231_daily_bin1375.fits" evtable="EVENTS" scfile=/scratch/kocevski/409125/ft2_4FGL_J1957.1-3231_daily_bin1375.fits sctable="SC_DATA" outfile=/scratch/kocevski/409125/ltcube_595728001_595987201_4FGL_J1957.1-3231_daily_bin1375.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/409125/ft2_4FGL_J1957.1-3231_daily_bin1375.fits
.....................!
real 12.31
user 11.93
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/409125/ft1_filtered_4FGL_J1957.1-3231_daily_bin1375.fits evtable="EVENTS" scfile=/scratch/kocevski/409125/ft2_4FGL_J1957.1-3231_daily_bin1375.fits sctable="SC_DATA" expcube=/scratch/kocevski/409125/ltcube_595728001_595987201_4FGL_J1957.1-3231_daily_bin1375.fits outfile=/scratch/kocevski/409125/expmap_595728001_595987201_4FGL_J1957.1-3231_daily_bin1375.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/409125/ltcube_595728001_595987201_4FGL_J1957.1-3231_daily_bin1375.fits
.....................!
real 190.31
user 185.25
sys 4.75

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/409125/ft1_filtered_4FGL_J1957.1-3231_daily_bin1375.fits scfile=/scratch/kocevski/409125/ft2_4FGL_J1957.1-3231_daily_bin1375.fits outfile=/scratch/kocevski/409125/cmap_595728001_595987201_4FGL_J1957.1-3231_daily_bin1375.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/409125/ft1_filtered_4FGL_J1957.1-3231_daily_bin1375.fits scfile=/scratch/kocevski/409125/ft2_4FGL_J1957.1-3231_daily_bin1375.fits outfile=/scratch/kocevski/409125/cmap_HighResolution_595728001_595987201_4FGL_J1957.1-3231_daily_bin1375.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/409125/ft1_filtered_4FGL_J1957.1-3231_daily_bin1375.fits evtable="EVENTS" scfile=/scratch/kocevski/409125/ft2_4FGL_J1957.1-3231_daily_bin1375.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/409125/Model_4FGL_J1957.1-3231_daily_bin1375.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/409125/ft1_filtered_4FGL_J1957.1-3231_daily_bin1375.fits.....................!
real 97.21
user 95.91
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.6800       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.534       1.0000         .10000E-03   10000.    
     6 'Prefactor '    21.563       1.0000         .10000E-03   10000.    
     7 'norm      '    3.7883       1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.3874       1.0000         .10000E-03   10000.    
     9 'norm      '    .74935       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .80121       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    10.796       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    15.686       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.4484       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .97456       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=   11696.67     FROM MIGRAD    STATUS=CONVERGED    374 CALLS     1632 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.0978       -.85654E-08** at limit **
   2  norm          .10000E-03    1.8516        .62088E-08** at limit **
   3  Prefactor     4.6798        4.6267        .46045E-06    .18757E-03
   4  Prefactor     .10005E-03    48.450       -.94676E-05** at limit **
   5  Prefactor     14.535        11.609       -.45966E-06   -.23043E-03
   6  Prefactor     21.561        24.802       -.35890E-06   -.72555E-04
   7  norm          3.7865        13.930        .68913E-05   -.36047E-03
   8  Prefactor     9.3872        5.7548        .19250E-06    .87016E-04
   9  norm          .74835        .97893        .15374E-06   -.56274E-03
  10  Prefactor     .10000E-03    11.602       -.16160E-06** at limit **
  11  norm          .79387        5.4813        .18178E-05   -.83493E-03
  12  norm          .10000E-03    3.7884       -.13257E-08** at limit **
  13  Prefactor     .10004E-03    46.273        .85993E-05** at limit **
  14  norm          10.795        10.097        .27450E-06    .69826E-04
  15  Prefactor     .10000E-03    8.2431       -.47911E-07** at limit **
  16  norm          15.686        15.540        .10794E-07   -.16116E-04
  17  Prefactor     .10000E-03    1.5284       -.15461E-07** at limit **
  18  Normalizat    1.4486        .24871       -.19604E-06   -.16652E-03
  19  Prefactor     .97451        .74334E-01   -.17518E-06   -.27566E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 4.67982
  Prefactor  = 0.000100052
  Prefactor  = 14.5347
  Prefactor  = 21.5613
  norm       = 3.7865
  Prefactor  = 9.38717
  norm       = 0.748353
  Prefactor  = 0.0001
  norm       = 0.793873
  norm       = 0.0001
  Prefactor  = 0.000100042
  norm       = 10.7951
  Prefactor  = 0.0001
  norm       = 15.6856
  Prefactor  = 0.0001
  Normalizat = 1.44864
  Prefactor  = 0.974506
 **********
 **   18 **HESSE 
 **********

 FCN=   11696.67     FROM HESSE     STATUS=OK           272 CALLS     1904 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.1106        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.9139        .28735E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.6798        4.6247        .18602E-03   -1.5275    
   4  Prefactor     .10005E-03    53.380        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     14.535        11.591        .10506E-03   -1.4945    
   6  Prefactor     21.561        24.831        .86257E-04   -1.4779    
   7  norm          3.7865        15.422        .10370E-02   -1.5319    
   8  Prefactor     9.3872        5.7607        .13080E-03   -1.5095    
   9  norm          .74835        .87223        .11513E-02   -1.5535    
  10  Prefactor     .10000E-03    11.621        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .79387        41.169        .45357E-02   -1.5530    
  12  norm          .10000E-03    3.7970        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10004E-03    50.303        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          10.795        10.108        .12194E-03   -1.5051    
  15  Prefactor     .10000E-03    8.2448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          15.686        15.539        .10113E-03   -1.4916    
  17  Prefactor     .10000E-03    1.5387        .13056E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.4486        .29122        .43258E-03   -.79232    
  19  Prefactor     .97451        .87838E-01    .15912E-03   -.93584    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.87347e-08
Minuit parameter uncertainties:
  1  1.3133e-07
  2  1.1071e-06
  3  4.62501
  4  0.00332166
  5  11.5932
  6  24.8433
  7  15.29
  8  5.76107
  9  0.872245
  10  2.89538e-05
  11  11.4414
  12  2.83081e-07
  13  0.00289271
  14  10.11
  15  6.96387e-06
  16  15.5435
  17  9.0033e-07
  18  0.291551
  19  0.0878512
Done.

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

Extracting fit parameters...

4FGL J1957.1-3231
   Spectrum: PowerLaw
458    Prefactor:  9.387e+00  5.761e+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.745e-01  8.785e-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.449e+00  2.916e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.74
Ra Dec: 299.286 -32.525
Photon Index (Fixed Index): 2.58 +/- 0.00
Photon Flux (Fixed Index): 1.05e-07 +/- 6.46e-08
Energy Flux (Fixed Index): 2.82e-05 +/- 1.73e-05

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

Saving results to:
/scratch/kocevski/409125/likelihoodResults_595728001_595987201_4FGL_J1957.1-3231_daily_bin1375.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) = 11695.7696409
delta logL = 0.900927009048

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11695.7385614
delta logL = 0.932006512196

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.2939       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5948       1.0000          .0000       10.000    
     3 'Normalizat'    1.3645       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99136       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=   11695.74     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      256 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2831        20.156        .55771E-02    .79690E-03
   2  Index         3.5971        2.4056        .14763        .23075E-03
   3  Normalizat    1.3643        .83631E-01    .10001        .27648E-04
   4  Prefactor     .99142        .24853E-01    .46159E-01   -.49612E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.28308
  Index      = 3.59706
  Normalizat = 1.36434
  Prefactor  = 0.991424
 **********
 **   18 **HESSE 
 **********

 FCN=   11695.74     FROM HESSE     STATUS=OK            33 CALLS      289 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.2831        10.217        .90356E-04   -1.5346    
   2  Index         3.5971        1.9237        .52717E-02   -.28441    
   3  Normalizat    1.3643        .29493        .44310E-03   -.81666    
   4  Prefactor     .99142        .90279E-01    .15784E-03   -.93016    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.45421e-07
Minuit parameter uncertainties:
  1  10.222
  2  1.97934
  3  0.295295
  4  0.0902924
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/409125': 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) = 11695.7385577
delta logL = 0.932010152204

Extracting fit parameters...

4FGL J1957.1-3231
   Spectrum: PowerLaw
458    Prefactor:  3.283e+00  1.022e+01  1.000e-04  1.000e+04 ( 1.000e-12)
459        Index:  3.597e+00  1.979e+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.914e-01  9.029e-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.364e+00  2.953e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.78
Ra Dec: 299.286 -32.525
Photon Index (Free Index): 3.60 +/- 1.98
Photon Flux (Free Index): 1.73e-07 +/- 8.86e-08
Energy Flux (Free Index): 2.81e-05 +/- 1.69e-05

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.79e-02', comment='SUCCESS', photon_flux='1.05e-07', energy_flux2='2.81e-05', photon_flux_error='6.46e-08', dlogl='9.32e-01', energy_flux='2.82e-05', photon_flux2='1.73e-07', job_status='DONE', time_completed='2021-09-24 00:07:27.103691', photon_index_error2='1.98', photon_index2='3.60', ts='3.74', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='2.29e-07', energy_flux_error2='1.69e-05', EG='1.45', time_epoch_completed='1632467247.1', return_code='0', job_id='409125', GAL2='0.99', EG2='1.36', return_code2='0', energy_flux_error='1.73e-05', photon_flux_error2='8.86e-08', ts2='5.78', photon_index='2.58' WHERE bin_id='1375' AND source_name='4FGL J1957.1-3231' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 24 00:07:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0279>
Subject: Job 409125: <4FGL_J1957.1-3231_daily_bin1375> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1957.1-3231_daily_bin1375 299.286 -32.5246 595728001 595987201 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 :                                   908.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             345.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   925 sec.
    Turnaround time :                            927 sec.

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

