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


Performing analysis on: 4FGL_J1957.1-3231_daily_bin1267
RA = 299.286, Dec = -32.5246
tmin = 567734401, tmax = 567993601
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='407411', job_status='RUN', time_executed='2021-09-23 23:48:54.696054', time_epoch_executed='1632466134.7' WHERE source_name='4FGL J1957.1-3231' and cadence='daily' and bin_id='1267'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/407411

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/407411/ft1_4FGL_J1957.1-3231_daily_bin1267.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/407411/ft2_4FGL_J1957.1-3231_daily_bin1267.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/407411/ft1_4FGL_J1957.1-3231_daily_bin1267.fits outfile=/scratch/kocevski/407411/ft1_filteredMKT_4FGL_J1957.1-3231_daily_bin1267.fits ra=299.286 dec=-32.5246 rad=12.0 tmin=567734401.0 tmax=567993601.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.30
user 2.11
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/407411/ft1_filtered_4FGL_J1957.1-3231_daily_bin1267.fits" evtable="EVENTS" scfile=/scratch/kocevski/407411/ft2_4FGL_J1957.1-3231_daily_bin1267.fits sctable="SC_DATA" outfile=/scratch/kocevski/407411/ltcube_567734401_567993601_4FGL_J1957.1-3231_daily_bin1267.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/407411/ft2_4FGL_J1957.1-3231_daily_bin1267.fits
.....................!
real 12.55
user 12.20
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/407411/ft1_filtered_4FGL_J1957.1-3231_daily_bin1267.fits evtable="EVENTS" scfile=/scratch/kocevski/407411/ft2_4FGL_J1957.1-3231_daily_bin1267.fits sctable="SC_DATA" expcube=/scratch/kocevski/407411/ltcube_567734401_567993601_4FGL_J1957.1-3231_daily_bin1267.fits outfile=/scratch/kocevski/407411/expmap_567734401_567993601_4FGL_J1957.1-3231_daily_bin1267.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/407411/ltcube_567734401_567993601_4FGL_J1957.1-3231_daily_bin1267.fits
.....................!
real 190.97
user 185.65
sys 5.00

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/407411/ft1_filtered_4FGL_J1957.1-3231_daily_bin1267.fits scfile=/scratch/kocevski/407411/ft2_4FGL_J1957.1-3231_daily_bin1267.fits outfile=/scratch/kocevski/407411/cmap_567734401_567993601_4FGL_J1957.1-3231_daily_bin1267.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=299.286 yref=-32.5246 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/407411/ft1_filtered_4FGL_J1957.1-3231_daily_bin1267.fits evtable="EVENTS" scfile=/scratch/kocevski/407411/ft2_4FGL_J1957.1-3231_daily_bin1267.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/407411/Model_4FGL_J1957.1-3231_daily_bin1267.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/407411/ft1_filtered_4FGL_J1957.1-3231_daily_bin1267.fits.....................!
real 41.03
user 39.70
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10058E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    37.230       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .65621E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.898       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    28.583       1.0000         .10000E-03   10000.    
     8 'Prefactor '    23.196       1.0000         .10000E-03   10000.    
     9 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    29.887       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    59.738       1.0000         .10000E-03   10000.    
    16 'norm      '    .28550       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.2256       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .98718       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=   3466.561     FROM MIGRAD    STATUS=CONVERGED    407 CALLS     1909 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    36.555       -.79893E-06** at limit **
   2  norm          .10000E-03    4.2765        .27525E-06** at limit **
   3  Prefactor     37.246        30.905       -.39152E-04    .78115E-04
   4  Prefactor     .10003E-03    1363.8       -.62671E-04** at limit **
   5  Prefactor     11.892        28.431       -.13873E-04    .74948E-04
   6  Prefactor     .10000E-03    57.288        .55668E-05** at limit **
   7  norm          28.582        30.668        .13613E-05    .17912E-04
   8  Prefactor     23.192        16.299        .20453E-06    .21690E-03
   9  norm          .10000E-03    .94309       -.90697E-06** at limit **
  10  Prefactor     .10000E-03    78.350        .22790E-04** at limit **
  11  norm          .10000E-03    7.7631       -.94387E-07** at limit **
  12  norm          29.887        33.530       -.29999E-04    .90057E-04
  13  Prefactor     .10000E-03    75.459       -.34654E-04** at limit **
  14  norm          .10000E-03    8.2222       -.26238E-06** at limit **
  15  Prefactor     59.647        107.23       -.84785E-04    .46934E-04
  16  norm          .10644E-01    31.557       -.62925E-05    .11871E-03
  17  Prefactor     .10001E-03    16.026        .14485E-05** at limit **
  18  Normalizat    1.2258        .46680        .25145E-04    .26711E-03
  19  Prefactor     .98727        .15079        .83219E-05    .11462E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 37.2455
  Prefactor  = 0.000100031
  Prefactor  = 11.8925
  Prefactor  = 0.0001
  norm       = 28.5822
  Prefactor  = 23.1919
  norm       = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 29.8866
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 59.6474
  norm       = 0.0106437
  Prefactor  = 0.000100007
  Normalizat = 1.22576
  Prefactor  = 0.987274
 **********
 **   18 **HESSE 
 **********

 FCN=   3466.561     FROM HESSE     STATUS=OK           266 CALLS     2175 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    36.681        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    4.2806        .11891E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     37.246        30.948        .65684E-04   -1.4487    
   4  Prefactor     .10003E-03    1367.1        .21016E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.892        28.422        .11614E-03   -1.5018    
   6  Prefactor     .10000E-03    57.303        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          28.582        30.669        .74936E-04   -1.4638    
   8  Prefactor     23.192        16.313        .83168E-04   -1.4744    
   9  norm          .10000E-03    1.4407        .11079E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    78.504        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    7.7757        .16022E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          29.887        33.567        .73287E-04   -1.4614    
  13  Prefactor     .10000E-03    75.638        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    8.2344        .16489E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     59.647        107.50        .51910E-04   -1.4162    
  16  norm          .10644E-01    32.887        .10047       -1.5687    
  17  Prefactor     .10001E-03    16.261        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.2258        .54350        .46601E-03   -.85811    
  19  Prefactor     .98727        .17733        .16882E-03   -.93155    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.31558e-09
Minuit parameter uncertainties:
  1  9.22393e-05
  2  4.07648e-06
  3  30.9612
  4  0.0134174
  5  28.4539
  6  3.67006e-06
  7  30.6857
  8  16.3166
  9  9.85141e-05
  10  0.0003247
  11  5.84528e-05
  12  33.5878
  13  0.000600684
  14  2.99887e-05
  15  107.852
  16  1.17835
  17  0.000677668
  18  0.54604
  19  0.177439
Done.

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

Extracting fit parameters...

4FGL J1957.1-3231
   Spectrum: PowerLaw
458    Prefactor:  2.319e+01  1.632e+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.873e-01  1.774e-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.226e+00  5.460e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.29
Ra Dec: 299.286 -32.525
Photon Index (Fixed Index): 2.58 +/- 0.00
Photon Flux (Fixed Index): 2.60e-07 +/- 1.83e-07
Energy Flux (Fixed Index): 6.96e-05 +/- 4.90e-05

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

Saving results to:
/scratch/kocevski/407411/likelihoodResults_567734401_567993601_4FGL_J1957.1-3231_daily_bin1267.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) = 3465.65828288
delta logL = 0.902877363136

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3465.64891443
delta logL = 0.91224581093

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.9825       1.0000         .10000E-03   10000.    
     2 'Index     '    3.9906       1.0000          .0000       10.000    
     3 'Normalizat'    1.0068       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0418       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=   3465.649     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      253 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.9319        50.621        .45041E-02    .31636E-03
   2  Index         3.9968        3.3796        .85071E-01    .11395E-03
   3  Normalizat    1.0065        .20547        .11408        .24087E-04
   4  Prefactor     1.0420        .67294E-01    .40414E-01    .55796E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.93194
  Index      = 3.99681
  Normalizat = 1.00653
  Prefactor  = 1.04197
 **********
 **   18 **HESSE 
 **********

 FCN=   3465.649     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      284 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.9319        66.623        .66300E-04   -1.5264    
   2  Index         3.9968        3.9371        .35395E-02   -.20201    
   3  Normalizat    1.0065        .57499        .50585E-03   -.92812    
   4  Prefactor     1.0420        .20081        .16465E-03   -.91343    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.12429e-10
Minuit parameter uncertainties:
  1  36.3026
  2  4.57304
  3  0.578582
  4  0.200958
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/407411': 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): 102
logL (Free Index) = 3465.64890514
delta logL = 0.912255094758

Extracting fit parameters...

4FGL J1957.1-3231
   Spectrum: PowerLaw
458    Prefactor:  4.932e+00  3.630e+01  1.000e-04  1.000e+04 ( 1.000e-12)
459        Index:  3.997e+00  4.573e+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.042e+00  2.010e-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.007e+00  5.786e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.37
Ra Dec: 299.286 -32.525
Photon Index (Free Index): 4.00 +/- 4.57
Photon Flux (Free Index): 5.03e-07 +/- 3.15e-07
Energy Flux (Free Index): 7.54e-05 +/- 5.33e-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/407411/cmap_HighResolution_567734401_567993601_4FGL_J1957.1-3231_daily_bin1267.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.94e-02', comment='SUCCESS', photon_flux='2.60e-07', energy_flux2='7.54e-05', photon_flux_error='1.83e-07', dlogl='9.12e-01', energy_flux='6.96e-05', photon_flux2='5.03e-07', job_status='DONE', time_completed='2021-09-23 23:57:17.822328', photon_index_error2='4.57', photon_index2='4.00', ts='3.29', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='6.31e-07', energy_flux_error2='5.33e-05', EG='1.23', time_epoch_completed='1632466637.82', return_code='0', job_id='407411', GAL2='1.04', EG2='1.01', return_code2='102', energy_flux_error='4.90e-05', photon_flux_error2='3.15e-07', ts2='5.37', photon_index='2.58' WHERE bin_id='1267' AND source_name='4FGL J1957.1-3231' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 23 23:57:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 407411: <4FGL_J1957.1-3231_daily_bin1267> in cluster <slac> Done

Job <4FGL_J1957.1-3231_daily_bin1267> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep 23 23:47:19 2021
Job was executed on host(s) <bullet0049>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 23 23:47: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:47:22 2021
Terminated at Thu Sep 23 23:57:18 2021
Results reported at Thu Sep 23 23:57:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1957.1-3231_daily_bin1267 299.286 -32.5246 567734401 567993601 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 :                                   497.27 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             299.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   596 sec.
    Turnaround time :                            599 sec.

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

