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


Performing analysis on: 4FGL_J1539.6+2743_daily_bin1067
RA = 234.902, Dec = 27.7277
tmin = 515894401, tmax = 516153601
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='644896', job_status='RUN', time_executed='2021-09-12 09:55:23.908887', time_epoch_executed='1631465723.91' WHERE source_name='4FGL J1539.6+2743' and cadence='daily' and bin_id='1067'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/644896

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/644896/ft1_4FGL_J1539.6+2743_daily_bin1067.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/644896/ft2_4FGL_J1539.6+2743_daily_bin1067.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/644896/ft1_4FGL_J1539.6+2743_daily_bin1067.fits outfile=/scratch/kocevski/644896/ft1_filteredMKT_4FGL_J1539.6+2743_daily_bin1067.fits ra=234.902 dec=27.7277 rad=12.0 tmin=515894401.0 tmax=516153601.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.85
user 3.62
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/644896/ft2_4FGL_J1539.6+2743_daily_bin1067.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/644896/ft2_4FGL_J1539.6+2743_daily_bin1067.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/644896/ft1_filteredMKT_4FGL_J1539.6+2743_daily_bin1067.fits evtable="EVENTS" outfile="/scratch/kocevski/644896/ft1_filtered_4FGL_J1539.6+2743_daily_bin1067.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/644896/ft1_filtered_4FGL_J1539.6+2743_daily_bin1067.fits" evtable="EVENTS" scfile=/scratch/kocevski/644896/ft2_4FGL_J1539.6+2743_daily_bin1067.fits sctable="SC_DATA" outfile=/scratch/kocevski/644896/ltcube_515894401_516153601_4FGL_J1539.6+2743_daily_bin1067.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/644896/ft2_4FGL_J1539.6+2743_daily_bin1067.fits
.....................!
real 14.03
user 13.64
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/644896/ft1_filtered_4FGL_J1539.6+2743_daily_bin1067.fits evtable="EVENTS" scfile=/scratch/kocevski/644896/ft2_4FGL_J1539.6+2743_daily_bin1067.fits sctable="SC_DATA" expcube=/scratch/kocevski/644896/ltcube_515894401_516153601_4FGL_J1539.6+2743_daily_bin1067.fits outfile=/scratch/kocevski/644896/expmap_515894401_516153601_4FGL_J1539.6+2743_daily_bin1067.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/644896/ltcube_515894401_516153601_4FGL_J1539.6+2743_daily_bin1067.fits
.....................!
real 191.30
user 186.08
sys 4.84

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

Setting source of interest to:
4FGL J1539.6+2743 @ 234.902 27.7277

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/644896/ft1_filtered_4FGL_J1539.6+2743_daily_bin1067.fits scfile=/scratch/kocevski/644896/ft2_4FGL_J1539.6+2743_daily_bin1067.fits outfile=/scratch/kocevski/644896/cmap_515894401_516153601_4FGL_J1539.6+2743_daily_bin1067.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=234.902 yref=27.7277 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.56
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/644896/ft1_filtered_4FGL_J1539.6+2743_daily_bin1067.fits scfile=/scratch/kocevski/644896/ft2_4FGL_J1539.6+2743_daily_bin1067.fits outfile=/scratch/kocevski/644896/cmap_HighResolution_515894401_516153601_4FGL_J1539.6+2743_daily_bin1067.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=234.902 yref=27.7277 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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/644896/ft1_filtered_4FGL_J1539.6+2743_daily_bin1067.fits evtable="EVENTS" scfile=/scratch/kocevski/644896/ft2_4FGL_J1539.6+2743_daily_bin1067.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/644896/Model_4FGL_J1539.6+2743_daily_bin1067.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/644896/ft1_filtered_4FGL_J1539.6+2743_daily_bin1067.fits.....................!
real 52.75
user 51.38
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/644896/ft1_filtered_4FGL_J1539.6+2743_daily_bin1067.fits', '/scratch/kocevski/644896/ft2_4FGL_J1539.6+2743_daily_bin1067.fits', expMap='/scratch/kocevski/644896/expmap_515894401_516153601_4FGL_J1539.6+2743_daily_bin1067.fits', expCube='/scratch/kocevski/644896/ltcube_515894401_516153601_4FGL_J1539.6+2743_daily_bin1067.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/644896/Model_4FGL_J1539.6+2743_daily_bin1067.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1539.6+2743'

4FGL J1539.6+2743
   Spectrum: PowerLaw
263    Prefactor:  1.011e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        Index:  2.330e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
265        Scale:  9.412e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/644896/ft1_filtered_4FGL_J1539.6+2743_daily_bin1067.fits
Spacecraft file(s): /scratch/kocevski/644896/ft2_4FGL_J1539.6+2743_daily_bin1067.fits
Exposure map: /scratch/kocevski/644896/expmap_515894401_516153601_4FGL_J1539.6+2743_daily_bin1067.fits
Exposure cube: /scratch/kocevski/644896/ltcube_515894401_516153601_4FGL_J1539.6+2743_daily_bin1067.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/644896/Model_4FGL_J1539.6+2743_daily_bin1067.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) = 6781.2144245

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12576       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10218E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    22.141       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.2092       1.0000         .10000E-03   10000.    
     5 'norm      '    2.0813       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .49658       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .17737E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    18.438       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .41364E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.8465       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.7677       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.2175       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .95616       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5680E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6781.212     FROM MIGRAD    STATUS=CONVERGED    357 CALLS     1657 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .14855        16.738       -.11030E-04    .61520E-03
   2  Prefactor     .10000E-03    25.030       -.35558E-05** at limit **
   3  Prefactor     22.134        35.763        .21615E-05    .81857E-04
   4  Prefactor     2.2103        10.041       -.65336E-05   -.19283E-03
   5  norm          2.0819        1.0762        .51953E-07    .20012E-03
   6  Prefactor     .10000E-03    6.0233        .39344E-07** at limit **
   7  Prefactor     .10000E-03    36.663        .32308E-05** at limit **
   8  Prefactor     .10000E-03    6.6699       -.10856E-06** at limit **
   9  norm          .10000E-03    4.5374        .94341E-09** at limit **
  10  Prefactor     .49826        1.9785        .11570E-05    .61864E-03
  11  Prefactor     .10001E-03    173.96        .90225E-05** at limit **
  12  Prefactor     18.378        27.996       -.29925E-05   -.18113E-03
  13  Prefactor     .10001E-03    24.713       -.15192E-04** at limit **
  14  Prefactor     4.8475        2.8809        .22235E-06    .24037E-02
  15  Prefactor     3.7719        11.000        .18207E-06    .91134E-04
  16  Normalizat    1.2173        .19040       -.56993E-06    .78066E-05
  17  Prefactor     .95613        .13244        .69498E-06    .14016E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.148545
  Prefactor  = 0.000100001
  Prefactor  = 22.1339
  Prefactor  = 2.21034
  norm       = 2.08192
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.498259
  Prefactor  = 0.000100007
  Prefactor  = 18.378
  Prefactor  = 0.000100014
  Prefactor  = 4.8475
  Prefactor  = 3.77187
  Normalizat = 1.21728
  Prefactor  = 0.956132
 **********
 **   18 **HESSE 
 **********

 FCN=   6781.212     FROM HESSE     STATUS=OK           227 CALLS     1884 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .14855        62.579        .37207E-02   -1.5631    
   2  Prefactor     .10000E-03    25.183        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     22.134        35.866        .85124E-04   -1.4767    
   4  Prefactor     2.2103        10.204        .27675E-03   -1.5411    
   5  norm          2.0819        1.0781        .28624E-04   -1.5419    
   6  Prefactor     .10000E-03    6.0884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    36.928        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.6762        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    4.5433        .17131E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .49826        3.3389        .21356E-02   -1.5567    
  11  Prefactor     .10001E-03    179.67        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     18.378        28.187        .93275E-04   -1.4850    
  13  Prefactor     .10001E-03    31.697        .41253E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.8475        3.1941        .57586E-03   -1.5268    
  15  Prefactor     3.7719        11.031        .20799E-03   -1.5320    
  16  Normalizat    1.2173        .22459        .26414E-03   -.86070    
  17  Prefactor     .95613        .15801        .20823E-03   -.94206    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44572e-08
Minuit parameter uncertainties:
  1  6.10216
  2  0.000334473
  3  35.9006
  4  9.5006
  5  1.07815
  6  3.97037e-06
  7  0.000326274
  8  1.08215e-05
  9  4.43912e-06
  10  2.5796
  11  0.00229421
  12  28.2072
  13  0.00135516
  14  3.19419
  15  11.0366
  16  0.224765
  17  0.158084
Done.

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

Extracting fit parameters...

4FGL J1539.6+2743
   Spectrum: PowerLaw
263    Prefactor:  4.983e-01  2.580e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        Index:  2.330e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
265        Scale:  9.412e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
565    Prefactor:  9.561e-01  1.581e-01  0.000e+00  1.000e+01 ( 1.000e+00)
566        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
567        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
564   Normalization:  1.217e+00  2.248e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.04
Ra Dec: 234.902 27.728
Photon Flux Upper Limit: 9.66e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.43e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/644896/likelihoodResults_515894401_516153601_4FGL_J1539.6+2743_daily_bin1067.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) = 6781.03618759
delta logL = 0.17565515413

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6781.02702833
delta logL = 0.18481441529

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .57368       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1773       1.0000          .0000       10.000    
     3 'Normalizat'    1.1897       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96442       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5680E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6781.027     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      204 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .57373        13.901        .11568E-01    .56433E-03
   2  Index         3.1774        2.6714        .21729        .12781E-03
   3  Normalizat    1.1897        .31440E-01    .60315E-01    .92683E-05
   4  Prefactor     .96441        .22425E-01    .45821E-01    .74045E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.573727
  Index      = 3.17739
  Normalizat = 1.18966
  Prefactor  = 0.964415
 **********
 **   18 **HESSE 
 **********

 FCN=   6781.027     FROM HESSE     STATUS=OK            33 CALLS      237 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .57373        2.0880        .95423E-04   -1.5556    
   2  Index         3.1774        1.7920        .78183E-02   -.37312    
   3  Normalizat    1.1897        .22256        .26677E-03   -.86923    
   4  Prefactor     .96441        .15502        .20740E-03   -.93925    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.96784e-09
Minuit parameter uncertainties:
  1  2.08824
  2  1.83947
  3  0.222739
  4  0.155091
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/644896': 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) = 6781.02702832
delta logL = 0.184814425114

Extracting fit parameters...

4FGL J1539.6+2743
   Spectrum: PowerLaw
263    Prefactor:  5.737e-01  2.088e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        Index:  3.177e+00  1.839e+00  0.000e+00  1.000e+01 (-1.000e+00)
265        Scale:  9.412e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
565    Prefactor:  9.644e-01  1.551e-01  0.000e+00  1.000e+01 ( 1.000e+00)
566        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
567        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
564   Normalization:  1.190e+00  2.227e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.04
Ra Dec: 234.902 27.728

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/644896/cmap_HighResolution_515894401_516153601_4FGL_J1539.6+2743_daily_bin1067.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.43e-03', job_status='DONE', photon_flux_upper_limit='9.66e-08', time_completed='2021-09-12 10:05:43.657742', job_id='644896', GAL2='0.96', fit_tolerance='1e-08', EG2='1.19', EG='1.22', time_epoch_completed='1631466343.66', return_code2='0', ts='0.04', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='1.85e-01', ts2='0.43', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='1067' AND source_name='4FGL J1539.6+2743' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 10:05:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 644896: <4FGL_J1539.6+2743_daily_bin1067> in cluster <slac> Done

Job <4FGL_J1539.6+2743_daily_bin1067> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Sep 12 09:50:42 2021
Job was executed on host(s) <bullet0043>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 09:52:38 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 12 09:52:38 2021
Terminated at Sun Sep 12 10:05:44 2021
Results reported at Sun Sep 12 10:05:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1539.6+2743_daily_bin1067 234.902 27.7277 515894401 516153601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1539.6+2743 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   570.07 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             270.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   785 sec.
    Turnaround time :                            902 sec.

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

