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


Performing analysis on: 4FGL_J0539.9-2839_daily_bin1092
RA = 84.9952, Dec = -28.6585
tmin = 522374401, tmax = 522633601
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='710211', job_status='RUN', time_executed='2021-08-23 14:43:19.511511', time_epoch_executed='1629754999.51' WHERE source_name='4FGL J0539.9-2839' and cadence='daily' and bin_id='1092'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/710211

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/710211/ft1_4FGL_J0539.9-2839_daily_bin1092.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/710211/ft2_4FGL_J0539.9-2839_daily_bin1092.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/710211/ft1_4FGL_J0539.9-2839_daily_bin1092.fits outfile=/scratch/kocevski/710211/ft1_filteredMKT_4FGL_J0539.9-2839_daily_bin1092.fits ra=84.9952 dec=-28.6585 rad=12.0 tmin=522374401.0 tmax=522633601.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 12.33
user 3.44
sys 8.85

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/710211/ft2_4FGL_J0539.9-2839_daily_bin1092.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/710211/ft1_filteredMKT_4FGL_J0539.9-2839_daily_bin1092.fits evtable="EVENTS" outfile="/scratch/kocevski/710211/ft1_filtered_4FGL_J0539.9-2839_daily_bin1092.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 9.05
user 0.35
sys 8.65

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/710211/ft1_filtered_4FGL_J0539.9-2839_daily_bin1092.fits" evtable="EVENTS" scfile=/scratch/kocevski/710211/ft2_4FGL_J0539.9-2839_daily_bin1092.fits sctable="SC_DATA" outfile=/scratch/kocevski/710211/ltcube_522374401_522633601_4FGL_J0539.9-2839_daily_bin1092.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/710211/ft2_4FGL_J0539.9-2839_daily_bin1092.fits
.....................!
real 22.35
user 12.30
sys 9.98

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/710211/ft1_filtered_4FGL_J0539.9-2839_daily_bin1092.fits evtable="EVENTS" scfile=/scratch/kocevski/710211/ft2_4FGL_J0539.9-2839_daily_bin1092.fits sctable="SC_DATA" expcube=/scratch/kocevski/710211/ltcube_522374401_522633601_4FGL_J0539.9-2839_daily_bin1092.fits outfile=/scratch/kocevski/710211/expmap_522374401_522633601_4FGL_J0539.9-2839_daily_bin1092.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/710211/ltcube_522374401_522633601_4FGL_J0539.9-2839_daily_bin1092.fits
.....................!
real 201.13
user 185.73
sys 14.91

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/710211/ft1_filtered_4FGL_J0539.9-2839_daily_bin1092.fits scfile=/scratch/kocevski/710211/ft2_4FGL_J0539.9-2839_daily_bin1092.fits outfile=/scratch/kocevski/710211/cmap_522374401_522633601_4FGL_J0539.9-2839_daily_bin1092.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 9.12
user 0.39
sys 8.62

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/710211/ft1_filtered_4FGL_J0539.9-2839_daily_bin1092.fits scfile=/scratch/kocevski/710211/ft2_4FGL_J0539.9-2839_daily_bin1092.fits outfile=/scratch/kocevski/710211/cmap_HighResolution_522374401_522633601_4FGL_J0539.9-2839_daily_bin1092.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 10.92
user 0.39
sys 8.66

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/710211/ft1_filtered_4FGL_J0539.9-2839_daily_bin1092.fits evtable="EVENTS" scfile=/scratch/kocevski/710211/ft2_4FGL_J0539.9-2839_daily_bin1092.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/710211/Model_4FGL_J0539.9-2839_daily_bin1092.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/710211/ft1_filtered_4FGL_J0539.9-2839_daily_bin1092.fits.....................!
real 85.23
user 72.42
sys 12.47

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    44.077       1.0000         .10000E-03   10000.    
     2 'norm      '    .10402E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12978E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .52376       1.0000         .10000E-03   10000.    
     5 'Prefactor '    21.900       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .13160E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.3871       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.7959       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.1570       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10140E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.6643       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    52.250       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    21.843       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.3387       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10160E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .88742E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    6.5838       1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0469       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0089       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=   6022.296     FROM MIGRAD    STATUS=CONVERGED    674 CALLS     3479 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          44.089        130.88       -.21297E-05   -.19792E-05
   2  norm          .10000E-03    3.0366        .32837E-06** at limit **
   3  Prefactor     .10000E-03    4.5212        .13902E-05** at limit **
   4  norm          .52374        .21581        .16639E-07   -.26404E-03
   5  Prefactor     21.887        49.723        .29781E-05   -.10586E-04
   6  norm          .10000E-03    36.591       -.21772E-05** at limit **
   7  Prefactor     .10000E-03    2.7566        .46231E-06** at limit **
   8  norm          3.3878        2.5828       -.11361E-06    .48880E-05
   9  Prefactor     .10000E-03    17.377       -.28925E-07** at limit **
  10  Prefactor     .10000E-03    3.1887       -.25502E-06** at limit **
  11  Prefactor     9.7951        14.825        .46246E-06    .98710E-05
  12  Prefactor     .10000E-03    6.8722       -.28203E-06** at limit **
  13  norm          4.1553        6.9344        .35350E-05    .75994E-04
  14  Prefactor     .10000E-03    16.083        .86284E-06** at limit **
  15  norm          4.6634        2.7917       -.55898E-07   -.86666E-04
  16  norm          .10000E-03    3.2848        .22974E-06** at limit **
  17  Prefactor     .10000E-03    6.1528        .10081E-05** at limit **
  18  Prefactor     52.252        70.848       -.89702E-07   -.22311E-04
  19  Prefactor     .10000E-03    12.826        .56899E-06** at limit **
  20  Prefactor     21.829        33.037        .16670E-05   -.65595E-04
  21  Prefactor     .10000E-03    41.212        .12313E-05** at limit **
  22  norm          1.3317        5.2310        .91403E-07   -.14992E-03
  23  Prefactor     .10000E-03    18.398       -.91627E-06** at limit **
  24  Prefactor     .10000E-03    6.5342       -.91193E-07** at limit **
  25  Prefactor     6.5761        22.872        .71949E-06   -.44207E-04
  26  norm          .10000E-03    6.8451       -.40050E-06** at limit **
  27  Normalizat    1.0472        .21345       -.16453E-05   -.10546E-03
  28  Prefactor     1.0087        .14990       -.15079E-06   -.23392E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 44.0892
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.523741
  Prefactor  = 21.8866
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.38778
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.79511
  Prefactor  = 0.0001
  norm       = 4.1553
  Prefactor  = 0.0001
  norm       = 4.66338
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 52.2517
  Prefactor  = 0.0001
  Prefactor  = 21.8292
  Prefactor  = 0.000100001
  norm       = 1.33166
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.57608
  norm       = 0.0001
  Normalizat = 1.04722
  Prefactor  = 1.00871
 **********
 **   18 **HESSE 
 **********

 FCN=   6022.296     FROM HESSE     STATUS=OK           517 CALLS     3996 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          44.089        130.85        .60387E-04   -1.4379    
   2  norm          .10000E-03    3.1071        .13195E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    11.830        .30723E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .52374        .21533        .22316E-04   -1.5563    
   5  Prefactor     21.887        49.742        .85592E-04   -1.4772    
   6  norm          .10000E-03    36.612        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.2837        .24281E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.3878        2.5516        .10058E-03   -1.5340    
   9  Prefactor     .10000E-03    17.399        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.2050        .13521E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     9.7951        14.706        .64016E-03   -1.5082    
  12  Prefactor     .10000E-03    6.9010        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.1553        7.0547        .98843E-03   -1.5300    
  14  Prefactor     .10000E-03    16.113        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.6634        2.8047        .93217E-04   -1.5276    
  16  norm          .10000E-03    3.2868        .13737E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.2563        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     52.252        70.823        .55485E-04   -1.4261    
  19  Prefactor     .10000E-03    12.832        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     21.829        32.887        .85703E-04   -1.4773    
  21  Prefactor     .10000E-03    40.942        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.3317        4.5878        .29628E-03   -1.5477    
  23  Prefactor     .10000E-03    18.513        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    22.182        .33400E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     6.5761        22.791        .15640E-03   -1.5195    
  26  norm          .10000E-03    6.8493        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.0472        .24620        .28935E-03   -.91465    
  28  Prefactor     1.0087        .17398        .22057E-03   -.92440    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.6013e-10
Minuit parameter uncertainties:
  1  131.712
  2  1.56338e-05
  3  0.000205863
  4  0.215326
  5  49.8361
  6  5.91838e-05
  7  3.43097e-05
  8  2.55172
  9  9.01178e-06
  10  1.57934e-06
  11  14.7117
  12  3.50128e-06
  13  7.0561
  14  1.80775e-05
  15  2.80478
  16  1.29398e-06
  17  9.51228e-06
  18  70.9374
  19  1.37681e-05
  20  32.9141
  21  0.000417742
  22  4.58899
  23  6.61259e-05
  24  0.00020903
  25  22.8212
  26  1.62469e-06
  27  0.246469
  28  0.17408
Done.

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

Extracting fit parameters...

4FGL J0539.9-2839
   Spectrum: LogParabola
258         norm:  4.663e+00  2.805e+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.009e+00  1.741e-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.047e+00  2.465e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.47
Ra Dec: 84.995 -28.659
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 9.82e-08 +/- 5.90e-08
Energy Flux (Fixed Index): 2.31e-05 +/- 1.39e-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) = 6021.56793854
delta logL = 0.728418968432

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6021.52423039
delta logL = 0.772127117159

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4181       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.4647       1.0000          .0000       5.0000    
     3 'Normalizat'    .95300       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0664       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=   6021.524     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      251 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4177        13.545        .90851E-02    .45867E-03
   2  alpha         4.4650        2.9578        .50000       -.26923E-05
   3  Normalizat    .95294        .97255E-01    .68179E-01    .14859E-04
   4  Prefactor     1.0665        .70009E-01    .39030E-01   -.12030E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 1.41768
  alpha      = 4.46504
  Normalizat = 0.952941
  Prefactor  = 1.06648
 **********
 **   18 **HESSE 
 **********

 FCN=   6021.524     FROM HESSE     STATUS=OK            33 CALLS      284 TOTAL
                     EDM=   .25E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4177        4.2360        .44209E-04   -1.5470    
   2  alpha         4.4650        4.4787        .27020E-01    .90434    
   3  Normalizat    .95294        .24301        .30161E-03   -.94624    
   4  Prefactor     1.0665        .17746        .21546E-03   -.90545    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.53118e-12
Minuit parameter uncertainties:
  1  4.23686
  2  2.82299
  3  0.243287
  4  0.177554
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/710211': 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) = 6021.52423034
delta logL = 0.772127166966

Extracting fit parameters...

4FGL J0539.9-2839
   Spectrum: LogParabola
258         norm:  1.418e+00  4.237e+00  1.000e-04  1.000e+04 ( 1.000e-11)
259        alpha:  4.465e+00  2.823e+00  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.066e+00  1.776e-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.529e-01  2.433e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.50
Ra Dec: 84.995 -28.659
Photon Index (Free Index): 4.47 +/- 2.82
Photon Flux (Free Index): 1.62e-07 +/- 8.57e-08
Energy Flux (Free Index): 2.32e-05 +/- 1.38e-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/710211/cmap_HighResolution_522374401_522633601_4FGL_J0539.9-2839_daily_bin1092.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.82e-08', energy_flux2='2.32e-05', photon_flux_error='5.90e-08', dlogl='7.72e-01', energy_flux='2.31e-05', photon_flux2='1.62e-07', job_status='DONE', time_completed='2021-08-23 14:56:45.955717', photon_index_error2='2.82', photon_index2='4.47', ts='4.47', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='1.38e-05', EG='1.05', time_epoch_completed='1629755805.96', return_code='0', job_id='710211', GAL2='1.07', EG2='0.95', return_code2='0', energy_flux_error='1.39e-05', photon_flux_error2='8.57e-08', ts2='6.50', photon_index='2.68' WHERE bin_id='1092' AND source_name='4FGL J0539.9-2839' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 23 14:56:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0249>
Subject: Job 710211: <4FGL_J0539.9-2839_daily_bin1092> in cluster <slac> Done

Job <4FGL_J0539.9-2839_daily_bin1092> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Aug 23 14:40:35 2021
Job was executed on host(s) <bullet0249>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 23 14:40:37 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:40:37 2021
Terminated at Mon Aug 23 14:56:48 2021
Results reported at Mon Aug 23 14:56:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0539.9-2839_daily_bin1092 84.9952 -28.6585 522374401 522633601 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 :                                   937.25 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             301.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   970 sec.
    Turnaround time :                            973 sec.

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

