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


Performing analysis on: 4FGL_J1957.1-3231_daily_bin1627
RA = 299.286, Dec = -32.5246
tmin = 661046401, tmax = 661305601
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='250707', job_status='RUN', time_executed='2021-12-16 00:36:21.449094', time_epoch_executed='1639643781.45' WHERE source_name='4FGL J1957.1-3231' and cadence='daily' and bin_id='1627'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/250707

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/250707/ft1_4FGL_J1957.1-3231_daily_bin1627.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/250707/ft2_4FGL_J1957.1-3231_daily_bin1627.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/250707/ft1_4FGL_J1957.1-3231_daily_bin1627.fits outfile=/scratch/kocevski/250707/ft1_filteredMKT_4FGL_J1957.1-3231_daily_bin1627.fits ra=299.286 dec=-32.5246 rad=12.0 tmin=661046401.0 tmax=661305601.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.58
user 3.34
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/250707/ft1_filtered_4FGL_J1957.1-3231_daily_bin1627.fits" evtable="EVENTS" scfile=/scratch/kocevski/250707/ft2_4FGL_J1957.1-3231_daily_bin1627.fits sctable="SC_DATA" outfile=/scratch/kocevski/250707/ltcube_661046401_661305601_4FGL_J1957.1-3231_daily_bin1627.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/250707/ft2_4FGL_J1957.1-3231_daily_bin1627.fits
.....................!
real 11.87
user 11.54
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/250707/ft1_filtered_4FGL_J1957.1-3231_daily_bin1627.fits evtable="EVENTS" scfile=/scratch/kocevski/250707/ft2_4FGL_J1957.1-3231_daily_bin1627.fits sctable="SC_DATA" expcube=/scratch/kocevski/250707/ltcube_661046401_661305601_4FGL_J1957.1-3231_daily_bin1627.fits outfile=/scratch/kocevski/250707/expmap_661046401_661305601_4FGL_J1957.1-3231_daily_bin1627.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/250707/ltcube_661046401_661305601_4FGL_J1957.1-3231_daily_bin1627.fits
.....................!
real 191.74
user 186.06
sys 5.31

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/250707/ft1_filtered_4FGL_J1957.1-3231_daily_bin1627.fits scfile=/scratch/kocevski/250707/ft2_4FGL_J1957.1-3231_daily_bin1627.fits outfile=/scratch/kocevski/250707/cmap_661046401_661305601_4FGL_J1957.1-3231_daily_bin1627.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/250707/ft1_filtered_4FGL_J1957.1-3231_daily_bin1627.fits scfile=/scratch/kocevski/250707/ft2_4FGL_J1957.1-3231_daily_bin1627.fits outfile=/scratch/kocevski/250707/cmap_HighResolution_661046401_661305601_4FGL_J1957.1-3231_daily_bin1627.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/250707/ft1_filtered_4FGL_J1957.1-3231_daily_bin1627.fits evtable="EVENTS" scfile=/scratch/kocevski/250707/ft2_4FGL_J1957.1-3231_daily_bin1627.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/250707/Model_4FGL_J1957.1-3231_daily_bin1627.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/250707/ft1_filtered_4FGL_J1957.1-3231_daily_bin1627.fits.....................!
real 81.22
user 79.77
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.195       1.0000         .10000E-03   10000.    
     4 'Prefactor '    27.650       1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.161       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    37.558       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.0294       1.0000         .10000E-03   10000.    
     9 'norm      '    8.8238       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.3228       1.0000         .10000E-03   10000.    
    11 'norm      '    .10129E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10050E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    15.866       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .11604E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.0622       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .89484       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1518       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=   9309.055     FROM MIGRAD    STATUS=CONVERGED    385 CALLS     1634 TOTAL
                     EDM=   .51E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.2435        .11880E-06** at limit **
   2  norm          .10000E-03    1.2248        .54497E-08** at limit **
   3  Prefactor     15.194        7.0982        .11827E-06   -.16523E-04
   4  Prefactor     27.700        120.76        .24200E-05    .20438E-04
   5  Prefactor     17.163        17.061        .32355E-06   -.73375E-06
   6  Prefactor     .10000E-03    14.883        .87440E-07** at limit **
   7  norm          37.551        24.865       -.21987E-07   -.13826E-04
   8  Prefactor     5.0294        6.6548        .37743E-06   -.43816E-04
   9  norm          8.8240        1.9204        .31366E-07   -.17604E-04
  10  Prefactor     3.3220        26.734        .54635E-06   -.25275E-05
  11  norm          .10000E-03    13.072       -.28666E-06** at limit **
  12  norm          .10000E-03    11.522        .41332E-07** at limit **
  13  Prefactor     .10000E-03    60.171        .90890E-06** at limit **
  14  norm          15.866        14.653        .91287E-06   -.48857E-04
  15  Prefactor     .10000E-03    33.510       -.48445E-06** at limit **
  16  norm          .10000E-03    83.887       -.35363E-05** at limit **
  17  Prefactor     1.0615        9.6310        .45487E-05   -.53043E-04
  18  Normalizat    .89486        .33363       -.16013E-05   -.58240E-04
  19  Prefactor     1.1518        .98339E-01   -.22766E-06   -.10208E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 15.1944
  Prefactor  = 27.7
  Prefactor  = 17.1629
  Prefactor  = 0.0001
  norm       = 37.551
  Prefactor  = 5.02942
  norm       = 8.82402
  Prefactor  = 3.32201
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  norm       = 15.8665
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 1.0615
  Normalizat = 0.894863
  Prefactor  = 1.15176
 **********
 **   18 **HESSE 
 **********

 FCN=   9309.055     FROM HESSE     STATUS=OK           266 CALLS     1900 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.2572        .16971E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.2469        .10427E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     15.194        7.1019        .10275E-03   -1.4928    
   4  Prefactor     27.700        121.26        .76188E-04   -1.4655    
   5  Prefactor     17.163        17.036        .96682E-04   -1.4879    
   6  Prefactor     .10000E-03    14.902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          37.551        24.871        .65398E-04   -1.4482    
   8  Prefactor     5.0294        6.6389        .17931E-03   -1.5259    
   9  norm          8.8240        1.9189        .59108E-04   -1.5114    
  10  Prefactor     3.3220        26.709        .22206E-03   -1.5343    
  11  norm          .10000E-03    13.325        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    11.888        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    60.909        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          15.866        14.637        .50276E-03   -1.4911    
  15  Prefactor     .10000E-03    33.636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    86.666        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.0615        9.7038        .47475E-03   -1.5502    
  18  Normalizat    .89486        .35775        .57886E-03   -.96641    
  19  Prefactor     1.1518        .10736        .15944E-03   -.87829    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03127e-10
Minuit parameter uncertainties:
  1  9.98482e-07
  2  8.55415e-07
  3  7.1023
  4  116.312
  5  17.0405
  6  3.67249e-05
  7  24.878
  8  6.63992
  9  1.91894
  10  18.8502
  11  9.22276e-06
  12  2.05058e-05
  13  0.00067482
  14  14.6399
  15  0.000154779
  16  0.000560898
  17  6.41999
  18  0.358707
  19  0.107382
Done.

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

Extracting fit parameters...

4FGL J1957.1-3231
   Spectrum: PowerLaw
458    Prefactor:  5.029e+00  6.640e+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.152e+00  1.074e-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:  8.949e-01  3.587e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/250707/likelihoodResults_661046401_661305601_4FGL_J1957.1-3231_daily_bin1627.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) = 9309.02554531
delta logL = 0.0296463670784

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9309.02306998
delta logL = 0.0321216962693

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.9840       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1049       1.0000          .0000       10.000    
     3 'Normalizat'    .92024       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1482       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.

 FCN=   9309.023     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      247 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.9504        158.86        .45034E-02    .22713E-03
   2  Index         2.0962        2.8575        .46599        .33878E-04
   3  Normalizat    .92063        .75640E-01    .12883        .75331E-04
   4  Prefactor     1.1482        .21450E-01    .35989E-01    .10969E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.95036
  Index      = 2.09621
  Normalizat = 0.920626
  Prefactor  = 1.14822
 **********
 **   18 **HESSE 
 **********

 FCN=   9309.023     FROM HESSE     STATUS=OK            33 CALLS      280 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.9504        8.4029        .18014E-03   -1.5263    
   2  Index         2.0962        1.6086        .89812E-02   -.61966    
   3  Normalizat    .92063        .34819        .57166E-03   -.95739    
   4  Prefactor     1.1482        .10651        .15966E-03   -.87940    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.81394e-10
Minuit parameter uncertainties:
  1  8.40489
  2  1.65376
  3  0.349048
  4  0.106528
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/250707': 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) = 9309.02305585
delta logL = 0.0321358253823

Extracting fit parameters...

4FGL J1957.1-3231
   Spectrum: PowerLaw
458    Prefactor:  4.950e+00  8.405e+00  1.000e-04  1.000e+04 ( 1.000e-12)
459        Index:  2.096e+00  1.654e+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.148e+00  1.065e-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:  9.206e-01  3.490e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.72
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/250707/cmap_HighResolution_661046401_661305601_4FGL_J1957.1-3231_daily_bin1627.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.69e-02', job_status='DONE', photon_flux_upper_limit='2.17e-07', time_completed='2021-12-16 00:49:09.180638', job_id='250707', GAL2='1.15', fit_tolerance='1e-08', EG2='0.92', EG='0.89', time_epoch_completed='1639644549.18', return_code2='0', ts='0.72', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='3.21e-02', ts2='0.78', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1627' AND source_name='4FGL J1957.1-3231' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Dec 16 00:49:09 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0242>
Subject: Job 250707: <4FGL_J1957.1-3231_daily_bin1627> in cluster <slac> Done

Job <4FGL_J1957.1-3231_daily_bin1627> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Thu Dec 16 00:35:22 2021
Job was executed on host(s) <bullet0242>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Dec 16 00:35:24 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Dec 16 00:35:24 2021
Terminated at Thu Dec 16 00:49:09 2021
Results reported at Thu Dec 16 00:49:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1957.1-3231_daily_bin1627 299.286 -32.5246 661046401 661305601 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 :                                   769.32 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             338.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   825 sec.
    Turnaround time :                            827 sec.

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

