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


Performing analysis on: 4FGL_J0539.9-2839_daily_bin1564
RA = 84.9952, Dec = -28.6585
tmin = 644716801, tmax = 644976001
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='713312', job_status='RUN', time_executed='2021-08-23 14:51:47.593185', time_epoch_executed='1629755507.59' WHERE source_name='4FGL J0539.9-2839' and cadence='daily' and bin_id='1564'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/713312

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/713312/ft1_4FGL_J0539.9-2839_daily_bin1564.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/713312/ft2_4FGL_J0539.9-2839_daily_bin1564.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/713312/ft1_4FGL_J0539.9-2839_daily_bin1564.fits outfile=/scratch/kocevski/713312/ft1_filteredMKT_4FGL_J0539.9-2839_daily_bin1564.fits ra=84.9952 dec=-28.6585 rad=12.0 tmin=644716801.0 tmax=644976001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.54
user 2.63
sys 0.88

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/713312/ft2_4FGL_J0539.9-2839_daily_bin1564.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/713312/ft2_4FGL_J0539.9-2839_daily_bin1564.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/713312/ft1_filteredMKT_4FGL_J0539.9-2839_daily_bin1564.fits evtable="EVENTS" outfile="/scratch/kocevski/713312/ft1_filtered_4FGL_J0539.9-2839_daily_bin1564.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 1.20
user 0.33
sys 0.85

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/713312/ft1_filtered_4FGL_J0539.9-2839_daily_bin1564.fits" evtable="EVENTS" scfile=/scratch/kocevski/713312/ft2_4FGL_J0539.9-2839_daily_bin1564.fits sctable="SC_DATA" outfile=/scratch/kocevski/713312/ltcube_644716801_644976001_4FGL_J0539.9-2839_daily_bin1564.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/713312/ft2_4FGL_J0539.9-2839_daily_bin1564.fits
.....................!
real 12.87
user 11.70
sys 1.12

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/713312/ft1_filtered_4FGL_J0539.9-2839_daily_bin1564.fits evtable="EVENTS" scfile=/scratch/kocevski/713312/ft2_4FGL_J0539.9-2839_daily_bin1564.fits sctable="SC_DATA" expcube=/scratch/kocevski/713312/ltcube_644716801_644976001_4FGL_J0539.9-2839_daily_bin1564.fits outfile=/scratch/kocevski/713312/expmap_644716801_644976001_4FGL_J0539.9-2839_daily_bin1564.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/713312/ltcube_644716801_644976001_4FGL_J0539.9-2839_daily_bin1564.fits
.....................!
real 190.58
user 185.16
sys 5.04

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 171 point sources and 0 extended sources

Setting source of interest to:
4FGL J0539.9-2839 @ 84.9952 -28.6585

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/713312/ft1_filtered_4FGL_J0539.9-2839_daily_bin1564.fits scfile=/scratch/kocevski/713312/ft2_4FGL_J0539.9-2839_daily_bin1564.fits outfile=/scratch/kocevski/713312/cmap_644716801_644976001_4FGL_J0539.9-2839_daily_bin1564.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=84.9952 yref=-28.6585 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 1.21
user 0.38
sys 0.81

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/713312/ft1_filtered_4FGL_J0539.9-2839_daily_bin1564.fits scfile=/scratch/kocevski/713312/ft2_4FGL_J0539.9-2839_daily_bin1564.fits outfile=/scratch/kocevski/713312/cmap_HighResolution_644716801_644976001_4FGL_J0539.9-2839_daily_bin1564.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=84.9952 yref=-28.6585 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 1.23
user 0.38
sys 0.84

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/713312/ft1_filtered_4FGL_J0539.9-2839_daily_bin1564.fits evtable="EVENTS" scfile=/scratch/kocevski/713312/ft2_4FGL_J0539.9-2839_daily_bin1564.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/713312/Model_4FGL_J0539.9-2839_daily_bin1564.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/713312/ft1_filtered_4FGL_J0539.9-2839_daily_bin1564.fits.....................!
real 104.32
user 101.99
sys 2.07

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/713312/ft1_filtered_4FGL_J0539.9-2839_daily_bin1564.fits', '/scratch/kocevski/713312/ft2_4FGL_J0539.9-2839_daily_bin1564.fits', expMap='/scratch/kocevski/713312/expmap_644716801_644976001_4FGL_J0539.9-2839_daily_bin1564.fits', expCube='/scratch/kocevski/713312/ltcube_644716801_644976001_4FGL_J0539.9-2839_daily_bin1564.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/713312/Model_4FGL_J0539.9-2839_daily_bin1564.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0539.9-2839'

4FGL J0539.9-2839
   Spectrum: LogParabola
258         norm:  2.014e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
259        alpha:  2.677e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
260         beta:  1.119e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
261           Eb:  3.935e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/713312/ft1_filtered_4FGL_J0539.9-2839_daily_bin1564.fits
Spacecraft file(s): /scratch/kocevski/713312/ft2_4FGL_J0539.9-2839_daily_bin1564.fits
Exposure map: /scratch/kocevski/713312/expmap_644716801_644976001_4FGL_J0539.9-2839_daily_bin1564.fits
Exposure cube: /scratch/kocevski/713312/ltcube_644716801_644976001_4FGL_J0539.9-2839_daily_bin1564.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/713312/Model_4FGL_J0539.9-2839_daily_bin1564.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) = 8367.71515109

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10281E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.3236       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.5277       1.0000         .10000E-03   10000.    
     4 'norm      '    .98240       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .45505E-01   1.0000         .10000E-03   10000.    
     6 'norm      '    .11232E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.1027       1.0000         .10000E-03   10000.    
     8 'norm      '    4.5512       1.0000         .10000E-03   10000.    
     9 'Prefactor '    26.149       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.5464       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    6.9749       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10136E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    36.921       1.0000         .10000E-03   10000.    
    16 'norm      '    12.130       1.0000         .10000E-03   10000.    
    17 'Prefactor '    16.552       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    29.052       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10381E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    39.749       1.0000         .10000E-03   10000.    
    22 'norm      '    4.2962       1.0000         .10000E-03   10000.    
    23 'Prefactor '    14.157       1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.1999       1.0000         .10000E-03   10000.    
    25 'Prefactor '    7.1269       1.0000         .10000E-03   10000.    
    26 'norm      '    26.618       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.1027       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .93475       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5660E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8367.660     FROM MIGRAD    STATUS=CONVERGED    726 CALLS     3596 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    55.380        .33943E-05** at limit **
   2  norm          1.3236        2.7026        .13641E-06    .39323E-04
   3  Prefactor     3.5278        3.1487        .20317E-07    .35072E-04
   4  norm          .98241        .25140        .75400E-08    .22031E-03
   5  Prefactor     .11012E-03    74.519       -.56568E-05** at limit **
   6  norm          .10000E-03    46.161       -.23828E-05** at limit **
   7  Prefactor     1.0978        5.0744        .30209E-06    .20878E-03
   8  norm          4.5513        2.8023        .29974E-06    .69289E-03
   9  Prefactor     26.134        31.333       -.25092E-05   -.30488E-04
  10  Prefactor     .10000E-03    3.1236        .26370E-07** at limit **
  11  Prefactor     5.5584        17.267       -.41245E-06    .36185E-04
  12  Prefactor     .10000E-03    6.6773        .13548E-07** at limit **
  13  norm          6.9750        4.8055       -.11099E-07    .71056E-04
  14  Prefactor     .10000E-03    24.831       -.44606E-06** at limit **
  15  norm          36.922        4.6250        .68797E-07    .11040E-03
  16  norm          12.133        10.289       -.36352E-06   -.20338E-04
  17  Prefactor     16.555        10.428       -.25275E-06   -.14220E-04
  18  Prefactor     .10000E-03    28.619        .67892E-06** at limit **
  19  Prefactor     29.046        27.076       -.90565E-06   -.11376E-05
  20  Prefactor     .10000E-03    96.564       -.47460E-05** at limit **
  21  Prefactor     39.747        46.023        .13238E-05    .10612E-03
  22  norm          4.2954        5.6687        .12410E-05    .25334E-03
  23  Prefactor     14.156        17.429       -.15929E-06    .55460E-05
  24  Prefactor     5.2008        4.8879       -.21070E-06    .12021E-04
  25  Prefactor     7.1336        16.447        .12364E-06    .32067E-04
  26  norm          26.613        21.520       -.26769E-06    .14329E-04
  27  Normalizat    1.1026        .22709       -.70242E-06    .16913E-03
  28  Prefactor     .93484        .15641        .57402E-06    .18717E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 1.32361
  Prefactor  = 3.52775
  norm       = 0.982411
  Prefactor  = 0.000110116
  norm       = 0.0001
  Prefactor  = 1.09782
  norm       = 4.55126
  Prefactor  = 26.1337
  Prefactor  = 0.0001
  Prefactor  = 5.55836
  Prefactor  = 0.0001
  norm       = 6.97505
  Prefactor  = 0.0001
  norm       = 36.9218
  norm       = 12.1327
  Prefactor  = 16.5548
  Prefactor  = 0.0001
  Prefactor  = 29.0457
  Prefactor  = 0.0001
  Prefactor  = 39.7466
  norm       = 4.29542
  Prefactor  = 14.1556
  Prefactor  = 5.20084
  Prefactor  = 7.1336
  norm       = 26.6131
  Normalizat = 1.10264
  Prefactor  = 0.934838
 **********
 **   18 **HESSE 
 **********

 FCN=   8367.660     FROM HESSE     STATUS=OK           533 CALLS     4129 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    55.339        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.3236        2.6744        .20489E-03   -1.5478    
   3  Prefactor     3.5278        3.1537        .14839E-03   -1.5332    
   4  norm          .98241        .25152        .22337E-04   -1.5510    
   5  Prefactor     .11012E-03    49.235        .19807       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    46.160        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.0978        4.6472        .33328E-03   -1.5498    
   8  norm          4.5513        2.7426        .50469E-03   -1.5281    
   9  Prefactor     26.134        31.394        .78340E-04   -1.4685    
  10  Prefactor     .10000E-03    3.1433        .15747E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.5584        16.928        .17059E-03   -1.5236    
  12  Prefactor     .10000E-03    6.6903        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          6.9750        4.7908        .15190E-03   -1.5180    
  14  Prefactor     .10000E-03    25.094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          36.922        4.6507        .64398E-04   -1.4492    
  16  norm          12.133        10.290        .11502E-03   -1.5011    
  17  Prefactor     16.555        10.436        .98445E-04   -1.4894    
  18  Prefactor     .10000E-03    28.628        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     29.046        27.092        .74331E-04   -1.4630    
  20  Prefactor     .10000E-03    98.052        .41475E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     39.747        45.872        .63576E-04   -1.4446    
  22  norm          4.2954        5.6984        .97182E-03   -1.5293    
  23  Prefactor     14.156        17.433        .10645E-03   -1.4955    
  24  Prefactor     5.2008        4.8904        .17629E-03   -1.5252    
  25  Prefactor     7.1336        16.429        .15026E-03   -1.5174    
  26  norm          26.613        21.517        .77648E-04   -1.4676    
  27  Normalizat    1.1026        .26529        .33121E-03   -.89667    
  28  Prefactor     .93484        .18325        .26470E-03   -.94934    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.89448e-10
Minuit parameter uncertainties:
  1  0.000128002
  2  2.67469
  3  3.15382
  4  0.251522
  5  0.0446705
  6  8.56079e-05
  7  4.51781
  8  2.74265
  9  31.4143
  10  3.61769e-07
  11  16.9423
  12  6.47701e-08
  13  4.79106
  14  1.30671e-05
  15  4.65072
  16  10.2914
  17  10.4368
  18  2.51187e-05
  19  27.1035
  20  0.000237927
  21  45.9132
  22  5.69916
  23  17.4391
  24  4.89079
  25  16.4397
  26  21.5228
  27  0.265609
  28  0.183374
Done.

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

Extracting fit parameters...

4FGL J0539.9-2839
   Spectrum: LogParabola
258         norm:  3.692e+01  4.651e+00  1.000e-04  1.000e+04 ( 1.000e-11)
259        alpha:  2.677e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
260         beta:  1.119e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
261           Eb:  3.935e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
563    Prefactor:  9.348e-01  1.834e-01  0.000e+00  1.000e+01 ( 1.000e+00)
564        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
565        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
562   Normalization:  1.103e+00  2.656e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 202.64
Ra Dec: 84.995 -28.659
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 7.77e-07 +/- 9.79e-08
Energy Flux (Fixed Index): 1.83e-04 +/- 2.30e-05

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) = 8367.12582212
delta logL = 0.534334221429

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8366.99889534
delta logL = 0.661261001389

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    39.083       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4965       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1623       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90156       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5660E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8366.999     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      208 TOTAL
                     EDM=   .10E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          39.082        5.6440        .16029E-02    .16597E-04
   2  alpha         2.4968        .16764        .11396        .15783E-04
   3  Normalizat    1.1621        .21146        .73275E-01    .63555E-05
   4  Prefactor     .90165        .15330        .45025E-01    .97199E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 39.0815
  alpha      = 2.49676
  Normalizat = 1.1621
  Prefactor  = 0.901645
 **********
 **   18 **HESSE 
 **********

 FCN=   8366.999     FROM HESSE     STATUS=OK            31 CALLS      239 TOTAL
                     EDM=   .37E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          39.082        5.1316        .64114E-04   -1.4457    
   2  alpha         2.4968        .15386        .50057E-03   -.12973E-02
   3  Normalizat    1.1621        .24916        .32427E-03   -.87782    
   4  Prefactor     .90165        .17976        .26883E-03   -.96084    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.71291e-13
Minuit parameter uncertainties:
  1  5.13164
  2  0.153959
  3  0.249412
  4  0.179873
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/713312': 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) = 8366.99889381
delta logL = 0.661262540612

Extracting fit parameters...

4FGL J0539.9-2839
   Spectrum: LogParabola
258         norm:  3.908e+01  5.132e+00  1.000e-04  1.000e+04 ( 1.000e-11)
259        alpha:  2.497e+00  1.540e-01  0.000e+00  5.000e+00 ( 1.000e+00)
260         beta:  1.119e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
261           Eb:  3.935e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
563    Prefactor:  9.016e-01  1.799e-01  0.000e+00  1.000e+01 ( 1.000e+00)
564        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
565        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
562   Normalization:  1.162e+00  2.494e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 199.57
Ra Dec: 84.995 -28.659
Photon Index (Free Index): 2.50 +/- 0.15
Photon Flux (Free Index): 7.22e-07 +/- 1.04e-07
Energy Flux (Free Index): 1.91e-04 +/- 2.55e-05

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/713312/cmap_HighResolution_644716801_644976001_4FGL_J0539.9-2839_daily_bin1564.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.77e-07', energy_flux2='1.91e-04', photon_flux_error='9.79e-08', dlogl='6.61e-01', energy_flux='1.83e-04', photon_flux2='7.22e-07', job_status='DONE', time_completed='2021-08-23 15:06:03.616666', photon_index_error2='0.15', photon_index2='2.50', ts='202.64', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='2.55e-05', EG='1.10', time_epoch_completed='1629756363.62', return_code='0', job_id='713312', GAL2='0.90', EG2='1.16', return_code2='0', energy_flux_error='2.30e-05', photon_flux_error2='1.04e-07', ts2='199.57', photon_index='2.68' WHERE bin_id='1564' AND source_name='4FGL J0539.9-2839' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 23 15:06:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0050>
Subject: Job 713312: <4FGL_J0539.9-2839_daily_bin1564> in cluster <slac> Done

Job <4FGL_J0539.9-2839_daily_bin1564> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Aug 23 14:50:31 2021
Job was executed on host(s) <bullet0050>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 23 14:50:33 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug 23 14:50:33 2021
Terminated at Mon Aug 23 15:06:04 2021
Results reported at Mon Aug 23 15:06:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0539.9-2839_daily_bin1564 84.9952 -28.6585 644716801 644976001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0539.9-2839 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   866.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             304.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   930 sec.
    Turnaround time :                            933 sec.

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

