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


Performing analysis on: 4FGL_J1539.6+2743_daily_bin1514
RA = 234.902, Dec = 27.7277
tmin = 631756801, tmax = 632016001
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='647609', job_status='RUN', time_executed='2021-09-12 10:00:34.453605', time_epoch_executed='1631466034.45' WHERE source_name='4FGL J1539.6+2743' and cadence='daily' and bin_id='1514'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/647609

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/647609/ft1_4FGL_J1539.6+2743_daily_bin1514.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/647609/ft2_4FGL_J1539.6+2743_daily_bin1514.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/647609/ft1_4FGL_J1539.6+2743_daily_bin1514.fits outfile=/scratch/kocevski/647609/ft1_filteredMKT_4FGL_J1539.6+2743_daily_bin1514.fits ra=234.902 dec=27.7277 rad=12.0 tmin=631756801.0 tmax=632016001.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 2.48
user 2.22
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/647609/ft1_filtered_4FGL_J1539.6+2743_daily_bin1514.fits evtable="EVENTS" scfile=/scratch/kocevski/647609/ft2_4FGL_J1539.6+2743_daily_bin1514.fits sctable="SC_DATA" expcube=/scratch/kocevski/647609/ltcube_631756801_632016001_4FGL_J1539.6+2743_daily_bin1514.fits outfile=/scratch/kocevski/647609/expmap_631756801_632016001_4FGL_J1539.6+2743_daily_bin1514.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/647609/ltcube_631756801_632016001_4FGL_J1539.6+2743_daily_bin1514.fits
.....................!
real 191.57
user 185.98
sys 5.16

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/647609/ft1_filtered_4FGL_J1539.6+2743_daily_bin1514.fits scfile=/scratch/kocevski/647609/ft2_4FGL_J1539.6+2743_daily_bin1514.fits outfile=/scratch/kocevski/647609/cmap_631756801_632016001_4FGL_J1539.6+2743_daily_bin1514.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/647609/ft1_filtered_4FGL_J1539.6+2743_daily_bin1514.fits scfile=/scratch/kocevski/647609/ft2_4FGL_J1539.6+2743_daily_bin1514.fits outfile=/scratch/kocevski/647609/cmap_HighResolution_631756801_632016001_4FGL_J1539.6+2743_daily_bin1514.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/647609/ft1_filtered_4FGL_J1539.6+2743_daily_bin1514.fits evtable="EVENTS" scfile=/scratch/kocevski/647609/ft2_4FGL_J1539.6+2743_daily_bin1514.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/647609/Model_4FGL_J1539.6+2743_daily_bin1514.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/647609/ft1_filtered_4FGL_J1539.6+2743_daily_bin1514.fits.....................!
real 64.20
user 62.75
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.0400       1.0000         .10000E-03   10000.    
     2 'Prefactor '    65.245       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.4143       1.0000         .10000E-03   10000.    
     5 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    48.793       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.7528       1.0000         .10000E-03   10000.    
     9 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .29603       1.0000         .10000E-03   10000.    
    11 'Prefactor '    51.713       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.9960       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    .93591       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .89655       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=   9160.889     FROM MIGRAD    STATUS=CONVERGED    324 CALLS     1656 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.0398        5.6769       -.23046E-07   -.10698E-04
   2  Prefactor     65.245        53.982       -.72488E-06    .46987E-05
   3  Prefactor     .10000E-03    20.236        .10564E-06** at limit **
   4  Prefactor     2.4141        2.1387        .48529E-06   -.20194E-02
   5  norm          .10000E-03    .34179       -.16169E-06** at limit **
   6  Prefactor     .10000E-03    2.4645       -.15162E-06** at limit **
   7  Prefactor     48.801        28.497        .86965E-05    .18560E-03
   8  Prefactor     6.7531        7.0061       -.97938E-07    .12913E-04
   9  norm          .10000E-03    3.1754        .69407E-08** at limit **
  10  Prefactor     .29257        1.0581       -.42659E-06   -.48732E-04
  11  Prefactor     51.712        28.329       -.34168E-06    .48746E-05
  12  Prefactor     4.9948        17.457       -.23809E-05   -.12067E-04
  13  Prefactor     .10000E-03    1.7932        .11612E-07** at limit **
  14  Prefactor     .10000E-03    .87796        .18031E-07** at limit **
  15  Prefactor     .10000E-03    7.2626        .35071E-07** at limit **
  16  Normalizat    .93584        .14379       -.59846E-06    .23450E-03
  17  Prefactor     .89660        .10042        .37477E-07    .19055E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.03976
  Prefactor  = 65.2445
  Prefactor  = 0.0001
  Prefactor  = 2.4141
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 48.8015
  Prefactor  = 6.75309
  norm       = 0.0001
  Prefactor  = 0.292572
  Prefactor  = 51.7122
  Prefactor  = 4.99481
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.93584
  Prefactor  = 0.896601
 **********
 **   18 **HESSE 
 **********

 FCN=   9160.889     FROM HESSE     STATUS=OK           223 CALLS     1879 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.0398        5.6766        .17911E-03   -1.5259    
   2  Prefactor     65.245        54.057        .49684E-04   -1.4091    
   3  Prefactor     .10000E-03    20.301        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.4141        5.8417        .13173E-02   -1.5397    
   5  norm          .10000E-03    .54568        .10802E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.4843        .14671E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     48.801        28.600        .57407E-04   -1.4310    
   8  Prefactor     6.7531        7.0100        .15441E-03   -1.5188    
   9  norm          .10000E-03    3.1805        .16656E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .29257        3.3937        .17444E-02   -1.5600    
  11  Prefactor     51.712        28.316        .55771E-04   -1.4268    
  12  Prefactor     4.9948        17.442        .17992E-03   -1.5261    
  13  Prefactor     .10000E-03    1.7956        .12516E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    .89087        .87545E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.3986        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    .93584        .16555        .26387E-03   -.95212    
  17  Prefactor     .89660        .11732        .19044E-03   -.96260    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.83051e-08
Minuit parameter uncertainties:
  1  5.67719
  2  54.0978
  3  1.01863e-05
  4  5.84311
  5  1.3273e-05
  6  2.60976e-05
  7  28.6083
  8  7.01086
  9  7.59412e-07
  10  1.99268
  11  28.3232
  12  17.4599
  13  8.96544e-07
  14  7.12726e-07
  15  6.91348e-06
  16  0.165637
  17  0.117356
Done.

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

Extracting fit parameters...

4FGL J1539.6+2743
   Spectrum: PowerLaw
263    Prefactor:  2.926e-01  1.993e+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.966e-01  1.174e-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.358e-01  1.656e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/647609/likelihoodResults_631756801_632016001_4FGL_J1539.6+2743_daily_bin1514.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) = 9160.88813729
delta logL = 0.00128496265279

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9160.88788995
delta logL = 0.00153229891475

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .34282       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2118       1.0000          .0000       10.000    
     3 'Normalizat'    .93629       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89625       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=   9160.888     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      238 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .34170        5.0468        .51308E-01   -.25547E-03
   2  Index         2.2019        1.2148        .50000        .17107E-04
   3  Normalizat    .93634        .83129E-02    .45364E-01    .11936E-03
   4  Prefactor     .89624        .59172E-02    .44957E-01    .14206E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.341702
  Index      = 2.20186
  Normalizat = 0.936336
  Prefactor  = 0.896239
 **********
 **   18 **HESSE 
 **********

 FCN=   9160.888     FROM HESSE     STATUS=OK            35 CALLS      273 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .34170        4.1569        .18561E-02   -1.5591    
   2  Index         2.2019        2.2224        .12290E-01   -.59394    
   3  Normalizat    .93634        .16340        .26380E-03   -.95195    
   4  Prefactor     .89624        .11639        .19048E-03   -.96273    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.55302e-09
Minuit parameter uncertainties:
  1  2.38347
  2  2.34574
  3  0.163483
  4  0.116426
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/647609': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9160.88787843
delta logL = 0.00154382009896

Extracting fit parameters...

4FGL J1539.6+2743
   Spectrum: PowerLaw
263    Prefactor:  3.417e-01  2.383e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        Index:  2.202e+00  2.346e+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:  8.962e-01  1.164e-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.363e-01  1.635e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.02
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/647609/cmap_HighResolution_631756801_632016001_4FGL_J1539.6+2743_daily_bin1514.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.35e-03', job_status='DONE', photon_flux_upper_limit='6.95e-08', time_completed='2021-09-12 10:12:43.711941', job_id='647609', GAL2='0.90', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1631466763.71', return_code2='0', ts='0.02', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='1.54e-03', ts2='0.03', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='1514' AND source_name='4FGL J1539.6+2743' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 10:12:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 647609: <4FGL_J1539.6+2743_daily_bin1514> in cluster <slac> Done

Job <4FGL_J1539.6+2743_daily_bin1514> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep 12 10:00:17 2021
Job was executed on host(s) <bullet0262>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 10:00:26 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 12 10:00:26 2021
Terminated at Sun Sep 12 10:12:44 2021
Results reported at Sun Sep 12 10:12:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1539.6+2743_daily_bin1514 234.902 27.7277 631756801 632016001 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 :                                   644.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             325.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   738 sec.
    Turnaround time :                            747 sec.

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

