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


Performing analysis on: 4FGL_J1957.1-3231_daily_bin1624
RA = 299.286, Dec = -32.5246
tmin = 660268801, tmax = 660528001
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='452122', job_status='RUN', time_executed='2021-12-08 06:26:17.514104', time_epoch_executed='1638973577.51' WHERE source_name='4FGL J1957.1-3231' and cadence='daily' and bin_id='1624'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/452122

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/452122/ft1_4FGL_J1957.1-3231_daily_bin1624.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/452122/ft2_4FGL_J1957.1-3231_daily_bin1624.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/452122/ft1_4FGL_J1957.1-3231_daily_bin1624.fits outfile=/scratch/kocevski/452122/ft1_filteredMKT_4FGL_J1957.1-3231_daily_bin1624.fits ra=299.286 dec=-32.5246 rad=12.0 tmin=660268801.0 tmax=660528001.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.88
user 3.63
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/452122/ft1_filtered_4FGL_J1957.1-3231_daily_bin1624.fits" evtable="EVENTS" scfile=/scratch/kocevski/452122/ft2_4FGL_J1957.1-3231_daily_bin1624.fits sctable="SC_DATA" outfile=/scratch/kocevski/452122/ltcube_660268801_660528001_4FGL_J1957.1-3231_daily_bin1624.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/452122/ft2_4FGL_J1957.1-3231_daily_bin1624.fits
.....................!
real 12.77
user 12.38
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/452122/ft1_filtered_4FGL_J1957.1-3231_daily_bin1624.fits evtable="EVENTS" scfile=/scratch/kocevski/452122/ft2_4FGL_J1957.1-3231_daily_bin1624.fits sctable="SC_DATA" expcube=/scratch/kocevski/452122/ltcube_660268801_660528001_4FGL_J1957.1-3231_daily_bin1624.fits outfile=/scratch/kocevski/452122/expmap_660268801_660528001_4FGL_J1957.1-3231_daily_bin1624.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/452122/ltcube_660268801_660528001_4FGL_J1957.1-3231_daily_bin1624.fits
.....................!
real 191.36
user 185.68
sys 5.10

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/452122/ft1_filtered_4FGL_J1957.1-3231_daily_bin1624.fits scfile=/scratch/kocevski/452122/ft2_4FGL_J1957.1-3231_daily_bin1624.fits outfile=/scratch/kocevski/452122/cmap_660268801_660528001_4FGL_J1957.1-3231_daily_bin1624.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/452122/ft1_filtered_4FGL_J1957.1-3231_daily_bin1624.fits scfile=/scratch/kocevski/452122/ft2_4FGL_J1957.1-3231_daily_bin1624.fits outfile=/scratch/kocevski/452122/cmap_HighResolution_660268801_660528001_4FGL_J1957.1-3231_daily_bin1624.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.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/452122/ft1_filtered_4FGL_J1957.1-3231_daily_bin1624.fits evtable="EVENTS" scfile=/scratch/kocevski/452122/ft2_4FGL_J1957.1-3231_daily_bin1624.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/452122/Model_4FGL_J1957.1-3231_daily_bin1624.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/452122/ft1_filtered_4FGL_J1957.1-3231_daily_bin1624.fits.....................!
real 74.74
user 73.26
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .18303E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.5462       1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.239       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.283       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .48833       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10126E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.9214       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10205E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10349E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.4251       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.2387       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0017       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=   7909.448     FROM MIGRAD    STATUS=CONVERGED    377 CALLS     1586 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10018E-03    9.6254       -.32803E-05** at limit **
   2  norm          1.5461        2.2936        .20111E-06    .18926E-03
   3  Prefactor     17.241        7.3437        .10922E-05    .11608E-02
   4  Prefactor     10.425        341.45       -.15305E-04   -.34715E-04
   5  Prefactor     .46047        7.4657        .14241E-05   -.19527E-03
   6  Prefactor     .10000E-03    31.838       -.17157E-06** at limit **
   7  norm          .10000E-03    7.0433       -.45640E-07** at limit **
   8  Prefactor     .10000E-03    8.4734        .19760E-06** at limit **
   9  norm          2.9213        1.4101        .61544E-07   -.51064E-04
  10  Prefactor     .10000E-03    12.618       -.93116E-07** at limit **
  11  norm          .10000E-03    3.2465       -.14994E-06** at limit **
  12  norm          .10000E-03    11.901       -.48895E-06** at limit **
  13  Prefactor     .10000E-03    44.486       -.31738E-06** at limit **
  14  norm          .10000E-03    9.0518       -.66025E-06** at limit **
  15  Prefactor     .10000E-03    54.958       -.10609E-05** at limit **
  16  norm          .10000E-03    13.641       -.20267E-06** at limit **
  17  Prefactor     1.4251        12.588        .32141E-05    .25283E-03
  18  Normalizat    1.2387        .31916        .75091E-06   -.14203E-03
  19  Prefactor     1.0017        .93550E-01   -.90960E-06   -.40915E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.00010018
  norm       = 1.54607
  Prefactor  = 17.2408
  Prefactor  = 10.4246
  Prefactor  = 0.460472
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.92132
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 1.42509
  Normalizat = 1.23871
  Prefactor  = 1.00169
 **********
 **   18 **HESSE 
 **********

 FCN=   7909.448     FROM HESSE     STATUS=OK           264 CALLS     1850 TOTAL
                     EDM=   .88E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10018E-03    24.862        .36612E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.5461        2.2696        .15965E-03   -1.5459    
   3  Prefactor     17.241        7.5019        .48232E-03   -1.4877    
   4  Prefactor     10.425        337.24        .12495E-03   -1.5062    
   5  Prefactor     .46047        69.380        .43619E-02   -1.5572    
   6  Prefactor     .10000E-03    31.882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    7.0446        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    8.6704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.9213        1.4067        .70134E-04   -1.5366    
  10  Prefactor     .10000E-03    12.623        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    3.2508        .15649E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    12.116        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    44.543        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    9.0975        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    55.059        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    13.666        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.4251        13.189        .36215E-03   -1.5469    
  18  Normalizat    1.2387        .36931        .47388E-03   -.85415    
  19  Prefactor     1.0017        .10848        .15595E-03   -.92673    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.80284e-09
Minuit parameter uncertainties:
  1  0.00423026
  2  2.26977
  3  7.50231
  4  119.324
  5  11.3166
  6  5.24899e-06
  7  5.51385e-06
  8  4.3343e-05
  9  1.40675
  10  8.9839e-06
  11  1.12726e-05
  12  6.12481e-05
  13  2.88895e-05
  14  9.0686e-05
  15  0.000460938
  16  3.05404e-05
  17  8.6731
  18  0.370097
  19  0.108504
Done.

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

Extracting fit parameters...

4FGL J1957.1-3231
   Spectrum: PowerLaw
458    Prefactor:  1.000e-04  4.334e-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.002e+00  1.085e-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.239e+00  3.701e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/452122/likelihoodResults_660268801_660528001_4FGL_J1957.1-3231_daily_bin1624.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) = 7909.44808699
delta logL = -0.000549854245946

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7909.44753773
delta logL = -5.93961885897e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10246E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5837       1.0000          .0000       10.000    
     3 'Normalizat'    1.2384       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0018       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=   7909.448     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      247 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10008E-03    594.05        .36285E-03** at limit **
   2  Index         2.5993        8.4426        .50000       -.34277E-05
   3  Normalizat    1.2387        .72398E-01    .47389E-03    .10316E-04
   4  Prefactor     1.0017        .21864E-01    .15595E-03    .16111E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100078
  Index      = 2.59929
  Normalizat = 1.23872
  Prefactor  = 1.00169
 **********
 **   18 **HESSE 
 **********

 FCN=   7909.448     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      276 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10008E-03    1954.5        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5993        6.2246        .50000       -.50082    
   3  Normalizat    1.2387        .28642        .18955E-04   -.85415    
   4  Prefactor     1.0017        .86218E-01    .62380E-05   -.92673    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.01844e-08
Minuit parameter uncertainties:
  1  0.025641
  2  1824.58
  3  0.286785
  4  0.0862297
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/452122': 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) = 7909.44753712
delta logL = 1.47429091157e-08

Extracting fit parameters...

4FGL J1957.1-3231
   Spectrum: PowerLaw
458    Prefactor:  1.001e-04  2.564e-02  1.000e-04  1.000e+04 ( 1.000e-12)
459        Index:  2.599e+00  1.825e+03  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.002e+00  8.623e-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:  1.239e+00  2.868e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 299.286 -32.525

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/452122/cmap_HighResolution_660268801_660528001_4FGL_J1957.1-3231_daily_bin1624.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.39e-02', job_status='DONE', photon_flux_upper_limit='1.78e-07', time_completed='2021-12-08 06:38:03.333206', job_id='452122', GAL2='1.00', fit_tolerance='1e-08', EG2='1.24', EG='1.24', time_epoch_completed='1638974283.33', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='1.47e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1624' AND source_name='4FGL J1957.1-3231' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec  8 06:38:03 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 452122: <4FGL_J1957.1-3231_daily_bin1624> in cluster <slac> Done

Job <4FGL_J1957.1-3231_daily_bin1624> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Dec  8 06:25:14 2021
Job was executed on host(s) <bullet0252>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec  8 06:25:27 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec  8 06:25:27 2021
Terminated at Wed Dec  8 06:38:04 2021
Results reported at Wed Dec  8 06:38:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1957.1-3231_daily_bin1624 299.286 -32.5246 660268801 660528001 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 :                                   705.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             334.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   758 sec.
    Turnaround time :                            770 sec.

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

