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


Performing analysis on: 4FGL_J1957.1-3231_daily_bin1439
RA = 299.286, Dec = -32.5246
tmin = 612316801, tmax = 612576001
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='409215', job_status='RUN', time_executed='2021-09-23 23:52:47.274381', time_epoch_executed='1632466367.27' WHERE source_name='4FGL J1957.1-3231' and cadence='daily' and bin_id='1439'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/409215

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/409215/ft1_4FGL_J1957.1-3231_daily_bin1439.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/409215/ft2_4FGL_J1957.1-3231_daily_bin1439.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/409215/ft1_4FGL_J1957.1-3231_daily_bin1439.fits outfile=/scratch/kocevski/409215/ft1_filteredMKT_4FGL_J1957.1-3231_daily_bin1439.fits ra=299.286 dec=-32.5246 rad=12.0 tmin=612316801.0 tmax=612576001.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.32
user 3.11
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/409215/ft1_filtered_4FGL_J1957.1-3231_daily_bin1439.fits" evtable="EVENTS" scfile=/scratch/kocevski/409215/ft2_4FGL_J1957.1-3231_daily_bin1439.fits sctable="SC_DATA" outfile=/scratch/kocevski/409215/ltcube_612316801_612576001_4FGL_J1957.1-3231_daily_bin1439.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/409215/ft2_4FGL_J1957.1-3231_daily_bin1439.fits
.....................!
real 12.39
user 11.98
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/409215/ft1_filtered_4FGL_J1957.1-3231_daily_bin1439.fits evtable="EVENTS" scfile=/scratch/kocevski/409215/ft2_4FGL_J1957.1-3231_daily_bin1439.fits sctable="SC_DATA" expcube=/scratch/kocevski/409215/ltcube_612316801_612576001_4FGL_J1957.1-3231_daily_bin1439.fits outfile=/scratch/kocevski/409215/expmap_612316801_612576001_4FGL_J1957.1-3231_daily_bin1439.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/409215/ltcube_612316801_612576001_4FGL_J1957.1-3231_daily_bin1439.fits
.....................!
real 190.35
user 184.79
sys 5.21

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/409215/ft1_filtered_4FGL_J1957.1-3231_daily_bin1439.fits scfile=/scratch/kocevski/409215/ft2_4FGL_J1957.1-3231_daily_bin1439.fits outfile=/scratch/kocevski/409215/cmap_612316801_612576001_4FGL_J1957.1-3231_daily_bin1439.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.57
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/409215/ft1_filtered_4FGL_J1957.1-3231_daily_bin1439.fits scfile=/scratch/kocevski/409215/ft2_4FGL_J1957.1-3231_daily_bin1439.fits outfile=/scratch/kocevski/409215/cmap_HighResolution_612316801_612576001_4FGL_J1957.1-3231_daily_bin1439.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=299.286 yref=-32.5246 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    21.263       1.0000         .10000E-03   10000.    
     2 'norm      '    6.8111       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.949       1.0000         .10000E-03   10000.    
     4 'Prefactor '    211.25       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.7560       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    8.8698       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.4308       1.0000         .10000E-03   10000.    
     9 'norm      '    3.1178       1.0000         .10000E-03   10000.    
    10 'Prefactor '    31.613       1.0000         .10000E-03   10000.    
    11 'norm      '    3.6788       1.0000         .10000E-03   10000.    
    12 'norm      '    9.3676       1.0000         .10000E-03   10000.    
    13 'Prefactor '    46.071       1.0000         .10000E-03   10000.    
    14 'norm      '    2.0327       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10131E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10353E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .48468       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.2596       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=   7444.180     FROM MIGRAD    STATUS=CONVERGED    373 CALLS     1889 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          21.261        16.525        .92337E-06   -.36456E-04
   2  norm          6.8112        4.8115        .35199E-06    .70654E-04
   3  Prefactor     10.950        6.9432       -.92227E-06    .12370E-03
   4  Prefactor     211.23        161.78       -.13347E-04    .83774E-04
   5  Prefactor     4.7654        17.356       -.63716E-05    .37411E-04
   6  Prefactor     .10000E-03    19.004       -.10674E-05** at limit **
   7  norm          8.7934        25.710       -.32746E-05    .24302E-04
   8  Prefactor     3.4372        8.9076       -.75600E-05   -.72860E-04
   9  norm          3.1180        1.8876       -.16940E-06   -.17281E-03
  10  Prefactor     31.613        37.713       -.51100E-06    .68215E-04
  11  norm          3.6834        17.332       -.85117E-05   -.73317E-05
  12  norm          9.3713        13.015       -.27999E-05    .34385E-04
  13  Prefactor     46.093        82.303        .26870E-04   -.13522E-03
  14  norm          2.0302        14.808       -.30776E-05   -.23509E-03
  15  Prefactor     .10000E-03    22.287        .77239E-06** at limit **
  16  norm          .10000E-03    7.0498       -.35440E-07** at limit **
  17  Prefactor     .10000E-03    4.8017       -.12072E-06** at limit **
  18  Normalizat    .48380        .42299        .40805E-05    .97743E-04
  19  Prefactor     1.2599        .13084        .84804E-06    .39666E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 21.2614
  norm       = 6.81115
  Prefactor  = 10.9501
  Prefactor  = 211.235
  Prefactor  = 4.76544
  Prefactor  = 0.0001
  norm       = 8.79343
  Prefactor  = 3.43716
  norm       = 3.11802
  Prefactor  = 31.6133
  norm       = 3.68342
  norm       = 9.37134
  Prefactor  = 46.0928
  norm       = 2.03018
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.483802
  Prefactor  = 1.25989
 **********
 **   18 **HESSE 
 **********

 FCN=   7444.180     FROM HESSE     STATUS=OK           272 CALLS     2161 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          21.261        16.542        .86863E-04   -1.4785    
   2  norm          6.8112        4.8143        .15374E-03   -1.5186    
   3  Prefactor     10.950        6.9422        .12108E-03   -1.5046    
   4  Prefactor     211.23        161.48        .13908E-03   -1.2791    
   5  Prefactor     4.7654        17.250        .18450E-03   -1.5271    
   6  Prefactor     .10000E-03    19.026        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          8.7934        25.703        .13458E-03   -1.5115    
   8  Prefactor     3.4372        8.8716        .21838E-03   -1.5337    
   9  norm          3.1180        1.8720        .85781E-04   -1.5355    
  10  Prefactor     31.613        37.653        .71263E-04   -1.4583    
  11  norm          3.6834        17.244        .21058E-03   -1.5324    
  12  norm          9.3713        12.963        .13094E-03   -1.5096    
  13  Prefactor     46.093        79.264        .59071E-04   -1.4349    
  14  norm          2.0302        14.663        .29013E-03   -1.5423    
  15  Prefactor     .10000E-03    22.302        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    7.0506        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.9757        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .48380        .36892        .69052E-03   -1.1317    
  19  Prefactor     1.2599        .12165        .15204E-03   -.84508    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16456e-09
Minuit parameter uncertainties:
  1  16.5456
  2  4.81457
  3  6.94275
  4  161.82
  5  17.2681
  6  2.20275e-05
  7  25.7358
  8  8.875
  9  1.87204
  10  37.6811
  11  15.9468
  12  12.9667
  13  79.4458
  14  10.9156
  15  3.79702e-05
  16  8.34221e-06
  17  2.40636e-05
  18  0.370797
  19  0.12168
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
752    Prefactor:  1.260e+00  1.217e-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:  4.838e-01  3.708e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/409215/likelihoodResults_612316801_612576001_4FGL_J1957.1-3231_daily_bin1439.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) = 7443.23685046
delta logL = 0.943045087559

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7443.18304316
delta logL = 0.996852382888

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .46946       1.0000         .10000E-03   10000.    
     2 'Index     '    4.6710       1.0000          .0000       10.000    
     3 'Normalizat'    .37088       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2799       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=   7443.183     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      270 TOTAL
                     EDM=   .81E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .46068        4.3169        .95989E-02    .16218E-02
   2  Index         4.6809        2.4333        .15655        .14786E-03
   3  Normalizat    .37116        .67281E-01    .17678        .73743E-04
   4  Prefactor     1.2800        .23296E-01    .32969E-01   -.13977E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.460681
  Index      = 4.68095
  Normalizat = 0.371161
  Prefactor  = 1.28001
 **********
 **   18 **HESSE 
 **********

 FCN=   7443.183     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      305 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .46068        12.619        .43714E-03   -1.5572    
   2  Index         4.6809        7.1920        .53585E-02   -.63854E-01
   3  Normalizat    .37116        .26810        .78074E-03   -1.1882    
   4  Prefactor     1.2800        .92595E-01    .15083E-03   -.83903    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.58406e-11
Minuit parameter uncertainties:
  1  4.8227
  2  5.79086
  3  0.269028
  4  0.0926072
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/409215': 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) = 7443.18303193
delta logL = 0.99686361265

Extracting fit parameters...

4FGL J1957.1-3231
   Spectrum: PowerLaw
458    Prefactor:  4.607e-01  4.823e+00  1.000e-04  1.000e+04 ( 1.000e-12)
459        Index:  4.681e+00  5.791e+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.280e+00  9.261e-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:  3.712e-01  2.690e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.31
Ra Dec: 299.286 -32.525
Photon Index (Free Index): 4.68 +/- 5.79
Photon Flux (Free Index): 1.51e-07 +/- 1.26e-07
Energy Flux (Free Index): 2.07e-05 +/- 2.53e-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/409215/cmap_HighResolution_612316801_612576001_4FGL_J1957.1-3231_daily_bin1439.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.86e-02', comment='SUCCESS', energy_flux2='2.07e-05', dlogl='9.97e-01', photon_flux2='1.51e-07', job_status='DONE', time_completed='2021-09-24 00:05:00.086426', photon_index_error2='5.79', photon_index2='4.68', ts='0.17', fit_tolerance='1e-08', GAL='1.26', photon_index_error='0.00', photon_flux_upper_limit='2.38e-07', energy_flux_error2='2.53e-05', EG='0.48', time_epoch_completed='1632467100.09', return_code='0', job_id='409215', GAL2='1.28', EG2='0.37', return_code2='102', photon_flux_error2='1.26e-07', ts2='2.31', photon_index='2.58' WHERE bin_id='1439' AND source_name='4FGL J1957.1-3231' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 24 00:05:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0288>
Subject: Job 409215: <4FGL_J1957.1-3231_daily_bin1439> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1957.1-3231_daily_bin1439 299.286 -32.5246 612316801 612576001 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 :                                   716.11 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             332.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   768 sec.
    Turnaround time :                            771 sec.

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

