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


Performing analysis on: 4FGL_J1539.6+2743_daily_bin38
RA = 234.902, Dec = 27.7277
tmin = 249177601, tmax = 249436801
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='638960', job_status='RUN', time_executed='2021-09-12 09:33:19.871620', time_epoch_executed='1631464399.87' WHERE source_name='4FGL J1539.6+2743' and cadence='daily' and bin_id='38'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/638960

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/638960/ft1_4FGL_J1539.6+2743_daily_bin38.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/638960/ft2_4FGL_J1539.6+2743_daily_bin38.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/638960/ft1_4FGL_J1539.6+2743_daily_bin38.fits outfile=/scratch/kocevski/638960/ft1_filteredMKT_4FGL_J1539.6+2743_daily_bin38.fits ra=234.902 dec=27.7277 rad=12.0 tmin=249177601.0 tmax=249436801.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 1.44
user 1.27
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/638960/ft1_filtered_4FGL_J1539.6+2743_daily_bin38.fits" evtable="EVENTS" scfile=/scratch/kocevski/638960/ft2_4FGL_J1539.6+2743_daily_bin38.fits sctable="SC_DATA" outfile=/scratch/kocevski/638960/ltcube_249177601_249436801_4FGL_J1539.6+2743_daily_bin38.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/638960/ft2_4FGL_J1539.6+2743_daily_bin38.fits
.....................!
real 15.77
user 15.39
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/638960/ft1_filtered_4FGL_J1539.6+2743_daily_bin38.fits evtable="EVENTS" scfile=/scratch/kocevski/638960/ft2_4FGL_J1539.6+2743_daily_bin38.fits sctable="SC_DATA" expcube=/scratch/kocevski/638960/ltcube_249177601_249436801_4FGL_J1539.6+2743_daily_bin38.fits outfile=/scratch/kocevski/638960/expmap_249177601_249436801_4FGL_J1539.6+2743_daily_bin38.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/638960/ltcube_249177601_249436801_4FGL_J1539.6+2743_daily_bin38.fits
.....................!
real 191.65
user 186.01
sys 5.29

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/638960/ft1_filtered_4FGL_J1539.6+2743_daily_bin38.fits scfile=/scratch/kocevski/638960/ft2_4FGL_J1539.6+2743_daily_bin38.fits outfile=/scratch/kocevski/638960/cmap_249177601_249436801_4FGL_J1539.6+2743_daily_bin38.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.54
user 0.37
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.3453       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.5069       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    8.0067       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.7015       1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.122       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.1135       1.0000         .10000E-03   10000.    
    11 'Prefactor '    56.152       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.3398       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.5458       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.5513       1.0000         .10000E-03   10000.    
    16 'Normalizat'    .98071       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .88249       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=   6668.283     FROM MIGRAD    STATUS=CONVERGED    317 CALLS     1566 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.3451        7.0653       -.27763E-06   -.31350E-03
   2  Prefactor     .10000E-03    21.808       -.13410E-05** at limit **
   3  Prefactor     8.4987        32.839       -.17999E-04   -.41073E-05
   4  Prefactor     .10000E-03    2.5852       -.17141E-06** at limit **
   5  norm          8.0062        2.6304       -.54701E-06    .23823E-03
   6  Prefactor     9.7019        18.500        .57703E-05   -.34653E-04
   7  Prefactor     11.107        29.035       -.23075E-04   -.19656E-04
   8  Prefactor     .10000E-03    11.916        .15526E-06** at limit **
   9  norm          .10000E-03    9.7064       -.43809E-07** at limit **
  10  Prefactor     3.1137        2.6084       -.15883E-06   -.34824E-03
  11  Prefactor     56.142        35.384       -.86085E-05    .15793E-04
  12  Prefactor     .10000E-03    48.351        .41076E-06** at limit **
  13  Prefactor     7.3387        9.1928       -.51213E-06   -.51956E-04
  14  Prefactor     3.5459        3.3696       -.43833E-06   -.39376E-03
  15  Prefactor     5.5500        13.418       -.13283E-05   -.75928E-04
  16  Normalizat    .98062        .18889        .67074E-06    .81603E-04
  17  Prefactor     .88256        .12719        .21698E-05   -.84595E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.34511
  Prefactor  = 0.0001
  Prefactor  = 8.49867
  Prefactor  = 0.0001
  norm       = 8.00622
  Prefactor  = 9.70192
  Prefactor  = 11.1072
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.11367
  Prefactor  = 56.1421
  Prefactor  = 0.000100001
  Prefactor  = 7.33874
  Prefactor  = 3.54587
  Prefactor  = 5.55004
  Normalizat = 0.980622
  Prefactor  = 0.882558
 **********
 **   18 **HESSE 
 **********

 FCN=   6668.283     FROM HESSE     STATUS=OK           229 CALLS     1795 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.3451        7.0733        .65548E-03   -1.5096    
   2  Prefactor     .10000E-03    21.813        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.4987        32.904        .13744E-03   -1.5125    
   4  Prefactor     .10000E-03    2.5932        .12822E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          8.0062        2.6686        .51538E-04   -1.5142    
   6  Prefactor     9.7019        18.663        .12866E-03   -1.5085    
   7  Prefactor     11.107        28.964        .12013E-03   -1.5041    
   8  Prefactor     .10000E-03    11.954        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    9.8015        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.1137        2.6032        .11458E-03   -1.5355    
  11  Prefactor     56.142        35.390        .53533E-04   -1.4208    
  12  Prefactor     .10000E-03    48.936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.3387        9.1870        .14804E-03   -1.5166    
  14  Prefactor     3.5459        3.3716        .13977E-03   -1.5331    
  15  Prefactor     5.5500        13.416        .17052E-03   -1.5237    
  16  Normalizat    .98062        .21750        .28052E-03   -.93682    
  17  Prefactor     .88256        .14668        .20280E-03   -.96753    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.04857e-10
Minuit parameter uncertainties:
  1  7.07398
  2  9.19279e-06
  3  32.9746
  4  3.37681e-06
  5  2.66868
  6  18.6743
  7  29.0004
  8  2.119e-05
  9  2.29234e-05
  10  2.60333
  11  35.4027
  12  0.000325691
  13  9.18876
  14  3.37177
  15  13.4234
  16  0.217692
  17  0.146746
Done.

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

Extracting fit parameters...

4FGL J1539.6+2743
   Spectrum: PowerLaw
263    Prefactor:  3.114e+00  2.603e+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:  8.826e-01  1.467e-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:  9.806e-01  2.177e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.23
Ra Dec: 234.902 27.728
Photon Index (Fixed Index): 2.33 +/- 0.00
Photon Flux (Fixed Index): 4.35e-08 +/- 3.63e-08
Energy Flux (Fixed Index): 1.57e-05 +/- 1.31e-05

TS (Fixed Index): 2.23
Ra Dec: 234.902 27.728
Photon Flux Upper Limit: 1.22e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.38e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/638960/likelihoodResults_249177601_249436801_4FGL_J1539.6+2743_daily_bin38.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) = 6667.7061492
delta logL = 0.577245061926

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6667.67102936
delta logL = 0.612364902963

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96529       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4432       1.0000          .0000       10.000    
     3 'Normalizat'    .92080       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90897       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=   6667.671     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      246 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .96210        7.7467        .10612E-01    .73931E-03
   2  Index         3.4448        2.4577        .13121        .13934E-03
   3  Normalizat    .92112        .49009E-01    .65189E-01    .12492E-04
   4  Prefactor     .90881        .33420E-01    .45119E-01    .24086E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.962103
  Index      = 3.44476
  Normalizat = 0.921117
  Prefactor  = 0.908815
 **********
 **   18 **HESSE 
 **********

 FCN=   6667.671     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      279 TOTAL
                     EDM=   .40E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .96210        17.698        .48059E-04   -1.5512    
   2  Index         3.4448        6.6741        .46892E-02   -.31630    
   3  Normalizat    .92112        .24213        .28834E-03   -.95722    
   4  Prefactor     .90881        .16174        .20013E-03   -.95834    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.0327e-07
Minuit parameter uncertainties:
  1  8.25534
  2  5.02584
  3  0.242413
  4  0.161822
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/638960': 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) = 6667.67102652
delta logL = 0.612367742028

Extracting fit parameters...

4FGL J1539.6+2743
   Spectrum: PowerLaw
263    Prefactor:  9.621e-01  8.255e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        Index:  3.445e+00  5.026e+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.088e-01  1.618e-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:  9.211e-01  2.424e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.57
Ra Dec: 234.902 27.728
Photon Index (Free Index): 3.44 +/- 5.03
Photon Flux (Free Index): 8.92e-08 +/- 8.04e-08
Energy Flux (Free Index): 1.51e-05 +/- 1.49e-05

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/638960/cmap_HighResolution_249177601_249436801_4FGL_J1539.6+2743_daily_bin38.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.38e-03', comment='SUCCESS', photon_flux='4.35e-08', energy_flux2='1.51e-05', photon_flux_error='3.63e-08', dlogl='6.12e-01', energy_flux='1.57e-05', photon_flux2='8.92e-08', job_status='DONE', time_completed='2021-09-12 09:42:36.872229', photon_index_error2='5.03', photon_index2='3.44', ts='2.23', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='1.22e-07', energy_flux_error2='1.49e-05', EG='0.98', time_epoch_completed='1631464956.87', return_code='0', job_id='638960', GAL2='0.91', EG2='0.92', return_code2='102', energy_flux_error='1.31e-05', photon_flux_error2='8.04e-08', ts2='3.57', photon_index='2.33' WHERE bin_id='38' AND source_name='4FGL J1539.6+2743' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 09:42:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0281>
Subject: Job 638960: <4FGL_J1539.6+2743_daily_bin38> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1539.6+2743_daily_bin38 234.902 27.7277 249177601 249436801 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 :                                   556.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             293.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   711 sec.
    Turnaround time :                            738 sec.

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

