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


Performing analysis on: 4FGL_J1957.1-3231_daily_bin1466
RA = 299.286, Dec = -32.5246
tmin = 619315201, tmax = 619574401
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='409257', job_status='RUN', time_executed='2021-09-23 23:53:43.822375', time_epoch_executed='1632466423.82' WHERE source_name='4FGL J1957.1-3231' and cadence='daily' and bin_id='1466'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/409257

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/409257/ft1_4FGL_J1957.1-3231_daily_bin1466.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/409257/ft2_4FGL_J1957.1-3231_daily_bin1466.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/409257/ft1_4FGL_J1957.1-3231_daily_bin1466.fits outfile=/scratch/kocevski/409257/ft1_filteredMKT_4FGL_J1957.1-3231_daily_bin1466.fits ra=299.286 dec=-32.5246 rad=12.0 tmin=619315201.0 tmax=619574401.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.58
user 3.36
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/409257/ft1_filtered_4FGL_J1957.1-3231_daily_bin1466.fits" evtable="EVENTS" scfile=/scratch/kocevski/409257/ft2_4FGL_J1957.1-3231_daily_bin1466.fits sctable="SC_DATA" outfile=/scratch/kocevski/409257/ltcube_619315201_619574401_4FGL_J1957.1-3231_daily_bin1466.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/409257/ft2_4FGL_J1957.1-3231_daily_bin1466.fits
.....................!
real 11.81
user 11.44
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/409257/ft1_filtered_4FGL_J1957.1-3231_daily_bin1466.fits evtable="EVENTS" scfile=/scratch/kocevski/409257/ft2_4FGL_J1957.1-3231_daily_bin1466.fits sctable="SC_DATA" expcube=/scratch/kocevski/409257/ltcube_619315201_619574401_4FGL_J1957.1-3231_daily_bin1466.fits outfile=/scratch/kocevski/409257/expmap_619315201_619574401_4FGL_J1957.1-3231_daily_bin1466.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/409257/ltcube_619315201_619574401_4FGL_J1957.1-3231_daily_bin1466.fits
.....................!
real 189.77
user 184.50
sys 4.96

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/409257/ft1_filtered_4FGL_J1957.1-3231_daily_bin1466.fits scfile=/scratch/kocevski/409257/ft2_4FGL_J1957.1-3231_daily_bin1466.fits outfile=/scratch/kocevski/409257/cmap_619315201_619574401_4FGL_J1957.1-3231_daily_bin1466.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/409257/ft1_filtered_4FGL_J1957.1-3231_daily_bin1466.fits scfile=/scratch/kocevski/409257/ft2_4FGL_J1957.1-3231_daily_bin1466.fits outfile=/scratch/kocevski/409257/cmap_HighResolution_619315201_619574401_4FGL_J1957.1-3231_daily_bin1466.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.54
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.0781       1.0000         .10000E-03   10000.    
     2 'norm      '    2.0772       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.2225       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    6.8248       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    8.7038       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    36.786       1.0000         .10000E-03   10000.    
    13 'Prefactor '    23.834       1.0000         .10000E-03   10000.    
    14 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    19.666       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.9622       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.4024       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .88488       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=   7998.362     FROM MIGRAD    STATUS=CONVERGED    371 CALLS     1871 TOTAL
                     EDM=   .60E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.0763        8.3690        .41746E-06   -.26046E-04
   2  norm          2.0771        1.7379        .95256E-07    .18598E-03
   3  Prefactor     9.2223        8.1126        .15402E-05   -.16036E-03
   4  Prefactor     .10000E-03    82.489       -.59060E-05** at limit **
   5  Prefactor     .10000E-03    12.358        .30615E-06** at limit **
   6  Prefactor     .10000E-03    14.640        .11740E-05** at limit **
   7  norm          6.8188        24.601       -.24291E-05   -.15993E-04
   8  Prefactor     .10000E-03    2.6476        .55983E-07** at limit **
   9  norm          8.7038        2.0659       -.56224E-06   -.49271E-03
  10  Prefactor     .10000E-03    32.187       -.36997E-06** at limit **
  11  norm          .10000E-03    14.439       -.64420E-06** at limit **
  12  norm          36.787        18.682        .12310E-05   -.44187E-04
  13  Prefactor     23.918        76.359        .15148E-03   -.70828E-06
  14  norm          .10000E-03    8.4971       -.11694E-06** at limit **
  15  Prefactor     .10000E-03    80.393        .98851E-05** at limit **
  16  norm          19.663        29.030       -.32211E-05   -.22476E-04
  17  Prefactor     4.9652        8.5797        .12205E-05   -.26005E-03
  18  Normalizat    1.4018        .31531       -.14912E-04    .13803E-03
  19  Prefactor     .88505        .89037E-01    .71982E-06   -.62005E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 9.07628
  norm       = 2.07712
  Prefactor  = 9.22226
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.81876
  Prefactor  = 0.0001
  norm       = 8.70385
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 36.7871
  Prefactor  = 23.9185
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 19.6625
  Prefactor  = 4.96523
  Normalizat = 1.40179
  Prefactor  = 0.885047
 **********
 **   18 **HESSE 
 **********

 FCN=   7998.362     FROM HESSE     STATUS=OK           268 CALLS     2139 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.0763        8.3947        .13302E-03   -1.5105    
   2  norm          2.0771        1.7404        .10528E-03   -1.5420    
   3  Prefactor     9.2223        8.1128        .13197E-03   -1.5101    
   4  Prefactor     .10000E-03    82.584        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    12.506        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    14.643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          6.8188        24.623        .15358E-03   -1.5186    
   8  Prefactor     .10000E-03    2.6615        .14207E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          8.7038        2.0688        .59062E-04   -1.5118    
  10  Prefactor     .10000E-03    32.313        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    14.706        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          36.787        18.694        .66079E-04   -1.4494    
  13  Prefactor     23.918        76.265        .82050E-04   -1.4729    
  14  norm          .10000E-03    8.5330        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    80.715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          19.663        29.035        .90318E-04   -1.4821    
  17  Prefactor     4.9652        8.6229        .18054E-03   -1.5262    
  18  Normalizat    1.4018        .36789        .45180E-03   -.80577    
  19  Prefactor     .88505        .10510        .16275E-03   -.96666    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.65321e-09
Minuit parameter uncertainties:
  1  8.3958
  2  1.7404
  3  8.11376
  4  0.000297915
  5  0.000147579
  6  1.75482e-05
  7  24.6595
  8  9.70958e-06
  9  2.06883
  10  0.000126884
  11  0.000113999
  12  18.6968
  13  76.5782
  14  3.85402e-05
  15  0.000314501
  16  29.0562
  17  8.62503
  18  0.368587
  19  0.105126
Done.

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

Extracting fit parameters...

4FGL J1957.1-3231
   Spectrum: PowerLaw
458    Prefactor:  1.000e-04  9.710e-06  1.000e-04  1.000e+04 ( 1.000e-12)
459        Index:  2.579e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
460        Scale:  7.441e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
752    Prefactor:  8.850e-01  1.051e-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.402e+00  3.686e-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.26e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.86e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/409257/likelihoodResults_619315201_619574401_4FGL_J1957.1-3231_daily_bin1466.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) = 7998.36379644
delta logL = -0.00179173497963

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7998.36200474
delta logL = -3.49600668414e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5852       1.0000          .0000       10.000    
     3 'Normalizat'    1.4017       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88506       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=   7998.362     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      207 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.2264        .90712E-02** at limit **
   2  Index         2.5915        6.2488        .50000       -.21705E-04
   3  Normalizat    1.4018        .29387        .10196        .20054E-04
   4  Prefactor     .88505        .87086E-01    .44814E-01    .33445E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.5915
  Normalizat = 1.40178
  Prefactor  = 0.88505
 **********
 **   18 **HESSE 
 **********

 FCN=   7998.362     FROM HESSE     STATUS=OK            31 CALLS      238 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.150        .14229E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5915        5.0040        .50000       -.50259    
   3  Normalizat    1.4018        .34200        .45181E-03   -.80577    
   4  Prefactor     .88505        .10165        .16275E-03   -.96665    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.22051e-09
Minuit parameter uncertainties:
  1  4.75953e-06
  2  9.35312
  3  0.342559
  4  0.101677
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/409257': 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) = 7998.36200464
delta logL = 6.17919795332e-08

Extracting fit parameters...

4FGL J1957.1-3231
   Spectrum: PowerLaw
458    Prefactor:  1.000e-04  4.760e-06  1.000e-04  1.000e+04 ( 1.000e-12)
459        Index:  2.592e+00  9.353e+00  0.000e+00  1.000e+01 (-1.000e+00)
460        Scale:  7.441e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
752    Prefactor:  8.851e-01  1.017e-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.402e+00  3.426e-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/409257/cmap_HighResolution_619315201_619574401_4FGL_J1957.1-3231_daily_bin1466.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.86e-03', job_status='DONE', photon_flux_upper_limit='1.26e-07', time_completed='2021-09-24 00:05:58.797395', job_id='409257', GAL2='0.89', fit_tolerance='1e-08', EG2='1.40', EG='1.40', time_epoch_completed='1632467158.8', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='6.18e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1466' AND source_name='4FGL J1957.1-3231' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 24 00:05:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0080>
Subject: Job 409257: <4FGL_J1957.1-3231_daily_bin1466> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1957.1-3231_daily_bin1466 299.286 -32.5246 619315201 619574401 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 :                                   733.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             311.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   824 sec.
    Turnaround time :                            827 sec.

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

