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


Performing analysis on: 4FGL_J1957.1-3231_daily_bin1394
RA = 299.286, Dec = -32.5246
tmin = 600652801, tmax = 600912001
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='409144', job_status='RUN', time_executed='2021-09-23 23:53:17.274161', time_epoch_executed='1632466397.27' WHERE source_name='4FGL J1957.1-3231' and cadence='daily' and bin_id='1394'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/409144

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/409144/ft1_4FGL_J1957.1-3231_daily_bin1394.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/409144/ft2_4FGL_J1957.1-3231_daily_bin1394.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/409144/ft1_4FGL_J1957.1-3231_daily_bin1394.fits outfile=/scratch/kocevski/409144/ft1_filteredMKT_4FGL_J1957.1-3231_daily_bin1394.fits ra=299.286 dec=-32.5246 rad=12.0 tmin=600652801.0 tmax=600912001.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.62
user 3.43
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/409144/ft1_filtered_4FGL_J1957.1-3231_daily_bin1394.fits" evtable="EVENTS" scfile=/scratch/kocevski/409144/ft2_4FGL_J1957.1-3231_daily_bin1394.fits sctable="SC_DATA" outfile=/scratch/kocevski/409144/ltcube_600652801_600912001_4FGL_J1957.1-3231_daily_bin1394.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/409144/ft2_4FGL_J1957.1-3231_daily_bin1394.fits
.....................!
real 11.93
user 11.54
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/409144/ft1_filtered_4FGL_J1957.1-3231_daily_bin1394.fits evtable="EVENTS" scfile=/scratch/kocevski/409144/ft2_4FGL_J1957.1-3231_daily_bin1394.fits sctable="SC_DATA" expcube=/scratch/kocevski/409144/ltcube_600652801_600912001_4FGL_J1957.1-3231_daily_bin1394.fits outfile=/scratch/kocevski/409144/expmap_600652801_600912001_4FGL_J1957.1-3231_daily_bin1394.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/409144/ltcube_600652801_600912001_4FGL_J1957.1-3231_daily_bin1394.fits
.....................!
real 193.30
user 187.78
sys 5.17

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/409144/ft1_filtered_4FGL_J1957.1-3231_daily_bin1394.fits scfile=/scratch/kocevski/409144/ft2_4FGL_J1957.1-3231_daily_bin1394.fits outfile=/scratch/kocevski/409144/cmap_600652801_600912001_4FGL_J1957.1-3231_daily_bin1394.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.53
user 0.36
sys 0.16

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

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/409144/ft1_filtered_4FGL_J1957.1-3231_daily_bin1394.fits evtable="EVENTS" scfile=/scratch/kocevski/409144/ft2_4FGL_J1957.1-3231_daily_bin1394.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/409144/Model_4FGL_J1957.1-3231_daily_bin1394.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/409144/ft1_filtered_4FGL_J1957.1-3231_daily_bin1394.fits.....................!
real 80.59
user 79.09
sys 1.31

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.8701       1.0000         .10000E-03   10000.    
     2 'norm      '    3.0054       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.3026       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.5260       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    273.17       1.0000         .10000E-03   10000.    
     7 'norm      '    49.887       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.1019       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    11.212       1.0000         .10000E-03   10000.    
    12 'norm      '    6.5104       1.0000         .10000E-03   10000.    
    13 'Prefactor '    15.258       1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    17.980       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.1283       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0928       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=   8861.809     FROM MIGRAD    STATUS=CONVERGED    357 CALLS     1853 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.8701        4.8049       -.45955E-06   -.36057E-03
   2  norm          3.0054        2.2805       -.87930E-08    .14113E-03
   3  Prefactor     6.3028        5.5673       -.48575E-06   -.88738E-04
   4  Prefactor     6.5172        256.13       -.33082E-04   -.18809E-05
   5  Prefactor     .10000E-03    5.9386       -.65589E-05** at limit **
   6  Prefactor     273.17        88.068        .94785E-06   -.67036E-06
   7  norm          49.887        28.318       -.10230E-06    .36175E-04
   8  Prefactor     .10000E-03    4.5732        .42367E-05** at limit **
   9  norm          1.1019        1.2035       -.48440E-06   -.47798E-02
  10  Prefactor     .10000E-03    19.232        .15084E-05** at limit **
  11  norm          11.211        11.587        .10928E-07    .75799E-05
  12  norm          6.5102        16.138       -.15629E-05   -.49827E-04
  13  Prefactor     15.239        64.509       -.42480E-04   -.13503E-05
  14  norm          .10000E-03    5.6744        .81232E-05** at limit **
  15  Prefactor     .10000E-03    31.882       -.31352E-05** at limit **
  16  norm          17.980        21.446       -.61767E-07   -.13576E-05
  17  Prefactor     .10000E-03    4.7270       -.61200E-05** at limit **
  18  Normalizat    1.1285        .31603        .48183E-05   -.14328E-04
  19  Prefactor     1.0928        .94675E-01    .19667E-06    .72715E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.87013
  norm       = 3.00541
  Prefactor  = 6.30275
  Prefactor  = 6.51721
  Prefactor  = 0.0001
  Prefactor  = 273.173
  norm       = 49.8867
  Prefactor  = 0.0001
  norm       = 1.10193
  Prefactor  = 0.0001
  norm       = 11.2107
  norm       = 6.51017
  Prefactor  = 15.2395
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 17.9796
  Prefactor  = 0.0001
  Normalizat = 1.12845
  Prefactor  = 1.09279
 **********
 **   18 **HESSE 
 **********

 FCN=   8861.809     FROM HESSE     STATUS=OK           272 CALLS     2125 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.8701        4.7985        .23994E-03   -1.5369    
   2  norm          3.0054        2.2822        .12076E-03   -1.5361    
   3  Prefactor     6.3028        5.5725        .15989E-03   -1.5206    
   4  Prefactor     6.5172        256.49        .15710E-03   -1.5197    
   5  Prefactor     .10000E-03    5.9366        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     273.17        88.079        .12270E-03   -1.2387    
   7  norm          49.887        28.327        .56777E-04   -1.4294    
   8  Prefactor     .10000E-03    4.6399        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.1019        1.2311        .22616E-03   -1.5498    
  10  Prefactor     .10000E-03    19.262        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          11.211        11.597        .11964E-03   -1.5038    
  12  norm          6.5102        16.137        .15729E-03   -1.5198    
  13  Prefactor     15.239        63.206        .10254E-03   -1.4927    
  14  norm          .10000E-03    5.6568        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    31.904        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          17.980        21.445        .94456E-04   -1.4860    
  17  Prefactor     .10000E-03    4.7487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.1285        .35727        .51482E-03   -.88843    
  19  Prefactor     1.0928        .10847        .15878E-03   -.89697    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.31344e-09
Minuit parameter uncertainties:
  1  4.79913
  2  2.28224
  3  5.57298
  4  82.1515
  5  2.95344e-06
  6  88.1219
  7  28.335
  8  2.84744e-05
  9  1.23111
  10  2.3876e-05
  11  11.599
  12  16.1474
  13  62.1847
  14  1.34812e-05
  15  3.28048e-05
  16  21.4543
  17  8.70484e-06
  18  0.35804
  19  0.10849
Done.

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

Extracting fit parameters...

4FGL J1957.1-3231
   Spectrum: PowerLaw
458    Prefactor:  1.000e-04  2.847e-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.093e+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.128e+00  3.580e-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.33e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.04e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/409144/likelihoodResults_600652801_600912001_4FGL_J1957.1-3231_daily_bin1394.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) = 8861.80965196
delta logL = -0.00102736296139

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8861.80862479
delta logL = -1.94278982235e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10279E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5539       1.0000          .0000       10.000    
     3 'Normalizat'    1.1283       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0929       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=   8861.809     FROM MIGRAD    STATUS=CONVERGED    107 CALLS      263 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .78354        .69452E-01** at limit **
   2  Index         2.1185        8.0669        .50000        .65561E-06
   3  Normalizat    1.1284        .36802E-02    .51482E-03   -.57495E-03
   4  Prefactor     1.0928        .11284E-02    .15878E-03   -.17555E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.11855
  Normalizat = 1.12845
  Prefactor  = 1.09279
 **********
 **   18 **HESSE 
 **********

 FCN=   8861.809     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      294 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    110.24        .34733E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1185        5.8683        .50000       -.61418    
   3  Normalizat    1.1284        .33973E-01    .20593E-04   -.88844    
   4  Prefactor     1.0928        .10417E-01    .31756E-04   -.89697    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.29866e-09
Minuit parameter uncertainties:
  1  0.000390542
  2  416.309
  3  0.0339736
  4  0.0104167
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/409144': 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) = 8861.80862196
delta logL = 2.63808578893e-06

Extracting fit parameters...

4FGL J1957.1-3231
   Spectrum: PowerLaw
458    Prefactor:  1.000e-04  3.905e-04  1.000e-04  1.000e+04 ( 1.000e-12)
459        Index:  2.119e+00  4.163e+02  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.093e+00  1.042e-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.128e+00  3.397e-02  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/409144/cmap_HighResolution_600652801_600912001_4FGL_J1957.1-3231_daily_bin1394.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.04e-02', job_status='DONE', photon_flux_upper_limit='1.33e-07', time_completed='2021-09-24 00:06:29.478001', job_id='409144', GAL2='1.09', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1632467189.48', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='2.64e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1394' AND source_name='4FGL J1957.1-3231' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 24 00:06:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0093>
Subject: Job 409144: <4FGL_J1957.1-3231_daily_bin1394> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1957.1-3231_daily_bin1394 299.286 -32.5246 600652801 600912001 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 :                                   789.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             354.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   865 sec.
    Turnaround time :                            868 sec.

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

