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


Performing analysis on: 4FGL_J0957.3-1348_daily_bin866
RA = 149.331, Dec = -13.8141
tmin = 463795201, tmax = 464054401
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='591146', job_status='RUN', time_executed='2021-09-01 06:35:22.713602', time_epoch_executed='1630503322.71' WHERE source_name='4FGL J0957.3-1348' and cadence='daily' and bin_id='866'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/591146

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/591146/ft1_4FGL_J0957.3-1348_daily_bin866.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/591146/ft2_4FGL_J0957.3-1348_daily_bin866.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/591146/ft1_4FGL_J0957.3-1348_daily_bin866.fits outfile=/scratch/kocevski/591146/ft1_filteredMKT_4FGL_J0957.3-1348_daily_bin866.fits ra=149.331 dec=-13.8141 rad=12.0 tmin=463795201.0 tmax=464054401.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 4.63
user 3.25
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/591146/ft2_4FGL_J0957.3-1348_daily_bin866.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/591146/ft2_4FGL_J0957.3-1348_daily_bin866.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/591146/ft1_filteredMKT_4FGL_J0957.3-1348_daily_bin866.fits evtable="EVENTS" outfile="/scratch/kocevski/591146/ft1_filtered_4FGL_J0957.3-1348_daily_bin866.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 1.03
user 0.36
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/591146/ft1_filtered_4FGL_J0957.3-1348_daily_bin866.fits" evtable="EVENTS" scfile=/scratch/kocevski/591146/ft2_4FGL_J0957.3-1348_daily_bin866.fits sctable="SC_DATA" outfile=/scratch/kocevski/591146/ltcube_463795201_464054401_4FGL_J0957.3-1348_daily_bin866.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/591146/ft2_4FGL_J0957.3-1348_daily_bin866.fits
.....................!
real 11.93
user 11.45
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/591146/ft1_filtered_4FGL_J0957.3-1348_daily_bin866.fits evtable="EVENTS" scfile=/scratch/kocevski/591146/ft2_4FGL_J0957.3-1348_daily_bin866.fits sctable="SC_DATA" expcube=/scratch/kocevski/591146/ltcube_463795201_464054401_4FGL_J0957.3-1348_daily_bin866.fits outfile=/scratch/kocevski/591146/expmap_463795201_464054401_4FGL_J0957.3-1348_daily_bin866.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/591146/ltcube_463795201_464054401_4FGL_J0957.3-1348_daily_bin866.fits
.....................!
real 192.85
user 187.63
sys 3.92

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 168 point sources and 0 extended sources

Setting source of interest to:
4FGL J0957.3-1348 @ 149.331 -13.8141

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/591146/ft1_filtered_4FGL_J0957.3-1348_daily_bin866.fits scfile=/scratch/kocevski/591146/ft2_4FGL_J0957.3-1348_daily_bin866.fits outfile=/scratch/kocevski/591146/cmap_463795201_464054401_4FGL_J0957.3-1348_daily_bin866.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=149.331 yref=-13.8141 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.66
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/591146/ft1_filtered_4FGL_J0957.3-1348_daily_bin866.fits scfile=/scratch/kocevski/591146/ft2_4FGL_J0957.3-1348_daily_bin866.fits outfile=/scratch/kocevski/591146/cmap_HighResolution_463795201_464054401_4FGL_J0957.3-1348_daily_bin866.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=149.331 yref=-13.8141 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.64
user 0.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/591146/ft1_filtered_4FGL_J0957.3-1348_daily_bin866.fits evtable="EVENTS" scfile=/scratch/kocevski/591146/ft2_4FGL_J0957.3-1348_daily_bin866.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/591146/Model_4FGL_J0957.3-1348_daily_bin866.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/591146/ft1_filtered_4FGL_J0957.3-1348_daily_bin866.fits.....................!
real 72.04
user 70.48
sys 1.11

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/591146/ft1_filtered_4FGL_J0957.3-1348_daily_bin866.fits', '/scratch/kocevski/591146/ft2_4FGL_J0957.3-1348_daily_bin866.fits', expMap='/scratch/kocevski/591146/expmap_463795201_464054401_4FGL_J0957.3-1348_daily_bin866.fits', expCube='/scratch/kocevski/591146/ltcube_463795201_464054401_4FGL_J0957.3-1348_daily_bin866.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/591146/Model_4FGL_J0957.3-1348_daily_bin866.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0957.3-1348'

4FGL J0957.3-1348
   Spectrum: LogParabola
237         norm:  4.147e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
238        alpha:  2.310e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
239         beta:  1.553e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
240           Eb:  5.621e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/591146/ft1_filtered_4FGL_J0957.3-1348_daily_bin866.fits
Spacecraft file(s): /scratch/kocevski/591146/ft2_4FGL_J0957.3-1348_daily_bin866.fits
Exposure map: /scratch/kocevski/591146/expmap_463795201_464054401_4FGL_J0957.3-1348_daily_bin866.fits
Exposure cube: /scratch/kocevski/591146/ltcube_463795201_464054401_4FGL_J0957.3-1348_daily_bin866.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/591146/Model_4FGL_J0957.3-1348_daily_bin866.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) = 7578.94998086

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.254       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .19405E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .48979E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .58202E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .32923E-01   1.0000         .10000E-03   10000.    
     6 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.3958       1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.5628       1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.264       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.2891       1.0000         .10000E-03   10000.    
    13 'Normalizat'    .63889       1.0000         .10000E-01   10.000    
    14 'Prefactor '    1.1645       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5460E+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=   7577.921     FROM MIGRAD    STATUS=CONVERGED    484 CALLS     1312 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.290        31.067        .10255E-03    .83368E-04
   2  Prefactor     .10000E-03    76.496        .18142E-02** at limit **
   3  Prefactor     .10489E-03    20.159        .10226    ** at limit **
   4  Prefactor     .11679E-03    18.535        .11164    ** at limit **
   5  Prefactor     .69822E-01    12.789        .71719E-01    .32734E-03
   6  norm          .10000E-03    4.6488        .36086E-03** at limit **
   7  norm          1.3958        2.3845        .17262E-03    .11973E-03
   8  norm          .10000E-03    .43423        .55727E-03** at limit **
   9  norm          .10000E-03    4.8759        .18142E-02** at limit **
  10  norm          1.5628        1.0860        .17016E-03   -.84245E-03
  11  Prefactor     10.268        26.168        .12507E-03   -.90899E-05
  12  Prefactor     3.2890        3.2235        .15029E-03    .70954E-04
  13  Normalizat    .63880        .19428        .32202E-03    .38852E-03
  14  Prefactor     1.1645        .13213        .16957E-03    .62284E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.2903
  Prefactor  = 0.0001
  Prefactor  = 0.00010489
  Prefactor  = 0.000116785
  Prefactor  = 0.0698224
  norm       = 0.0001
  norm       = 1.39575
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.56279
  Prefactor  = 10.2678
  Prefactor  = 3.289
  Normalizat = 0.638796
  Prefactor  = 1.16451
 **********
 **   18 **HESSE 
 **********

 FCN=   7577.921     FROM HESSE     STATUS=OK           178 CALLS     1490 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.290        31.065        .41019E-05   -1.4926    
   2  Prefactor     .10000E-03    76.558        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10489E-03    18.821        .10732       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .11679E-03    18.066        .11395       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .69822E-01    11.206        .77985E-01   -1.5655    
   6  norm          .10000E-03    4.6489        .72171E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.3958        2.3844        .69047E-05   -1.5472    
   8  norm          .10000E-03    .43425        .11145E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    4.8774        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.5628        1.0859        .68062E-05   -1.5458    
  11  Prefactor     10.268        26.168        .50028E-05   -1.5067    
  12  Prefactor     3.2890        3.2234        .60117E-05   -1.5345    
  13  Normalizat    .63880        .19441        .12881E-04   -1.0636    
  14  Prefactor     1.1645        .13220        .33915E-04   -.87430    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.6283e-09
Minuit parameter uncertainties:
  1  31.0979
  2  0.000213531
  3  0.0191928
  4  0.0348379
  5  1.76816
  6  1.34539e-05
  7  2.38452
  8  1.07788e-06
  9  1.07403e-05
  10  1.08591
  11  26.1969
  12  3.2236
  13  0.194622
  14  0.132236
Done.

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

Extracting fit parameters...

4FGL J0957.3-1348
   Spectrum: LogParabola
237         norm:  1.000e-04  1.074e-05  1.000e-04  1.000e+04 ( 1.000e-12)
238        alpha:  2.310e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
239         beta:  1.553e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
240           Eb:  5.621e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
543    Prefactor:  1.165e+00  1.322e-01  0.000e+00  1.000e+01 ( 1.000e+00)
544        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
545        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
542   Normalization:  6.388e-01  1.946e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 149.331 -13.814
Photon Flux Upper Limit: 5.45e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.80e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/591146/likelihoodResults_463795201_464054401_4FGL_J0957.3-1348_daily_bin866.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) = 7577.92241752
delta logL = -0.000977256783699

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7577.92144029
delta logL = -2.48419382842e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3210       1.0000          .0000       5.0000    
     3 'Normalizat'    .63877       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1645       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5460E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7577.864     FROM MIGRAD    STATUS=FAILED       128 CALLS      274 TOTAL
                     EDM=   .66E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .16178        30.271        .18142E-01    .24653E-02
   2  alpha         5.0000        4.9893        .16514    ** at limit **
   3  Normalizat    .61566        .14711        .32202E-03    .80493E-05
   4  Prefactor     1.1737        .54463E-01    .16957E-03    .15889E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7577.864     FROM SIMPLEX   STATUS=UNCHANGED    156 CALLS      430 TOTAL
                     EDM=   .37E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .16178        30.271        .14687E-05    .24653E-02
   2  alpha         5.0000        4.9893        .94587E-02** at limit **
   3  Normalizat    .61566        .14711        .40912E-06    .80493E-05
   4  Prefactor     1.1737        .54463E-01    .13553E-07    .15889E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7577.864     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      463 TOTAL
                     EDM=   .41E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .16178        .49515        .78416E-03    .51129E-03
   2  alpha         5.0000        4.7158        .66057E-02** at limit **
   3  Normalizat    .61566        .20110        .12881E-04    .19241E-04
   4  Prefactor     1.1737        .13458        .67829E-05    .19107E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.161784
  alpha      = 5
  Normalizat = 0.615658
  Prefactor  = 1.17372
 **********
 **   18 **HESSE 
 **********

 FCN=   7577.864     FROM HESSE     STATUS=OK            25 CALLS      488 TOTAL
                     EDM=   .69E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .16178        .49213        .31366E-04   -1.5628    
   2  alpha         5.0000        4.7158        .13211E-02    20.420    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .61566        .19985        .25762E-05   -1.0732    
   4  Prefactor     1.1737        .13419        .13566E-05   -.87144    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.94806e-12
Minuit parameter uncertainties:
  1  0.492142
  2  3.54636e-05
  3  0.20008
  4  0.134227
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/591146': 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) = 7577.86410201
delta logL = 0.0573382528792

Extracting fit parameters...

4FGL J0957.3-1348
   Spectrum: LogParabola
237         norm:  1.618e-01  4.921e-01  1.000e-04  1.000e+04 ( 1.000e-12)
238        alpha:  5.000e+00  3.546e-05  0.000e+00  5.000e+00 ( 1.000e+00)
239         beta:  1.553e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
240           Eb:  5.621e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
543    Prefactor:  1.174e+00  1.342e-01  0.000e+00  1.000e+01 ( 1.000e+00)
544        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
545        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
542   Normalization:  6.157e-01  2.001e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 149.331 -13.814

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/591146/cmap_HighResolution_463795201_464054401_4FGL_J0957.3-1348_daily_bin866.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.80e-05', job_status='DONE', photon_flux_upper_limit='5.45e-08', time_completed='2021-09-01 06:44:55.474885', job_id='591146', GAL2='1.17', fit_tolerance='1e-08', EG2='0.62', EG='0.64', time_epoch_completed='1630503895.47', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='5.73e-02', ts2='0.14', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='866' AND source_name='4FGL J0957.3-1348' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 06:44:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 591146: <4FGL_J0957.3-1348_daily_bin866> in cluster <slac> Done

Job <4FGL_J0957.3-1348_daily_bin866> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 06:31:13 2021
Job was executed on host(s) <bullet0088>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 06:31:14 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 06:31:14 2021
Terminated at Wed Sep  1 06:44:56 2021
Results reported at Wed Sep  1 06:44:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0957.3-1348_daily_bin866 149.331 -13.8141 463795201 464054401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0957.3-1348 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   562.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             274.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   821 sec.
    Turnaround time :                            823 sec.

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

