/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 21 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_J0539.9-2839_daily_bin1438
RA = 84.9952, Dec = -28.6585
tmin = 612057601, tmax = 612316801
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='713133', job_status='RUN', time_executed='2021-08-23 14:50:51.422722', time_epoch_executed='1629755451.42' WHERE source_name='4FGL J0539.9-2839' and cadence='daily' and bin_id='1438'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/713133

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/713133/ft1_4FGL_J0539.9-2839_daily_bin1438.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/713133/ft2_4FGL_J0539.9-2839_daily_bin1438.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/713133/ft1_4FGL_J0539.9-2839_daily_bin1438.fits outfile=/scratch/kocevski/713133/ft1_filteredMKT_4FGL_J0539.9-2839_daily_bin1438.fits ra=84.9952 dec=-28.6585 rad=12.0 tmin=612057601.0 tmax=612316801.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 4.53
user 4.28
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/713133/ft2_4FGL_J0539.9-2839_daily_bin1438.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/713133/ft1_filteredMKT_4FGL_J0539.9-2839_daily_bin1438.fits evtable="EVENTS" outfile="/scratch/kocevski/713133/ft1_filtered_4FGL_J0539.9-2839_daily_bin1438.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/713133/ft1_filtered_4FGL_J0539.9-2839_daily_bin1438.fits" evtable="EVENTS" scfile=/scratch/kocevski/713133/ft2_4FGL_J0539.9-2839_daily_bin1438.fits sctable="SC_DATA" outfile=/scratch/kocevski/713133/ltcube_612057601_612316801_4FGL_J0539.9-2839_daily_bin1438.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/713133/ft2_4FGL_J0539.9-2839_daily_bin1438.fits
.....................!
real 11.78
user 11.45
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/713133/ft1_filtered_4FGL_J0539.9-2839_daily_bin1438.fits evtable="EVENTS" scfile=/scratch/kocevski/713133/ft2_4FGL_J0539.9-2839_daily_bin1438.fits sctable="SC_DATA" expcube=/scratch/kocevski/713133/ltcube_612057601_612316801_4FGL_J0539.9-2839_daily_bin1438.fits outfile=/scratch/kocevski/713133/expmap_612057601_612316801_4FGL_J0539.9-2839_daily_bin1438.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/713133/ltcube_612057601_612316801_4FGL_J0539.9-2839_daily_bin1438.fits
.....................!
real 190.47
user 185.35
sys 4.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/713133/ft1_filtered_4FGL_J0539.9-2839_daily_bin1438.fits scfile=/scratch/kocevski/713133/ft2_4FGL_J0539.9-2839_daily_bin1438.fits outfile=/scratch/kocevski/713133/cmap_612057601_612316801_4FGL_J0539.9-2839_daily_bin1438.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 0.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/713133/ft1_filtered_4FGL_J0539.9-2839_daily_bin1438.fits scfile=/scratch/kocevski/713133/ft2_4FGL_J0539.9-2839_daily_bin1438.fits outfile=/scratch/kocevski/713133/cmap_HighResolution_612057601_612316801_4FGL_J0539.9-2839_daily_bin1438.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 0.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/713133/ft1_filtered_4FGL_J0539.9-2839_daily_bin1438.fits evtable="EVENTS" scfile=/scratch/kocevski/713133/ft2_4FGL_J0539.9-2839_daily_bin1438.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/713133/Model_4FGL_J0539.9-2839_daily_bin1438.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/713133/ft1_filtered_4FGL_J0539.9-2839_daily_bin1438.fits.....................!
real 71.80
user 70.26
sys 1.36

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    3.6561       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.1003       1.0000         .10000E-03   10000.    
     4 'norm      '    1.1663       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .69020       1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.966       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .13076E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.5157       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    6.4530       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.7354       1.0000         .10000E-03   10000.    
    16 'norm      '    14.192       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.0623       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .13387E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    103.36       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10470E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    23.885       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .91235       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.1381       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=   5891.099     FROM MIGRAD    STATUS=CONVERGED    690 CALLS     3502 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10002E-03    56.932        .63507E-05** at limit **
   2  norm          3.6559        3.8892        .18607E-07   -.14357E-03
   3  Prefactor     1.1023        5.7450        .21509E-05   -.14866E-03
   4  norm          1.1663        .28476        .62593E-08   -.27009E-03
   5  Prefactor     .10000E-03    19.868       -.38753E-06** at limit **
   6  norm          .10001E-03    49.362       -.47892E-05** at limit **
   7  Prefactor     .10000E-03    2.3840       -.18646E-06** at limit **
   8  norm          .69014        1.9810        .39516E-06   -.32303E-03
   9  Prefactor     11.967        27.366        .16502E-06   -.13179E-04
  10  Prefactor     .10001E-03    4.1951        .54587E-07** at limit **
  11  Prefactor     5.5152        10.331        .39373E-05   -.30467E-03
  12  Prefactor     .10000E-03    9.4408       -.14285E-06** at limit **
  13  norm          6.4514        5.1292       -.11451E-07   -.31321E-04
  14  Prefactor     .10000E-03    18.113        .47495E-06** at limit **
  15  norm          4.7355        2.5009        .64106E-07   -.70581E-04
  16  norm          14.192        15.199        .36201E-07   -.59507E-06
  17  Prefactor     5.0580        10.611        .44150E-06   -.20070E-04
  18  Prefactor     .10001E-03    150.54       -.36705E-05** at limit **
  19  Prefactor     103.36        51.795        .22352E-06   -.72281E-05
  20  Prefactor     .10000E-03    15.486       -.32299E-06** at limit **
  21  Prefactor     .10000E-03    17.848        .70112E-06** at limit **
  22  norm          .10000E-03    8.3646        .15377E-06** at limit **
  23  Prefactor     23.865        28.957       -.43182E-07   -.36557E-04
  24  Prefactor     .10000E-03    4.9068        .42211E-08** at limit **
  25  Prefactor     .10000E-03    14.920       -.68591E-06** at limit **
  26  norm          .10000E-03    9.5052       -.12967E-06** at limit **
  27  Normalizat    .91227        .24178       -.12031E-05   -.61878E-04
  28  Prefactor     1.1382        .17361       -.18096E-06   -.97805E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100022
  norm       = 3.6559
  Prefactor  = 1.1023
  norm       = 1.16626
  Prefactor  = 0.0001
  norm       = 0.000100012
  Prefactor  = 0.0001
  norm       = 0.69014
  Prefactor  = 11.9671
  Prefactor  = 0.000100009
  Prefactor  = 5.5152
  Prefactor  = 0.0001
  norm       = 6.45142
  Prefactor  = 0.0001
  norm       = 4.73545
  norm       = 14.1922
  Prefactor  = 5.05802
  Prefactor  = 0.000100006
  Prefactor  = 103.357
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 23.8648
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.912269
  Prefactor  = 1.1382
 **********
 **   18 **HESSE 
 **********

 FCN=   5891.099     FROM HESSE     STATUS=OK           515 CALLS     4017 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10002E-03    60.847        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.6559        3.8841        .14563E-03   -1.5326    
   3  Prefactor     1.1023        5.7660        .34139E-03   -1.5498    
   4  norm          1.1663        .28521        .19415E-04   -1.5492    
   5  Prefactor     .10000E-03    19.885        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10001E-03    51.589        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.4321        .11550E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .69014        1.9510        .16743E-03   -1.5542    
   9  Prefactor     11.967        27.381        .11580E-03   -1.5016    
  10  Prefactor     .10001E-03    10.961        .29875E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.5152        10.411        .85538E-03   -1.5238    
  12  Prefactor     .10000E-03    9.4628        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          6.4514        5.1129        .14456E-03   -1.5200    
  14  Prefactor     .10000E-03    18.160        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.7355        2.5043        .83348E-04   -1.5273    
  16  norm          14.192        15.185        .10632E-03   -1.4954    
  17  Prefactor     5.0580        10.573        .17871E-03   -1.5258    
  18  Prefactor     .10001E-03    152.00        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     103.36        51.820        .39550E-04   -1.3671    
  20  Prefactor     .10000E-03    15.517        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    17.902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    8.4722        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     23.865        28.941        .81961E-04   -1.4731    
  24  Prefactor     .10000E-03    4.9376        .16599E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    15.001        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    9.5108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .91227        .27818        .31815E-03   -.96030    
  28  Prefactor     1.1382        .20224        .22483E-03   -.88255    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.77431e-09
Minuit parameter uncertainties:
  1  0.00230292
  2  3.88434
  3  5.04272
  4  0.285209
  5  8.01167e-05
  6  0.0015958
  7  1.62611e-05
  8  1.95114
  9  27.4093
  10  0.000632806
  11  10.4139
  12  3.15532e-05
  13  5.11327
  14  7.31611e-05
  15  2.50432
  16  15.1889
  17  10.5766
  18  0.00191613
  19  51.8422
  20  5.86319e-05
  21  0.000138517
  22  3.65105e-05
  23  28.9584
  24  3.00156e-06
  25  0.000119937
  26  1.84275e-05
  27  0.278622
  28  0.202374
Done.

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

Extracting fit parameters...

4FGL J0539.9-2839
   Spectrum: LogParabola
258         norm:  4.735e+00  2.504e+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.138e+00  2.024e-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:  9.123e-01  2.786e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.29
Ra Dec: 84.995 -28.659
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 9.97e-08 +/- 5.27e-08
Energy Flux (Fixed Index): 2.35e-05 +/- 1.24e-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) = 5890.79414216
delta logL = 0.305205291324

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5890.7843573
delta logL = 0.314990149656

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.1125       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2166       1.0000          .0000       5.0000    
     3 'Normalizat'    .94509       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1187       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=   5890.784     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      205 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.1138        3.2473        .44454E-02    .13766E-02
   2  alpha         2.2166        .57962        .36489        .52284E-04
   3  Normalizat    .94522        .21806        .70757E-01    .65475E-04
   4  Prefactor     1.1186        .16946        .36916E-01    .26880E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.11383
  alpha      = 2.21663
  Normalizat = 0.945217
  Prefactor  = 1.1186
 **********
 **   18 **HESSE 
 **********

 FCN=   5890.784     FROM HESSE     STATUS=OK            33 CALLS      238 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.1138        2.7060        .87777E-04   -1.5256    
   2  alpha         2.2166        .54022        .14410E-01   -.11359    
   3  Normalizat    .94522        .25243        .31305E-03   -.94889    
   4  Prefactor     1.1186        .19533        .22641E-03   -.88874    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.34809e-10
Minuit parameter uncertainties:
  1  2.70602
  2  0.544573
  3  0.25275
  4  0.195451
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/713133': 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) = 5890.784357
delta logL = 0.314990448446

Extracting fit parameters...

4FGL J0539.9-2839
   Spectrum: LogParabola
258         norm:  5.114e+00  2.706e+00  1.000e-04  1.000e+04 ( 1.000e-11)
259        alpha:  2.217e+00  5.446e-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.119e+00  1.955e-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:  9.452e-01  2.528e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.84
Ra Dec: 84.995 -28.659
Photon Index (Free Index): 2.22 +/- 0.54
Photon Flux (Free Index): 7.92e-08 +/- 5.02e-08
Energy Flux (Free Index): 2.68e-05 +/- 1.51e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/713133/cmap_HighResolution_612057601_612316801_4FGL_J0539.9-2839_daily_bin1438.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.97e-08', energy_flux2='2.68e-05', photon_flux_error='5.27e-08', dlogl='3.15e-01', energy_flux='2.35e-05', photon_flux2='7.92e-08', job_status='DONE', time_completed='2021-08-23 15:02:10.593935', photon_index_error2='0.54', photon_index2='2.22', ts='6.29', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', energy_flux_error2='1.51e-05', EG='0.91', time_epoch_completed='1629756130.59', return_code='0', job_id='713133', GAL2='1.12', EG2='0.95', return_code2='0', energy_flux_error='1.24e-05', photon_flux_error2='5.02e-08', ts2='6.84', photon_index='2.68' WHERE bin_id='1438' AND source_name='4FGL J0539.9-2839' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 23 15:02:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 713133: <4FGL_J0539.9-2839_daily_bin1438> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0539.9-2839_daily_bin1438 84.9952 -28.6585 612057601 612316801 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 :                                   675.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             324.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   710 sec.
    Turnaround time :                            712 sec.

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

