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


Performing analysis on: 4FGL_J1539.6+2743_daily_bin1146
RA = 234.902, Dec = 27.7277
tmin = 536371201, tmax = 536630401
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='645015', job_status='RUN', time_executed='2021-09-12 09:54:06.017582', time_epoch_executed='1631465646.02' WHERE source_name='4FGL J1539.6+2743' and cadence='daily' and bin_id='1146'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/645015

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/645015/ft1_4FGL_J1539.6+2743_daily_bin1146.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/645015/ft2_4FGL_J1539.6+2743_daily_bin1146.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/645015/ft1_4FGL_J1539.6+2743_daily_bin1146.fits outfile=/scratch/kocevski/645015/ft1_filteredMKT_4FGL_J1539.6+2743_daily_bin1146.fits ra=234.902 dec=27.7277 rad=12.0 tmin=536371201.0 tmax=536630401.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.55
user 3.34
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/645015/ft2_4FGL_J1539.6+2743_daily_bin1146.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/645015/ft1_filteredMKT_4FGL_J1539.6+2743_daily_bin1146.fits evtable="EVENTS" outfile="/scratch/kocevski/645015/ft1_filtered_4FGL_J1539.6+2743_daily_bin1146.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.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/645015/ft1_filtered_4FGL_J1539.6+2743_daily_bin1146.fits" evtable="EVENTS" scfile=/scratch/kocevski/645015/ft2_4FGL_J1539.6+2743_daily_bin1146.fits sctable="SC_DATA" outfile=/scratch/kocevski/645015/ltcube_536371201_536630401_4FGL_J1539.6+2743_daily_bin1146.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/645015/ft2_4FGL_J1539.6+2743_daily_bin1146.fits
.....................!
real 13.48
user 13.03
sys 0.40

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/645015/ft1_filtered_4FGL_J1539.6+2743_daily_bin1146.fits evtable="EVENTS" scfile=/scratch/kocevski/645015/ft2_4FGL_J1539.6+2743_daily_bin1146.fits sctable="SC_DATA" expcube=/scratch/kocevski/645015/ltcube_536371201_536630401_4FGL_J1539.6+2743_daily_bin1146.fits outfile=/scratch/kocevski/645015/expmap_536371201_536630401_4FGL_J1539.6+2743_daily_bin1146.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/645015/ltcube_536371201_536630401_4FGL_J1539.6+2743_daily_bin1146.fits
.....................!
real 192.15
user 185.67
sys 6.02

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/645015/ft1_filtered_4FGL_J1539.6+2743_daily_bin1146.fits scfile=/scratch/kocevski/645015/ft2_4FGL_J1539.6+2743_daily_bin1146.fits outfile=/scratch/kocevski/645015/cmap_536371201_536630401_4FGL_J1539.6+2743_daily_bin1146.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/645015/ft1_filtered_4FGL_J1539.6+2743_daily_bin1146.fits scfile=/scratch/kocevski/645015/ft2_4FGL_J1539.6+2743_daily_bin1146.fits outfile=/scratch/kocevski/645015/cmap_HighResolution_536371201_536630401_4FGL_J1539.6+2743_daily_bin1146.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.39
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/645015/ft1_filtered_4FGL_J1539.6+2743_daily_bin1146.fits', '/scratch/kocevski/645015/ft2_4FGL_J1539.6+2743_daily_bin1146.fits', expMap='/scratch/kocevski/645015/expmap_536371201_536630401_4FGL_J1539.6+2743_daily_bin1146.fits', expCube='/scratch/kocevski/645015/ltcube_536371201_536630401_4FGL_J1539.6+2743_daily_bin1146.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/645015/Model_4FGL_J1539.6+2743_daily_bin1146.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/645015/ft1_filtered_4FGL_J1539.6+2743_daily_bin1146.fits
Spacecraft file(s): /scratch/kocevski/645015/ft2_4FGL_J1539.6+2743_daily_bin1146.fits
Exposure map: /scratch/kocevski/645015/expmap_536371201_536630401_4FGL_J1539.6+2743_daily_bin1146.fits
Exposure cube: /scratch/kocevski/645015/ltcube_536371201_536630401_4FGL_J1539.6+2743_daily_bin1146.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/645015/Model_4FGL_J1539.6+2743_daily_bin1146.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) = 8075.09137268

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.354       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    20.259       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.8733       1.0000         .10000E-03   10000.    
     5 'norm      '    3.9792       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    6.2801       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    49.297       1.0000         .10000E-03   10000.    
    12 'Prefactor '    25.962       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.146       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.2047       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .89601       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=   8075.090     FROM MIGRAD    STATUS=CONVERGED    317 CALLS     1595 TOTAL
                     EDM=   .59E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.354        6.7273        .76846E-07    .35320E-03
   2  Prefactor     .10000E-03    112.83        .14877E-05** at limit **
   3  Prefactor     20.258        44.987       -.32040E-05    .17587E-05
   4  Prefactor     5.8739        8.8267       -.10932E-05   -.14857E-03
   5  norm          3.9793        1.4006       -.41903E-07   -.13894E-03
   6  Prefactor     .10000E-03    3.6758       -.18254E-07** at limit **
   7  Prefactor     .10000E-03    8.5063       -.17037E-06** at limit **
   8  Prefactor     .10000E-03    10.833       -.17934E-06** at limit **
   9  norm          6.2781        8.3564       -.52481E-06   -.19161E-04
  10  Prefactor     .10000E-03    .59802       -.95094E-07** at limit **
  11  Prefactor     49.298        40.189        .64999E-05    .30063E-04
  12  Prefactor     25.936        43.313       -.30973E-04   -.24914E-05
  13  Prefactor     .10000E-03    7.5686       -.22098E-06** at limit **
  14  Prefactor     .10000E-03    .99222        .73309E-07** at limit **
  15  Prefactor     12.145        10.660        .84307E-06   -.25604E-04
  16  Normalizat    1.2046        .17736        .46215E-06    .64586E-04
  17  Prefactor     .89608        .12000        .12176E-05   -.31716E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.3537
  Prefactor  = 0.0001
  Prefactor  = 20.2578
  Prefactor  = 5.87386
  norm       = 3.97931
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.2781
  Prefactor  = 0.0001
  Prefactor  = 49.2984
  Prefactor  = 25.9363
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.145
  Normalizat = 1.20458
  Prefactor  = 0.896078
 **********
 **   18 **HESSE 
 **********

 FCN=   8075.090     FROM HESSE     STATUS=OK           225 CALLS     1820 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.354        6.7309        .62261E-03   -1.5064    
   2  Prefactor     .10000E-03    113.39        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     20.258        45.025        .88986E-04   -1.4807    
   4  Prefactor     5.8739        8.8394        .16571E-03   -1.5223    
   5  norm          3.9793        1.4042        .59649E-04   -1.5309    
   6  Prefactor     .10000E-03    3.6863        .16807E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.5078        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    10.847        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          6.2781        8.3532        .16018E-03   -1.5207    
  10  Prefactor     .10000E-03    .60107        .67848E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     49.298        40.202        .57115E-04   -1.4303    
  12  Prefactor     25.936        43.319        .78621E-04   -1.4689    
  13  Prefactor     .10000E-03    7.6727        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.0009        .87388E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     12.145        10.664        .11494E-03   -1.5011    
  16  Normalizat    1.2046        .20862        .27487E-03   -.86461    
  17  Prefactor     .89608        .14091        .21364E-03   -.96278    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.28245e-10
Minuit parameter uncertainties:
  1  6.73135
  2  0.00011968
  3  45.1005
  4  8.84137
  5  1.40423
  6  3.41439e-06
  7  2.24575e-06
  8  4.62227e-07
  9  8.35473
  10  1.03314e-06
  11  40.2245
  12  43.3716
  13  1.49491e-05
  14  2.17745e-06
  15  10.6661
  16  0.208768
  17  0.140966
Done.

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

Extracting fit parameters...

4FGL J1539.6+2743
   Spectrum: PowerLaw
263    Prefactor:  1.000e-04  1.033e-06  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:  8.961e-01  1.410e-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.205e+00  2.088e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/645015/likelihoodResults_536371201_536630401_4FGL_J1539.6+2743_daily_bin1146.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) = 8075.09799752
delta logL = -0.00772238970876

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8075.09027434
delta logL = 7.98020664661e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3150       1.0000          .0000       10.000    
     3 'Normalizat'    1.2046       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89608       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=   8075.090     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      218 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.0828        .90712E-02** at limit **
   2  Index         1.9260        7.0203        .50000        .63833E-06
   3  Normalizat    1.2046        .96505E-02    .62145E-01   -.17940E-03
   4  Prefactor     .89608        .66092E-02    .44955E-01   -.36412E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.92596
  Normalizat = 1.20458
  Prefactor  = 0.896078
 **********
 **   18 **HESSE 
 **********

 FCN=   8075.090     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      249 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    41.003        .72773E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9260        5.7743        .50000       -.66214    
   3  Normalizat    1.2046        .37514E-01    .27487E-03   -.86461    
   4  Prefactor     .89608        .25705E-01    .21364E-03   -.96278    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.08115e-09
Minuit parameter uncertainties:
  1  0.000185138
  2  348.919
  3  0.0375152
  4  0.0257049
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/645015': 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): 102
logL (Free Index) = 8075.09026449
delta logL = 1.06482157207e-05

Extracting fit parameters...

4FGL J1539.6+2743
   Spectrum: PowerLaw
263    Prefactor:  1.000e-04  1.851e-04  1.000e-04  1.000e+04 ( 1.000e-12)
264        Index:  1.926e+00  3.489e+02  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:  8.961e-01  2.570e-02  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.205e+00  3.752e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/645015/cmap_HighResolution_536371201_536630401_4FGL_J1539.6+2743_daily_bin1146.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.44e-03', job_status='DONE', photon_flux_upper_limit='4.47e-08', time_completed='2021-09-12 10:04:33.326466', job_id='645015', GAL2='0.90', fit_tolerance='1e-08', EG2='1.20', EG='1.20', time_epoch_completed='1631466273.33', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='1.06e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='1146' AND source_name='4FGL J1539.6+2743' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 10:04:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 645015: <4FGL_J1539.6+2743_daily_bin1146> in cluster <slac> Done

Job <4FGL_J1539.6+2743_daily_bin1146> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Sep 12 09:50:51 2021
Job was executed on host(s) <bullet0054>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 09:53:51 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:53:51 2021
Terminated at Sun Sep 12 10:04:33 2021
Results reported at Sun Sep 12 10:04:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1539.6+2743_daily_bin1146 234.902 27.7277 536371201 536630401 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 :                                   611.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             328.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   642 sec.
    Turnaround time :                            822 sec.

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

