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


Performing analysis on: 4FGL_J1957.1-3231_daily_bin1341
RA = 299.286, Dec = -32.5246
tmin = 586915201, tmax = 587174401
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='409088', job_status='RUN', time_executed='2021-09-23 23:55:34.882169', time_epoch_executed='1632466534.88' WHERE source_name='4FGL J1957.1-3231' and cadence='daily' and bin_id='1341'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/409088

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/409088/ft1_4FGL_J1957.1-3231_daily_bin1341.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/409088/ft2_4FGL_J1957.1-3231_daily_bin1341.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/409088/ft1_4FGL_J1957.1-3231_daily_bin1341.fits outfile=/scratch/kocevski/409088/ft1_filteredMKT_4FGL_J1957.1-3231_daily_bin1341.fits ra=299.286 dec=-32.5246 rad=12.0 tmin=586915201.0 tmax=587174401.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.59
user 3.38
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/409088/ft1_filtered_4FGL_J1957.1-3231_daily_bin1341.fits" evtable="EVENTS" scfile=/scratch/kocevski/409088/ft2_4FGL_J1957.1-3231_daily_bin1341.fits sctable="SC_DATA" outfile=/scratch/kocevski/409088/ltcube_586915201_587174401_4FGL_J1957.1-3231_daily_bin1341.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/409088/ft2_4FGL_J1957.1-3231_daily_bin1341.fits
.....................!
real 12.39
user 12.04
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/409088/ft1_filtered_4FGL_J1957.1-3231_daily_bin1341.fits evtable="EVENTS" scfile=/scratch/kocevski/409088/ft2_4FGL_J1957.1-3231_daily_bin1341.fits sctable="SC_DATA" expcube=/scratch/kocevski/409088/ltcube_586915201_587174401_4FGL_J1957.1-3231_daily_bin1341.fits outfile=/scratch/kocevski/409088/expmap_586915201_587174401_4FGL_J1957.1-3231_daily_bin1341.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/409088/ltcube_586915201_587174401_4FGL_J1957.1-3231_daily_bin1341.fits
.....................!
real 190.62
user 185.57
sys 4.72

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/409088/ft1_filtered_4FGL_J1957.1-3231_daily_bin1341.fits scfile=/scratch/kocevski/409088/ft2_4FGL_J1957.1-3231_daily_bin1341.fits outfile=/scratch/kocevski/409088/cmap_586915201_587174401_4FGL_J1957.1-3231_daily_bin1341.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/409088/ft1_filtered_4FGL_J1957.1-3231_daily_bin1341.fits scfile=/scratch/kocevski/409088/ft2_4FGL_J1957.1-3231_daily_bin1341.fits outfile=/scratch/kocevski/409088/cmap_HighResolution_586915201_587174401_4FGL_J1957.1-3231_daily_bin1341.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.53
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/409088/ft1_filtered_4FGL_J1957.1-3231_daily_bin1341.fits evtable="EVENTS" scfile=/scratch/kocevski/409088/ft2_4FGL_J1957.1-3231_daily_bin1341.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/409088/Model_4FGL_J1957.1-3231_daily_bin1341.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/409088/ft1_filtered_4FGL_J1957.1-3231_daily_bin1341.fits.....................!
real 74.56
user 73.08
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.4420       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.2740       1.0000         .10000E-03   10000.    
     4 'Prefactor '    167.74       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.5911       1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.723       1.0000         .10000E-03   10000.    
     7 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.2793       1.0000         .10000E-03   10000.    
     9 'norm      '    1.2223       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    18.382       1.0000         .10000E-03   10000.    
    13 'Prefactor '    15.904       1.0000         .10000E-03   10000.    
    14 'norm      '    13.525       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .81852E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10101E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .67628       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0620       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=   8157.554     FROM MIGRAD    STATUS=CONVERGED    364 CALLS     1861 TOTAL
                     EDM=   .11E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.9443        .13437E-06** at limit **
   2  norm          2.4418        2.2081        .44374E-07    .29484E-04
   3  Prefactor     8.2723        5.5945        .25265E-06    .14547E-04
   4  Prefactor     167.73        125.07        .15337E-05   -.16598E-05
   5  Prefactor     7.5884        10.338        .53317E-06   -.22141E-05
   6  Prefactor     11.716        31.382        .40408E-06   -.96537E-05
   7  norm          .10000E-03    4.9221       -.30666E-07** at limit **
   8  Prefactor     1.2752        7.2885        .39998E-05   -.14115E-04
   9  norm          1.2220        1.1024        .18214E-06    .87433E-04
  10  Prefactor     .10000E-03    17.077       -.12589E-07** at limit **
  11  norm          .10000E-03    11.434        .31022E-06** at limit **
  12  norm          18.376        18.082        .49431E-06    .24009E-06
  13  Prefactor     15.895        43.349        .89629E-06   -.12867E-04
  14  norm          13.525        13.213       -.22342E-08    .29806E-04
  15  Prefactor     .10000E-03    302.70       -.19162E-04** at limit **
  16  norm          .10000E-03    5.7186        .21946E-07** at limit **
  17  Prefactor     .10000E-03    4.7590        .45481E-07** at limit **
  18  Normalizat    .67643        .31005       -.66739E-05   -.12174E-04
  19  Prefactor     1.0620        .91591E-01    .25942E-06   -.63240E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 2.44182
  Prefactor  = 8.27228
  Prefactor  = 167.732
  Prefactor  = 7.58838
  Prefactor  = 11.7159
  norm       = 0.0001
  Prefactor  = 1.27518
  norm       = 1.22202
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 18.376
  Prefactor  = 15.8951
  norm       = 13.5252
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.676432
  Prefactor  = 1.06202
 **********
 **   18 **HESSE 
 **********

 FCN=   8157.554     FROM HESSE     STATUS=OK           272 CALLS     2133 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.0486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.4418        2.2151        .12431E-03   -1.5395    
   3  Prefactor     8.2723        5.5995        .13937E-03   -1.5133    
   4  Prefactor     167.73        125.04        .31147E-04   -1.3110    
   5  Prefactor     7.5884        10.323        .14555E-03   -1.5157    
   6  Prefactor     11.716        31.431        .11700E-03   -1.5023    
   7  norm          .10000E-03    4.9235        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.2752        7.5586        .39254E-03   -1.5482    
   9  norm          1.2220        1.0798        .85668E-04   -1.5487    
  10  Prefactor     .10000E-03    17.105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    11.709        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          18.376        18.077        .93417E-04   -1.4850    
  13  Prefactor     15.895        43.341        .10043E-03   -1.4910    
  14  norm          13.525        13.187        .10891E-03   -1.4972    
  15  Prefactor     .10000E-03    303.94        .41777E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    5.7191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.8094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .67643        .32511        .57499E-03   -1.0483    
  19  Prefactor     1.0620        .98900E-01    .14444E-03   -.90690    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.135e-11
Minuit parameter uncertainties:
  1  1.14385e-05
  2  2.21519
  3  5.59989
  4  125.237
  5  10.3254
  6  31.4751
  7  6.59405e-06
  8  6.21013
  9  1.0798
  10  1.92672e-06
  11  3.82466e-05
  12  18.082
  13  43.4272
  14  13.1902
  15  0.000268933
  16  3.6843e-06
  17  3.101e-05
  18  0.326037
  19  0.098917
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
752    Prefactor:  1.062e+00  9.892e-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:  6.764e-01  3.260e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/409088/likelihoodResults_586915201_587174401_4FGL_J1957.1-3231_daily_bin1341.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) = 8157.53427943
delta logL = 0.0200184434379

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8157.53413497
delta logL = 0.020162904344

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2741       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8927       1.0000          .0000       10.000    
     3 'Normalizat'    .67093       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0624       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=   8157.534     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      258 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2563        5.7555        .33435E-03   -.17875E-03
   2  Index         2.8962        1.6675        .84685E-02   -.71585E-04
   3  Normalizat    .67089        .31500        .57716E-03   -.54316E-03
   4  Prefactor     1.0624        .97647E-01    .14442E-03   -.22661E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.25628
  Index      = 2.89615
  Normalizat = 0.670893
  Prefactor  = 1.06243
 **********
 **   18 **HESSE 
 **********

 FCN=   8157.534     FROM HESSE     STATUS=OK            23 CALLS      281 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2563        5.0618        .13374E-04   -1.5484    
   2  Index         2.8962        1.5687        .33874E-03   -.43429    
   3  Normalizat    .67089        .31508        .23086E-04   -1.0505    
   4  Prefactor     1.0624        .97631E-01    .28883E-04   -.90677    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.91193e-09
Minuit parameter uncertainties:
  1  5.04394
  2  1.60173
  3  0.315936
  4  0.0976473
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/409088': 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) = 8157.53412822
delta logL = 0.0201696556906

Extracting fit parameters...

4FGL J1957.1-3231
   Spectrum: PowerLaw
458    Prefactor:  1.256e+00  5.044e+00  1.000e-04  1.000e+04 ( 1.000e-12)
459        Index:  2.896e+00  1.602e+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.062e+00  9.765e-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:  6.709e-01  3.159e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.05
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/409088/cmap_HighResolution_586915201_587174401_4FGL_J1957.1-3231_daily_bin1341.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.37e-02', job_status='DONE', photon_flux_upper_limit='1.75e-07', time_completed='2021-09-24 00:08:20.059715', job_id='409088', GAL2='1.06', fit_tolerance='1e-08', EG2='0.67', EG='0.68', time_epoch_completed='1632467300.06', return_code2='0', ts='0.05', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='2.02e-02', ts2='0.09', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1341' AND source_name='4FGL J1957.1-3231' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 24 00:08:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 409088: <4FGL_J1957.1-3231_daily_bin1341> in cluster <slac> Done

Job <4FGL_J1957.1-3231_daily_bin1341> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep 23 23:51:55 2021
Job was executed on host(s) <bullet0213>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 23 23:51:58 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:51:58 2021
Terminated at Fri Sep 24 00:08:20 2021
Results reported at Fri Sep 24 00:08:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1957.1-3231_daily_bin1341 299.286 -32.5246 586915201 587174401 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 :                                   751.28 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             282.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   982 sec.
    Turnaround time :                            985 sec.

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

