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


Performing analysis on: 4FGL_J1957.1-3231_daily_bin1442
RA = 299.286, Dec = -32.5246
tmin = 613094401, tmax = 613353601
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='409220', job_status='RUN', time_executed='2021-09-23 23:52:55.664275', time_epoch_executed='1632466375.66' WHERE source_name='4FGL J1957.1-3231' and cadence='daily' and bin_id='1442'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/409220

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/409220/ft1_4FGL_J1957.1-3231_daily_bin1442.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/409220/ft2_4FGL_J1957.1-3231_daily_bin1442.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/409220/ft1_4FGL_J1957.1-3231_daily_bin1442.fits outfile=/scratch/kocevski/409220/ft1_filteredMKT_4FGL_J1957.1-3231_daily_bin1442.fits ra=299.286 dec=-32.5246 rad=12.0 tmin=613094401.0 tmax=613353601.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.97
user 2.70
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/409220/ft1_filtered_4FGL_J1957.1-3231_daily_bin1442.fits" evtable="EVENTS" scfile=/scratch/kocevski/409220/ft2_4FGL_J1957.1-3231_daily_bin1442.fits sctable="SC_DATA" outfile=/scratch/kocevski/409220/ltcube_613094401_613353601_4FGL_J1957.1-3231_daily_bin1442.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/409220/ft2_4FGL_J1957.1-3231_daily_bin1442.fits
.....................!
real 12.06
user 11.66
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/409220/ft1_filtered_4FGL_J1957.1-3231_daily_bin1442.fits evtable="EVENTS" scfile=/scratch/kocevski/409220/ft2_4FGL_J1957.1-3231_daily_bin1442.fits sctable="SC_DATA" expcube=/scratch/kocevski/409220/ltcube_613094401_613353601_4FGL_J1957.1-3231_daily_bin1442.fits outfile=/scratch/kocevski/409220/expmap_613094401_613353601_4FGL_J1957.1-3231_daily_bin1442.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/409220/ltcube_613094401_613353601_4FGL_J1957.1-3231_daily_bin1442.fits
.....................!
real 192.73
user 187.27
sys 5.03

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/409220/ft1_filtered_4FGL_J1957.1-3231_daily_bin1442.fits scfile=/scratch/kocevski/409220/ft2_4FGL_J1957.1-3231_daily_bin1442.fits outfile=/scratch/kocevski/409220/cmap_613094401_613353601_4FGL_J1957.1-3231_daily_bin1442.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.54
user 0.37
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/409220/ft1_filtered_4FGL_J1957.1-3231_daily_bin1442.fits evtable="EVENTS" scfile=/scratch/kocevski/409220/ft2_4FGL_J1957.1-3231_daily_bin1442.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/409220/Model_4FGL_J1957.1-3231_daily_bin1442.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/409220/ft1_filtered_4FGL_J1957.1-3231_daily_bin1442.fits.....................!
real 53.59
user 52.24
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.4127       1.0000         .10000E-03   10000.    
     4 'Prefactor '    64.257       1.0000         .10000E-03   10000.    
     5 'Prefactor '    25.782       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.7299       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10203E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .86425       1.0000         .10000E-03   10000.    
    10 'Prefactor '    33.578       1.0000         .10000E-03   10000.    
    11 'norm      '    .76583       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    44.358       1.0000         .10000E-03   10000.    
    14 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    25.712       1.0000         .10000E-03   10000.    
    16 'norm      '    .10156E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.6414       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0476       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=   5519.369     FROM MIGRAD    STATUS=CONVERGED    372 CALLS     2151 TOTAL
                     EDM=   .84E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7.3019       -.12473E-05** at limit **
   2  norm          .10000E-03    2.8425        .15890E-07** at limit **
   3  Prefactor     7.4119        13.032       -.10372E-05   -.83783E-04
   4  Prefactor     64.311        200.61        .65767E-04    .60999E-05
   5  Prefactor     25.785        20.471       -.80598E-06    .13247E-03
   6  Prefactor     2.7332        293.84        .16276E-04   -.76094E-05
   7  norm          .10000E-03    11.443        .27809E-06** at limit **
   8  Prefactor     .10000E-03    9.8140       -.25484E-05** at limit **
   9  norm          .86411        1.0236       -.70532E-07    .49599E-04
  10  Prefactor     33.568        46.450       -.11459E-04    .88102E-05
  11  norm          .77313        11.002       -.54838E-05    .62986E-03
  12  norm          .10000E-03    5.1571       -.88740E-08** at limit **
  13  Prefactor     44.374        81.731        .22253E-04    .21887E-04
  14  norm          .10000E-03    9.0156        .30118E-05** at limit **
  15  Prefactor     25.700        48.168       -.16936E-04   -.64816E-05
  16  norm          .10000E-03    86.418       -.12478E-06** at limit **
  17  Prefactor     .10000E-03    6.3049        .63213E-06** at limit **
  18  Normalizat    1.6409        .39112       -.14617E-05    .19057E-03
  19  Prefactor     1.0478        .12640       -.43794E-06    .40325E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 7.41191
  Prefactor  = 64.3109
  Prefactor  = 25.7852
  Prefactor  = 2.73322
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.864106
  Prefactor  = 33.5685
  norm       = 0.773133
  norm       = 0.0001
  Prefactor  = 44.3739
  norm       = 0.0001
  Prefactor  = 25.7
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.64089
  Prefactor  = 1.04775
 **********
 **   18 **HESSE 
 **********

 FCN=   5519.369     FROM HESSE     STATUS=OK           264 CALLS     2415 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.3131        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    2.8583        .12232E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.4119        13.037        .14731E-03   -1.5163    
   4  Prefactor     64.311        201.10        .50062E-04   -1.4102    
   5  Prefactor     25.785        20.457        .78893E-04   -1.4692    
   6  Prefactor     2.7332        295.20        .24646E-03   -1.5377    
   7  norm          .10000E-03    11.444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    9.9388        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .86411        .99507        .78804E-04   -1.5522    
  10  Prefactor     33.568        46.516        .69153E-04   -1.4549    
  11  norm          .77313        39.972        .45915E-02   -1.5532    
  12  norm          .10000E-03    5.1613        .16478E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     44.374        81.982        .60196E-04   -1.4375    
  14  norm          .10000E-03    9.0567        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     25.700        48.333        .79001E-04   -1.4694    
  16  norm          .10000E-03    87.987        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.4158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.6409        .45855        .43770E-03   -.73893    
  19  Prefactor     1.0478        .14943        .17372E-03   -.91154    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.33741e-09
Minuit parameter uncertainties:
  1  2.78123e-05
  2  3.17043e-07
  3  13.0416
  4  203.288
  5  20.4623
  6  57.1003
  7  4.32131e-06
  8  3.21985e-05
  9  0.995094
  10  46.5662
  11  11.1254
  12  4.03277e-06
  13  82.1917
  14  9.20719e-06
  15  48.4069
  16  2.48842e-05
  17  6.64116e-05
  18  0.459737
  19  0.149486
Done.

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

Extracting fit parameters...

4FGL J1957.1-3231
   Spectrum: PowerLaw
458    Prefactor:  1.000e-04  3.220e-05  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.048e+00  1.495e-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.641e+00  4.597e-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: 2.31e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.80e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/409220/likelihoodResults_613094401_613353601_4FGL_J1957.1-3231_daily_bin1442.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) = 5519.36971745
delta logL = -0.000479569453091

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5519.36924021
delta logL = -2.32927959587e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6349       1.0000          .0000       10.000    
     3 'Normalizat'    1.6398       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0481       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7550E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5519.369     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      250 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10005E-03    47.898        .36285E-03** at limit **
   2  Index         2.7027        5.6862        .50000       -.58926E-04
   3  Normalizat    1.6409        .43988        .43770E-03    .65194E-05
   4  Prefactor     1.0478        .14564        .17372E-03    .45156E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100052
  Index      = 2.70274
  Normalizat = 1.64089
  Prefactor  = 1.04775
 **********
 **   18 **HESSE 
 **********

 FCN=   5519.369     FROM HESSE     STATUS=OK            29 CALLS      279 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10005E-03    14.662        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7027        6.3442        .50000       -.47738    
   3  Normalizat    1.6409        .44022        .17508E-04   -.73893    
   4  Prefactor     1.0478        .14575        .34744E-04   -.91154    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.98348e-09
Minuit parameter uncertainties:
  1  0.001743
  2  4.51869
  3  0.441272
  4  0.145807
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/409220': 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) = 5519.36923637
delta logL = 1.51587119035e-06

Extracting fit parameters...

4FGL J1957.1-3231
   Spectrum: PowerLaw
458    Prefactor:  1.001e-04  1.743e-03  1.000e-04  1.000e+04 ( 1.000e-12)
459        Index:  2.703e+00  4.519e+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.048e+00  1.458e-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.641e+00  4.413e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/409220/cmap_HighResolution_613094401_613353601_4FGL_J1957.1-3231_daily_bin1442.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.80e-02', job_status='DONE', photon_flux_upper_limit='2.31e-07', time_completed='2021-09-24 00:03:37.976370', job_id='409220', GAL2='1.05', fit_tolerance='1e-08', EG2='1.64', EG='1.64', time_epoch_completed='1632467017.98', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='1.52e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1442' AND source_name='4FGL J1957.1-3231' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 24 00:03:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0169>
Subject: Job 409220: <4FGL_J1957.1-3231_daily_bin1442> in cluster <slac> Done

Job <4FGL_J1957.1-3231_daily_bin1442> 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) <bullet0169>, 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:03:38 2021
Results reported at Fri Sep 24 00:03:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1957.1-3231_daily_bin1442 299.286 -32.5246 613094401 613353601 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 :                                   627.12 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             326.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   686 sec.
    Turnaround time :                            689 sec.

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

