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


Performing analysis on: 4FGL_J1539.6+2743_daily_bin55
RA = 234.902, Dec = 27.7277
tmin = 253584001, tmax = 253843201
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='638984', job_status='RUN', time_executed='2021-09-12 09:33:02.358112', time_epoch_executed='1631464382.36' WHERE source_name='4FGL J1539.6+2743' and cadence='daily' and bin_id='55'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/638984

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/638984/ft1_4FGL_J1539.6+2743_daily_bin55.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/638984/ft2_4FGL_J1539.6+2743_daily_bin55.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/638984/ft1_4FGL_J1539.6+2743_daily_bin55.fits outfile=/scratch/kocevski/638984/ft1_filteredMKT_4FGL_J1539.6+2743_daily_bin55.fits ra=234.902 dec=27.7277 rad=12.0 tmin=253584001.0 tmax=253843201.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.25
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/638984/ft1_filtered_4FGL_J1539.6+2743_daily_bin55.fits evtable="EVENTS" scfile=/scratch/kocevski/638984/ft2_4FGL_J1539.6+2743_daily_bin55.fits sctable="SC_DATA" expcube=/scratch/kocevski/638984/ltcube_253584001_253843201_4FGL_J1539.6+2743_daily_bin55.fits outfile=/scratch/kocevski/638984/expmap_253584001_253843201_4FGL_J1539.6+2743_daily_bin55.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/638984/ltcube_253584001_253843201_4FGL_J1539.6+2743_daily_bin55.fits
.....................!
real 192.43
user 186.30
sys 4.82

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/638984/ft1_filtered_4FGL_J1539.6+2743_daily_bin55.fits scfile=/scratch/kocevski/638984/ft2_4FGL_J1539.6+2743_daily_bin55.fits outfile=/scratch/kocevski/638984/cmap_253584001_253843201_4FGL_J1539.6+2743_daily_bin55.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/638984/ft1_filtered_4FGL_J1539.6+2743_daily_bin55.fits scfile=/scratch/kocevski/638984/ft2_4FGL_J1539.6+2743_daily_bin55.fits outfile=/scratch/kocevski/638984/cmap_HighResolution_253584001_253843201_4FGL_J1539.6+2743_daily_bin55.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/638984/ft1_filtered_4FGL_J1539.6+2743_daily_bin55.fits evtable="EVENTS" scfile=/scratch/kocevski/638984/ft2_4FGL_J1539.6+2743_daily_bin55.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/638984/Model_4FGL_J1539.6+2743_daily_bin55.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/638984/ft1_filtered_4FGL_J1539.6+2743_daily_bin55.fits.....................!
real 55.19
user 53.82
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.841       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.135       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.7306       1.0000         .10000E-03   10000.    
     5 'norm      '    11.986       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.250       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.3763       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.0319       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.1545       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0004       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=   7036.482     FROM MIGRAD    STATUS=CONVERGED    326 CALLS     1369 TOTAL
                     EDM=   .69E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.841        9.9161        .27969E-06   -.18713E-04
   2  Prefactor     .10000E-03    37.290        .20790E-05** at limit **
   3  Prefactor     13.124        42.936       -.22417E-04   -.79760E-05
   4  Prefactor     7.7304        7.8428        .83634E-07   -.54999E-04
   5  norm          11.985        2.1997       -.65776E-07   -.27240E-04
   6  Prefactor     .10000E-03    4.9644       -.44138E-07** at limit **
   7  Prefactor     12.258        23.682        .78744E-05   -.70559E-05
   8  Prefactor     .10000E-03    27.486       -.80664E-06** at limit **
   9  norm          .10000E-03    8.1960        .13161E-06** at limit **
  10  Prefactor     .10000E-03    .76095        .21161E-07** at limit **
  11  Prefactor     .10000E-03    12.832       -.72290E-07** at limit **
  12  Prefactor     7.3908        49.390        .36931E-04   -.96283E-05
  13  Prefactor     .10000E-03    2.3566       -.12552E-06** at limit **
  14  Prefactor     3.0319        2.6007        .23928E-07   -.32761E-04
  15  Prefactor     .10000E-03    5.4266        .10684E-06** at limit **
  16  Normalizat    1.1546        .19661        .10479E-05   -.12972E-03
  17  Prefactor     1.0004        .13576       -.15147E-05    .75735E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.8408
  Prefactor  = 0.0001
  Prefactor  = 13.1242
  Prefactor  = 7.73042
  norm       = 11.9855
  Prefactor  = 0.0001
  Prefactor  = 12.2575
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.39076
  Prefactor  = 0.0001
  Prefactor  = 3.03187
  Prefactor  = 0.0001
  Normalizat = 1.15458
  Prefactor  = 1.00043
 **********
 **   18 **HESSE 
 **********

 FCN=   7036.482     FROM HESSE     STATUS=OK           223 CALLS     1592 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.841        9.9163        .10397E-03   -1.4937    
   2  Prefactor     .10000E-03    37.312        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     13.124        43.026        .11052E-03   -1.4983    
   4  Prefactor     7.7304        7.8412        .14422E-03   -1.5152    
   5  norm          11.985        2.2053        .50351E-04   -1.5015    
   6  Prefactor     .10000E-03    4.9746        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     12.258        23.669        .11445E-03   -1.5008    
   8  Prefactor     .10000E-03    27.682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    8.2160        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    .76522        .71439E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    12.844        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.3908        49.191        .14768E-03   -1.5164    
  13  Prefactor     .10000E-03    2.3591        .12576E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.0319        2.6041        .12130E-03   -1.5360    
  15  Prefactor     .10000E-03    5.4583        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.1546        .23136        .29093E-03   -.88018    
  17  Prefactor     1.0004        .15972        .21479E-03   -.92715    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.90679e-10
Minuit parameter uncertainties:
  1  9.91743
  2  2.24993e-06
  3  43.1275
  4  7.84219
  5  2.20535
  6  8.00937e-06
  7  23.687
  8  8.6993e-06
  9  1.75677e-06
  10  4.14241e-08
  11  0.000102744
  12  38.1797
  13  2.39733e-07
  14  2.60423
  15  1.41998e-06
  16  0.23156
  17  0.159792
Done.

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

Extracting fit parameters...

4FGL J1539.6+2743
   Spectrum: PowerLaw
263    Prefactor:  1.000e-04  4.142e-08  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.000e+00  1.598e-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.155e+00  2.316e-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: 5.49e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.22e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/638984/likelihoodResults_253584001_253843201_4FGL_J1539.6+2743_daily_bin55.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) = 7036.48799389
delta logL = -0.00610751968543

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7036.48188742
delta logL = -1.04776700027e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10292E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3112       1.0000          .0000       10.000    
     3 'Normalizat'    1.1545       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0005       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=   7036.482     FROM MIGRAD    STATUS=CONVERGED     66 CALLS      214 TOTAL
                     EDM=   .90E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.4997        .90712E-02** at limit **
   2  Index         1.8545        7.8733        .50000       -.33136E-05
   3  Normalizat    1.1546        .11087E-01    .65764E-01    .13303E-04
   4  Prefactor     1.0004        .77192E-02    .45658E-01    .64341E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.85446
  Normalizat = 1.15458
  Prefactor  = 1.00043
 **********
 **   18 **HESSE 
 **********

 FCN=   7036.482     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      245 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    54.897        .79534E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8545        9.0667        .50000       -.68040    
   3  Normalizat    1.1546        .41166E-01    .29093E-03   -.88018    
   4  Prefactor     1.0004        .28684E-01    .21479E-03   -.92715    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.09276e-07
Minuit parameter uncertainties:
  1  9.73043e-06
  2  381.703
  3  0.0411672
  4  0.028684
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/638984': 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) = 7036.4818739
delta logL = 1.2470778529e-05

Extracting fit parameters...

4FGL J1539.6+2743
   Spectrum: PowerLaw
263    Prefactor:  1.000e-04  9.730e-06  1.000e-04  1.000e+04 ( 1.000e-12)
264        Index:  1.854e+00  3.817e+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.000e+00  2.868e-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.155e+00  4.117e-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/638984/cmap_HighResolution_253584001_253843201_4FGL_J1539.6+2743_daily_bin55.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.22e-03', job_status='DONE', photon_flux_upper_limit='5.49e-08', time_completed='2021-09-12 09:42:12.996053', job_id='638984', GAL2='1.00', fit_tolerance='1e-08', EG2='1.15', EG='1.15', time_epoch_completed='1631464933.0', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='1.25e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='55' AND source_name='4FGL J1539.6+2743' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 09:42:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0279>
Subject: Job 638984: <4FGL_J1539.6+2743_daily_bin55> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1539.6+2743_daily_bin55 234.902 27.7277 253584001 253843201 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 :                                   549.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             282.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   677 sec.
    Turnaround time :                            712 sec.

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

