/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 = 7382
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1539.6+2743_daily_bin184
RA = 234.902, Dec = 27.7277
tmin = 287020801, tmax = 287280001
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='639168', job_status='RUN', time_executed='2021-09-12 09:32:29.619233', time_epoch_executed='1631464349.62' WHERE source_name='4FGL J1539.6+2743' and cadence='daily' and bin_id='184'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/639168

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/639168/ft1_4FGL_J1539.6+2743_daily_bin184.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/639168/ft2_4FGL_J1539.6+2743_daily_bin184.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/639168/ft1_4FGL_J1539.6+2743_daily_bin184.fits outfile=/scratch/kocevski/639168/ft1_filteredMKT_4FGL_J1539.6+2743_daily_bin184.fits ra=234.902 dec=27.7277 rad=12.0 tmin=287020801.0 tmax=287280001.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.64
user 4.36
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/639168/ft1_filtered_4FGL_J1539.6+2743_daily_bin184.fits" evtable="EVENTS" scfile=/scratch/kocevski/639168/ft2_4FGL_J1539.6+2743_daily_bin184.fits sctable="SC_DATA" outfile=/scratch/kocevski/639168/ltcube_287020801_287280001_4FGL_J1539.6+2743_daily_bin184.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/639168/ft2_4FGL_J1539.6+2743_daily_bin184.fits
.....................!
real 14.59
user 14.24
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/639168/ft1_filtered_4FGL_J1539.6+2743_daily_bin184.fits evtable="EVENTS" scfile=/scratch/kocevski/639168/ft2_4FGL_J1539.6+2743_daily_bin184.fits sctable="SC_DATA" expcube=/scratch/kocevski/639168/ltcube_287020801_287280001_4FGL_J1539.6+2743_daily_bin184.fits outfile=/scratch/kocevski/639168/expmap_287020801_287280001_4FGL_J1539.6+2743_daily_bin184.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/639168/ltcube_287020801_287280001_4FGL_J1539.6+2743_daily_bin184.fits
.....................!
real 193.03
user 187.17
sys 5.36

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/639168/ft1_filtered_4FGL_J1539.6+2743_daily_bin184.fits scfile=/scratch/kocevski/639168/ft2_4FGL_J1539.6+2743_daily_bin184.fits outfile=/scratch/kocevski/639168/cmap_287020801_287280001_4FGL_J1539.6+2743_daily_bin184.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.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/639168/ft1_filtered_4FGL_J1539.6+2743_daily_bin184.fits scfile=/scratch/kocevski/639168/ft2_4FGL_J1539.6+2743_daily_bin184.fits outfile=/scratch/kocevski/639168/cmap_HighResolution_287020801_287280001_4FGL_J1539.6+2743_daily_bin184.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.56
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.109       1.0000         .10000E-03   10000.    
     3 'Prefactor '    35.747       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.0756       1.0000         .10000E-03   10000.    
     5 'norm      '    9.0142       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.9807       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    8.4507       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .26089E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .33608E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.5788       1.0000         .10000E-03   10000.    
    16 'Normalizat'    .76122       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.2632       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=   6913.188     FROM MIGRAD    STATUS=CONVERGED    329 CALLS     1575 TOTAL
                     EDM=   .17E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.3556        .12929E-06** at limit **
   2  Prefactor     15.118        80.780        .17797E-05    .15056E-05
   3  Prefactor     35.744        59.568        .18810E-06   -.23608E-06
   4  Prefactor     1.0822        7.7998        .40979E-06    .49975E-04
   5  norm          9.0146        2.3240        .69346E-08   -.27473E-03
   6  Prefactor     9.9881        13.681        .34175E-06   -.54787E-04
   7  Prefactor     .10000E-03    24.083        .17807E-06** at limit **
   8  Prefactor     .10000E-03    8.1841        .46740E-07** at limit **
   9  norm          8.4483        9.2165        .81688E-07   -.45384E-06
  10  Prefactor     .10000E-03    1.9326        .55697E-06** at limit **
  11  Prefactor     .10000E-03    147.06       -.58497E-05** at limit **
  12  Prefactor     .10000E-03    175.38       -.70955E-05** at limit **
  13  Prefactor     .10000E-03    3.1927        .13648E-07** at limit **
  14  Prefactor     .10000E-03    1.5489        .65739E-07** at limit **
  15  Prefactor     5.5768        13.025        .59873E-06    .74586E-06
  16  Normalizat    .76100        .21257       -.18676E-05   -.38975E-04
  17  Prefactor     1.2630        .14281       -.62529E-06   -.66951E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 15.118
  Prefactor  = 35.7442
  Prefactor  = 1.0822
  norm       = 9.01461
  Prefactor  = 9.9881
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.44826
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.57679
  Normalizat = 0.761
  Prefactor  = 1.26299
 **********
 **   18 **HESSE 
 **********

 FCN=   6913.188     FROM HESSE     STATUS=OK           225 CALLS     1800 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.5029        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     15.118        81.029        .10304E-03   -1.4930    
   3  Prefactor     35.744        59.608        .67029E-04   -1.4512    
   4  Prefactor     1.0822        23.615        .43357E-02   -1.5500    
   5  norm          9.0146        2.3396        .51985E-04   -1.5107    
   6  Prefactor     9.9881        13.705        .12684E-03   -1.5076    
   7  Prefactor     .10000E-03    24.103        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    8.1935        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          8.4483        9.2183        .13790E-03   -1.5127    
  10  Prefactor     .10000E-03    4.0506        .22135E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    146.61        .42895E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    175.90        .42682E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.1969        .14510E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.5744        .10112E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.5768        13.054        .17009E-03   -1.5236    
  16  Normalizat    .76100        .24059        .35003E-03   -1.0153    
  17  Prefactor     1.2630        .16266        .19440E-03   -.84414    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.93424e-10
Minuit parameter uncertainties:
  1  2.01273e-05
  2  70.1481
  3  59.7079
  4  10.1146
  5  2.33962
  6  13.7096
  7  1.19558e-05
  8  6.28319e-07
  9  9.21986
  10  1.54787e-05
  11  0.000737753
  12  0.000525774
  13  4.60979e-06
  14  4.99642e-06
  15  13.0609
  16  0.240922
  17  0.162726
Done.

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

Extracting fit parameters...

4FGL J1539.6+2743
   Spectrum: PowerLaw
263    Prefactor:  1.000e-04  1.548e-05  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:  1.263e+00  1.627e-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:  7.610e-01  2.409e-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: 9.40e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.23e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/639168/likelihoodResults_287020801_287280001_4FGL_J1539.6+2743_daily_bin184.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) = 6913.18964853
delta logL = -0.00117516629234

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6913.18847452
delta logL = -1.15375678433e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10517E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3315       1.0000          .0000       10.000    
     3 'Normalizat'    .76087       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2631       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=   6913.188     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      226 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .23231        .37972E-01** at limit **
   2  Index         2.3325        8.5999        .50000       -.19704E-05
   3  Normalizat    .76100        .17955E-02    .79063E-01    .10064E-03
   4  Prefactor     1.2630        .12576E-02    .33285E-01    .15821E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.33251
  Normalizat = 0.761
  Prefactor  = 1.26299
 **********
 **   18 **HESSE 
 **********

 FCN=   6913.188     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      259 TOTAL
                     EDM=   .99E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    27.415        .22124E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3325        5.6948        .50000       -.56273    
   3  Normalizat    .76100        .13266E-01    .35003E-03   -1.0153    
   4  Prefactor     1.2630        .93129E-02    .19440E-03   -.84414    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.8893e-09
Minuit parameter uncertainties:
  1  0.000268602
  2  142.671
  3  0.0132657
  4  0.00931292
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/639168': 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) = 6913.18847336
delta logL = 1.37060851557e-09

Extracting fit parameters...

4FGL J1539.6+2743
   Spectrum: PowerLaw
263    Prefactor:  1.000e-04  2.686e-04  1.000e-04  1.000e+04 ( 1.000e-12)
264        Index:  2.333e+00  1.427e+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:  1.263e+00  9.313e-03  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:  7.610e-01  1.327e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/639168/cmap_HighResolution_287020801_287280001_4FGL_J1539.6+2743_daily_bin184.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.23e-03', job_status='DONE', photon_flux_upper_limit='9.40e-08', time_completed='2021-09-12 09:42:08.875469', job_id='639168', GAL2='1.26', fit_tolerance='1e-08', EG2='0.76', EG='0.76', time_epoch_completed='1631464928.88', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.26', dlogl='1.37e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='184' AND source_name='4FGL J1539.6+2743' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 09:42:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0149>
Subject: Job 639168: <4FGL_J1539.6+2743_daily_bin184> in cluster <slac> Done

Job <4FGL_J1539.6+2743_daily_bin184> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Sep 12 09:30:32 2021
Job was executed on host(s) <bullet0149>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 09:32:12 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:32:12 2021
Terminated at Sun Sep 12 09:42:09 2021
Results reported at Sun Sep 12 09:42:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1539.6+2743_daily_bin184 234.902 27.7277 287020801 287280001 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 :                                   574.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             354.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   597 sec.
    Turnaround time :                            697 sec.

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

