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


Performing analysis on: 4FGL_J0953.0-0840_daily_bin1407
RA = 148.263, Dec = -8.6695
tmin = 604022401, tmax = 604281601
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='576452', job_status='RUN', time_executed='2021-09-01 05:53:44.288041', time_epoch_executed='1630500824.29' WHERE source_name='4FGL J0953.0-0840' and cadence='daily' and bin_id='1407'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/576452

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/576452/ft1_4FGL_J0953.0-0840_daily_bin1407.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/576452/ft2_4FGL_J0953.0-0840_daily_bin1407.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/576452/ft1_4FGL_J0953.0-0840_daily_bin1407.fits outfile=/scratch/kocevski/576452/ft1_filteredMKT_4FGL_J0953.0-0840_daily_bin1407.fits ra=148.263 dec=-8.6695 rad=12.0 tmin=604022401.0 tmax=604281601.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.20
user 3.94
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/576452/ft2_4FGL_J0953.0-0840_daily_bin1407.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/576452/ft2_4FGL_J0953.0-0840_daily_bin1407.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/576452/ft1_filteredMKT_4FGL_J0953.0-0840_daily_bin1407.fits evtable="EVENTS" outfile="/scratch/kocevski/576452/ft1_filtered_4FGL_J0953.0-0840_daily_bin1407.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.54
user 0.36
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/576452/ft1_filtered_4FGL_J0953.0-0840_daily_bin1407.fits" evtable="EVENTS" scfile=/scratch/kocevski/576452/ft2_4FGL_J0953.0-0840_daily_bin1407.fits sctable="SC_DATA" outfile=/scratch/kocevski/576452/ltcube_604022401_604281601_4FGL_J0953.0-0840_daily_bin1407.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/576452/ft2_4FGL_J0953.0-0840_daily_bin1407.fits
.....................!
real 11.76
user 11.33
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/576452/ft1_filtered_4FGL_J0953.0-0840_daily_bin1407.fits evtable="EVENTS" scfile=/scratch/kocevski/576452/ft2_4FGL_J0953.0-0840_daily_bin1407.fits sctable="SC_DATA" expcube=/scratch/kocevski/576452/ltcube_604022401_604281601_4FGL_J0953.0-0840_daily_bin1407.fits outfile=/scratch/kocevski/576452/expmap_604022401_604281601_4FGL_J0953.0-0840_daily_bin1407.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/576452/ltcube_604022401_604281601_4FGL_J0953.0-0840_daily_bin1407.fits
.....................!
real 190.53
user 185.42
sys 4.50

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

Setting source of interest to:
4FGL J0953.0-0840 @ 148.263 -8.6695

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/576452/ft1_filtered_4FGL_J0953.0-0840_daily_bin1407.fits scfile=/scratch/kocevski/576452/ft2_4FGL_J0953.0-0840_daily_bin1407.fits outfile=/scratch/kocevski/576452/cmap_604022401_604281601_4FGL_J0953.0-0840_daily_bin1407.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=148.263 yref=-8.6695 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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/576452/ft1_filtered_4FGL_J0953.0-0840_daily_bin1407.fits scfile=/scratch/kocevski/576452/ft2_4FGL_J0953.0-0840_daily_bin1407.fits outfile=/scratch/kocevski/576452/cmap_HighResolution_604022401_604281601_4FGL_J0953.0-0840_daily_bin1407.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=148.263 yref=-8.6695 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.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/576452/ft1_filtered_4FGL_J0953.0-0840_daily_bin1407.fits evtable="EVENTS" scfile=/scratch/kocevski/576452/ft2_4FGL_J0953.0-0840_daily_bin1407.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/576452/Model_4FGL_J0953.0-0840_daily_bin1407.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/576452/ft1_filtered_4FGL_J0953.0-0840_daily_bin1407.fits.....................!
real 56.61
user 55.18
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/576452/ft1_filtered_4FGL_J0953.0-0840_daily_bin1407.fits', '/scratch/kocevski/576452/ft2_4FGL_J0953.0-0840_daily_bin1407.fits', expMap='/scratch/kocevski/576452/expmap_604022401_604281601_4FGL_J0953.0-0840_daily_bin1407.fits', expCube='/scratch/kocevski/576452/ltcube_604022401_604281601_4FGL_J0953.0-0840_daily_bin1407.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/576452/Model_4FGL_J0953.0-0840_daily_bin1407.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0953.0-0840'

4FGL J0953.0-0840
   Spectrum: LogParabola
241         norm:  1.258e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
242        alpha:  1.803e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
243         beta:  4.647e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
244           Eb:  1.364e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/576452/ft1_filtered_4FGL_J0953.0-0840_daily_bin1407.fits
Spacecraft file(s): /scratch/kocevski/576452/ft2_4FGL_J0953.0-0840_daily_bin1407.fits
Exposure map: /scratch/kocevski/576452/expmap_604022401_604281601_4FGL_J0953.0-0840_daily_bin1407.fits
Exposure cube: /scratch/kocevski/576452/ltcube_604022401_604281601_4FGL_J0953.0-0840_daily_bin1407.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/576452/Model_4FGL_J0953.0-0840_daily_bin1407.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) = 5123.41118857

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.6975       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .36919E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.9941       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .23062E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.5034       1.0000         .10000E-03   10000.    
     8 'norm      '    .10659E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.2646       1.0000         .10000E-03   10000.    
    11 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    17.357       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.286       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.1295       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .88488       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5122.794     FROM MIGRAD    STATUS=CONVERGED    329 CALLS     1372 TOTAL
                     EDM=   .56E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.6974        7.9580        .16268E-06   -.14630E-05
   2  Prefactor     .10000E-03    19.430       -.54763E-06** at limit **
   3  Prefactor     .10000E-03    495.37       -.14702E-04** at limit **
   4  Prefactor     7.9937        8.7891       -.21751E-06   -.20042E-05
   5  Prefactor     .10000E-03    223.41        .17706E-05** at limit **
   6  Prefactor     .10000E-03    23.649       -.15919E-07** at limit **
   7  Prefactor     1.5029        26.848        .30084E-05    .69885E-05
   8  norm          .10000E-03    6.1759        .21173E-06** at limit **
   9  norm          .10000E-03    2.3706       -.19641E-07** at limit **
  10  norm          4.2646        1.0831       -.10490E-07   -.10020E-03
  11  norm          .10000E-03    .80164        .17085E-07** at limit **
  12  norm          .10000E-03    4.1901        .21672E-07** at limit **
  13  Prefactor     17.381        52.676        .14388E-05    .39489E-05
  14  Prefactor     .10000E-03    19.620        .32354E-06** at limit **
  15  Prefactor     11.287        8.7217        .26520E-06    .63295E-05
  16  Normalizat    1.1294        .23488       -.26918E-05   -.31949E-05
  17  Prefactor     .88508        .14959        .29599E-06   -.16470E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.69737
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.99369
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 1.50291
  norm       = 0.000100001
  norm       = 0.0001
  norm       = 4.26457
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 17.3807
  Prefactor  = 0.0001
  Prefactor  = 11.2867
  Normalizat = 1.1294
  Prefactor  = 0.885076
 **********
 **   18 **HESSE 
 **********

 FCN=   5122.794     FROM HESSE     STATUS=OK           221 CALLS     1593 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.6974        7.9519        .18567E-03   -1.5274    
   2  Prefactor     .10000E-03    19.443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    490.24        .39184E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.9937        8.7865        .14181E-03   -1.5142    
   5  Prefactor     .10000E-03    230.99        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    23.680        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.5029        27.464        .34912E-03   -1.5463    
   8  norm          .10000E-03    22.871        .34293E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.3966        .10759E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.2646        1.0850        .35684E-04   -1.5295    
  11  norm          .10000E-03    .81004        .62592E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    4.1960        .14309E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     17.381        52.658        .96134E-04   -1.4874    
  14  Prefactor     .10000E-03    19.646        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     11.287        8.7249        .11925E-03   -1.5036    
  16  Normalizat    1.1294        .26913        .28178E-03   -.88813    
  17  Prefactor     .88508        .17859        .21096E-03   -.96665    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76158e-10
Minuit parameter uncertainties:
  1  7.95364
  2  4.39657e-05
  3  0.000632657
  4  8.78795
  5  0.00156514
  6  5.48489e-06
  7  12.8557
  8  0.000334305
  9  6.30975e-06
  10  1.08498
  11  1.96173e-06
  12  5.29332e-06
  13  52.799
  14  2.36656e-05
  15  8.72591
  16  0.269457
  17  0.178709
Done.

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

Extracting fit parameters...

4FGL J0953.0-0840
   Spectrum: LogParabola
241         norm:  1.000e-04  1.962e-06  1.000e-04  1.000e+04 ( 1.000e-12)
242        alpha:  1.803e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
243         beta:  4.647e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
244           Eb:  1.364e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  8.851e-01  1.787e-01  0.000e+00  1.000e+01 ( 1.000e+00)
533        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
534        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
531   Normalization:  1.129e+00  2.695e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 148.263 -8.669
Photon Flux Upper Limit: 4.67e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.97e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/576452/likelihoodResults_604022401_604281601_4FGL_J0953.0-0840_daily_bin1407.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) = 5122.79459751
delta logL = -0.00109148851607

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5122.79349988
delta logL = 6.14669897914e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4418       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1294       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88509       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5350E+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=   5122.793     FROM MIGRAD    STATUS=FAILED        86 CALLS      275 TOTAL
                     EDM=   .93E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10016E-03    77.212        .10427E-02** at limit **
   2  alpha         2.3861        3.4547        .50000        .80548E-05
   3  Normalizat    1.1294        .58609E-01    .28178E-03    .18097E-03
   4  Prefactor     .88508        .39570E-01    .21096E-03    .24451E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5122.793     FROM SIMPLEX   STATUS=UNCHANGED    149 CALLS      424 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10016E-03    77.212        .16275E-03** at limit **
   2  alpha         2.3861        3.4547        .79887E-04    .80548E-05
   3  Normalizat    1.1294        .58609E-01    .20805E-05    .18097E-03
   4  Prefactor     .88508        .39570E-01    .14768E-05    .24451E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5122.793     FROM MIGRAD    STATUS=CONVERGED     44 CALLS      468 TOTAL
                     EDM=   .78E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.5434        .20853E-03** at limit **
   2  alpha         2.3203        3.5462        .50000        .35448E-07
   3  Normalizat    1.1294        .26233        .56357E-04   -.53659E-05
   4  Prefactor     .88508        .17721        .42191E-04    .45269E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.32026
  Normalizat = 1.1294
  Prefactor  = 0.885078
 **********
 **   18 **HESSE 
 **********

 FCN=   5122.793     FROM HESSE     STATUS=OK            29 CALLS      497 TOTAL
                     EDM=   .28E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .92977        .41706E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3203        3.1307        .50000       -.71959E-01
   3  Normalizat    1.1294        .26237        .11271E-04   -.88813    
   4  Prefactor     .88508        .17724        .84382E-05   -.96664    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.80303e-12
Minuit parameter uncertainties:
  1  3.68527e-07
  2  102.774
  3  0.262672
  4  0.17736
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/576452': 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) = 5122.79349949
delta logL = 6.5295425884e-06

Extracting fit parameters...

4FGL J0953.0-0840
   Spectrum: LogParabola
241         norm:  1.000e-04  3.685e-07  1.000e-04  1.000e+04 ( 1.000e-12)
242        alpha:  2.320e+00  1.028e+02  0.000e+00  5.000e+00 ( 1.000e+00)
243         beta:  4.647e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
244           Eb:  1.364e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  8.851e-01  1.774e-01  0.000e+00  1.000e+01 ( 1.000e+00)
533        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
534        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
531   Normalization:  1.129e+00  2.627e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 148.263 -8.669

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/576452/cmap_HighResolution_604022401_604281601_4FGL_J0953.0-0840_daily_bin1407.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.97e-05', job_status='DONE', photon_flux_upper_limit='4.67e-08', time_completed='2021-09-01 06:02:53.577627', job_id='576452', GAL2='0.89', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1630501373.58', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='6.53e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.80' WHERE bin_id='1407' AND source_name='4FGL J0953.0-0840' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 06:02:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 576452: <4FGL_J0953.0-0840_daily_bin1407> in cluster <slac> Done

Job <4FGL_J0953.0-0840_daily_bin1407> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 05:51:02 2021
Job was executed on host(s) <bullet0207>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 05:51:04 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 05:51:04 2021
Terminated at Wed Sep  1 06:02:54 2021
Results reported at Wed Sep  1 06:02:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0953.0-0840_daily_bin1407 148.263 -8.6695 604022401 604281601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0953.0-0840 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   498.42 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             284.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   709 sec.
    Turnaround time :                            712 sec.

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

