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


Performing analysis on: 4FGL_J0539.9-2839_daily_bin1548
RA = 84.9952, Dec = -28.6585
tmin = 640569601, tmax = 640828801
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='713289', job_status='RUN', time_executed='2021-08-23 14:51:17.678353', time_epoch_executed='1629755477.68' WHERE source_name='4FGL J0539.9-2839' and cadence='daily' and bin_id='1548'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/713289

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/713289/ft1_4FGL_J0539.9-2839_daily_bin1548.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/713289/ft2_4FGL_J0539.9-2839_daily_bin1548.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/713289/ft1_4FGL_J0539.9-2839_daily_bin1548.fits outfile=/scratch/kocevski/713289/ft1_filteredMKT_4FGL_J0539.9-2839_daily_bin1548.fits ra=84.9952 dec=-28.6585 rad=12.0 tmin=640569601.0 tmax=640828801.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.70
user 2.73
sys 0.89

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/713289/ft1_filtered_4FGL_J0539.9-2839_daily_bin1548.fits" evtable="EVENTS" scfile=/scratch/kocevski/713289/ft2_4FGL_J0539.9-2839_daily_bin1548.fits sctable="SC_DATA" outfile=/scratch/kocevski/713289/ltcube_640569601_640828801_4FGL_J0539.9-2839_daily_bin1548.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/713289/ft2_4FGL_J0539.9-2839_daily_bin1548.fits
.....................!
real 13.12
user 12.00
sys 1.08

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/713289/ft1_filtered_4FGL_J0539.9-2839_daily_bin1548.fits evtable="EVENTS" scfile=/scratch/kocevski/713289/ft2_4FGL_J0539.9-2839_daily_bin1548.fits sctable="SC_DATA" expcube=/scratch/kocevski/713289/ltcube_640569601_640828801_4FGL_J0539.9-2839_daily_bin1548.fits outfile=/scratch/kocevski/713289/expmap_640569601_640828801_4FGL_J0539.9-2839_daily_bin1548.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/713289/ltcube_640569601_640828801_4FGL_J0539.9-2839_daily_bin1548.fits
.....................!
real 192.34
user 186.18
sys 5.75

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/713289/ft1_filtered_4FGL_J0539.9-2839_daily_bin1548.fits scfile=/scratch/kocevski/713289/ft2_4FGL_J0539.9-2839_daily_bin1548.fits outfile=/scratch/kocevski/713289/cmap_640569601_640828801_4FGL_J0539.9-2839_daily_bin1548.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.37
sys 0.82

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/713289/ft1_filtered_4FGL_J0539.9-2839_daily_bin1548.fits scfile=/scratch/kocevski/713289/ft2_4FGL_J0539.9-2839_daily_bin1548.fits outfile=/scratch/kocevski/713289/cmap_HighResolution_640569601_640828801_4FGL_J0539.9-2839_daily_bin1548.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.20
user 0.37
sys 0.82

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/713289/ft1_filtered_4FGL_J0539.9-2839_daily_bin1548.fits', '/scratch/kocevski/713289/ft2_4FGL_J0539.9-2839_daily_bin1548.fits', expMap='/scratch/kocevski/713289/expmap_640569601_640828801_4FGL_J0539.9-2839_daily_bin1548.fits', expCube='/scratch/kocevski/713289/ltcube_640569601_640828801_4FGL_J0539.9-2839_daily_bin1548.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/713289/Model_4FGL_J0539.9-2839_daily_bin1548.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/713289/ft1_filtered_4FGL_J0539.9-2839_daily_bin1548.fits
Spacecraft file(s): /scratch/kocevski/713289/ft2_4FGL_J0539.9-2839_daily_bin1548.fits
Exposure map: /scratch/kocevski/713289/expmap_640569601_640828801_4FGL_J0539.9-2839_daily_bin1548.fits
Exposure cube: /scratch/kocevski/713289/ltcube_640569601_640828801_4FGL_J0539.9-2839_daily_bin1548.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/713289/Model_4FGL_J0539.9-2839_daily_bin1548.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) = 7424.54004295

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    9.7340       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.0110       1.0000         .10000E-03   10000.    
     4 'norm      '    1.1838       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    58.293       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.8973       1.0000         .10000E-03   10000.    
     9 'Prefactor '    50.253       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.8383       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .34598E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    6.0377       1.0000         .10000E-03   10000.    
    16 'norm      '    4.7391       1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.878       1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.751       1.0000         .10000E-03   10000.    
    19 'Prefactor '    21.266       1.0000         .10000E-03   10000.    
    20 'Prefactor '    20.089       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .17801E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10067E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .75303E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    4.2416       1.0000         .10000E-03   10000.    
    26 'norm      '    49.743       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .76628       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.2618       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=   7424.533     FROM MIGRAD    STATUS=CONVERGED    683 CALLS     3500 TOTAL
                     EDM=   .76E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    68.139       -.25534E-07** at limit **
   2  norm          9.7330        4.7429        .61154E-07   -.12808E-03
   3  Prefactor     2.0097        5.2203        .18028E-05    .19751E-03
   4  norm          1.1838        .26914        .64192E-08   -.55539E-03
   5  Prefactor     .10000E-03    35.482        .93760E-08** at limit **
   6  norm          58.289        102.46        .18825E-06   -.83020E-06
   7  Prefactor     .10000E-03    1.2925        .88057E-07** at limit **
   8  norm          3.8963        2.2416        .40562E-07   -.81541E-03
   9  Prefactor     50.243        38.579        .24716E-06   -.88473E-04
  10  Prefactor     .10000E-03    1.5137        .60944E-07** at limit **
  11  Prefactor     5.8383        9.2740        .18892E-06   -.11033E-03
  12  Prefactor     .10000E-03    3.2881        .52720E-07** at limit **
  13  norm          .10029E-03    3.0399        .15787E-05** at limit **
  14  Prefactor     .10000E-03    6.2298        .38434E-07** at limit **
  15  norm          6.0370        2.5724        .81059E-07   -.53091E-03
  16  norm          4.7394        8.7823       -.58429E-07    .15833E-04
  17  Prefactor     12.879        8.2193        .14396E-05    .45469E-03
  18  Prefactor     10.664        64.239       -.24944E-05   -.42291E-04
  19  Prefactor     21.273        32.291        .10989E-07   -.24707E-04
  20  Prefactor     20.064        30.018        .12095E-05    .71321E-05
  21  Prefactor     .10000E-03    45.417       -.16661E-05** at limit **
  22  norm          .10000E-03    2.0490       -.33151E-07** at limit **
  23  Prefactor     .10000E-03    10.334       -.52432E-06** at limit **
  24  Prefactor     .10000E-03    3.3470        .29214E-06** at limit **
  25  Prefactor     4.2225        35.488        .13721E-05    .57396E-05
  26  norm          49.745        30.687        .60720E-07    .18365E-05
  27  Normalizat    .76652        .21519       -.38304E-05   -.36967E-03
  28  Prefactor     1.2617        .15599        .10068E-05   -.51016E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 9.73298
  Prefactor  = 2.00967
  norm       = 1.18377
  Prefactor  = 0.0001
  norm       = 58.2893
  Prefactor  = 0.0001
  norm       = 3.89625
  Prefactor  = 50.2433
  Prefactor  = 0.0001
  Prefactor  = 5.83827
  Prefactor  = 0.0001
  norm       = 0.000100291
  Prefactor  = 0.0001
  norm       = 6.03699
  norm       = 4.73937
  Prefactor  = 12.8791
  Prefactor  = 10.6639
  Prefactor  = 21.2733
  Prefactor  = 20.0641
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.22253
  norm       = 49.7447
  Normalizat = 0.766521
  Prefactor  = 1.2617
 **********
 **   18 **HESSE 
 **********

 FCN=   7424.533     FROM HESSE     STATUS=OK           521 CALLS     4021 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    68.141        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          9.7330        4.7392        .12254E-03   -1.5084    
   3  Prefactor     2.0097        5.2325        .29193E-03   -1.5424    
   4  norm          1.1838        .26935        .20546E-04   -1.5490    
   5  Prefactor     .10000E-03    35.554        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          58.289        102.58        .52546E-04   -1.4180    
   7  Prefactor     .10000E-03    1.3056        .95635E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.8963        2.2315        .91058E-04   -1.5313    
   9  Prefactor     50.243        38.622        .56571E-04   -1.4289    
  10  Prefactor     .10000E-03    1.5177        .10352E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.8383        9.2466        .16621E-03   -1.5225    
  12  Prefactor     .10000E-03    3.2910        .15256E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10029E-03    21.658        .22692E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.2311        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          6.0370        2.5736        .83491E-04   -1.5217    
  16  norm          4.7394        8.7763        .18483E-03   -1.5273    
  17  Prefactor     12.879        8.3180        .55811E-03   -1.4990    
  18  Prefactor     10.664        64.728        .12219E-03   -1.5055    
  19  Prefactor     21.273        32.178        .86857E-04   -1.4785    
  20  Prefactor     20.064        29.919        .89362E-04   -1.4812    
  21  Prefactor     .10000E-03    45.548        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    2.0567        .12037E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    10.395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    8.2349        .30397E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     4.2225        35.091        .19565E-03   -1.5297    
  26  norm          49.745        30.688        .56859E-04   -1.4296    
  27  Normalizat    .76652        .23570        .35106E-03   -1.0132    
  28  Prefactor     1.2617        .17513        .22117E-03   -.84453    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34861e-08
Minuit parameter uncertainties:
  1  2.80063e-05
  2  4.7394
  3  5.23371
  4  0.269353
  5  4.36221e-05
  6  102.898
  7  3.21508e-06
  8  2.23158
  9  38.6417
  10  2.20424e-06
  11  9.24886
  12  2.32928e-06
  13  0.00502646
  14  2.55033e-06
  15  2.57369
  16  8.77868
  17  8.31872
  18  52.6301
  19  32.2047
  20  29.9412
  21  0.000165918
  22  3.4217e-07
  23  3.11123e-05
  24  4.64469e-05
  25  24.3642
  26  30.6976
  27  0.236017
  28  0.175212
Done.

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

Extracting fit parameters...

4FGL J0539.9-2839
   Spectrum: LogParabola
258         norm:  6.037e+00  2.574e+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:  1.262e+00  1.752e-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:  7.665e-01  2.360e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.15
Ra Dec: 84.995 -28.659
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 1.27e-07 +/- 5.42e-08
Energy Flux (Fixed Index): 2.99e-05 +/- 1.27e-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) = 7423.79757565
delta logL = 0.735250202952

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7423.77511124
delta logL = 0.757714619661

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.9335       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0398       1.0000          .0000       5.0000    
     3 'Normalizat'    .83063       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2278       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=   7423.775     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      209 TOTAL
                     EDM=   .97E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.9335        2.7206        .41213E-02    .56625E-03
   2  alpha         2.0397        .39447        .33510       -.38965E-04
   3  Normalizat    .83063        .18977        .76478E-01    .27230E-04
   4  Prefactor     1.2278        .14789        .50590E-01    .17405E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 5.93347
  alpha      = 2.03971
  Normalizat = 0.830631
  Prefactor  = 1.22778
 **********
 **   18 **HESSE 
 **********

 FCN=   7423.775     FROM HESSE     STATUS=OK            33 CALLS      242 TOTAL
                     EDM=   .87E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.9335        3.0148        .90880E-04   -1.5221    
   2  alpha         2.0397        .48994        .13171E-01   -.18517    
   3  Normalizat    .83063        .22084        .33851E-03   -.98942    
   4  Prefactor     1.2278        .17012        .22365E-03   -.85481    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.68715e-10
Minuit parameter uncertainties:
  1  3.01485
  2  0.493245
  3  0.22108
  4  0.170194
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/713289': 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) = 7423.77511119
delta logL = 0.757714668091

Extracting fit parameters...

4FGL J0539.9-2839
   Spectrum: LogParabola
258         norm:  5.933e+00  3.015e+00  1.000e-04  1.000e+04 ( 1.000e-11)
259        alpha:  2.040e+00  4.932e-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:  1.228e+00  1.702e-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:  8.306e-01  2.211e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.43
Ra Dec: 84.995 -28.659
Photon Index (Free Index): 2.04 +/- 0.49
Photon Flux (Free Index): 8.39e-08 +/- 5.40e-08
Energy Flux (Free Index): 3.47e-05 +/- 1.67e-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/713289/cmap_HighResolution_640569601_640828801_4FGL_J0539.9-2839_daily_bin1548.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.27e-07', energy_flux2='3.47e-05', photon_flux_error='5.42e-08', dlogl='7.58e-01', energy_flux='2.99e-05', photon_flux2='8.39e-08', job_status='DONE', time_completed='2021-08-23 15:03:57.772778', photon_index_error2='0.49', photon_index2='2.04', ts='11.15', fit_tolerance='1e-08', GAL='1.26', photon_index_error='0.00', energy_flux_error2='1.67e-05', EG='0.77', time_epoch_completed='1629756237.77', return_code='0', job_id='713289', GAL2='1.23', EG2='0.83', return_code2='0', energy_flux_error='1.27e-05', photon_flux_error2='5.40e-08', ts2='12.43', photon_index='2.68' WHERE bin_id='1548' AND source_name='4FGL J0539.9-2839' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 23 15:03:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 713289: <4FGL_J0539.9-2839_daily_bin1548> in cluster <slac> Done

Job <4FGL_J0539.9-2839_daily_bin1548> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Aug 23 14:50:29 2021
Job was executed on host(s) <bullet0219>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 23 14:50:31 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:31 2021
Terminated at Mon Aug 23 15:03:58 2021
Results reported at Mon Aug 23 15:03:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0539.9-2839_daily_bin1548 84.9952 -28.6585 640569601 640828801 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 :                                   769.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             351.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   807 sec.
    Turnaround time :                            809 sec.

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

