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


Performing analysis on: 4FGL_J1957.1-3231_daily_bin1637
RA = 299.286, Dec = -32.5246
tmin = 663638401, tmax = 663897601
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='36707', job_status='RUN', time_executed='2022-01-15 01:07:21.936698', time_epoch_executed='1642237641.94' WHERE source_name='4FGL J1957.1-3231' and cadence='daily' and bin_id='1637'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/36707

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/36707/ft1_4FGL_J1957.1-3231_daily_bin1637.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/36707/ft2_4FGL_J1957.1-3231_daily_bin1637.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/36707/ft1_4FGL_J1957.1-3231_daily_bin1637.fits outfile=/scratch/kocevski/36707/ft1_filteredMKT_4FGL_J1957.1-3231_daily_bin1637.fits ra=299.286 dec=-32.5246 rad=12.0 tmin=663638401.0 tmax=663897601.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.46
user 2.28
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/36707/ft2_4FGL_J1957.1-3231_daily_bin1637.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/36707/ft1_filteredMKT_4FGL_J1957.1-3231_daily_bin1637.fits evtable="EVENTS" outfile="/scratch/kocevski/36707/ft1_filtered_4FGL_J1957.1-3231_daily_bin1637.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.51
user 0.35
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/36707/ft1_filtered_4FGL_J1957.1-3231_daily_bin1637.fits" evtable="EVENTS" scfile=/scratch/kocevski/36707/ft2_4FGL_J1957.1-3231_daily_bin1637.fits sctable="SC_DATA" outfile=/scratch/kocevski/36707/ltcube_663638401_663897601_4FGL_J1957.1-3231_daily_bin1637.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/36707/ft2_4FGL_J1957.1-3231_daily_bin1637.fits
.....................!
real 15.45
user 15.01
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/36707/ft1_filtered_4FGL_J1957.1-3231_daily_bin1637.fits evtable="EVENTS" scfile=/scratch/kocevski/36707/ft2_4FGL_J1957.1-3231_daily_bin1637.fits sctable="SC_DATA" expcube=/scratch/kocevski/36707/ltcube_663638401_663897601_4FGL_J1957.1-3231_daily_bin1637.fits outfile=/scratch/kocevski/36707/expmap_663638401_663897601_4FGL_J1957.1-3231_daily_bin1637.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/36707/ltcube_663638401_663897601_4FGL_J1957.1-3231_daily_bin1637.fits
.....................!
real 194.45
user 188.31
sys 5.60

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/36707/ft1_filtered_4FGL_J1957.1-3231_daily_bin1637.fits scfile=/scratch/kocevski/36707/ft2_4FGL_J1957.1-3231_daily_bin1637.fits outfile=/scratch/kocevski/36707/cmap_663638401_663897601_4FGL_J1957.1-3231_daily_bin1637.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/36707/ft1_filtered_4FGL_J1957.1-3231_daily_bin1637.fits scfile=/scratch/kocevski/36707/ft2_4FGL_J1957.1-3231_daily_bin1637.fits outfile=/scratch/kocevski/36707/cmap_HighResolution_663638401_663897601_4FGL_J1957.1-3231_daily_bin1637.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.57
user 0.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/36707/ft1_filtered_4FGL_J1957.1-3231_daily_bin1637.fits evtable="EVENTS" scfile=/scratch/kocevski/36707/ft2_4FGL_J1957.1-3231_daily_bin1637.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/36707/Model_4FGL_J1957.1-3231_daily_bin1637.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/36707/ft1_filtered_4FGL_J1957.1-3231_daily_bin1637.fits.............................!
real 19.63
user 18.31
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.3392       1.0000         .10000E-03   10000.    
     2 'norm      '    .40967E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.0515       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.950       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .45184E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    775.02       1.0000         .10000E-03   10000.    
     7 'norm      '    .13876E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    433.98       1.0000         .10000E-03   10000.    
     9 'norm      '    7.3222       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .94129       1.0000         .10000E-03   10000.    
    11 'norm      '    .18310E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .18154       1.0000         .10000E-03   10000.    
    13 'Prefactor '    563.47       1.0000         .10000E-03   10000.    
    14 'norm      '    .47853       1.0000         .10000E-03   10000.    
    15 'Prefactor '    278.05       1.0000         .10000E-03   10000.    
    16 'norm      '    .19928E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .28868E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .82779E-01   1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1964       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7550E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   711.8334     FROM MIGRAD    STATUS=CONVERGED    362 CALLS     1700 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm         10000.0        7529.4       -.11387E-03** at limit **
   2  norm          .10000E-03    124.17       -.35586E-05** at limit **
   3  Prefactor    10000.0        7373.9        .61218E-05** at limit **
   4  Prefactor    10000.0        9806.3        .28720E-04** at limit **
   5  Prefactor     .10001E-03    80.311       -.16196E-04** at limit **
   6  Prefactor     818.99        554.16        .26587E-04    .15129E-04
   7  norm          .10002E-03    162.02        .16894E-04** at limit **
   8  Prefactor     295.72        258.34        .20449E-04   -.33534E-04
   9  norm          6.0574        7.6848       -.12839E-06    .29619E-04
  10  Prefactor     .10005E-03    1094.3       -.10386E-03** at limit **
  11  norm          .10000E-03    20.225       -.26636E-06** at limit **
  12  norm          .10000E-03    133.81       -.63450E-05** at limit **
  13  Prefactor     598.64        493.49        .60497E-05    .26718E-04
  14  norm          .10000E-03    178.56       -.18014E-04** at limit **
  15  Prefactor     196.25        249.28        .13977E-04    .99459E-05
  16  norm          .10000E-03    36.039        .39834E-06** at limit **
  17  Prefactor     .10000E-03    19.772       -.60249E-06** at limit **
  18  Normalizat    .10000E-01    1.8557        .55040E-04** at limit **
  19  Prefactor     1.1994        .22865       -.58535E-05   -.56640E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 10000
  norm       = 0.000100001
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 0.000100005
  Prefactor  = 818.99
  norm       = 0.000100019
  Prefactor  = 295.721
  norm       = 6.05741
  Prefactor  = 0.000100045
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 598.635
  norm       = 0.000100002
  Prefactor  = 196.251
  norm       = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 1.19936
 **********
 **   18 **HESSE 
 **********

 FCN=   711.8334     FROM HESSE     STATUS=OK           292 CALLS     1992 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm         10000.0        7433.8        .55373E-02   -4.7124    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    117.44        .92259E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor    10000.0        7277.8        .40804E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor    10000.0        9698.4        .30268E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    71.277        .92466E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     818.99        550.83        .37399E-03   -.99032    
   7  norm          .10002E-03    154.95        .90922E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     295.72        258.71        .49079E-03   -1.2251    
   9  norm          6.0574        8.0021        .37056E-02   -1.5216    
  10  Prefactor     .10005E-03    1091.1        .12957E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    19.708        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    168.42        .98931E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     598.64        483.66        .43367E-03   -1.0764    
  14  norm          .10000E-03    174.14        .11183E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     196.25        244.96        .60823E-03   -1.2897    
  16  norm          .10000E-03    36.149        .10116E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    19.417        .10703E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .10000E-01    1.2706        .33289       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.1994        .27672        .34716E-01   -.86351    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.04941e-10
Minuit parameter uncertainties:
  1  0.0833112
  2  0.00077383
  3  0.11251
  4  0.178652
  5  0.0012384
  6  554.604
  7  0.00341947
  8  259.725
  9  8.00351
  10  0.0143549
  11  3.22438e-05
  12  0.000444111
  13  487.078
  14  0.00104031
  15  246.252
  16  0.000423224
  17  0.000190965
  18  3.27614e-06
  19  0.277061
Done.

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

Extracting fit parameters...

4FGL J1957.1-3231
   Spectrum: PowerLaw
458    Prefactor:  2.957e+02  2.597e+02  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.199e+00  2.771e-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.000e-02  3.276e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.71
Ra Dec: 299.286 -32.525
Photon Index (Fixed Index): 2.58 +/- 0.00
Photon Flux (Fixed Index): 3.32e-06 +/- 2.91e-06
Energy Flux (Fixed Index): 8.88e-04 +/- 7.79e-04

TS (Fixed Index): 2.71
Ra Dec: 299.286 -32.525
Photon Flux Upper Limit: 1.11e-05 ph cm-2 s-1
Energy Flux Upper Limit: 8.65e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/36707/likelihoodResults_663638401_663897601_4FGL_J1957.1-3231_daily_bin1637.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) = 711.828671843
delta logL = 0.0047291753549

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 711.823389736
delta logL = 0.0100112827286

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    255.81       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7758       1.0000          .0000       10.000    
     3 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1993       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=   711.8234     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      264 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     256.02        413.24        .12668E-03    .86313E-05
   2  Index         2.7746        1.5553        .45146E-02    .94435E-05
   3  Normalizat    .10000E-01    1.6818        .14788E-01** at limit **
   4  Prefactor     1.1994        .21294        .16981E-03    .28118E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 256.018
  Index      = 2.77464
  Normalizat = 0.01
  Prefactor  = 1.19939
 **********
 **   18 **HESSE 
 **********

 FCN=   711.8234     FROM HESSE     STATUS=OK            25 CALLS      289 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     256.02        387.56        .25335E-04   -1.2494    
   2  Index         2.7746        1.4605        .18059E-03   -.46126    
   3  Normalizat    .10000E-01    1.6827        .29576E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.1994        .21270        .67926E-05   -.86350    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.32159e-11
Minuit parameter uncertainties:
  1  391.563
  2  1.4877
  3  1.65088e-05
  4  0.21285
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/36707': 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) = 711.823389087
delta logL = 0.0100119312259

Extracting fit parameters...

4FGL J1957.1-3231
   Spectrum: PowerLaw
458    Prefactor:  2.560e+02  3.916e+02  1.000e-04  1.000e+04 ( 1.000e-12)
459        Index:  2.775e+00  1.488e+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.199e+00  2.128e-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.000e-02  1.651e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.73
Ra Dec: 299.286 -32.525
Photon Index (Free Index): 2.77 +/- 1.49
Photon Flux (Free Index): 3.79e-06 +/- 4.69e-06
Energy Flux (Free Index): 8.62e-04 +/- 7.58e-04

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/36707/cmap_HighResolution_663638401_663897601_4FGL_J1957.1-3231_daily_bin1637.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.65e-01', comment='SUCCESS', photon_flux='3.32e-06', energy_flux2='8.62e-04', photon_flux_error='2.91e-06', dlogl='1.00e-02', energy_flux='8.88e-04', photon_flux2='3.79e-06', job_status='DONE', time_completed='2022-01-15 01:13:26.336946', photon_index_error2='1.49', photon_index2='2.77', ts='2.71', fit_tolerance='1e-08', GAL='1.20', photon_index_error='0.00', photon_flux_upper_limit='1.11e-05', energy_flux_error2='7.58e-04', EG='0.01', time_epoch_completed='1642238006.34', return_code='0', job_id='36707', GAL2='1.20', EG2='0.01', return_code2='0', energy_flux_error='7.79e-04', photon_flux_error2='4.69e-06', ts2='2.73', photon_index='2.58' WHERE bin_id='1637' AND source_name='4FGL J1957.1-3231' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Jan 15 01:13:26 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0192>
Subject: Job 36707: <4FGL_J1957.1-3231_daily_bin1637> in cluster <slac> Done

Job <4FGL_J1957.1-3231_daily_bin1637> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Jan 15 01:05:27 2022
Job was executed on host(s) <bullet0192>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jan 15 01:06:26 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jan 15 01:06:26 2022
Terminated at Sat Jan 15 01:13:27 2022
Results reported at Sat Jan 15 01:13:27 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1957.1-3231_daily_bin1637 299.286 -32.5246 663638401 663897601 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 :                                   367.08 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             356.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   420 sec.
    Turnaround time :                            480 sec.

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

